2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ntp 4.2.8p13.
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.8p13'
594 PACKAGE_STRING='ntp 4.2.8p13'
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
980 enable_ignore_dns_errors
1039 enable_openssl_random
1042 enable_accurate_adjtime
1051 enable_hourly_todr_sync
1052 enable_kernel_fll_bug
1056 enable_irig_sawtooth
1064 enable_dynamic_interleave
1066 enable_problem_tests
1068 ac_precious_vars='build_alias
1079 LT_SYS_LIBRARY_PATH'
1080 ac_subdirs_all='sntp'
1082 # Initialize some variables set by options.
1084 ac_init_version=false
1085 ac_unrecognized_opts=
1086 ac_unrecognized_sep=
1087 # The variables have the same names as the options, with
1088 # dashes changed to underlines.
1089 cache_file=/dev/null
1096 program_transform_name=s,x,x,
1104 # Installation directory options.
1105 # These are left unexpanded so users can "make install exec_prefix=/foo"
1106 # and all the variables that are supposed to be based on exec_prefix
1107 # by default will actually change.
1108 # Use braces instead of parens because sh, perl, etc. also accept them.
1109 # (The list follows the same order as the GNU Coding Standards.)
1110 bindir='${exec_prefix}/bin'
1111 sbindir='${exec_prefix}/sbin'
1112 libexecdir='${exec_prefix}/libexec'
1113 datarootdir='${prefix}/share'
1114 datadir='${datarootdir}'
1115 sysconfdir='${prefix}/etc'
1116 sharedstatedir='${prefix}/com'
1117 localstatedir='${prefix}/var'
1118 includedir='${prefix}/include'
1119 oldincludedir='/usr/include'
1120 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1121 infodir='${datarootdir}/info'
1126 libdir='${exec_prefix}/lib'
1127 localedir='${datarootdir}/locale'
1128 mandir='${datarootdir}/man'
1134 # If the previous option needs an argument, assign it.
1135 if test -n "$ac_prev"; then
1136 eval $ac_prev=\$ac_option
1142 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1147 # Accept the important Cygnus configure options, so we can diagnose typos.
1149 case $ac_dashdash$ac_option in
1153 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1155 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1156 bindir=$ac_optarg ;;
1158 -build | --build | --buil | --bui | --bu)
1159 ac_prev=build_alias ;;
1160 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1161 build_alias=$ac_optarg ;;
1163 -cache-file | --cache-file | --cache-fil | --cache-fi \
1164 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1165 ac_prev=cache_file ;;
1166 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1167 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1168 cache_file=$ac_optarg ;;
1170 --config-cache | -C)
1171 cache_file=config.cache ;;
1173 -datadir | --datadir | --datadi | --datad)
1175 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1176 datadir=$ac_optarg ;;
1178 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1179 | --dataroo | --dataro | --datar)
1180 ac_prev=datarootdir ;;
1181 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1182 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1183 datarootdir=$ac_optarg ;;
1185 -disable-* | --disable-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid feature name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1194 "enable_$ac_useropt"
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1199 eval enable_$ac_useropt=no ;;
1201 -docdir | --docdir | --docdi | --doc | --do)
1203 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1204 docdir=$ac_optarg ;;
1206 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1208 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1209 dvidir=$ac_optarg ;;
1211 -enable-* | --enable-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error $? "invalid feature name: $ac_useropt"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1220 "enable_$ac_useropt"
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1225 eval enable_$ac_useropt=\$ac_optarg ;;
1227 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1228 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1229 | --exec | --exe | --ex)
1230 ac_prev=exec_prefix ;;
1231 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1232 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1233 | --exec=* | --exe=* | --ex=*)
1234 exec_prefix=$ac_optarg ;;
1236 -gas | --gas | --ga | --g)
1237 # Obsolete; use --with-gas.
1240 -help | --help | --hel | --he | -h)
1241 ac_init_help=long ;;
1242 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1243 ac_init_help=recursive ;;
1244 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1245 ac_init_help=short ;;
1247 -host | --host | --hos | --ho)
1248 ac_prev=host_alias ;;
1249 -host=* | --host=* | --hos=* | --ho=*)
1250 host_alias=$ac_optarg ;;
1252 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1254 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1256 htmldir=$ac_optarg ;;
1258 -includedir | --includedir | --includedi | --included | --include \
1259 | --includ | --inclu | --incl | --inc)
1260 ac_prev=includedir ;;
1261 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1262 | --includ=* | --inclu=* | --incl=* | --inc=*)
1263 includedir=$ac_optarg ;;
1265 -infodir | --infodir | --infodi | --infod | --info | --inf)
1267 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1268 infodir=$ac_optarg ;;
1270 -libdir | --libdir | --libdi | --libd)
1272 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1273 libdir=$ac_optarg ;;
1275 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1276 | --libexe | --libex | --libe)
1277 ac_prev=libexecdir ;;
1278 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1279 | --libexe=* | --libex=* | --libe=*)
1280 libexecdir=$ac_optarg ;;
1282 -localedir | --localedir | --localedi | --localed | --locale)
1283 ac_prev=localedir ;;
1284 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1285 localedir=$ac_optarg ;;
1287 -localstatedir | --localstatedir | --localstatedi | --localstated \
1288 | --localstate | --localstat | --localsta | --localst | --locals)
1289 ac_prev=localstatedir ;;
1290 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1291 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1292 localstatedir=$ac_optarg ;;
1294 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1296 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1297 mandir=$ac_optarg ;;
1299 -nfp | --nfp | --nf)
1300 # Obsolete; use --without-fp.
1303 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1304 | --no-cr | --no-c | -n)
1307 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1308 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1311 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1312 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1313 | --oldin | --oldi | --old | --ol | --o)
1314 ac_prev=oldincludedir ;;
1315 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1316 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1317 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1318 oldincludedir=$ac_optarg ;;
1320 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1322 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1323 prefix=$ac_optarg ;;
1325 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1326 | --program-pre | --program-pr | --program-p)
1327 ac_prev=program_prefix ;;
1328 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1329 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1330 program_prefix=$ac_optarg ;;
1332 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1333 | --program-suf | --program-su | --program-s)
1334 ac_prev=program_suffix ;;
1335 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1336 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1337 program_suffix=$ac_optarg ;;
1339 -program-transform-name | --program-transform-name \
1340 | --program-transform-nam | --program-transform-na \
1341 | --program-transform-n | --program-transform- \
1342 | --program-transform | --program-transfor \
1343 | --program-transfo | --program-transf \
1344 | --program-trans | --program-tran \
1345 | --progr-tra | --program-tr | --program-t)
1346 ac_prev=program_transform_name ;;
1347 -program-transform-name=* | --program-transform-name=* \
1348 | --program-transform-nam=* | --program-transform-na=* \
1349 | --program-transform-n=* | --program-transform-=* \
1350 | --program-transform=* | --program-transfor=* \
1351 | --program-transfo=* | --program-transf=* \
1352 | --program-trans=* | --program-tran=* \
1353 | --progr-tra=* | --program-tr=* | --program-t=*)
1354 program_transform_name=$ac_optarg ;;
1356 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1358 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1359 pdfdir=$ac_optarg ;;
1361 -psdir | --psdir | --psdi | --psd | --ps)
1363 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1367 | -silent | --silent | --silen | --sile | --sil)
1370 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1372 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1374 sbindir=$ac_optarg ;;
1376 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1377 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1378 | --sharedst | --shareds | --shared | --share | --shar \
1380 ac_prev=sharedstatedir ;;
1381 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1382 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1383 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1385 sharedstatedir=$ac_optarg ;;
1387 -site | --site | --sit)
1389 -site=* | --site=* | --sit=*)
1392 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1394 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1395 srcdir=$ac_optarg ;;
1397 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1398 | --syscon | --sysco | --sysc | --sys | --sy)
1399 ac_prev=sysconfdir ;;
1400 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1401 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1402 sysconfdir=$ac_optarg ;;
1404 -target | --target | --targe | --targ | --tar | --ta | --t)
1405 ac_prev=target_alias ;;
1406 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1407 target_alias=$ac_optarg ;;
1409 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1412 -version | --version | --versio | --versi | --vers | -V)
1413 ac_init_version=: ;;
1416 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1417 # Reject names that are not valid shell variable names.
1418 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1419 as_fn_error $? "invalid package name: $ac_useropt"
1420 ac_useropt_orig=$ac_useropt
1421 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1422 case $ac_user_opts in
1426 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1427 ac_unrecognized_sep=', ';;
1429 eval with_$ac_useropt=\$ac_optarg ;;
1431 -without-* | --without-*)
1432 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1433 # Reject names that are not valid shell variable names.
1434 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1435 as_fn_error $? "invalid package name: $ac_useropt"
1436 ac_useropt_orig=$ac_useropt
1437 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1438 case $ac_user_opts in
1442 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1443 ac_unrecognized_sep=', ';;
1445 eval with_$ac_useropt=no ;;
1448 # Obsolete; use --with-x.
1451 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1452 | --x-incl | --x-inc | --x-in | --x-i)
1453 ac_prev=x_includes ;;
1454 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1455 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1456 x_includes=$ac_optarg ;;
1458 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1459 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1460 ac_prev=x_libraries ;;
1461 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1462 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1463 x_libraries=$ac_optarg ;;
1465 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1466 Try \`$0 --help' for more information"
1470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1471 # Reject names that are not valid shell variable names.
1472 case $ac_envvar in #(
1473 '' | [0-9]* | *[!_$as_cr_alnum]* )
1474 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1476 eval $ac_envvar=\$ac_optarg
1477 export $ac_envvar ;;
1480 # FIXME: should be removed in autoconf 3.0.
1481 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1483 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1484 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1490 if test -n "$ac_prev"; then
1491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1492 as_fn_error $? "missing argument to $ac_option"
1495 if test -n "$ac_unrecognized_opts"; then
1496 case $enable_option_checking in
1498 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1499 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1503 # Check all directory arguments for consistency.
1504 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1505 datadir sysconfdir sharedstatedir localstatedir includedir \
1506 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1507 libdir localedir mandir
1509 eval ac_val=\$$ac_var
1510 # Remove trailing slashes.
1513 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1514 eval $ac_var=\$ac_val;;
1516 # Be sure to have absolute directory names.
1518 [\\/$]* | ?:[\\/]* ) continue;;
1519 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1521 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1524 # There might be people who depend on the old broken behavior: `$host'
1525 # used to hold the argument of --host etc.
1526 # FIXME: To remove some day.
1529 target=$target_alias
1531 # FIXME: To remove some day.
1532 if test "x$host_alias" != x; then
1533 if test "x$build_alias" = x; then
1534 cross_compiling=maybe
1535 elif test "x$build_alias" != "x$host_alias"; then
1541 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1543 test "$silent" = yes && exec 6>/dev/null
1546 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1547 ac_ls_di=`ls -di .` &&
1548 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1549 as_fn_error $? "working directory cannot be determined"
1550 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1551 as_fn_error $? "pwd does not report name of working directory"
1554 # Find the source files, if location was not specified.
1555 if test -z "$srcdir"; then
1556 ac_srcdir_defaulted=yes
1557 # Try the directory containing this script, then the parent directory.
1558 ac_confdir=`$as_dirname -- "$as_myself" ||
1559 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1560 X"$as_myself" : 'X\(//\)[^/]' \| \
1561 X"$as_myself" : 'X\(//\)$' \| \
1562 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1563 $as_echo X"$as_myself" |
1564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1582 if test ! -r "$srcdir/$ac_unique_file"; then
1586 ac_srcdir_defaulted=no
1588 if test ! -r "$srcdir/$ac_unique_file"; then
1589 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1590 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1592 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1594 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1596 # When building in place, set srcdir=.
1597 if test "$ac_abs_confdir" = "$ac_pwd"; then
1600 # Remove unnecessary trailing slashes from srcdir.
1601 # Double slashes in file names in object file debugging info
1602 # mess up M-x gdb in Emacs.
1604 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1606 for ac_var in $ac_precious_vars; do
1607 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1608 eval ac_env_${ac_var}_value=\$${ac_var}
1609 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1610 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1614 # Report the --help message.
1616 if test "$ac_init_help" = "long"; then
1617 # Omit some internal or obsolete options to make the list less imposing.
1618 # This message is too long to be a string in the A/UX 3.1 sh.
1620 \`configure' configures ntp 4.2.8p13 to adapt to many kinds of systems.
1622 Usage: $0 [OPTION]... [VAR=VALUE]...
1624 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1625 VAR=VALUE. See below for descriptions of some of the useful variables.
1627 Defaults for the options are specified in brackets.
1630 -h, --help display this help and exit
1631 --help=short display options specific to this package
1632 --help=recursive display the short help of all the included packages
1633 -V, --version display version information and exit
1634 -q, --quiet, --silent do not print \`checking ...' messages
1635 --cache-file=FILE cache test results in FILE [disabled]
1636 -C, --config-cache alias for \`--cache-file=config.cache'
1637 -n, --no-create do not create output files
1638 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1640 Installation directories:
1641 --prefix=PREFIX install architecture-independent files in PREFIX
1642 [$ac_default_prefix]
1643 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1646 By default, \`make install' will install all the files in
1647 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1648 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1649 for instance \`--prefix=\$HOME'.
1651 For better control, use the options below.
1653 Fine tuning of the installation directories:
1654 --bindir=DIR user executables [EPREFIX/bin]
1655 --sbindir=DIR system admin executables [EPREFIX/sbin]
1656 --libexecdir=DIR program executables [EPREFIX/libexec]
1657 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1658 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1659 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1660 --libdir=DIR object code libraries [EPREFIX/lib]
1661 --includedir=DIR C header files [PREFIX/include]
1662 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1663 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1664 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1665 --infodir=DIR info documentation [DATAROOTDIR/info]
1666 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1667 --mandir=DIR man documentation [DATAROOTDIR/man]
1668 --docdir=DIR documentation root [DATAROOTDIR/doc/ntp]
1669 --htmldir=DIR html documentation [DOCDIR]
1670 --dvidir=DIR dvi documentation [DOCDIR]
1671 --pdfdir=DIR pdf documentation [DOCDIR]
1672 --psdir=DIR ps documentation [DOCDIR]
1678 --program-prefix=PREFIX prepend PREFIX to installed program names
1679 --program-suffix=SUFFIX append SUFFIX to installed program names
1680 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1683 --build=BUILD configure for building on BUILD [guessed]
1684 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1688 if test -n "$ac_init_help"; then
1689 case $ac_init_help in
1690 short | recursive ) echo "Configuration of ntp 4.2.8p13:";;
1694 Optional Features and Packages:
1695 --disable-option-checking ignore unrecognized --enable/--with options
1696 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1697 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1698 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1699 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1700 --enable-silent-rules less verbose build output (undo: "make V=1")
1701 --disable-silent-rules verbose build output (undo: "make V=0")
1702 --enable-dependency-tracking
1703 do not reject slow dependency extractors
1704 --disable-dependency-tracking
1705 speeds up one-time build
1706 --with-hardenfile=XXX os-specific or "/dev/null"
1707 --with-locfile=XXX os-specific or "legacy"
1708 --enable-shared[=PKGS] build shared libraries [default=no]
1709 --enable-static[=PKGS] build static libraries [default=yes]
1710 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1712 --enable-fast-install[=PKGS]
1713 optimize for fast installation [default=yes]
1714 --with-aix-soname=aix|svr4|both
1715 shared library versioning (aka "SONAME") variant to
1716 provide on AIX, [default=aix].
1717 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1718 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1719 compiler's sysroot if not specified).
1720 --disable-libtool-lock avoid locking (might break parallel builds)
1721 --disable-nls disable nls support in libopts
1722 --enable-local-libopts Use the supplied libopts tearoff code
1723 --enable-libopts-install
1724 Install libopts with client installation
1725 --with-autoopts-config specify the config-info script
1726 --enable-local-libevent Force using the supplied libevent tearoff code
1727 --with-lineeditlibs edit,editline (readline may be specified if desired)
1728 defaults: + yes, - no, s system-specific
1729 --enable-debugging + include ntpd debugging code
1730 --enable-thread-support s use threads (+ if available)
1731 --with-threads with threads [auto]
1732 --with-yielding-select with yielding select [auto]
1733 --enable-c99-snprintf s force replacement
1734 --enable-clockctl s Use /dev/clockctl for non-root clock control
1735 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1736 --enable-solarisprivs + Use Solaris privileges for non-root clock control
1737 --enable-trustedbsd-mac s Use TrustedBSD MAC policy for non-root clock
1739 --enable-signalled-io s Use signalled IO if we can
1740 --with-arlib - deprecated, arlib not distributed
1741 --with-net-snmp-config + =net-snmp-config
1742 --enable-libseccomp EXPERIMENTAL: enable support for libseccomp
1743 sandboxing (default is no)
1744 --with-stack-limit ? =50 (200 for openbsd) 4k pages
1745 --with-memlock ? =32 (-1 on linux) megabytes
1746 --enable-debug-timing - include processing time debugging code (costs
1748 --enable-dst-minutes =60 minutes per DST adjustment
1749 --enable-ignore-dns-errors
1750 - retry DNS queries on any error
1751 --enable-BANCOMM - Datum/Bancomm bc635/VME interface
1752 --enable-GPSVME - TrueTime GPS receiver/VME interface
1753 --enable-all-clocks + include all suitable non-PARSE clocks:
1754 --enable-ACTS s ACTS modem service
1755 --enable-ARBITER + Arbiter 1088A/B GPS receiver
1756 --enable-ARCRON-MSF + Arcron MSF receiver
1757 --enable-AS2201 + Austron 2200A/2201A GPS receiver
1758 --enable-ATOM s ATOM PPS interface
1759 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver
1760 --enable-CHU + CHU modem/decoder
1761 --enable-AUDIO-CHU s CHU audio/decoder
1762 --enable-DATUM s Datum Programmable Time System
1763 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock
1764 --enable-FG + Forum Graphic GPS
1765 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver
1766 --enable-HOPFSERIAL + hopf serial clock device
1767 --enable-HOPFPCI + hopf 6039 PCI board
1768 --enable-HPGPS + HP 58503A GPS receiver
1769 --enable-IRIG s IRIG audio decoder
1770 --enable-JJY + JJY receiver
1771 --enable-JUPITER s Rockwell Jupiter GPS receiver
1772 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver
1773 --enable-LOCAL-CLOCK + local clock reference
1774 --enable-MX4200 s Magnavox MX4200 GPS receiver
1775 --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver
1776 --enable-NMEA + NMEA GPS receiver
1777 --enable-GPSD + GPSD JSON receiver
1778 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver
1779 --enable-PALISADE s Palisade clock
1780 --enable-PCF + Conrad parallel port radio clock
1781 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver
1782 --enable-RIPENCC - RIPENCC specific Trimble driver
1783 --enable-SHM s SHM clock attached thru shared memory
1784 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver
1785 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1786 --enable-TRUETIME s Kinemetrics/TrueTime receivers
1787 --enable-TT560 - TrueTime 560 IRIG-B decoder
1788 --enable-ULINK + Ultralink WWVB receiver
1789 --enable-TSYNCPCI s Spectracom TSYNC timing board
1790 --enable-WWV s WWV Audio receiver
1791 --enable-ZYFER + Zyfer GPStarplus receiver
1792 --enable-parse-clocks - include all suitable PARSE clocks:
1793 --enable-COMPUTIME s Diem Computime Radio Clock
1794 --enable-DCF7000 s ELV/DCF7000 clock
1795 --enable-HOPF6021 s HOPF 6021 clock
1796 --enable-MEINBERG s Meinberg clocks
1797 --enable-RAWDCF s DCF77 raw time code
1798 --enable-RCC8000 s RCC 8000 clock
1799 --enable-SCHMID s Schmid DCF77 clock
1800 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol
1801 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol
1802 --enable-WHARTON s WHARTON 400A Series clock
1803 --enable-VARITEXT s VARITEXT clock
1804 --enable-SEL240X s SEL240X clock
1805 --with-crypto + =openssl,libcrypto
1807 --with-openssl-libdir + =/something/reasonable
1809 --with-openssl-incdir + =/something/reasonable
1811 --without-rpath s Disable auto-added -R linker paths
1813 --enable-openssl-random Use OpenSSL's crypto random number functions, if
1814 available (default is yes)
1815 --enable-autokey + support NTP Autokey protocol
1816 --enable-kmem s read /dev/kmem for tick and/or tickadj
1817 --enable-accurate-adjtime
1818 s the adjtime() call is accurate
1819 --enable-tick=VALUE s force a value for 'tick'
1820 --enable-tickadj=VALUE s force a value for 'tickadj'
1821 --enable-simulator - build/install the NTPD simulator?
1822 --without-sntp - disable building sntp and sntp/tests
1823 --with-ntpsnmpd s Build ntpsnmpd MIB agent?
1824 --enable-slew-always s always slew the time
1825 --enable-step-slew s step and slew the time
1826 --enable-ntpdate-step s if ntpdate should step the time
1827 --enable-hourly-todr-sync
1828 s if we should sync TODR hourly
1829 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1830 --enable-bug1243-fix + use unmodified autokey session keys
1831 --enable-bug3020-fix + Provide the explicit 127.0.0.0/8 martian filter
1832 --enable-bug3527-fix + provide correct mode7 fudgetime2 behavior
1833 --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter
1834 --enable-nist - if we should enable the NIST lockclock scheme
1835 --enable-ntp-signd - Provide support for Samba's signing daemon,
1837 --enable-ipv6 s use IPv6?
1839 --with-kame - =/usr/local/v6
1840 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]].
1841 --enable-saveconfig + saveconfig mechanism
1842 --enable-leap-smear - experimental leap smear code
1843 --enable-dynamic-interleave
1844 - dynamic interleave support
1845 --with-gtest Use the gtest framework (Default: if it's available)
1846 --enable-problem-tests + enable tests with undiagnosed problems
1848 Some influential environment variables:
1849 CC C compiler command
1850 CFLAGS C compiler flags
1851 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1852 nonstandard directory <lib dir>
1853 LIBS libraries to pass to the linker, e.g. -l<library>
1854 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1855 you have headers in a nonstandard directory <include dir>
1857 YACC The `Yet Another Compiler Compiler' implementation to use.
1858 Defaults to the first program found out of: `bison -y', `byacc',
1860 YFLAGS The list of arguments that will be passed by default to $YACC.
1861 This script will default YFLAGS to the empty string to avoid a
1862 default value of `-d' given by some make applications.
1864 User-defined run-time library search path.
1866 Use these variables to override the choices made by `configure' or to help
1867 it to find libraries and programs with nonstandard names/locations.
1869 Report bugs to <http://bugs.ntp.org./>.
1870 ntp home page: <http://www.ntp.org./>.
1875 if test "$ac_init_help" = "recursive"; then
1876 # If there are subdirs, report their specific --help.
1877 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1878 test -d "$ac_dir" ||
1879 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1884 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1886 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1887 # A ".." for each directory in $ac_dir_suffix.
1888 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1889 case $ac_top_builddir_sub in
1890 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1891 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1894 ac_abs_top_builddir=$ac_pwd
1895 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1896 # for backward compatibility:
1897 ac_top_builddir=$ac_top_build_prefix
1900 .) # We are building in place.
1902 ac_top_srcdir=$ac_top_builddir_sub
1903 ac_abs_top_srcdir=$ac_pwd ;;
1904 [\\/]* | ?:[\\/]* ) # Absolute name.
1905 ac_srcdir=$srcdir$ac_dir_suffix;
1906 ac_top_srcdir=$srcdir
1907 ac_abs_top_srcdir=$srcdir ;;
1909 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1910 ac_top_srcdir=$ac_top_build_prefix$srcdir
1911 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1913 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1915 cd "$ac_dir" || { ac_status=$?; continue; }
1916 # Check for guested configure.
1917 if test -f "$ac_srcdir/configure.gnu"; then
1919 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1920 elif test -f "$ac_srcdir/configure"; then
1922 $SHELL "$ac_srcdir/configure" --help=recursive
1924 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1926 cd "$ac_pwd" || { ac_status=$?; break; }
1930 test -n "$ac_init_help" && exit $ac_status
1931 if $ac_init_version; then
1933 ntp configure 4.2.8p13
1934 generated by GNU Autoconf 2.69
1936 Copyright (C) 2012 Free Software Foundation, Inc.
1937 This configure script is free software; the Free Software Foundation
1938 gives unlimited permission to copy, distribute and modify it.
1943 ## ------------------------ ##
1944 ## Autoconf initialization. ##
1945 ## ------------------------ ##
1947 # ac_fn_c_try_compile LINENO
1948 # --------------------------
1949 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1950 ac_fn_c_try_compile ()
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 rm -f conftest.$ac_objext
1954 if { { ac_try="$ac_compile"
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_compile") 2>conftest.err
1963 if test -s conftest.err; then
1964 grep -v '^ *+' conftest.err >conftest.er1
1965 cat conftest.er1 >&5
1966 mv -f conftest.er1 conftest.err
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } && {
1970 test -z "$ac_c_werror_flag" ||
1971 test ! -s conftest.err
1972 } && test -s conftest.$ac_objext; then :
1975 $as_echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981 as_fn_set_status $ac_retval
1983 } # ac_fn_c_try_compile
1985 # ac_fn_c_try_cpp LINENO
1986 # ----------------------
1987 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 if { { ac_try="$ac_cpp conftest.$ac_ext"
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2000 if test -s conftest.err; then
2001 grep -v '^ *+' conftest.err >conftest.er1
2002 cat conftest.er1 >&5
2003 mv -f conftest.er1 conftest.err
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; } > conftest.i && {
2007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2008 test ! -s conftest.err
2012 $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 as_fn_set_status $ac_retval
2022 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2023 # -------------------------------------------------------
2024 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2025 # the include files in INCLUDES and setting the cache variable VAR
2027 ac_fn_c_check_header_mongrel ()
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 if eval \${$3+:} false; then :
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if eval \${$3+:} false; then :
2034 $as_echo_n "(cached) " >&6
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2040 # Is the header compilable?
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2042 $as_echo_n "checking $2 usability... " >&6; }
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049 ac_header_compiler=yes
2051 ac_header_compiler=no
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2055 $as_echo "$ac_header_compiler" >&6; }
2057 # Is the header present?
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2059 $as_echo_n "checking $2 presence... " >&6; }
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2064 if ac_fn_c_try_cpp "$LINENO"; then :
2065 ac_header_preproc=yes
2067 ac_header_preproc=no
2069 rm -f conftest.err conftest.i conftest.$ac_ext
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2071 $as_echo "$ac_header_preproc" >&6; }
2073 # So? What about this header?
2074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2077 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2079 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2083 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2085 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2087 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2089 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2091 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2092 ( $as_echo "## ------------------------------------ ##
2093 ## Report this to http://bugs.ntp.org./ ##
2094 ## ------------------------------------ ##"
2095 ) | sed "s/^/$as_me: WARNING: /" >&2
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2099 $as_echo_n "checking for $2... " >&6; }
2100 if eval \${$3+:} false; then :
2101 $as_echo_n "(cached) " >&6
2103 eval "$3=\$ac_header_compiler"
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111 } # ac_fn_c_check_header_mongrel
2113 # ac_fn_c_try_run LINENO
2114 # ----------------------
2115 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2116 # that executables *can* be run.
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 if { { ac_try="$ac_link"
2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123 *) ac_try_echo=$ac_try;;
2125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2126 $as_echo "$ac_try_echo"; } >&5
2127 (eval "$ac_link") 2>&5
2129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2130 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2131 { { case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2136 $as_echo "$ac_try_echo"; } >&5
2137 (eval "$ac_try") 2>&5
2139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2140 test $ac_status = 0; }; }; then :
2143 $as_echo "$as_me: program exited with status $ac_status" >&5
2144 $as_echo "$as_me: failed program was:" >&5
2145 sed 's/^/| /' conftest.$ac_ext >&5
2147 ac_retval=$ac_status
2149 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151 as_fn_set_status $ac_retval
2155 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2156 # -------------------------------------------------------
2157 # Tests whether HEADER exists and can be compiled using the include files in
2158 # INCLUDES, setting the cache variable VAR accordingly.
2159 ac_fn_c_check_header_compile ()
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2163 $as_echo_n "checking for $2... " >&6; }
2164 if eval \${$3+:} false; then :
2165 $as_echo_n "(cached) " >&6
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2172 if ac_fn_c_try_compile "$LINENO"; then :
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 $as_echo "$ac_res" >&6; }
2182 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2184 } # ac_fn_c_check_header_compile
2186 # ac_fn_c_try_link LINENO
2187 # -----------------------
2188 # Try to link conftest.$ac_ext, and return whether this succeeded.
2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192 rm -f conftest.$ac_objext conftest$ac_exeext
2193 if { { ac_try="$ac_link"
2195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196 *) ac_try_echo=$ac_try;;
2198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199 $as_echo "$ac_try_echo"; } >&5
2200 (eval "$ac_link") 2>conftest.err
2202 if test -s conftest.err; then
2203 grep -v '^ *+' conftest.err >conftest.er1
2204 cat conftest.er1 >&5
2205 mv -f conftest.er1 conftest.err
2207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208 test $ac_status = 0; } && {
2209 test -z "$ac_c_werror_flag" ||
2210 test ! -s conftest.err
2211 } && test -s conftest$ac_exeext && {
2212 test "$cross_compiling" = yes ||
2213 test -x conftest$ac_exeext
2217 $as_echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2222 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2223 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2224 # interfere with the next link command; also delete a directory that is
2225 # left behind by Apple's compiler. We do this before executing the actions.
2226 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228 as_fn_set_status $ac_retval
2230 } # ac_fn_c_try_link
2232 # ac_fn_c_check_func LINENO FUNC VAR
2233 # ----------------------------------
2234 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2235 ac_fn_c_check_func ()
2237 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2239 $as_echo_n "checking for $2... " >&6; }
2240 if eval \${$3+:} false; then :
2241 $as_echo_n "(cached) " >&6
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2245 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2247 #define $2 innocuous_$2
2249 /* System header to define __stub macros and hopefully few prototypes,
2250 which can conflict with char $2 (); below.
2251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2252 <limits.h> exists even on freestanding compilers. */
2255 # include <limits.h>
2257 # include <assert.h>
2262 /* Override any GCC internal prototype to avoid an error.
2263 Use char because int might match the return type of a GCC
2264 builtin and then its argument prototype would still apply. */
2269 /* The GNU C library defines this for functions which it implements
2270 to always fail with ENOSYS. Some functions are actually named
2271 something starting with __ and the normal name is an alias. */
2272 #if defined __stub_$2 || defined __stub___$2
2284 if ac_fn_c_try_link "$LINENO"; then :
2289 rm -f core conftest.err conftest.$ac_objext \
2290 conftest$ac_exeext conftest.$ac_ext
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294 $as_echo "$ac_res" >&6; }
2295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297 } # ac_fn_c_check_func
2299 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2300 # -------------------------------------------
2301 # Tests whether TYPE exists after having included INCLUDES, setting cache
2302 # variable VAR accordingly.
2303 ac_fn_c_check_type ()
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2307 $as_echo_n "checking for $2... " >&6; }
2308 if eval \${$3+:} false; then :
2309 $as_echo_n "(cached) " >&6
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2324 if ac_fn_c_try_compile "$LINENO"; then :
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2337 if ac_fn_c_try_compile "$LINENO"; then :
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2348 $as_echo "$ac_res" >&6; }
2349 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2351 } # ac_fn_c_check_type
2353 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2354 # --------------------------------------------
2355 # Tries to find the compile-time value of EXPR in a program that includes
2356 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2358 ac_fn_c_compute_int ()
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 if test "$cross_compiling" = yes; then
2362 # Depending upon the size, compute the lo and hi bounds.
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h. */
2369 static int test_array [1 - 2 * !(($2) >= 0)];
2371 return test_array [0];
2377 if ac_fn_c_try_compile "$LINENO"; then :
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2386 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2388 return test_array [0];
2394 if ac_fn_c_try_compile "$LINENO"; then :
2395 ac_hi=$ac_mid; break
2397 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2398 if test $ac_lo -le $ac_mid; then
2402 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2413 static int test_array [1 - 2 * !(($2) < 0)];
2415 return test_array [0];
2421 if ac_fn_c_try_compile "$LINENO"; then :
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2430 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2432 return test_array [0];
2438 if ac_fn_c_try_compile "$LINENO"; then :
2439 ac_lo=$ac_mid; break
2441 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2442 if test $ac_mid -le $ac_hi; then
2446 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 # Binary search between lo and hi bounds.
2457 while test "x$ac_lo" != "x$ac_hi"; do
2458 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2465 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2467 return test_array [0];
2473 if ac_fn_c_try_compile "$LINENO"; then :
2476 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2481 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2488 static long int longval () { return $2; }
2489 static unsigned long int ulongval () { return $2; }
2496 FILE *f = fopen ("conftest.val", "w");
2501 long int i = longval ();
2504 fprintf (f, "%ld", i);
2508 unsigned long int i = ulongval ();
2511 fprintf (f, "%lu", i);
2513 /* Do not output a trailing newline, as this causes \r\n confusion
2514 on some platforms. */
2515 return ferror (f) || fclose (f) != 0;
2521 if ac_fn_c_try_run "$LINENO"; then :
2522 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2527 conftest.$ac_objext conftest.beam conftest.$ac_ext
2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2532 as_fn_set_status $ac_retval
2534 } # ac_fn_c_compute_int
2536 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2537 # ---------------------------------------------
2538 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2540 ac_fn_c_check_decl ()
2542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543 as_decl_name=`echo $2|sed 's/ *(.*//'`
2544 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2546 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2547 if eval \${$3+:} false; then :
2548 $as_echo_n "(cached) " >&6
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h. */
2556 #ifndef $as_decl_name
2558 (void) $as_decl_use;
2560 (void) $as_decl_name;
2568 if ac_fn_c_try_compile "$LINENO"; then :
2573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2577 $as_echo "$ac_res" >&6; }
2578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2580 } # ac_fn_c_check_decl
2582 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2583 # ----------------------------------------------------
2584 # Tries to find if the field MEMBER exists in type AGGR, after including
2585 # INCLUDES, setting cache variable VAR accordingly.
2586 ac_fn_c_check_member ()
2588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2590 $as_echo_n "checking for $2.$3... " >&6; }
2591 if eval \${$4+:} false; then :
2592 $as_echo_n "(cached) " >&6
2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h. */
2607 if ac_fn_c_try_compile "$LINENO"; then :
2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611 /* end confdefs.h. */
2617 if (sizeof ac_aggr.$3)
2623 if ac_fn_c_try_compile "$LINENO"; then :
2628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2634 $as_echo "$ac_res" >&6; }
2635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2637 } # ac_fn_c_check_member
2638 cat >config.log <<_ACEOF
2639 This file contains any messages produced by compilers while
2640 running configure, to aid debugging if configure makes a mistake.
2642 It was created by ntp $as_me 4.2.8p13, which was
2643 generated by GNU Autoconf 2.69. Invocation command line was
2655 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2656 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2657 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2658 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2659 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2661 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2662 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2664 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2665 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2666 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2667 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2668 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2669 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2670 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 test -z "$as_dir" && as_dir=.
2679 $as_echo "PATH: $as_dir"
2695 # Keep a trace of the command line.
2696 # Strip out --no-create and --no-recursion so they do not pile up.
2697 # Strip out --silent because we don't want to record it for future runs.
2698 # Also quote any args containing shell meta-characters.
2699 # Make two passes to allow for proper duplicate-argument suppression.
2703 ac_must_keep_next=false
2709 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2711 | -silent | --silent | --silen | --sile | --sil)
2714 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2717 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2719 as_fn_append ac_configure_args1 " '$ac_arg'"
2720 if test $ac_must_keep_next = true; then
2721 ac_must_keep_next=false # Got value, back to normal.
2724 *=* | --config-cache | -C | -disable-* | --disable-* \
2725 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2726 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2727 | -with-* | --with-* | -without-* | --without-* | --x)
2728 case "$ac_configure_args0 " in
2729 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2732 -* ) ac_must_keep_next=true ;;
2735 as_fn_append ac_configure_args " '$ac_arg'"
2740 { ac_configure_args0=; unset ac_configure_args0;}
2741 { ac_configure_args1=; unset ac_configure_args1;}
2743 # When interrupted or exit'd, cleanup temporary files, and complete
2744 # config.log. We remove comments because anyway the quotes in there
2745 # would cause problems or look ugly.
2746 # WARNING: Use '\'' to represent an apostrophe within the trap.
2747 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2748 trap 'exit_status=$?
2749 # Save into config.log some information that might help in debugging.
2753 $as_echo "## ---------------- ##
2754 ## Cache variables. ##
2755 ## ---------------- ##"
2757 # The following way of writing the cache mishandles newlines in values,
2759 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2760 eval ac_val=\$$ac_var
2764 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2765 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2768 _ | IFS | as_nl) ;; #(
2769 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2770 *) { eval $ac_var=; unset $ac_var;} ;;
2775 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2776 *${as_nl}ac_space=\ *)
2778 "s/'\''/'\''\\\\'\'''\''/g;
2779 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2782 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2789 $as_echo "## ----------------- ##
2790 ## Output variables. ##
2791 ## ----------------- ##"
2793 for ac_var in $ac_subst_vars
2795 eval ac_val=\$$ac_var
2797 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2799 $as_echo "$ac_var='\''$ac_val'\''"
2803 if test -n "$ac_subst_files"; then
2804 $as_echo "## ------------------- ##
2805 ## File substitutions. ##
2806 ## ------------------- ##"
2808 for ac_var in $ac_subst_files
2810 eval ac_val=\$$ac_var
2812 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2814 $as_echo "$ac_var='\''$ac_val'\''"
2819 if test -s confdefs.h; then
2820 $as_echo "## ----------- ##
2827 test "$ac_signal" != 0 &&
2828 $as_echo "$as_me: caught signal $ac_signal"
2829 $as_echo "$as_me: exit $exit_status"
2831 rm -f core *.core core.conftest.* &&
2832 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2835 for ac_signal in 1 2 13 15; do
2836 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2840 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2841 rm -f -r conftest* confdefs.h
2843 $as_echo "/* confdefs.h */" > confdefs.h
2845 # Predefined preprocessor variables.
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_NAME "$PACKAGE_NAME"
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2855 cat >>confdefs.h <<_ACEOF
2856 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2859 cat >>confdefs.h <<_ACEOF
2860 #define PACKAGE_STRING "$PACKAGE_STRING"
2863 cat >>confdefs.h <<_ACEOF
2864 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2867 cat >>confdefs.h <<_ACEOF
2868 #define PACKAGE_URL "$PACKAGE_URL"
2872 # Let the site file select an alternate cache file if it wants to.
2873 # Prefer an explicitly selected file to automatically selected ones.
2876 if test -n "$CONFIG_SITE"; then
2877 # We do not want a PATH search for config.site.
2878 case $CONFIG_SITE in #((
2879 -*) ac_site_file1=./$CONFIG_SITE;;
2880 */*) ac_site_file1=$CONFIG_SITE;;
2881 *) ac_site_file1=./$CONFIG_SITE;;
2883 elif test "x$prefix" != xNONE; then
2884 ac_site_file1=$prefix/share/config.site
2885 ac_site_file2=$prefix/etc/config.site
2887 ac_site_file1=$ac_default_prefix/share/config.site
2888 ac_site_file2=$ac_default_prefix/etc/config.site
2890 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2892 test "x$ac_site_file" = xNONE && continue
2893 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2895 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2896 sed 's/^/| /' "$ac_site_file" >&5
2898 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2900 as_fn_error $? "failed to load site script $ac_site_file
2901 See \`config.log' for more details" "$LINENO" 5; }
2905 if test -r "$cache_file"; then
2906 # Some versions of bash will fail to source /dev/null (special files
2907 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2908 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2910 $as_echo "$as_me: loading cache $cache_file" >&6;}
2912 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2913 *) . "./$cache_file";;
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2918 $as_echo "$as_me: creating cache $cache_file" >&6;}
2922 as_fn_append ac_header_list " stdarg.h"
2923 # Check that the precious variables saved in the cache have kept the same
2925 ac_cache_corrupted=false
2926 for ac_var in $ac_precious_vars; do
2927 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2928 eval ac_new_set=\$ac_env_${ac_var}_set
2929 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2930 eval ac_new_val=\$ac_env_${ac_var}_value
2931 case $ac_old_set,$ac_new_set in
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2934 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2935 ac_cache_corrupted=: ;;
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2938 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2939 ac_cache_corrupted=: ;;
2942 if test "x$ac_old_val" != "x$ac_new_val"; then
2943 # differences in whitespace do not lead to failure.
2944 ac_old_val_w=`echo x $ac_old_val`
2945 ac_new_val_w=`echo x $ac_new_val`
2946 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2948 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2949 ac_cache_corrupted=:
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2952 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2953 eval $ac_var=\$ac_old_val
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2956 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2958 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2961 # Pass precious variables to config.status.
2962 if test "$ac_new_set" = set; then
2964 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2965 *) ac_arg=$ac_var=$ac_new_val ;;
2967 case " $ac_configure_args " in
2968 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2969 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2973 if $ac_cache_corrupted; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2977 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2978 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2980 ## -------------------- ##
2981 ## Main body of script. ##
2982 ## -------------------- ##
2985 ac_cpp='$CPP $CPPFLAGS'
2986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2993 for ac_dir in sntp/libevent/build-aux "$srcdir"/sntp/libevent/build-aux; do
2994 if test -f "$ac_dir/install-sh"; then
2996 ac_install_sh="$ac_aux_dir/install-sh -c"
2998 elif test -f "$ac_dir/install.sh"; then
3000 ac_install_sh="$ac_aux_dir/install.sh -c"
3002 elif test -f "$ac_dir/shtool"; then
3004 ac_install_sh="$ac_aux_dir/shtool install -c"
3008 if test -z "$ac_aux_dir"; then
3009 as_fn_error $? "cannot find install-sh, install.sh, or shtool in sntp/libevent/build-aux \"$srcdir\"/sntp/libevent/build-aux" "$LINENO" 5
3012 # These three variables are undocumented and unsupported,
3013 # and are intended to be withdrawn in a future Autoconf release.
3014 # They can cause serious problems if a builder's source tree is in a directory
3015 # whose full name contains unusual characters.
3016 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3017 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3018 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3022 ac_cpp='$CPP $CPPFLAGS'
3023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032 # Bump ntp_configure_cache_version for each change to configure.ac or
3033 # .m4 files which invalidates cached values from previous configure
3036 # If the change affects cache variables used only by the main NTP
3037 # configure.ac, then only its version number should be bumped, while
3038 # the subdir configure.ac version numbers should be unchanged. The
3039 # same is true for a test/variable that is used only by one subdir
3040 # being changed incompatibly; only that subdir's cache version needs
3043 # If a change affects variables shared by all NTP configure scripts,
3044 # please bump the version numbers of each. If you are not sure, the
3045 # safe choice is to bump all on any cache-invalidating change.
3047 # In order to avoid the risk of version stamp collision between -stable
3048 # and -dev branches, do not simply increment the version, instead use
3049 # the date YYYYMMDD optionally with -HHMM if there is more than one
3052 ntp_configure_cache_version=20120806
3054 # When the cache version of config.cache and configure do not
3055 # match, NTP_CACHEVERSION will flush the cache.
3061 case "$ntp_cv_main_cache_version" in
3062 $ntp_configure_cache_version)
3063 # same version, good
3067 # No cache, predates ntp_cv_main_cache_version, or is empty.
3068 case "$cache_file" in
3073 case "$NTP_CACHEVERSION_PARENT" in
3075 # Do not clear the cache immediately after it is created
3076 # empty as it is noisy. Differentiate a newly-created
3077 # config.cache from one predating the cache version
3078 # mechanism by looking for the first cached variable set
3080 case "$ac_cv_path_install" in
3082 # empty config.cache file
3087 # Parent configure just created cache from empty,
3088 # flushing would be counterproductive.
3095 # configure cache version mismatches config.cache version
3099 case "$ntp_cache_flush" in
3101 c_version="${ntp_cv_main_cache_version:-(no version found)}"
3103 # Do we flush all variables or exclude others' version stamps?
3105 case "$NTP_CACHEVERSION_PARENT" in
3107 # Clear all *_cv_* variables including our child subdirs'
3108 # ntp_cv_*_cache_version variables. This prevents subdir
3109 # configure scripts from noticing a version mismatch just
3110 # after the top configure in the invocation cleared and
3111 # recreated the cache.
3113 c_varname_list=`set |
3114 sed -n -e 's/=.*$//' \
3119 # This is not the top configure this particular invocation.
3120 # Clear all *_cv_* variables sparing the version stamps
3121 # of other configure scripts, so we don't trigger
3122 # useless repeated clearings.
3124 c_varname_list=`set |
3125 sed -n -e 's/=.*$//' \
3126 -e '/ntp_cv_.*_cache_version/d' \
3131 for c_varname in $c_varname_list
3133 { eval $c_varname=; unset $c_varname; }
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3137 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
3139 $as_echo "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3141 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
3142 { c_varname=; unset c_varname;}
3143 { c_varname_list=; unset c_varname_list;}
3144 { c_version=; unset c_version;}
3147 { ntp_cache_flush=; unset ntp_cache_flush;}
3149 # save configure version in config.cache for next time
3150 ntp_cv_main_cache_version="$ntp_configure_cache_version"
3152 # let any subdir configure.ac NTP_CACHEVERSION invocations
3153 # know they are not the top level.
3154 NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT
3157 am__api_version='1.15'
3159 # Find a good install program. We prefer a C program (faster),
3160 # so one script is as good as another. But avoid the broken or
3161 # incompatible versions:
3162 # SysV /etc/install, /usr/sbin/install
3163 # SunOS /usr/etc/install
3164 # IRIX /sbin/install
3166 # AmigaOS /C/install, which installs bootblocks on floppy discs
3167 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3168 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3169 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3170 # OS/2's system install, which has a completely different semantic
3171 # ./install, which can be erroneously created by make from ./install.sh.
3172 # Reject install programs that cannot install multiple files.
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3174 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3175 if test -z "$INSTALL"; then
3176 if ${ac_cv_path_install+:} false; then :
3177 $as_echo_n "(cached) " >&6
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 test -z "$as_dir" && as_dir=.
3184 # Account for people who put trailing slashes in PATH elements.
3185 case $as_dir/ in #((
3186 ./ | .// | /[cC]/* | \
3187 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3188 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3191 # OSF1 and SCO ODT 3.0 have their own names for install.
3192 # Don't use installbsd from OSF since it installs stuff as root
3194 for ac_prog in ginstall scoinst install; do
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3197 if test $ac_prog = install &&
3198 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3199 # AIX install. It has an incompatible calling convention.
3201 elif test $ac_prog = install &&
3202 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3203 # program-specific install script used by HP pwplus--don't use.
3206 rm -rf conftest.one conftest.two conftest.dir
3207 echo one > conftest.one
3208 echo two > conftest.two
3210 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3211 test -s conftest.one && test -s conftest.two &&
3212 test -s conftest.dir/conftest.one &&
3213 test -s conftest.dir/conftest.two
3215 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3228 rm -rf conftest.one conftest.two conftest.dir
3231 if test "${ac_cv_path_install+set}" = set; then
3232 INSTALL=$ac_cv_path_install
3234 # As a last resort, use the slow shell script. Don't cache a
3235 # value for INSTALL within a source directory, because that will
3236 # break other packages using the cache if that directory is
3237 # removed, or if the value is a relative name.
3238 INSTALL=$ac_install_sh
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3242 $as_echo "$INSTALL" >&6; }
3244 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3245 # It thinks the first close brace ends the variable substitution.
3246 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3248 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3250 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3253 $as_echo_n "checking whether build environment is sane... " >&6; }
3254 # Reject unsafe characters in $srcdir or the absolute working directory
3255 # name. Accept space and tab only in the latter.
3259 *[\\\"\#\$\&\'\`$am_lf]*)
3260 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3263 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3264 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3267 # Do 'set' in a subshell so we don't clobber the current shell's
3268 # arguments. Must try -L first in case configure is actually a
3269 # symlink; some systems play weird games with the mod time of symlinks
3270 # (eg FreeBSD returns the mod time of the symlink's containing
3274 for am_try in 1 2; do
3275 echo "timestamp, slept: $am_has_slept" > conftest.file
3276 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3277 if test "$*" = "X"; then
3279 set X `ls -t "$srcdir/configure" conftest.file`
3281 if test "$*" != "X $srcdir/configure conftest.file" \
3282 && test "$*" != "X conftest.file $srcdir/configure"; then
3284 # If neither matched, then we have a broken ls. This can happen
3285 # if, for instance, CONFIG_SHELL is bash and it inherits a
3286 # broken ls alias from the environment. This has actually
3287 # happened. Such a system could not be considered "sane".
3288 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3289 alias in your environment" "$LINENO" 5
3291 if test "$2" = conftest.file || test $am_try -eq 2; then
3298 test "$2" = conftest.file
3304 as_fn_error $? "newly created file is older than distributed files!
3305 Check your system clock" "$LINENO" 5
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3308 $as_echo "yes" >&6; }
3309 # If we didn't sleep, we still need to ensure time stamps of config.status and
3310 # generated files are strictly newer.
3312 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3319 test "$program_prefix" != NONE &&
3320 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3321 # Use a double $ so make ignores it.
3322 test "$program_suffix" != NONE &&
3323 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3324 # Double any \ or $.
3325 # By default was `s,x,x', remove it if useless.
3326 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3327 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3329 # Expand $ac_aux_dir to an absolute path.
3330 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3332 if test x"${MISSING+set}" != xset; then
3335 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3337 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3340 # Use eval to expand $SHELL
3341 if eval "$MISSING --is-lightweight"; then
3342 am_missing_run="$MISSING "
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3346 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3349 if test x"${install_sh+set}" != xset; then
3352 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3354 install_sh="\${SHELL} $am_aux_dir/install-sh"
3358 # Installed binaries are usually stripped using 'strip' when the user
3359 # run "make install-strip". However 'strip' might not be the right
3360 # tool to use in cross-compilation environments, therefore Automake
3361 # will honor the 'STRIP' environment variable to overrule this program.
3362 if test "$cross_compiling" != no; then
3363 if test -n "$ac_tool_prefix"; then
3364 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3365 set dummy ${ac_tool_prefix}strip; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if ${ac_cv_prog_STRIP+:} false; then :
3369 $as_echo_n "(cached) " >&6
3371 if test -n "$STRIP"; then
3372 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 STRIP=$ac_cv_prog_STRIP
3392 if test -n "$STRIP"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3394 $as_echo "$STRIP" >&6; }
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3402 if test -z "$ac_cv_prog_STRIP"; then
3404 # Extract the first word of "strip", so it can be a program name with args.
3405 set dummy strip; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3409 $as_echo_n "(cached) " >&6
3411 if test -n "$ac_ct_STRIP"; then
3412 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_ac_ct_STRIP="strip"
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3432 if test -n "$ac_ct_STRIP"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3434 $as_echo "$ac_ct_STRIP" >&6; }
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3440 if test "x$ac_ct_STRIP" = x; then
3443 case $cross_compiling:$ac_tool_warned in
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3447 ac_tool_warned=yes ;;
3452 STRIP="$ac_cv_prog_STRIP"
3456 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3459 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3460 if test -z "$MKDIR_P"; then
3461 if ${ac_cv_path_mkdir+:} false; then :
3462 $as_echo_n "(cached) " >&6
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3468 test -z "$as_dir" && as_dir=.
3469 for ac_prog in mkdir gmkdir; do
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3472 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3473 'mkdir (GNU coreutils) '* | \
3474 'mkdir (coreutils) '* | \
3475 'mkdir (fileutils) '4.1*)
3476 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3486 test -d ./--version && rmdir ./--version
3487 if test "${ac_cv_path_mkdir+set}" = set; then
3488 MKDIR_P="$ac_cv_path_mkdir -p"
3490 # As a last resort, use the slow shell script. Don't cache a
3491 # value for MKDIR_P within a source directory, because that will
3492 # break other packages using the cache if that directory is
3493 # removed, or if the value is a relative name.
3494 MKDIR_P="$ac_install_sh -d"
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3498 $as_echo "$MKDIR_P" >&6; }
3500 for ac_prog in gawk mawk nawk awk
3502 # Extract the first word of "$ac_prog", so it can be a program name with args.
3503 set dummy $ac_prog; ac_word=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if ${ac_cv_prog_AWK+:} false; then :
3507 $as_echo_n "(cached) " >&6
3509 if test -n "$AWK"; then
3510 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519 ac_cv_prog_AWK="$ac_prog"
3520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 if test -n "$AWK"; then
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3532 $as_echo "$AWK" >&6; }
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3539 test -n "$AWK" && break
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3543 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3545 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3546 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3547 $as_echo_n "(cached) " >&6
3549 cat >conftest.make <<\_ACEOF
3552 @echo '@@@%%%=$(MAKE)=@@@%%%'
3554 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3555 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3557 eval ac_cv_prog_make_${ac_make}_set=yes;;
3559 eval ac_cv_prog_make_${ac_make}_set=no;;
3563 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3565 $as_echo "yes" >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3570 SET_MAKE="MAKE=${MAKE-make}"
3573 rm -rf .tst 2>/dev/null
3574 mkdir .tst 2>/dev/null
3575 if test -d .tst; then
3580 rmdir .tst 2>/dev/null
3582 # Check whether --enable-silent-rules was given.
3583 if test "${enable_silent_rules+set}" = set; then :
3584 enableval=$enable_silent_rules;
3587 case $enable_silent_rules in # (((
3588 yes) AM_DEFAULT_VERBOSITY=0;;
3589 no) AM_DEFAULT_VERBOSITY=1;;
3590 *) AM_DEFAULT_VERBOSITY=1;;
3592 am_make=${MAKE-make}
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3594 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3595 if ${am_cv_make_support_nested_variables+:} false; then :
3596 $as_echo_n "(cached) " >&6
3598 if $as_echo 'TRUE=$(BAR$(V))
3604 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3605 am_cv_make_support_nested_variables=yes
3607 am_cv_make_support_nested_variables=no
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3611 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3612 if test $am_cv_make_support_nested_variables = yes; then
3614 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3616 AM_V=$AM_DEFAULT_VERBOSITY
3617 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3621 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3622 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3623 # is not polluted with repeated "-I."
3624 am__isrc=' -I$(srcdir)'
3625 # test to see if srcdir already configured
3626 if test -f $srcdir/config.status; then
3627 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3631 # test whether we have cygpath
3632 if test -z "$CYGPATH_W"; then
3633 if (cygpath --version) >/dev/null 2>/dev/null; then
3634 CYGPATH_W='cygpath -w'
3641 # Define the identity of the package.
3646 cat >>confdefs.h <<_ACEOF
3647 #define PACKAGE "$PACKAGE"
3651 cat >>confdefs.h <<_ACEOF
3652 #define VERSION "$VERSION"
3655 # Some tools Automake needs.
3657 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3660 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3663 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3666 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3669 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3671 # For better backward compatibility. To be removed once Automake 1.9.x
3672 # dies out for good. For more background, see:
3673 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3674 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3675 mkdir_p='$(MKDIR_P)'
3677 # We need awk for the "check" target (and possibly the TAP driver). The
3678 # system "awk" is bad on some platforms.
3679 # Always define AMTAR for backward compatibility. Yes, it's still used
3680 # in the wild :-( We should find a proper way to deprecate it ...
3684 # We'll loop over all known methods to create a tar archive until one works.
3685 _am_tools='gnutar pax cpio none'
3687 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3694 # POSIX will say in a future version that running "rm -f" with no argument
3695 # is OK; and we want to be able to make that assumption in our Makefile
3696 # recipes. So use an aggressive probe to check that the usage we want is
3697 # actually supported "in the wild" to an acceptable degree.
3698 # See automake bug#10828.
3699 # To make any issue more visible, cause the running configure to be aborted
3700 # by default if the 'rm' program in use doesn't match our expectations; the
3701 # user can still override this though.
3702 if rm -f && rm -fr && rm -rf; then : OK; else
3706 Your 'rm' program seems unable to run without file operands specified
3707 on the command line, even when the '-f' option is present. This is contrary
3708 to the behaviour of most rm programs out there, and not conforming with
3709 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3711 Please tell bug-automake@gnu.org about your system, including the value
3712 of your $PATH and any error possibly output before this message. This
3713 can help us improve future automake versions.
3716 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3717 echo 'Configuration will proceed anyway, since you have set the' >&2
3718 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3722 Aborting the configuration process, to ensure you take notice of the issue.
3724 You can download and install GNU coreutils to get an 'rm' implementation
3725 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3727 If you want to complete the configuration process using your problematic
3728 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3729 to "yes", and re-run configure.
3732 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3737 # Check whether --enable-silent-rules was given.
3738 if test "${enable_silent_rules+set}" = set; then :
3739 enableval=$enable_silent_rules;
3742 case $enable_silent_rules in # (((
3743 yes) AM_DEFAULT_VERBOSITY=0;;
3744 no) AM_DEFAULT_VERBOSITY=1;;
3745 *) AM_DEFAULT_VERBOSITY=0;;
3747 am_make=${MAKE-make}
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3749 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3750 if ${am_cv_make_support_nested_variables+:} false; then :
3751 $as_echo_n "(cached) " >&6
3753 if $as_echo 'TRUE=$(BAR$(V))
3759 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3760 am_cv_make_support_nested_variables=yes
3762 am_cv_make_support_nested_variables=no
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3766 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3767 if test $am_cv_make_support_nested_variables = yes; then
3769 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3771 AM_V=$AM_DEFAULT_VERBOSITY
3772 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3777 # Make sure we can run config.sub.
3778 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3779 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3782 $as_echo_n "checking build system type... " >&6; }
3783 if ${ac_cv_build+:} false; then :
3784 $as_echo_n "(cached) " >&6
3786 ac_build_alias=$build_alias
3787 test "x$ac_build_alias" = x &&
3788 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3789 test "x$ac_build_alias" = x &&
3790 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3791 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3796 $as_echo "$ac_cv_build" >&6; }
3797 case $ac_cv_build in
3799 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3802 ac_save_IFS=$IFS; IFS='-'
3808 # Remember, the first character of IFS is used to create $*,
3809 # except with old shells:
3812 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3816 $as_echo_n "checking host system type... " >&6; }
3817 if ${ac_cv_host+:} false; then :
3818 $as_echo_n "(cached) " >&6
3820 if test "x$host_alias" = x; then
3821 ac_cv_host=$ac_cv_build
3823 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3824 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3829 $as_echo "$ac_cv_host" >&6; }
3832 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3835 ac_save_IFS=$IFS; IFS='-'
3841 # Remember, the first character of IFS is used to create $*,
3842 # except with old shells:
3845 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3849 cat >>confdefs.h <<_ACEOF
3850 #define STR_SYSTEM "$host"
3853 ac_config_headers="$ac_config_headers config.h"
3856 ntp_atom_ok=${ntp_atom_ok=no}
3857 ntp_oncore_ok=${ntp_oncore_ok=no}
3858 ntp_parse_ok=${ntp_parse_ok=no}
3859 ntp_ripe_ncc_ok=${ntp_parse_ok=no}
3860 ntp_jupiter_ok=${ntp_jupiter_ok=no}
3862 DEPDIR="${am__leading_dot}deps"
3864 ac_config_commands="$ac_config_commands depfiles"
3867 am_make=${MAKE-make}
3868 cat > confinc << 'END'
3870 @echo this is the am__doit target
3873 # If we don't find an include directive, just comment out the code.
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3875 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3879 # First try GNU make style include.
3880 echo "include confinc" > confmf
3881 # Ignore all kinds of additional output from 'make'.
3882 case `$am_make -s -f confmf 2> /dev/null` in #(
3883 *the\ am__doit\ target*)
3889 # Now try BSD make style include.
3890 if test "$am__include" = "#"; then
3891 echo '.include "confinc"' > confmf
3892 case `$am_make -s -f confmf 2> /dev/null` in #(
3893 *the\ am__doit\ target*)
3894 am__include=.include
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3903 $as_echo "$_am_result" >&6; }
3904 rm -f confinc confmf
3906 # Check whether --enable-dependency-tracking was given.
3907 if test "${enable_dependency_tracking+set}" = set; then :
3908 enableval=$enable_dependency_tracking;
3911 if test "x$enable_dependency_tracking" != xno; then
3912 am_depcomp="$ac_aux_dir/depcomp"
3916 if test "x$enable_dependency_tracking" != xno; then
3936 #AC_USE_SYSTEM_EXTENSIONS
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943 if test -n "$ac_tool_prefix"; then
3944 for ac_prog in $cclist
3946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3947 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if ${ac_cv_prog_CC+:} false; then :
3951 $as_echo_n "(cached) " >&6
3953 if test -n "$CC"; then
3954 ac_cv_prog_CC="$CC" # Let the user override the test.
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3963 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 if test -n "$CC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976 $as_echo "$CC" >&6; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3983 test -n "$CC" && break
3986 if test -z "$CC"; then
3988 for ac_prog in $cclist
3990 # Extract the first word of "$ac_prog", so it can be a program name with args.
3991 set dummy $ac_prog; ac_word=$2
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993 $as_echo_n "checking for $ac_word... " >&6; }
3994 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3995 $as_echo_n "(cached) " >&6
3997 if test -n "$ac_ct_CC"; then
3998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4007 ac_cv_prog_ac_ct_CC="$ac_prog"
4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4018 if test -n "$ac_ct_CC"; then
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4020 $as_echo "$ac_ct_CC" >&6; }
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4027 test -n "$ac_ct_CC" && break
4030 if test "x$ac_ct_CC" = x; then
4033 case $cross_compiling:$ac_tool_warned in
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4037 ac_tool_warned=yes ;;
4044 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4046 as_fn_error $? "no acceptable C compiler found in \$PATH
4047 See \`config.log' for more details" "$LINENO" 5; }
4049 # Provide some information about the compiler.
4050 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4053 for ac_option in --version -v -V -qversion; do
4054 { { ac_try="$ac_compiler $ac_option >&5"
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4060 $as_echo "$ac_try_echo"; } >&5
4061 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4063 if test -s conftest.err; then
4065 ... rest of stderr output deleted ...
4066 10q' conftest.err >conftest.er1
4067 cat conftest.er1 >&5
4069 rm -f conftest.er1 conftest.err
4070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4071 test $ac_status = 0; }
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4085 ac_clean_files_save=$ac_clean_files
4086 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4087 # Try to create an executable without -o first, disregard a.out.
4088 # It will help us diagnose broken compilers, and finding out an intuition
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4091 $as_echo_n "checking whether the C compiler works... " >&6; }
4092 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4094 # The possible output files:
4095 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4098 for ac_file in $ac_files
4101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4102 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4107 if { { ac_try="$ac_link_default"
4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110 *) ac_try_echo=$ac_try;;
4112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4113 $as_echo "$ac_try_echo"; } >&5
4114 (eval "$ac_link_default") 2>&5
4116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4117 test $ac_status = 0; }; then :
4118 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4119 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4120 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4121 # so that the user can short-circuit this test for compilers unknown to
4123 for ac_file in $ac_files ''
4125 test -f "$ac_file" || continue
4127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4130 # We found the default executable, but exeext='' is most
4134 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4136 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4138 # We set ac_cv_exeext here because the later test for it is not
4139 # safe: cross compilers may not add the suffix if given an `-o'
4140 # argument, so we may need to know it at that point already.
4141 # Even if this section looks crufty: it has the advantage of
4148 test "$ac_cv_exeext" = no && ac_cv_exeext=
4153 if test -z "$ac_file"; then :
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155 $as_echo "no" >&6; }
4156 $as_echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4161 as_fn_error 77 "C compiler cannot create executables
4162 See \`config.log' for more details" "$LINENO" 5; }
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4165 $as_echo "yes" >&6; }
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4168 $as_echo_n "checking for C compiler default output file name... " >&6; }
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4170 $as_echo "$ac_file" >&6; }
4171 ac_exeext=$ac_cv_exeext
4173 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4174 ac_clean_files=$ac_clean_files_save
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4176 $as_echo_n "checking for suffix of executables... " >&6; }
4177 if { { ac_try="$ac_link"
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4183 $as_echo "$ac_try_echo"; } >&5
4184 (eval "$ac_link") 2>&5
4186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4187 test $ac_status = 0; }; then :
4188 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4189 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4190 # work properly (i.e., refer to `conftest.exe'), while it won't with
4192 for ac_file in conftest.exe conftest conftest.*; do
4193 test -f "$ac_file" || continue
4195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4196 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4204 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4205 See \`config.log' for more details" "$LINENO" 5; }
4207 rm -f conftest conftest$ac_cv_exeext
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4209 $as_echo "$ac_cv_exeext" >&6; }
4211 rm -f conftest.$ac_ext
4212 EXEEXT=$ac_cv_exeext
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4220 FILE *f = fopen ("conftest.out", "w");
4221 return ferror (f) || fclose (f) != 0;
4227 ac_clean_files="$ac_clean_files conftest.out"
4228 # Check that the compiler produces executables we can run. If not, either
4229 # the compiler is broken, or we cross compile.
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4231 $as_echo_n "checking whether we are cross compiling... " >&6; }
4232 if test "$cross_compiling" != yes; then
4233 { { ac_try="$ac_link"
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4239 $as_echo "$ac_try_echo"; } >&5
4240 (eval "$ac_link") 2>&5
4242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4243 test $ac_status = 0; }
4244 if { ac_try='./conftest$ac_cv_exeext'
4245 { { case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4250 $as_echo "$ac_try_echo"; } >&5
4251 (eval "$ac_try") 2>&5
4253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254 test $ac_status = 0; }; }; then
4257 if test "$cross_compiling" = maybe; then
4260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4262 as_fn_error $? "cannot run C compiled programs.
4263 If you meant to cross compile, use \`--host'.
4264 See \`config.log' for more details" "$LINENO" 5; }
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4269 $as_echo "$cross_compiling" >&6; }
4271 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4272 ac_clean_files=$ac_clean_files_save
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4274 $as_echo_n "checking for suffix of object files... " >&6; }
4275 if ${ac_cv_objext+:} false; then :
4276 $as_echo_n "(cached) " >&6
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4289 rm -f conftest.o conftest.obj
4290 if { { ac_try="$ac_compile"
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297 (eval "$ac_compile") 2>&5
4299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300 test $ac_status = 0; }; then :
4301 for ac_file in conftest.o conftest.obj conftest.*; do
4302 test -f "$ac_file" || continue;
4304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4305 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4310 $as_echo "$as_me: failed program was:" >&5
4311 sed 's/^/| /' conftest.$ac_ext >&5
4313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4315 as_fn_error $? "cannot compute suffix of object files: cannot compile
4316 See \`config.log' for more details" "$LINENO" 5; }
4318 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4321 $as_echo "$ac_cv_objext" >&6; }
4322 OBJEXT=$ac_cv_objext
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4325 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4326 if ${ac_cv_c_compiler_gnu+:} false; then :
4327 $as_echo_n "(cached) " >&6
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4343 if ac_fn_c_try_compile "$LINENO"; then :
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4353 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4354 if test $ac_compiler_gnu = yes; then
4359 ac_test_CFLAGS=${CFLAGS+set}
4360 ac_save_CFLAGS=$CFLAGS
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4362 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4363 if ${ac_cv_prog_cc_g+:} false; then :
4364 $as_echo_n "(cached) " >&6
4366 ac_save_c_werror_flag=$ac_c_werror_flag
4367 ac_c_werror_flag=yes
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4381 if ac_fn_c_try_compile "$LINENO"; then :
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4396 if ac_fn_c_try_compile "$LINENO"; then :
4399 ac_c_werror_flag=$ac_save_c_werror_flag
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4412 if ac_fn_c_try_compile "$LINENO"; then :
4415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420 ac_c_werror_flag=$ac_save_c_werror_flag
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4423 $as_echo "$ac_cv_prog_cc_g" >&6; }
4424 if test "$ac_test_CFLAGS" = set; then
4425 CFLAGS=$ac_save_CFLAGS
4426 elif test $ac_cv_prog_cc_g = yes; then
4427 if test "$GCC" = yes; then
4433 if test "$GCC" = yes; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4440 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4441 if ${ac_cv_prog_cc_c89+:} false; then :
4442 $as_echo_n "(cached) " >&6
4444 ac_cv_prog_cc_c89=no
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4451 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4452 struct buf { int x; };
4453 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4454 static char *e (p, i)
4460 static char *f (char * (*g) (char **, int), char **p, ...)
4465 s = g (p, va_arg (v,int));
4470 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4471 function prototypes and stuff, but not '\xHH' hex character constants.
4472 These don't provoke an error unfortunately, instead are silently treated
4473 as 'x'. The following induces an error, until -std is added to get
4474 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4475 array size at least. It's necessary to write '\x00'==0 to get something
4476 that's true only with -std. */
4477 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4479 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4480 inside strings and character constants. */
4482 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4484 int test (int i, double x);
4485 struct s1 {int (*f) (int a);};
4486 struct s2 {int (*f) (double a);};
4487 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4493 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4498 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4499 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4501 CC="$ac_save_CC $ac_arg"
4502 if ac_fn_c_try_compile "$LINENO"; then :
4503 ac_cv_prog_cc_c89=$ac_arg
4505 rm -f core conftest.err conftest.$ac_objext
4506 test "x$ac_cv_prog_cc_c89" != "xno" && break
4508 rm -f conftest.$ac_ext
4513 case "x$ac_cv_prog_cc_c89" in
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4516 $as_echo "none needed" >&6; } ;;
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4519 $as_echo "unsupported" >&6; } ;;
4521 CC="$CC $ac_cv_prog_cc_c89"
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4523 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4525 if test "x$ac_cv_prog_cc_c89" != xno; then :
4530 ac_cpp='$CPP $CPPFLAGS'
4531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4541 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4542 if ${am_cv_prog_cc_c_o+:} false; then :
4543 $as_echo_n "(cached) " >&6
4545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546 /* end confdefs.h. */
4556 # Make sure it works both with $CC and with simple cc.
4557 # Following AC_PROG_CC_C_O, we do the test twice because some
4558 # compilers refuse to overwrite an existing .o file with -o,
4559 # though they will create one.
4560 am_cv_prog_cc_c_o=yes
4562 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4563 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); } \
4567 && test -f conftest2.$ac_objext; then
4570 am_cv_prog_cc_c_o=no
4574 rm -f core conftest*
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4578 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4579 if test "$am_cv_prog_cc_c_o" != yes; then
4580 # Losing compiler, so override with the script.
4581 # FIXME: It is wrong to rewrite CC.
4582 # But if we don't then we get into trouble of one sort or another.
4583 # A longer-term fix would be to have automake use am__CC in this case,
4584 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4585 CC="$am_aux_dir/compile $CC"
4588 ac_cpp='$CPP $CPPFLAGS'
4589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4594 depcc="$CC" am_compiler_list=
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4597 $as_echo_n "checking dependency style of $depcc... " >&6; }
4598 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4599 $as_echo_n "(cached) " >&6
4601 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4602 # We make a subdir and do the tests there. Otherwise we can end up
4603 # making bogus files that we don't know about and never remove. For
4604 # instance it was reported that on HP-UX the gcc test will end up
4605 # making a dummy file named 'D' -- because '-MD' means "put the output
4609 # Copy depcomp to subdir because otherwise we won't find it if we're
4610 # using a relative directory.
4611 cp "$am_depcomp" conftest.dir
4613 # We will build objects and dependencies in a subdirectory because
4614 # it helps to detect inapplicable dependency modes. For instance
4615 # both Tru64's cc and ICC support -MD to output dependencies as a
4616 # side effect of compilation, but ICC will put the dependencies in
4617 # the current directory while Tru64 will put them in the object
4621 am_cv_CC_dependencies_compiler_type=none
4622 if test "$am_compiler_list" = ""; then
4623 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4626 case " $depcc " in #(
4627 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4630 for depmode in $am_compiler_list; do
4631 # Setup a source with many dependencies, because some compilers
4632 # like to wrap large dependency lists on column 80 (with \), and
4633 # we should not choose a depcomp mode which is confused by this.
4635 # We need to recreate these files for each test, as the compiler may
4636 # overwrite some of them when testing with obscure command lines.
4637 # This happens at least with the AIX C compiler.
4639 for i in 1 2 3 4 5 6; do
4640 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4641 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4642 # Solaris 10 /bin/sh.
4643 echo '/* dummy */' > sub/conftst$i.h
4645 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4647 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4648 # mode. It turns out that the SunPro C++ compiler does not properly
4649 # handle '-M -o', and we need to detect this. Also, some Intel
4650 # versions had trouble with output in subdirs.
4651 am__obj=sub/conftest.${OBJEXT-o}
4652 am__minus_obj="-o $am__obj"
4655 # This depmode causes a compiler race in universal mode.
4656 test "$am__universal" = false || continue
4659 # After this tag, mechanisms are not by side-effect, so they'll
4660 # only be used when explicitly requested.
4661 if test "x$enable_dependency_tracking" = xyes; then
4667 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4668 # This compiler won't grok '-c -o', but also, the minuso test has
4669 # not run yet. These depmodes are late enough in the game, and
4670 # so weak that their functioning should not be impacted.
4671 am__obj=conftest.${OBJEXT-o}
4676 if depmode=$depmode \
4677 source=sub/conftest.c object=$am__obj \
4678 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4679 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4680 >/dev/null 2>conftest.err &&
4681 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4682 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4683 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4684 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4685 # icc doesn't choke on unknown options, it will just issue warnings
4686 # or remarks (even with -Werror). So we grep stderr for any message
4687 # that says an option was ignored or not supported.
4688 # When given -MP, icc 7.0 and 7.1 complain thusly:
4689 # icc: Command line warning: ignoring option '-M'; no argument required
4690 # The diagnosis changed in icc 8.0:
4691 # icc: Command line remark: option '-MP' not supported
4692 if (grep 'ignoring option' conftest.err ||
4693 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4694 am_cv_CC_dependencies_compiler_type=$depmode
4703 am_cv_CC_dependencies_compiler_type=none
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4708 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4709 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4712 test "x$enable_dependency_tracking" != xno \
4713 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4715 am__fastdepCC_FALSE='#'
4717 am__fastdepCC_TRUE='#'
4718 am__fastdepCC_FALSE=
4726 ac_cpp='$CPP $CPPFLAGS'
4727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4731 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4732 # On Suns, sometimes $CPP names a directory.
4733 if test -n "$CPP" && test -d "$CPP"; then
4736 if test -z "$CPP"; then
4737 if ${ac_cv_prog_CPP+:} false; then :
4738 $as_echo_n "(cached) " >&6
4740 # Double quotes because CPP needs to be expanded
4741 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4744 for ac_c_preproc_warn_flag in '' yes
4746 # Use a header file that comes with gcc, so configuring glibc
4747 # with a fresh cross-compiler works.
4748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4749 # <limits.h> exists even on freestanding compilers.
4750 # On the NeXT, cc -E runs the code through the compiler's parser,
4751 # not just through cpp. "Syntax error" is here to catch this case.
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4755 # include <limits.h>
4757 # include <assert.h>
4761 if ac_fn_c_try_cpp "$LINENO"; then :
4764 # Broken: fails on valid input.
4767 rm -f conftest.err conftest.i conftest.$ac_ext
4769 # OK, works on sane cases. Now check whether nonexistent headers
4770 # can be detected and how.
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773 #include <ac_nonexistent.h>
4775 if ac_fn_c_try_cpp "$LINENO"; then :
4776 # Broken: success on invalid input.
4779 # Passes both tests.
4783 rm -f conftest.err conftest.i conftest.$ac_ext
4786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4787 rm -f conftest.i conftest.err conftest.$ac_ext
4788 if $ac_preproc_ok; then :
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4801 $as_echo "$CPP" >&6; }
4803 for ac_c_preproc_warn_flag in '' yes
4805 # Use a header file that comes with gcc, so configuring glibc
4806 # with a fresh cross-compiler works.
4807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4808 # <limits.h> exists even on freestanding compilers.
4809 # On the NeXT, cc -E runs the code through the compiler's parser,
4810 # not just through cpp. "Syntax error" is here to catch this case.
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4814 # include <limits.h>
4816 # include <assert.h>
4820 if ac_fn_c_try_cpp "$LINENO"; then :
4823 # Broken: fails on valid input.
4826 rm -f conftest.err conftest.i conftest.$ac_ext
4828 # OK, works on sane cases. Now check whether nonexistent headers
4829 # can be detected and how.
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4832 #include <ac_nonexistent.h>
4834 if ac_fn_c_try_cpp "$LINENO"; then :
4835 # Broken: success on invalid input.
4838 # Passes both tests.
4842 rm -f conftest.err conftest.i conftest.$ac_ext
4845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4846 rm -f conftest.i conftest.err conftest.$ac_ext
4847 if $ac_preproc_ok; then :
4850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4852 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4853 See \`config.log' for more details" "$LINENO" 5; }
4857 ac_cpp='$CPP $CPPFLAGS'
4858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4864 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4865 if ${ac_cv_path_GREP+:} false; then :
4866 $as_echo_n "(cached) " >&6
4868 if test -z "$GREP"; then
4869 ac_path_GREP_found=false
4870 # Loop through the user's path and test for each of PROGNAME-LIST
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4875 test -z "$as_dir" && as_dir=.
4876 for ac_prog in grep ggrep; do
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4879 as_fn_executable_p "$ac_path_GREP" || continue
4880 # Check for GNU ac_path_GREP and select it if it is found.
4881 # Check for GNU $ac_path_GREP
4882 case `"$ac_path_GREP" --version 2>&1` in
4884 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4887 $as_echo_n 0123456789 >"conftest.in"
4890 cat "conftest.in" "conftest.in" >"conftest.tmp"
4891 mv "conftest.tmp" "conftest.in"
4892 cp "conftest.in" "conftest.nl"
4893 $as_echo 'GREP' >> "conftest.nl"
4894 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4896 as_fn_arith $ac_count + 1 && ac_count=$as_val
4897 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4898 # Best one so far, save it but keep looking for a better one
4899 ac_cv_path_GREP="$ac_path_GREP"
4900 ac_path_GREP_max=$ac_count
4902 # 10*(2^10) chars as input seems more than enough
4903 test $ac_count -gt 10 && break
4905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4908 $ac_path_GREP_found && break 3
4913 if test -z "$ac_cv_path_GREP"; then
4914 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4917 ac_cv_path_GREP=$GREP
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4922 $as_echo "$ac_cv_path_GREP" >&6; }
4923 GREP="$ac_cv_path_GREP"
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4927 $as_echo_n "checking for egrep... " >&6; }
4928 if ${ac_cv_path_EGREP+:} false; then :
4929 $as_echo_n "(cached) " >&6
4931 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4932 then ac_cv_path_EGREP="$GREP -E"
4934 if test -z "$EGREP"; then
4935 ac_path_EGREP_found=false
4936 # Loop through the user's path and test for each of PROGNAME-LIST
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4941 test -z "$as_dir" && as_dir=.
4942 for ac_prog in egrep; do
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4945 as_fn_executable_p "$ac_path_EGREP" || continue
4946 # Check for GNU ac_path_EGREP and select it if it is found.
4947 # Check for GNU $ac_path_EGREP
4948 case `"$ac_path_EGREP" --version 2>&1` in
4950 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4953 $as_echo_n 0123456789 >"conftest.in"
4956 cat "conftest.in" "conftest.in" >"conftest.tmp"
4957 mv "conftest.tmp" "conftest.in"
4958 cp "conftest.in" "conftest.nl"
4959 $as_echo 'EGREP' >> "conftest.nl"
4960 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4962 as_fn_arith $ac_count + 1 && ac_count=$as_val
4963 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4964 # Best one so far, save it but keep looking for a better one
4965 ac_cv_path_EGREP="$ac_path_EGREP"
4966 ac_path_EGREP_max=$ac_count
4968 # 10*(2^10) chars as input seems more than enough
4969 test $ac_count -gt 10 && break
4971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4974 $ac_path_EGREP_found && break 3
4979 if test -z "$ac_cv_path_EGREP"; then
4980 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4983 ac_cv_path_EGREP=$EGREP
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4989 $as_echo "$ac_cv_path_EGREP" >&6; }
4990 EGREP="$ac_cv_path_EGREP"
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4994 $as_echo_n "checking for ANSI C header files... " >&6; }
4995 if ${ac_cv_header_stdc+:} false; then :
4996 $as_echo_n "(cached) " >&6
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5013 if ac_fn_c_try_compile "$LINENO"; then :
5014 ac_cv_header_stdc=yes
5016 ac_cv_header_stdc=no
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5020 if test $ac_cv_header_stdc = yes; then
5021 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5028 $EGREP "memchr" >/dev/null 2>&1; then :
5031 ac_cv_header_stdc=no
5037 if test $ac_cv_header_stdc = yes; then
5038 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5045 $EGREP "free" >/dev/null 2>&1; then :
5048 ac_cv_header_stdc=no
5054 if test $ac_cv_header_stdc = yes; then
5055 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5056 if test "$cross_compiling" = yes; then :
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5063 #if ((' ' & 0x0FF) == 0x020)
5064 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5065 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5067 # define ISLOWER(c) \
5068 (('a' <= (c) && (c) <= 'i') \
5069 || ('j' <= (c) && (c) <= 'r') \
5070 || ('s' <= (c) && (c) <= 'z'))
5071 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5074 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5079 for (i = 0; i < 256; i++)
5080 if (XOR (islower (i), ISLOWER (i))
5081 || toupper (i) != TOUPPER (i))
5086 if ac_fn_c_try_run "$LINENO"; then :
5089 ac_cv_header_stdc=no
5091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5092 conftest.$ac_objext conftest.beam conftest.$ac_ext
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5098 $as_echo "$ac_cv_header_stdc" >&6; }
5099 if test $ac_cv_header_stdc = yes; then
5101 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5105 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5106 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5107 inttypes.h stdint.h unistd.h
5109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5110 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5112 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5113 cat >>confdefs.h <<_ACEOF
5114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5123 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5124 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5131 if test "$MINIX" = yes; then
5133 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5136 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5139 $as_echo "#define _MINIX 1" >>confdefs.h
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5145 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5146 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5147 $as_echo_n "(cached) " >&6
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5152 # define __EXTENSIONS__ 1
5153 $ac_includes_default
5162 if ac_fn_c_try_compile "$LINENO"; then :
5163 ac_cv_safe_to_define___extensions__=yes
5165 ac_cv_safe_to_define___extensions__=no
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5170 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5171 test $ac_cv_safe_to_define___extensions__ = yes &&
5172 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5174 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5176 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5178 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5180 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5184 case $ac_cv_prog_cc_stdc in #(
5186 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5189 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5190 if ${ac_cv_prog_cc_c99+:} false; then :
5191 $as_echo_n "(cached) " >&6
5193 ac_cv_prog_cc_c99=no
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5198 #include <stdbool.h>
5203 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5204 #define debug(...) fprintf (stderr, __VA_ARGS__)
5205 #define showlist(...) puts (#__VA_ARGS__)
5206 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5208 test_varargs_macros (void)
5213 debug ("X = %d\n", x);
5214 showlist (The first, second, and third items.);
5215 report (x>y, "x is %d but y is %d", x, y);
5218 // Check long long types.
5219 #define BIG64 18446744073709551615ull
5220 #define BIG32 4294967295ul
5221 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5223 your preprocessor is broken;
5227 your preprocessor is broken;
5229 static long long int bignum = -9223372036854775807LL;
5230 static unsigned long long int ubignum = BIG64;
5232 struct incomplete_array
5240 const wchar_t *name;
5244 typedef const char *ccp;
5247 test_restrict (ccp restrict text)
5249 // See if C++-style comments work.
5250 // Iterate through items via the restricted pointer.
5251 // Also check for declarations in for loops.
5252 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5257 // Check varargs and va_copy.
5259 test_varargs (const char *format, ...)
5262 va_start (args, format);
5264 va_copy (args_copy, args);
5275 str = va_arg (args_copy, const char *);
5278 number = va_arg (args_copy, int);
5281 fnumber = va_arg (args_copy, double);
5296 _Bool success = false;
5299 if (test_restrict ("String literal") == 0)
5301 char *restrict newvar = "Another string";
5304 test_varargs ("s, d' f .", "string", 65, 34.234);
5305 test_varargs_macros ();
5307 // Check flexible array members.
5308 struct incomplete_array *ia =
5309 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5311 for (int i = 0; i < ia->datasize; ++i)
5312 ia->data[i] = i * 1.234;
5314 // Check named initializers.
5315 struct named_init ni = {
5317 .name = L"Test wide string",
5318 .average = 543.34343,
5323 int dynamic_array[ni.number];
5324 dynamic_array[ni.number - 1] = 543;
5326 // work around unused variable warnings
5327 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5328 || dynamic_array[ni.number - 1] != 543);
5334 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5336 CC="$ac_save_CC $ac_arg"
5337 if ac_fn_c_try_compile "$LINENO"; then :
5338 ac_cv_prog_cc_c99=$ac_arg
5340 rm -f core conftest.err conftest.$ac_objext
5341 test "x$ac_cv_prog_cc_c99" != "xno" && break
5343 rm -f conftest.$ac_ext
5348 case "x$ac_cv_prog_cc_c99" in
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5351 $as_echo "none needed" >&6; } ;;
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5354 $as_echo "unsupported" >&6; } ;;
5356 CC="$CC $ac_cv_prog_cc_c99"
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5358 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5360 if test "x$ac_cv_prog_cc_c99" != xno; then :
5361 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5364 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5365 if ${ac_cv_prog_cc_c89+:} false; then :
5366 $as_echo_n "(cached) " >&6
5368 ac_cv_prog_cc_c89=no
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5375 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5376 struct buf { int x; };
5377 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5378 static char *e (p, i)
5384 static char *f (char * (*g) (char **, int), char **p, ...)
5389 s = g (p, va_arg (v,int));
5394 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5395 function prototypes and stuff, but not '\xHH' hex character constants.
5396 These don't provoke an error unfortunately, instead are silently treated
5397 as 'x'. The following induces an error, until -std is added to get
5398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5399 array size at least. It's necessary to write '\x00'==0 to get something
5400 that's true only with -std. */
5401 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5403 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5404 inside strings and character constants. */
5406 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5408 int test (int i, double x);
5409 struct s1 {int (*f) (int a);};
5410 struct s2 {int (*f) (double a);};
5411 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5417 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5422 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5425 CC="$ac_save_CC $ac_arg"
5426 if ac_fn_c_try_compile "$LINENO"; then :
5427 ac_cv_prog_cc_c89=$ac_arg
5429 rm -f core conftest.err conftest.$ac_objext
5430 test "x$ac_cv_prog_cc_c89" != "xno" && break
5432 rm -f conftest.$ac_ext
5437 case "x$ac_cv_prog_cc_c89" in
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5440 $as_echo "none needed" >&6; } ;;
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5443 $as_echo "unsupported" >&6; } ;;
5445 CC="$CC $ac_cv_prog_cc_c89"
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5447 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5449 if test "x$ac_cv_prog_cc_c89" != xno; then :
5450 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5452 ac_cv_prog_cc_stdc=no
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5459 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5460 if ${ac_cv_prog_cc_stdc+:} false; then :
5461 $as_echo_n "(cached) " >&6
5464 case $ac_cv_prog_cc_stdc in #(
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5467 $as_echo "unsupported" >&6; } ;; #(
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5470 $as_echo "none needed" >&6; } ;; #(
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5473 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5480 # Ralf Wildenhues: With per-target flags we need CC_C_O
5481 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
5483 if test $ac_cv_c_compiler_gnu = yes; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5485 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5486 if ${ac_cv_prog_gcc_traditional+:} false; then :
5487 $as_echo_n "(cached) " >&6
5489 ac_pattern="Autoconf.*'x'"
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491 /* end confdefs.h. */
5495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5496 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5497 ac_cv_prog_gcc_traditional=yes
5499 ac_cv_prog_gcc_traditional=no
5504 if test $ac_cv_prog_gcc_traditional = no; then
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5511 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5512 ac_cv_prog_gcc_traditional=yes
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5519 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5520 if test $ac_cv_prog_gcc_traditional = yes; then
5521 CC="$CC -traditional"
5536 case "$ac_cv_prog_cc_c89" in
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5539 version 4.2.5 and higher." >&5
5540 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5541 version 4.2.5 and higher." >&2;}
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
5546 $as_echo_n "checking if $CC can handle #warning... " >&6; }
5547 if ${ntp_cv_cpp_warning+:} false; then :
5548 $as_echo_n "(cached) " >&6
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5561 if ac_fn_c_try_compile "$LINENO"; then :
5562 ntp_cv_cpp_warning=yes
5564 ntp_cv_cpp_warning=no
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
5571 $as_echo "$ntp_cv_cpp_warning" >&6; }
5572 case "$ntp_cv_cpp_warning" in
5575 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
5580 $as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
5581 if ${ntp_cv_cc_attribute+:} false; then :
5582 $as_echo_n "(cached) " >&6
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5590 void foo(void) __attribute__((__noreturn__));
5596 if ac_fn_c_try_compile "$LINENO"; then :
5597 ntp_cv_cc_attribute=yes
5599 ntp_cv_cc_attribute=no
5602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
5606 $as_echo "$ntp_cv_cc_attribute" >&6; }
5607 case "$ntp_cv_cc_attribute" in
5610 $as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
5617 SAVED_CFLAGS="$CFLAGS"
5618 CFLAGS="$CFLAGS -Wstrict-overflow"
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
5620 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
5621 if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
5622 $as_echo_n "(cached) " >&6
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5635 if ac_fn_c_try_compile "$LINENO"; then :
5636 ntp_cv_gcc_Wstrict_overflow=yes
5638 ntp_cv_gcc_Wstrict_overflow=no
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
5645 $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
5647 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
5650 CFLAGS="$SAVED_CFLAGS -Winit-self"
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
5652 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
5653 if ${ntp_cv_gcc_Winit_self+:} false; then :
5654 $as_echo_n "(cached) " >&6
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5668 if ac_fn_c_try_compile "$LINENO"; then :
5669 ntp_cv_gcc_Winit_self=yes
5671 ntp_cv_gcc_Winit_self=no
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
5679 $as_echo "$ntp_cv_gcc_Winit_self" >&6; }
5680 CFLAGS="$SAVED_CFLAGS"
5681 { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
5683 # $ntp_cv_gcc_Winit_self is tested later to add the
5684 # flag to CFLAGS_NTP.
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
5687 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
5688 if ${ntp_cv_gc_sections_runs+:} false; then :
5689 $as_echo_n "(cached) " >&6
5692 origCFLAGS="$CFLAGS"
5693 CFLAGS="$CFLAGS -Wl,--gc-sections"
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5707 int read_success_once;
5709 fpC = fopen("conftest.c", "r");
5713 cch = fread(buf, sizeof(buf), 1, fpC);
5714 read_success_once |= (0 != cch);
5716 if (!read_success_once)
5720 if (0 != fclose(fpC))
5730 if ac_fn_c_try_link "$LINENO"; then :
5732 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
5733 ntp_cv_gc_sections_runs=no
5735 ntp_cv_gc_sections_runs=no
5736 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
5740 ntp_cv_gc_sections_runs=no
5743 rm -f core conftest.err conftest.$ac_objext \
5744 conftest$ac_exeext conftest.$ac_ext
5745 CFLAGS="$origCFLAGS"
5746 { origCFLAGS=; unset origCFLAGS;}
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
5751 $as_echo "$ntp_cv_gc_sections_runs" >&6; }
5752 case "$ntp_cv_gc_sections_runs" in
5754 LDADD_LIBNTP="-Wl,--gc-sections"
5755 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
5761 CFLAGS_NTP="$CFLAGS_NTP -Wall"
5762 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
5763 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
5764 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
5765 # CFLAGS_NTP="$CFLAGS_NTP -Werror"
5766 # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
5767 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
5768 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
5769 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
5770 CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
5771 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
5772 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
5773 case "$ntp_cv_gcc_Winit_self" in
5775 CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
5777 case "$ntp_cv_gcc_Wstrict_overflow" in
5779 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
5781 # -W[no-]strict-prototypes might be added by NTP_OPENSSL
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
5786 $as_echo_n "checking additional compiler flags... " >&6; }
5787 # allow ntp_os_cflags to be preset to skip this stuff
5788 case "${ntp_os_cflags+set}" in
5797 # turn on additional headers
5798 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
5801 # avoid circular dependencies in yp headers, and more
5802 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
5803 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
5806 # XXX Only verified thru AIX6.
5807 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
5808 # avoid circular dependencies in yp headers
5809 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
5810 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
5811 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
5812 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
5813 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
5816 ntp_os_cflags="-DSYS_AMIGA"
5818 darwin*|macosx*|rhapsody*)
5819 ntp_os_cflags="-D_P1003_1B_VISIBLE"
5821 hpux10.*) # at least for hppa2.0-hp-hpux10.20
5826 # use Ansi compiler on HPUX, and some -Wp magic
5827 ntp_os_cflags="-Ae -Wp,-H18816"
5830 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5837 # use Ansi compiler on HPUX
5840 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5845 # do not use 64-bit compiler
5846 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
5850 ntp_os_cflags="-posix"
5852 solaris1*|solaris2.[0-5]|solaris2.5.*)
5854 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
5857 # turn on 64-bit file offset interface
5858 ntp_os_cflags="-D_LARGEFILE64_SOURCE"
5865 # Quick and dirty sanity check
5866 case "$VX_KERNEL" in
5868 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
5870 ntp_os_cflags="-DSYS_VXWORKS"
5875 case "$ntp_os_cflags" in
5877 ntp_os_cflags_msg="none needed"
5880 ntp_os_cflags_msg="$ntp_os_cflags"
5882 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
5884 $as_echo "$ntp_os_cflags_msg" >&6; }
5885 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
5888 $as_echo_n "checking additional linker flags... " >&6; }
5889 # HMS: The following might still need tweaking
5890 # allow ntp_os_ldflags to be preset to skip this stuff
5891 case "${ntp_os_ldflags+set}" in
5900 ntp_os_ldflags="-Wl,+allowdups"
5907 case "$ntp_os_ldflags" in
5909 ntp_os_ldflags_msg="none needed"
5912 ntp_os_ldflags_msg="$ntp_os_ldflags"
5914 LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
5916 $as_echo "$ntp_os_ldflags_msg" >&6; }
5917 { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5921 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5922 if ${ac_cv_c_bigendian+:} false; then :
5923 $as_echo_n "(cached) " >&6
5925 ac_cv_c_bigendian=unknown
5926 # See if we're dealing with a universal compiler.
5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928 /* end confdefs.h. */
5929 #ifndef __APPLE_CC__
5930 not a universal capable compiler
5935 if ac_fn_c_try_compile "$LINENO"; then :
5937 # Check for potential -arch flags. It is not universal unless
5938 # there are at least two -arch flags with different values.
5941 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5942 if test -n "$ac_prev"; then
5944 i?86 | x86_64 | ppc | ppc64)
5945 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5948 ac_cv_c_bigendian=universal
5954 elif test "x$ac_word" = "x-arch"; then
5959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960 if test $ac_cv_c_bigendian = unknown; then
5961 # See if sys/param.h defines the BYTE_ORDER macro.
5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963 /* end confdefs.h. */
5964 #include <sys/types.h>
5965 #include <sys/param.h>
5970 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5971 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5980 if ac_fn_c_try_compile "$LINENO"; then :
5981 # It does; now see whether it defined to BIG_ENDIAN or not.
5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983 /* end confdefs.h. */
5984 #include <sys/types.h>
5985 #include <sys/param.h>
5990 #if BYTE_ORDER != BIG_ENDIAN
5998 if ac_fn_c_try_compile "$LINENO"; then :
5999 ac_cv_c_bigendian=yes
6001 ac_cv_c_bigendian=no
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 if test $ac_cv_c_bigendian = unknown; then
6008 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6016 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6024 if ac_fn_c_try_compile "$LINENO"; then :
6025 # It does; now see whether it defined to _BIG_ENDIAN or not.
6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h. */
6041 if ac_fn_c_try_compile "$LINENO"; then :
6042 ac_cv_c_bigendian=yes
6044 ac_cv_c_bigendian=no
6046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 if test $ac_cv_c_bigendian = unknown; then
6051 # Compile a test program.
6052 if test "$cross_compiling" = yes; then :
6053 # Try to guess by grepping values from an object file.
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056 short int ascii_mm[] =
6057 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6058 short int ascii_ii[] =
6059 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6060 int use_ascii (int i) {
6061 return ascii_mm[i] + ascii_ii[i];
6063 short int ebcdic_ii[] =
6064 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6065 short int ebcdic_mm[] =
6066 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6067 int use_ebcdic (int i) {
6068 return ebcdic_mm[i] + ebcdic_ii[i];
6075 return use_ascii (foo) == use_ebcdic (foo);
6080 if ac_fn_c_try_compile "$LINENO"; then :
6081 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6082 ac_cv_c_bigendian=yes
6084 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6085 if test "$ac_cv_c_bigendian" = unknown; then
6086 ac_cv_c_bigendian=no
6088 # finding both strings is unlikely to happen, but who knows?
6089 ac_cv_c_bigendian=unknown
6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6096 /* end confdefs.h. */
6097 $ac_includes_default
6102 /* Are we little or big endian? From Harbison&Steele. */
6106 char c[sizeof (long int)];
6109 return u.c[sizeof (long int) - 1] == 1;
6115 if ac_fn_c_try_run "$LINENO"; then :
6116 ac_cv_c_bigendian=no
6118 ac_cv_c_bigendian=yes
6120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6121 conftest.$ac_objext conftest.beam conftest.$ac_ext
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6127 $as_echo "$ac_cv_c_bigendian" >&6; }
6128 case $ac_cv_c_bigendian in #(
6130 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6136 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6140 as_fn_error $? "unknown endianness
6141 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6145 $as_echo_n "checking for working volatile... " >&6; }
6146 if ${ac_cv_c_volatile+:} false; then :
6147 $as_echo_n "(cached) " >&6
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6157 int * volatile y = (int *) 0;
6163 if ac_fn_c_try_compile "$LINENO"; then :
6164 ac_cv_c_volatile=yes
6168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6171 $as_echo "$ac_cv_c_volatile" >&6; }
6172 if test $ac_cv_c_volatile = no; then
6174 $as_echo "#define volatile /**/" >>confdefs.h
6179 ac_cpp='$CPP $CPPFLAGS'
6180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6184 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6185 # On Suns, sometimes $CPP names a directory.
6186 if test -n "$CPP" && test -d "$CPP"; then
6189 if test -z "$CPP"; then
6190 if ${ac_cv_prog_CPP+:} false; then :
6191 $as_echo_n "(cached) " >&6
6193 # Double quotes because CPP needs to be expanded
6194 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6197 for ac_c_preproc_warn_flag in '' yes
6199 # Use a header file that comes with gcc, so configuring glibc
6200 # with a fresh cross-compiler works.
6201 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6202 # <limits.h> exists even on freestanding compilers.
6203 # On the NeXT, cc -E runs the code through the compiler's parser,
6204 # not just through cpp. "Syntax error" is here to catch this case.
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6208 # include <limits.h>
6210 # include <assert.h>
6214 if ac_fn_c_try_cpp "$LINENO"; then :
6217 # Broken: fails on valid input.
6220 rm -f conftest.err conftest.i conftest.$ac_ext
6222 # OK, works on sane cases. Now check whether nonexistent headers
6223 # can be detected and how.
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226 #include <ac_nonexistent.h>
6228 if ac_fn_c_try_cpp "$LINENO"; then :
6229 # Broken: success on invalid input.
6232 # Passes both tests.
6236 rm -f conftest.err conftest.i conftest.$ac_ext
6239 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6240 rm -f conftest.i conftest.err conftest.$ac_ext
6241 if $ac_preproc_ok; then :
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6254 $as_echo "$CPP" >&6; }
6256 for ac_c_preproc_warn_flag in '' yes
6258 # Use a header file that comes with gcc, so configuring glibc
6259 # with a fresh cross-compiler works.
6260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6261 # <limits.h> exists even on freestanding compilers.
6262 # On the NeXT, cc -E runs the code through the compiler's parser,
6263 # not just through cpp. "Syntax error" is here to catch this case.
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6267 # include <limits.h>
6269 # include <assert.h>
6273 if ac_fn_c_try_cpp "$LINENO"; then :
6276 # Broken: fails on valid input.
6279 rm -f conftest.err conftest.i conftest.$ac_ext
6281 # OK, works on sane cases. Now check whether nonexistent headers
6282 # can be detected and how.
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6285 #include <ac_nonexistent.h>
6287 if ac_fn_c_try_cpp "$LINENO"; then :
6288 # Broken: success on invalid input.
6291 # Passes both tests.
6295 rm -f conftest.err conftest.i conftest.$ac_ext
6298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6299 rm -f conftest.i conftest.err conftest.$ac_ext
6300 if $ac_preproc_ok; then :
6303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6305 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6306 See \`config.log' for more details" "$LINENO" 5; }
6310 ac_cpp='$CPP $CPPFLAGS'
6311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6318 for ac_prog in 'bison -y' byacc
6320 # Extract the first word of "$ac_prog", so it can be a program name with args.
6321 set dummy $ac_prog; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if ${ac_cv_prog_YACC+:} false; then :
6325 $as_echo_n "(cached) " >&6
6327 if test -n "$YACC"; then
6328 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337 ac_cv_prog_YACC="$ac_prog"
6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 YACC=$ac_cv_prog_YACC
6348 if test -n "$YACC"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6350 $as_echo "$YACC" >&6; }
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6357 test -n "$YACC" && break
6359 test -n "$YACC" || YACC="yacc"
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6362 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6363 if ${ac_cv_prog_cc_c99+:} false; then :
6364 $as_echo_n "(cached) " >&6
6366 ac_cv_prog_cc_c99=no
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h. */
6371 #include <stdbool.h>
6376 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6377 #define debug(...) fprintf (stderr, __VA_ARGS__)
6378 #define showlist(...) puts (#__VA_ARGS__)
6379 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6381 test_varargs_macros (void)
6386 debug ("X = %d\n", x);
6387 showlist (The first, second, and third items.);
6388 report (x>y, "x is %d but y is %d", x, y);
6391 // Check long long types.
6392 #define BIG64 18446744073709551615ull
6393 #define BIG32 4294967295ul
6394 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6396 your preprocessor is broken;
6400 your preprocessor is broken;
6402 static long long int bignum = -9223372036854775807LL;
6403 static unsigned long long int ubignum = BIG64;
6405 struct incomplete_array
6413 const wchar_t *name;
6417 typedef const char *ccp;
6420 test_restrict (ccp restrict text)
6422 // See if C++-style comments work.
6423 // Iterate through items via the restricted pointer.
6424 // Also check for declarations in for loops.
6425 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6430 // Check varargs and va_copy.
6432 test_varargs (const char *format, ...)
6435 va_start (args, format);
6437 va_copy (args_copy, args);
6448 str = va_arg (args_copy, const char *);
6451 number = va_arg (args_copy, int);
6454 fnumber = va_arg (args_copy, double);
6469 _Bool success = false;
6472 if (test_restrict ("String literal") == 0)
6474 char *restrict newvar = "Another string";
6477 test_varargs ("s, d' f .", "string", 65, 34.234);
6478 test_varargs_macros ();
6480 // Check flexible array members.
6481 struct incomplete_array *ia =
6482 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6484 for (int i = 0; i < ia->datasize; ++i)
6485 ia->data[i] = i * 1.234;
6487 // Check named initializers.
6488 struct named_init ni = {
6490 .name = L"Test wide string",
6491 .average = 543.34343,
6496 int dynamic_array[ni.number];
6497 dynamic_array[ni.number - 1] = 543;
6499 // work around unused variable warnings
6500 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6501 || dynamic_array[ni.number - 1] != 543);
6507 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
6509 CC="$ac_save_CC $ac_arg"
6510 if ac_fn_c_try_compile "$LINENO"; then :
6511 ac_cv_prog_cc_c99=$ac_arg
6513 rm -f core conftest.err conftest.$ac_objext
6514 test "x$ac_cv_prog_cc_c99" != "xno" && break
6516 rm -f conftest.$ac_ext
6521 case "x$ac_cv_prog_cc_c99" in
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6524 $as_echo "none needed" >&6; } ;;
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6527 $as_echo "unsupported" >&6; } ;;
6529 CC="$CC $ac_cv_prog_cc_c99"
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6531 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6533 if test "x$ac_cv_prog_cc_c99" != xno; then :
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
6540 $as_echo_n "checking whether the compiler supports C99 structure initialization... " >&6; }
6544 ac_cpp='$CPP $CPPFLAGS'
6545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h. */
6553 struct foo_s {int i1; int i2;};
6554 int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
6557 if ac_fn_c_try_compile "$LINENO"; then :
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6559 $as_echo "yes" >&6; }
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6564 $as_echo "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 ac_cpp='$CPP $CPPFLAGS'
6571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
6580 $as_echo_n "checking for compile/link hardening flags... " >&6; }
6583 # Check whether --with-hardenfile was given.
6584 if test "${with_hardenfile+set}" = set; then :
6585 withval=$with_hardenfile;
6593 SENTINEL_DIR="$PWD" && \
6594 cd $srcdir/sntp && \
6595 case "$with_hardenfile" in \
6597 scripts/genHardFlags -d "$SENTINEL_DIR" \
6600 scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_hardenfile" \
6603 ) > genHardFlags.i 2> genHardFlags.err
6606 case "$GENHARDFLAG" in
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
6609 $as_echo "in file $GENHARDFLAGFILE" >&6; }
6610 rm genHardFlags.err genHardFlags.i
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6614 $as_echo "failed." >&6; }
6615 as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
6627 $as_echo_n "checking to see if we need ylwrap VPATH hack... " >&6; }
6629 case "$srcdir::${force_ntp_vpath_hack-no}" in
6631 ;; # VPATH_HACK path is for VPATH builds only.
6633 ntp_vpath_hack="yes"
6636 case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
6638 ntp_vpath_hack="yes"
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
6642 $as_echo "$ntp_vpath_hack" >&6; }
6643 if test x$ntp_vpath_hack = xyes; then
6645 VPATH_HACK_FALSE='#'
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
6655 $as_echo_n "checking for install dir and man conventions... " >&6; }
6658 # Check whether --with-locfile was given.
6659 if test "${with_locfile+set}" = set; then :
6660 withval=$with_locfile;
6668 SENTINEL_DIR="$PWD" && \
6669 cd $srcdir/sntp && \
6670 case "$with_locfile" in \
6672 scripts/genLocInfo -d "$SENTINEL_DIR" \
6675 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \
6678 ) > genLocInfo.i 2> genLocInfo.err
6681 case "$GENLOCINFO" in
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
6684 $as_echo "in file $GENLOCINFOFILE" >&6; }
6685 rm genLocInfo.err genLocInfo.i
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6689 $as_echo "failed." >&6; }
6690 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
6694 if test "$CALC_TICKADJ_MS" ; then
6695 WANT_CALC_TICKADJ_MS_TRUE=
6696 WANT_CALC_TICKADJ_MS_FALSE='#'
6698 WANT_CALC_TICKADJ_MS_TRUE='#'
6699 WANT_CALC_TICKADJ_MS_FALSE=
6744 if test -z "$NTPSWEEP_NI" ; then
6745 INSTALL_NTPSWEEP_TRUE=
6746 INSTALL_NTPSWEEP_FALSE='#'
6748 INSTALL_NTPSWEEP_TRUE='#'
6749 INSTALL_NTPSWEEP_FALSE=
6792 if test -z "$UPDATE_LEAP_NI" ; then
6793 INSTALL_UPDATE_LEAP_TRUE=
6794 INSTALL_UPDATE_LEAP_FALSE='#'
6796 INSTALL_UPDATE_LEAP_TRUE='#'
6797 INSTALL_UPDATE_LEAP_FALSE=
6802 if test -n "$ac_tool_prefix"; then
6803 for ac_prog in ar lib "link -lib"
6805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6806 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808 $as_echo_n "checking for $ac_word... " >&6; }
6809 if ${ac_cv_prog_AR+:} false; then :
6810 $as_echo_n "(cached) " >&6
6812 if test -n "$AR"; then
6813 ac_cv_prog_AR="$AR" # Let the user override the test.
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6822 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 if test -n "$AR"; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6835 $as_echo "$AR" >&6; }
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6842 test -n "$AR" && break
6845 if test -z "$AR"; then
6847 for ac_prog in ar lib "link -lib"
6849 # Extract the first word of "$ac_prog", so it can be a program name with args.
6850 set dummy $ac_prog; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6854 $as_echo_n "(cached) " >&6
6856 if test -n "$ac_ct_AR"; then
6857 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866 ac_cv_prog_ac_ct_AR="$ac_prog"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6877 if test -n "$ac_ct_AR"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6879 $as_echo "$ac_ct_AR" >&6; }
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6886 test -n "$ac_ct_AR" && break
6889 if test "x$ac_ct_AR" = x; then
6892 case $cross_compiling:$ac_tool_warned in
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6896 ac_tool_warned=yes ;;
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6905 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6906 if ${am_cv_ar_interface+:} false; then :
6907 $as_echo_n "(cached) " >&6
6910 ac_cpp='$CPP $CPPFLAGS'
6911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6915 am_cv_ar_interface=ar
6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6918 int some_variable = 0;
6920 if ac_fn_c_try_compile "$LINENO"; then :
6921 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6923 (eval $am_ar_try) 2>&5
6925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6926 test $ac_status = 0; }
6927 if test "$ac_status" -eq 0; then
6928 am_cv_ar_interface=ar
6930 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6932 (eval $am_ar_try) 2>&5
6934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6935 test $ac_status = 0; }
6936 if test "$ac_status" -eq 0; then
6937 am_cv_ar_interface=lib
6939 am_cv_ar_interface=unknown
6942 rm -f conftest.lib libconftest.a
6945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6947 ac_cpp='$CPP $CPPFLAGS'
6948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6954 $as_echo "$am_cv_ar_interface" >&6; }
6956 case $am_cv_ar_interface in
6960 # Microsoft lib, so override with the ar-lib wrapper script.
6961 # FIXME: It is wrong to rewrite AR.
6962 # But if we don't then we get into trouble of one sort or another.
6963 # A longer-term fix would be to have automake use am__AR in this case,
6964 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6966 AR="$am_aux_dir/ar-lib $AR"
6969 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6975 # So far, the only shared library we might use is libopts.
6976 # It's a small library - we might as well use a static version of it.
6977 # Check whether --enable-shared was given.
6978 if test "${enable_shared+set}" = set; then :
6979 enableval=$enable_shared; p=${PACKAGE-default}
6981 yes) enable_shared=yes ;;
6982 no) enable_shared=no ;;
6985 # Look at the argument we got. We use all the common list separators.
6986 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6987 for pkg in $enableval; do
6989 if test "X$pkg" = "X$p"; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7011 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7016 macro_version='2.4.6'
7017 macro_revision='2.4.6'
7031 ltmain=$ac_aux_dir/ltmain.sh
7033 # Backslashify metacharacters that are still active within
7034 # double-quoted strings.
7035 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7037 # Same as above, but do not quote variable references.
7038 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7040 # Sed substitution to delay expansion of an escaped shell variable in a
7041 # double_quote_subst'ed string.
7042 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7044 # Sed substitution to delay expansion of an escaped single quote.
7045 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7047 # Sed substitution to avoid accidental globbing in evaled expressions
7048 no_glob_subst='s/\*/\\\*/g'
7050 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7051 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7052 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7055 $as_echo_n "checking how to print strings... " >&6; }
7056 # Test print first, because it will be a builtin if present.
7057 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7058 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7060 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7063 # Use this function as a fallback that always works.
7064 func_fallback_echo ()
7066 eval 'cat <<_LTECHO_EOF
7070 ECHO='func_fallback_echo'
7073 # func_echo_all arg...
7074 # Invoke $ECHO with all args, space-separated.
7081 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7082 $as_echo "printf" >&6; } ;;
7083 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7084 $as_echo "print -r" >&6; } ;;
7085 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7086 $as_echo "cat" >&6; } ;;
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7103 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7104 if ${ac_cv_path_SED+:} false; then :
7105 $as_echo_n "(cached) " >&6
7107 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7108 for ac_i in 1 2 3 4 5 6 7; do
7109 ac_script="$ac_script$as_nl$ac_script"
7111 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7112 { ac_script=; unset ac_script;}
7113 if test -z "$SED"; then
7114 ac_path_SED_found=false
7115 # Loop through the user's path and test for each of PROGNAME-LIST
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 test -z "$as_dir" && as_dir=.
7121 for ac_prog in sed gsed; do
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7124 as_fn_executable_p "$ac_path_SED" || continue
7125 # Check for GNU ac_path_SED and select it if it is found.
7126 # Check for GNU $ac_path_SED
7127 case `"$ac_path_SED" --version 2>&1` in
7129 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7132 $as_echo_n 0123456789 >"conftest.in"
7135 cat "conftest.in" "conftest.in" >"conftest.tmp"
7136 mv "conftest.tmp" "conftest.in"
7137 cp "conftest.in" "conftest.nl"
7138 $as_echo '' >> "conftest.nl"
7139 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7140 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7141 as_fn_arith $ac_count + 1 && ac_count=$as_val
7142 if test $ac_count -gt ${ac_path_SED_max-0}; then
7143 # Best one so far, save it but keep looking for a better one
7144 ac_cv_path_SED="$ac_path_SED"
7145 ac_path_SED_max=$ac_count
7147 # 10*(2^10) chars as input seems more than enough
7148 test $ac_count -gt 10 && break
7150 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7153 $ac_path_SED_found && break 3
7158 if test -z "$ac_cv_path_SED"; then
7159 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7167 $as_echo "$ac_cv_path_SED" >&6; }
7168 SED="$ac_cv_path_SED"
7171 test -z "$SED" && SED=sed
7172 Xsed="$SED -e 1s/^X//"
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7185 $as_echo_n "checking for fgrep... " >&6; }
7186 if ${ac_cv_path_FGREP+:} false; then :
7187 $as_echo_n "(cached) " >&6
7189 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7190 then ac_cv_path_FGREP="$GREP -F"
7192 if test -z "$FGREP"; then
7193 ac_path_FGREP_found=false
7194 # Loop through the user's path and test for each of PROGNAME-LIST
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7199 test -z "$as_dir" && as_dir=.
7200 for ac_prog in fgrep; do
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7203 as_fn_executable_p "$ac_path_FGREP" || continue
7204 # Check for GNU ac_path_FGREP and select it if it is found.
7205 # Check for GNU $ac_path_FGREP
7206 case `"$ac_path_FGREP" --version 2>&1` in
7208 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7211 $as_echo_n 0123456789 >"conftest.in"
7214 cat "conftest.in" "conftest.in" >"conftest.tmp"
7215 mv "conftest.tmp" "conftest.in"
7216 cp "conftest.in" "conftest.nl"
7217 $as_echo 'FGREP' >> "conftest.nl"
7218 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7219 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7220 as_fn_arith $ac_count + 1 && ac_count=$as_val
7221 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7222 # Best one so far, save it but keep looking for a better one
7223 ac_cv_path_FGREP="$ac_path_FGREP"
7224 ac_path_FGREP_max=$ac_count
7226 # 10*(2^10) chars as input seems more than enough
7227 test $ac_count -gt 10 && break
7229 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7232 $ac_path_FGREP_found && break 3
7237 if test -z "$ac_cv_path_FGREP"; then
7238 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7241 ac_cv_path_FGREP=$FGREP
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7247 $as_echo "$ac_cv_path_FGREP" >&6; }
7248 FGREP="$ac_cv_path_FGREP"
7251 test -z "$GREP" && GREP=grep
7271 # Check whether --with-gnu-ld was given.
7272 if test "${with_gnu_ld+set}" = set; then :
7273 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7279 if test yes = "$GCC"; then
7280 # Check if gcc -print-prog-name=ld gives a path.
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7282 $as_echo_n "checking for ld used by $CC... " >&6; }
7285 # gcc leaves a trailing carriage return, which upsets mingw
7286 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7288 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7291 # Accept absolute paths.
7293 re_direlt='/[^/][^/]*/\.\./'
7294 # Canonicalize the pathname of ld
7295 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7296 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7297 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7299 test -z "$LD" && LD=$ac_prog
7302 # If it fails, then pretend we aren't using GCC.
7306 # If it is relative, then search for the first ld in PATH.
7310 elif test yes = "$with_gnu_ld"; then
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7312 $as_echo_n "checking for GNU ld... " >&6; }
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7315 $as_echo_n "checking for non-GNU ld... " >&6; }
7317 if ${lt_cv_path_LD+:} false; then :
7318 $as_echo_n "(cached) " >&6
7320 if test -z "$LD"; then
7321 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7322 for ac_dir in $PATH; do
7324 test -z "$ac_dir" && ac_dir=.
7325 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7326 lt_cv_path_LD=$ac_dir/$ac_prog
7327 # Check to see if the program is GNU ld. I'd rather use --version,
7328 # but apparently some variants of GNU ld only accept -v.
7329 # Break only if it was the GNU/non-GNU ld that we prefer.
7330 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7331 *GNU* | *'with BFD'*)
7332 test no != "$with_gnu_ld" && break
7335 test yes != "$with_gnu_ld" && break
7342 lt_cv_path_LD=$LD # Let the user override the test with a path.
7347 if test -n "$LD"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7349 $as_echo "$LD" >&6; }
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7354 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7356 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7357 if ${lt_cv_prog_gnu_ld+:} false; then :
7358 $as_echo_n "(cached) " >&6
7360 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7361 case `$LD -v 2>&1 </dev/null` in
7362 *GNU* | *'with BFD'*)
7363 lt_cv_prog_gnu_ld=yes
7366 lt_cv_prog_gnu_ld=no
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7371 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7372 with_gnu_ld=$lt_cv_prog_gnu_ld
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7383 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7384 if ${lt_cv_path_NM+:} false; then :
7385 $as_echo_n "(cached) " >&6
7387 if test -n "$NM"; then
7388 # Let the user override the test.
7391 lt_nm_to_check=${ac_tool_prefix}nm
7392 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7393 lt_nm_to_check="$lt_nm_to_check nm"
7395 for lt_tmp_nm in $lt_nm_to_check; do
7396 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7397 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7399 test -z "$ac_dir" && ac_dir=.
7400 tmp_nm=$ac_dir/$lt_tmp_nm
7401 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7402 # Check to see if the nm accepts a BSD-compat flag.
7403 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7404 # nm: unknown option "B" ignored
7405 # Tru64's nm complains that /dev/null is an invalid object file
7406 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7408 mingw*) lt_bad_file=conftest.nm/nofile ;;
7409 *) lt_bad_file=/dev/null ;;
7411 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7412 *$lt_bad_file* | *'Invalid file or object type'*)
7413 lt_cv_path_NM="$tmp_nm -B"
7417 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7419 lt_cv_path_NM="$tmp_nm -p"
7423 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7424 continue # so that we can try to find one that supports BSD flags
7433 : ${lt_cv_path_NM=no}
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7437 $as_echo "$lt_cv_path_NM" >&6; }
7438 if test no != "$lt_cv_path_NM"; then
7441 # Didn't find any BSD compatible name lister, look for dumpbin.
7442 if test -n "$DUMPBIN"; then :
7443 # Let the user override the test.
7445 if test -n "$ac_tool_prefix"; then
7446 for ac_prog in dumpbin "link -dump"
7448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if ${ac_cv_prog_DUMPBIN+:} false; then :
7453 $as_echo_n "(cached) " >&6
7455 if test -n "$DUMPBIN"; then
7456 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 DUMPBIN=$ac_cv_prog_DUMPBIN
7476 if test -n "$DUMPBIN"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7478 $as_echo "$DUMPBIN" >&6; }
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7485 test -n "$DUMPBIN" && break
7488 if test -z "$DUMPBIN"; then
7489 ac_ct_DUMPBIN=$DUMPBIN
7490 for ac_prog in dumpbin "link -dump"
7492 # Extract the first word of "$ac_prog", so it can be a program name with args.
7493 set dummy $ac_prog; ac_word=$2
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7495 $as_echo_n "checking for $ac_word... " >&6; }
7496 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7497 $as_echo_n "(cached) " >&6
7499 if test -n "$ac_ct_DUMPBIN"; then
7500 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7509 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7520 if test -n "$ac_ct_DUMPBIN"; then
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7522 $as_echo "$ac_ct_DUMPBIN" >&6; }
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 $as_echo "no" >&6; }
7529 test -n "$ac_ct_DUMPBIN" && break
7532 if test "x$ac_ct_DUMPBIN" = x; then
7535 case $cross_compiling:$ac_tool_warned in
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7539 ac_tool_warned=yes ;;
7541 DUMPBIN=$ac_ct_DUMPBIN
7545 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7547 DUMPBIN="$DUMPBIN -symbols -headers"
7555 if test : != "$DUMPBIN"; then
7559 test -z "$NM" && NM=nm
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7567 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7568 if ${lt_cv_nm_interface+:} false; then :
7569 $as_echo_n "(cached) " >&6
7571 lt_cv_nm_interface="BSD nm"
7572 echo "int some_variable = 0;" > conftest.$ac_ext
7573 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7574 (eval "$ac_compile" 2>conftest.err)
7575 cat conftest.err >&5
7576 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7577 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7578 cat conftest.err >&5
7579 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7580 cat conftest.out >&5
7581 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7582 lt_cv_nm_interface="MS dumpbin"
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7587 $as_echo "$lt_cv_nm_interface" >&6; }
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7590 $as_echo_n "checking whether ln -s works... " >&6; }
7592 if test "$LN_S" = "ln -s"; then
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7594 $as_echo "yes" >&6; }
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7597 $as_echo "no, using $LN_S" >&6; }
7600 # find the maximum length of command line arguments
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7602 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7603 if ${lt_cv_sys_max_cmd_len+:} false; then :
7604 $as_echo_n "(cached) " >&6
7611 # On DJGPP, this test can blow up pretty badly due to problems in libc
7612 # (any single argument exceeding 2000 bytes causes a buffer overrun
7613 # during glob expansion). Even if it were fixed, the result of this
7614 # check would be larger than it should be.
7615 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7619 # Under GNU Hurd, this test is not required because there is
7620 # no limit to the length of command line arguments.
7621 # Libtool will interpret -1 as no limit whatsoever
7622 lt_cv_sys_max_cmd_len=-1;
7625 cygwin* | mingw* | cegcc*)
7626 # On Win9x/ME, this test blows up -- it succeeds, but takes
7627 # about 5 minutes as the teststring grows exponentially.
7628 # Worse, since 9x/ME are not pre-emptively multitasking,
7629 # you end up with a "frozen" computer, even though with patience
7630 # the test eventually succeeds (with a max line length of 256k).
7631 # Instead, let's just punt: use the minimum linelength reported by
7632 # all of the supported platforms: 8192 (on NT/2K/XP).
7633 lt_cv_sys_max_cmd_len=8192;
7637 # On MiNT this can take a long time and run out of memory.
7638 lt_cv_sys_max_cmd_len=8192;
7642 # On AmigaOS with pdksh, this test takes hours, literally.
7643 # So we just punt and use a minimum line length of 8192.
7644 lt_cv_sys_max_cmd_len=8192;
7647 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7648 # This has been around since 386BSD, at least. Likely further.
7649 if test -x /sbin/sysctl; then
7650 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7651 elif test -x /usr/sbin/sysctl; then
7652 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7654 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7656 # And add a safety zone
7657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7662 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7663 lt_cv_sys_max_cmd_len=196608
7667 # The test takes a long time on OS/2.
7668 lt_cv_sys_max_cmd_len=8192
7672 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7673 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7674 # nice to cause kernel panics so lets avoid the loop below.
7675 # First set a reasonable default.
7676 lt_cv_sys_max_cmd_len=16384
7678 if test -x /sbin/sysconfig; then
7679 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7680 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7685 lt_cv_sys_max_cmd_len=102400
7687 sysv5* | sco5v6* | sysv4.2uw2*)
7688 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7689 if test -n "$kargmax"; then
7690 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7692 lt_cv_sys_max_cmd_len=32768
7696 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7697 if test -n "$lt_cv_sys_max_cmd_len" && \
7698 test undefined != "$lt_cv_sys_max_cmd_len"; then
7699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7700 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7702 # Make teststring a little bigger before we do anything with it.
7703 # a 1K string should be a reasonable start.
7704 for i in 1 2 3 4 5 6 7 8; do
7705 teststring=$teststring$teststring
7707 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7708 # If test is not a shell built-in, we'll probably end up computing a
7709 # maximum length that is only half of the actual maximum length, but
7711 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7712 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7713 test 17 != "$i" # 1/2 MB should be enough
7716 teststring=$teststring$teststring
7718 # Only check the string length outside the loop.
7719 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7721 # Add a significant safety factor because C++ compilers can tack on
7722 # massive amounts of additional arguments before passing them to the
7723 # linker. It appears as though 1/2 is a usable value.
7724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7731 if test -n "$lt_cv_sys_max_cmd_len"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7733 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7736 $as_echo "none" >&6; }
7738 max_cmd_len=$lt_cv_sys_max_cmd_len
7749 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7759 # test EBCDIC or ASCII
7760 case `echo X|tr X '\101'` in
7761 A) # ASCII based system
7762 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7763 lt_SP2NL='tr \040 \012'
7764 lt_NL2SP='tr \015\012 \040\040'
7766 *) # EBCDIC based system
7767 lt_SP2NL='tr \100 \n'
7768 lt_NL2SP='tr \r\n \100\100'
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7781 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7782 if ${lt_cv_to_host_file_cmd+:} false; then :
7783 $as_echo_n "(cached) " >&6
7788 *-*-mingw* ) # actually msys
7789 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7792 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7794 * ) # otherwise, assume *nix
7795 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7801 *-*-mingw* ) # actually msys
7802 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7805 lt_cv_to_host_file_cmd=func_convert_file_noop
7807 * ) # otherwise, assume *nix
7808 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7812 * ) # unhandled hosts (and "normal" native builds)
7813 lt_cv_to_host_file_cmd=func_convert_file_noop
7819 to_host_file_cmd=$lt_cv_to_host_file_cmd
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7821 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7828 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7829 if ${lt_cv_to_tool_file_cmd+:} false; then :
7830 $as_echo_n "(cached) " >&6
7832 #assume ordinary cross tools, or native build.
7833 lt_cv_to_tool_file_cmd=func_convert_file_noop
7837 *-*-mingw* ) # actually msys
7838 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7846 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7848 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7855 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7856 if ${lt_cv_ld_reload_flag+:} false; then :
7857 $as_echo_n "(cached) " >&6
7859 lt_cv_ld_reload_flag='-r'
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7862 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7863 reload_flag=$lt_cv_ld_reload_flag
7864 case $reload_flag in
7866 *) reload_flag=" $reload_flag" ;;
7868 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7870 cygwin* | mingw* | pw32* | cegcc*)
7871 if test yes != "$GCC"; then
7876 if test yes = "$GCC"; then
7877 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7879 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7892 if test -n "$ac_tool_prefix"; then
7893 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7894 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if ${ac_cv_prog_OBJDUMP+:} false; then :
7898 $as_echo_n "(cached) " >&6
7900 if test -n "$OBJDUMP"; then
7901 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7910 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 OBJDUMP=$ac_cv_prog_OBJDUMP
7921 if test -n "$OBJDUMP"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7923 $as_echo "$OBJDUMP" >&6; }
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7931 if test -z "$ac_cv_prog_OBJDUMP"; then
7932 ac_ct_OBJDUMP=$OBJDUMP
7933 # Extract the first word of "objdump", so it can be a program name with args.
7934 set dummy objdump; ac_word=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7938 $as_echo_n "(cached) " >&6
7940 if test -n "$ac_ct_OBJDUMP"; then
7941 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7961 if test -n "$ac_ct_OBJDUMP"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7963 $as_echo "$ac_ct_OBJDUMP" >&6; }
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7969 if test "x$ac_ct_OBJDUMP" = x; then
7972 case $cross_compiling:$ac_tool_warned in
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7976 ac_tool_warned=yes ;;
7978 OBJDUMP=$ac_ct_OBJDUMP
7981 OBJDUMP="$ac_cv_prog_OBJDUMP"
7984 test -z "$OBJDUMP" && OBJDUMP=objdump
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7995 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7996 if ${lt_cv_deplibs_check_method+:} false; then :
7997 $as_echo_n "(cached) " >&6
7999 lt_cv_file_magic_cmd='$MAGIC_CMD'
8000 lt_cv_file_magic_test_file=
8001 lt_cv_deplibs_check_method='unknown'
8002 # Need to set the preceding variable on all platforms that support
8003 # interlibrary dependencies.
8004 # 'none' -- dependencies not supported.
8005 # 'unknown' -- same as none, but documents that we really don't know.
8006 # 'pass_all' -- all dependencies passed with no checks.
8007 # 'test_compile' -- check by making test program.
8008 # 'file_magic [[regex]]' -- check by looking for files in library path
8009 # that responds to the $file_magic_cmd with a given extended regex.
8010 # If you have 'file' or equivalent on your system and you're not sure
8011 # whether 'pass_all' will *always* work, you probably want this one.
8015 lt_cv_deplibs_check_method=pass_all
8019 lt_cv_deplibs_check_method=pass_all
8023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8024 lt_cv_file_magic_cmd='/usr/bin/file -L'
8025 lt_cv_file_magic_test_file=/shlib/libc.so
8029 # func_win32_libid is a shell function defined in ltmain.sh
8030 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8031 lt_cv_file_magic_cmd='func_win32_libid'
8035 # Base MSYS/MinGW do not provide the 'file' command needed by
8036 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8037 # unless we find 'file', for example because we are cross-compiling.
8038 if ( file / ) >/dev/null 2>&1; then
8039 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8040 lt_cv_file_magic_cmd='func_win32_libid'
8042 # Keep this pattern in sync with the one in func_win32_libid.
8043 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8044 lt_cv_file_magic_cmd='$OBJDUMP -f'
8049 # use the weaker test based on 'objdump'. See mingw*.
8050 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8051 lt_cv_file_magic_cmd='$OBJDUMP -f'
8054 darwin* | rhapsody*)
8055 lt_cv_deplibs_check_method=pass_all
8058 freebsd* | dragonfly*)
8059 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8062 # Not sure whether the presence of OpenBSD here was a mistake.
8063 # Let's accept both of them until this is cleared up.
8064 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8065 lt_cv_file_magic_cmd=/usr/bin/file
8066 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8070 lt_cv_deplibs_check_method=pass_all
8075 lt_cv_deplibs_check_method=pass_all
8078 hpux10.20* | hpux11*)
8079 lt_cv_file_magic_cmd=/usr/bin/file
8082 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8083 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8086 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8087 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8090 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8091 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8097 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8101 irix5* | irix6* | nonstopux*)
8103 *-32|*"-32 ") libmagic=32-bit;;
8104 *-n32|*"-n32 ") libmagic=N32;;
8105 *-64|*"-64 ") libmagic=64-bit;;
8106 *) libmagic=never-match;;
8108 lt_cv_deplibs_check_method=pass_all
8111 # This must be glibc/ELF.
8112 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8113 lt_cv_deplibs_check_method=pass_all
8117 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8118 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8126 lt_cv_file_magic_cmd=/usr/bin/file
8127 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8131 lt_cv_deplibs_check_method=pass_all
8135 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8142 osf3* | osf4* | osf5*)
8143 lt_cv_deplibs_check_method=pass_all
8147 lt_cv_deplibs_check_method=pass_all
8151 lt_cv_deplibs_check_method=pass_all
8154 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8155 lt_cv_deplibs_check_method=pass_all
8159 case $host_vendor in
8161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
8162 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8165 lt_cv_deplibs_check_method=pass_all
8168 lt_cv_file_magic_cmd='/bin/file'
8169 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8172 lt_cv_file_magic_cmd='/bin/file'
8173 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8174 lt_cv_file_magic_test_file=/lib/libc.so
8177 lt_cv_deplibs_check_method=pass_all
8180 lt_cv_deplibs_check_method=pass_all
8186 lt_cv_deplibs_check_method=pass_all
8189 lt_cv_deplibs_check_method=pass_all
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8195 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8199 if test "$build" = "$host"; then
8202 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8205 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8211 file_magic_cmd=$lt_cv_file_magic_cmd
8212 deplibs_check_method=$lt_cv_deplibs_check_method
8213 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8236 if test -n "$ac_tool_prefix"; then
8237 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8238 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240 $as_echo_n "checking for $ac_word... " >&6; }
8241 if ${ac_cv_prog_DLLTOOL+:} false; then :
8242 $as_echo_n "(cached) " >&6
8244 if test -n "$DLLTOOL"; then
8245 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8254 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 DLLTOOL=$ac_cv_prog_DLLTOOL
8265 if test -n "$DLLTOOL"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8267 $as_echo "$DLLTOOL" >&6; }
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 $as_echo "no" >&6; }
8275 if test -z "$ac_cv_prog_DLLTOOL"; then
8276 ac_ct_DLLTOOL=$DLLTOOL
8277 # Extract the first word of "dlltool", so it can be a program name with args.
8278 set dummy dlltool; ac_word=$2
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8280 $as_echo_n "checking for $ac_word... " >&6; }
8281 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8282 $as_echo_n "(cached) " >&6
8284 if test -n "$ac_ct_DLLTOOL"; then
8285 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 test -z "$as_dir" && as_dir=.
8292 for ac_exec_ext in '' $ac_executable_extensions; do
8293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8294 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8305 if test -n "$ac_ct_DLLTOOL"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8307 $as_echo "$ac_ct_DLLTOOL" >&6; }
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310 $as_echo "no" >&6; }
8313 if test "x$ac_ct_DLLTOOL" = x; then
8316 case $cross_compiling:$ac_tool_warned in
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8320 ac_tool_warned=yes ;;
8322 DLLTOOL=$ac_ct_DLLTOOL
8325 DLLTOOL="$ac_cv_prog_DLLTOOL"
8328 test -z "$DLLTOOL" && DLLTOOL=dlltool
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8340 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8341 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8342 $as_echo_n "(cached) " >&6
8344 lt_cv_sharedlib_from_linklib_cmd='unknown'
8347 cygwin* | mingw* | pw32* | cegcc*)
8348 # two different shell functions defined in ltmain.sh;
8349 # decide which one to use based on capabilities of $DLLTOOL
8350 case `$DLLTOOL --help 2>&1` in
8351 *--identify-strict*)
8352 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8355 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8360 # fallback: assume linklib IS sharedlib
8361 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8367 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8368 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8369 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8377 if test -n "$ac_tool_prefix"; then
8380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383 $as_echo_n "checking for $ac_word... " >&6; }
8384 if ${ac_cv_prog_AR+:} false; then :
8385 $as_echo_n "(cached) " >&6
8387 if test -n "$AR"; then
8388 ac_cv_prog_AR="$AR" # Let the user override the test.
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394 test -z "$as_dir" && as_dir=.
8395 for ac_exec_ext in '' $ac_executable_extensions; do
8396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8397 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8408 if test -n "$AR"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8410 $as_echo "$AR" >&6; }
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 $as_echo "no" >&6; }
8417 test -n "$AR" && break
8420 if test -z "$AR"; then
8424 # Extract the first word of "$ac_prog", so it can be a program name with args.
8425 set dummy $ac_prog; ac_word=$2
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8427 $as_echo_n "checking for $ac_word... " >&6; }
8428 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8429 $as_echo_n "(cached) " >&6
8431 if test -n "$ac_ct_AR"; then
8432 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 test -z "$as_dir" && as_dir=.
8439 for ac_exec_ext in '' $ac_executable_extensions; do
8440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8441 ac_cv_prog_ac_ct_AR="$ac_prog"
8442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8451 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8452 if test -n "$ac_ct_AR"; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8454 $as_echo "$ac_ct_AR" >&6; }
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo "no" >&6; }
8461 test -n "$ac_ct_AR" && break
8464 if test "x$ac_ct_AR" = x; then
8467 case $cross_compiling:$ac_tool_warned in
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8471 ac_tool_warned=yes ;;
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8491 $as_echo_n "checking for archiver @FILE support... " >&6; }
8492 if ${lt_cv_ar_at_file+:} false; then :
8493 $as_echo_n "(cached) " >&6
8496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8507 if ac_fn_c_try_compile "$LINENO"; then :
8508 echo conftest.$ac_objext > conftest.lst
8509 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8511 (eval $lt_ar_try) 2>&5
8513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8514 test $ac_status = 0; }
8515 if test 0 -eq "$ac_status"; then
8516 # Ensure the archiver fails upon bogus file names.
8517 rm -f conftest.$ac_objext libconftest.a
8518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8519 (eval $lt_ar_try) 2>&5
8521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8522 test $ac_status = 0; }
8523 if test 0 -ne "$ac_status"; then
8527 rm -f conftest.* libconftest.a
8530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8534 $as_echo "$lt_cv_ar_at_file" >&6; }
8536 if test no = "$lt_cv_ar_at_file"; then
8539 archiver_list_spec=$lt_cv_ar_at_file
8548 if test -n "$ac_tool_prefix"; then
8549 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8550 set dummy ${ac_tool_prefix}strip; ac_word=$2
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8552 $as_echo_n "checking for $ac_word... " >&6; }
8553 if ${ac_cv_prog_STRIP+:} false; then :
8554 $as_echo_n "(cached) " >&6
8556 if test -n "$STRIP"; then
8557 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 test -z "$as_dir" && as_dir=.
8564 for ac_exec_ext in '' $ac_executable_extensions; do
8565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8566 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 STRIP=$ac_cv_prog_STRIP
8577 if test -n "$STRIP"; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8579 $as_echo "$STRIP" >&6; }
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582 $as_echo "no" >&6; }
8587 if test -z "$ac_cv_prog_STRIP"; then
8589 # Extract the first word of "strip", so it can be a program name with args.
8590 set dummy strip; ac_word=$2
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592 $as_echo_n "checking for $ac_word... " >&6; }
8593 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8594 $as_echo_n "(cached) " >&6
8596 if test -n "$ac_ct_STRIP"; then
8597 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8603 test -z "$as_dir" && as_dir=.
8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8606 ac_cv_prog_ac_ct_STRIP="strip"
8607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8616 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8617 if test -n "$ac_ct_STRIP"; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8619 $as_echo "$ac_ct_STRIP" >&6; }
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 $as_echo "no" >&6; }
8625 if test "x$ac_ct_STRIP" = x; then
8628 case $cross_compiling:$ac_tool_warned in
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8632 ac_tool_warned=yes ;;
8637 STRIP="$ac_cv_prog_STRIP"
8640 test -z "$STRIP" && STRIP=:
8647 if test -n "$ac_tool_prefix"; then
8648 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8649 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if ${ac_cv_prog_RANLIB+:} false; then :
8653 $as_echo_n "(cached) " >&6
8655 if test -n "$RANLIB"; then
8656 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8665 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8675 RANLIB=$ac_cv_prog_RANLIB
8676 if test -n "$RANLIB"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8678 $as_echo "$RANLIB" >&6; }
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8686 if test -z "$ac_cv_prog_RANLIB"; then
8687 ac_ct_RANLIB=$RANLIB
8688 # Extract the first word of "ranlib", so it can be a program name with args.
8689 set dummy ranlib; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8693 $as_echo_n "(cached) " >&6
8695 if test -n "$ac_ct_RANLIB"; then
8696 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 test -z "$as_dir" && as_dir=.
8703 for ac_exec_ext in '' $ac_executable_extensions; do
8704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8705 ac_cv_prog_ac_ct_RANLIB="ranlib"
8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8716 if test -n "$ac_ct_RANLIB"; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8718 $as_echo "$ac_ct_RANLIB" >&6; }
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8724 if test "x$ac_ct_RANLIB" = x; then
8727 case $cross_compiling:$ac_tool_warned in
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8731 ac_tool_warned=yes ;;
8733 RANLIB=$ac_ct_RANLIB
8736 RANLIB="$ac_cv_prog_RANLIB"
8739 test -z "$RANLIB" && RANLIB=:
8746 # Determine commands to create old-style static archives.
8747 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8748 old_postinstall_cmds='chmod 644 $oldlib'
8749 old_postuninstall_cmds=
8751 if test -n "$RANLIB"; then
8754 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8757 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8760 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8765 lock_old_archive_extraction=yes ;;
8767 lock_old_archive_extraction=no ;;
8808 # If no C compiler was specified, use CC.
8811 # If no C compiler flags were specified, use CFLAGS.
8812 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8814 # Allow CC to be a program name with arguments.
8818 # Check for command to grab the raw symbol name followed by C symbol from nm.
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8820 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8821 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8822 $as_echo_n "(cached) " >&6
8825 # These are sane defaults that work on at least a few old systems.
8826 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8828 # Character class describing NM global symbol codes.
8829 symcode='[BCDEGRST]'
8831 # Regexp to match symbols that can be accessed directly from C.
8832 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8834 # Define system-specific variables.
8839 cygwin* | mingw* | pw32* | cegcc*)
8840 symcode='[ABCDGISTW]'
8843 if test ia64 = "$host_cpu"; then
8844 symcode='[ABCDEGRST]'
8848 symcode='[BCDEGRST]'
8851 symcode='[BCDEGQRST]'
8862 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8870 # If we're using GNU nm, then use its standard symbol codes.
8871 case `$NM -V 2>&1` in
8872 *GNU* | *'with BFD'*)
8873 symcode='[ABCDGIRSTW]' ;;
8876 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8877 # Gets list of data symbols to import.
8878 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8879 # Adjust the below global symbol transforms to fixup imported variables.
8880 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8881 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8882 lt_c_name_lib_hook="\
8883 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8884 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8886 # Disable hooks by default.
8887 lt_cv_sys_global_symbol_to_import=
8893 # Transform an extracted symbol line into a proper C declaration.
8894 # Some systems (esp. on ia64) link data and code symbols differently,
8895 # so use this general approach.
8896 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8898 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8899 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8901 # Transform an extracted symbol line into symbol name and symbol address
8902 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8904 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8905 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8907 # Transform an extracted symbol line into symbol name with lib prefix and
8909 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8910 $lt_c_name_lib_hook\
8911 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8912 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8913 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8915 # Handle CRLF in mingw tool chain
8919 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8923 # Try without a prefix underscore, then with it.
8924 for ac_symprfx in "" "_"; do
8926 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8927 symxfrm="\\1 $ac_symprfx\\2 \\2"
8929 # Write the raw and C identifiers.
8930 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8931 # Fake it for dumpbin and say T for any non-static function,
8932 # D for any global variable and I for any imported variable.
8933 # Also find C++ and __fastcall symbols from MSVC++,
8934 # which start with @ or ?.
8935 lt_cv_sys_global_symbol_pipe="$AWK '"\
8936 " {last_section=section; section=\$ 3};"\
8937 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8938 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8939 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8940 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8941 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8942 " \$ 0!~/External *\|/{next};"\
8943 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8944 " {if(hide[section]) next};"\
8945 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8946 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8947 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8948 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8949 " ' prfx=^$ac_symprfx"
8951 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8953 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8955 # Check to see that the pipe works correctly.
8959 cat > conftest.$ac_ext <<_LT_EOF
8964 void nm_test_func(void);
8965 void nm_test_func(void){}
8969 int main(){nm_test_var='a';nm_test_func();return(0);}
8972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8973 (eval $ac_compile) 2>&5
8975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8976 test $ac_status = 0; }; then
8977 # Now try to grab the symbols.
8979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8980 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8983 test $ac_status = 0; } && test -s "$nlist"; then
8984 # Try sorting and uniquifying the output.
8985 if sort "$nlist" | uniq > "$nlist"T; then
8986 mv -f "$nlist"T "$nlist"
8991 # Make sure that we snagged all the symbols we need.
8992 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8993 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8994 cat <<_LT_EOF > conftest.$ac_ext
8995 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8996 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8997 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8998 relocations are performed -- see ld's documentation on pseudo-relocs. */
8999 # define LT_DLSYM_CONST
9000 #elif defined __osf__
9001 /* This system does not cope well with relocations in const data. */
9002 # define LT_DLSYM_CONST
9004 # define LT_DLSYM_CONST const
9012 # Now generate the symbol file.
9013 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9015 cat <<_LT_EOF >> conftest.$ac_ext
9017 /* The mapping between symbol names and symbols. */
9018 LT_DLSYM_CONST struct {
9022 lt__PROGRAM__LTX_preloaded_symbols[] =
9024 { "@PROGRAM@", (void *) 0 },
9026 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9027 cat <<\_LT_EOF >> conftest.$ac_ext
9031 /* This works around a problem in FreeBSD linker */
9032 #ifdef FREEBSD_WORKAROUND
9033 static const void *lt_preloaded_setup() {
9034 return lt__PROGRAM__LTX_preloaded_symbols;
9042 # Now try linking the two files.
9043 mv conftest.$ac_objext conftstm.$ac_objext
9044 lt_globsym_save_LIBS=$LIBS
9045 lt_globsym_save_CFLAGS=$CFLAGS
9046 LIBS=conftstm.$ac_objext
9047 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9049 (eval $ac_link) 2>&5
9051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9052 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9055 LIBS=$lt_globsym_save_LIBS
9056 CFLAGS=$lt_globsym_save_CFLAGS
9058 echo "cannot find nm_test_func in $nlist" >&5
9061 echo "cannot find nm_test_var in $nlist" >&5
9064 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9067 echo "$progname: failed program was:" >&5
9068 cat conftest.$ac_ext >&5
9070 rm -rf conftest* conftst*
9072 # Do not use the global_symbol_pipe unless it works.
9073 if test yes = "$pipe_works"; then
9076 lt_cv_sys_global_symbol_pipe=
9082 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9083 lt_cv_sys_global_symbol_to_cdecl=
9085 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9087 $as_echo "failed" >&6; }
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9090 $as_echo "ok" >&6; }
9093 # Response file support.
9094 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9095 nm_file_list_spec='@'
9096 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9097 nm_file_list_spec='@'
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9137 $as_echo_n "checking for sysroot... " >&6; }
9139 # Check whether --with-sysroot was given.
9140 if test "${with_sysroot+set}" = set; then :
9141 withval=$with_sysroot;
9148 case $with_sysroot in #(
9150 if test yes = "$GCC"; then
9151 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9155 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9161 $as_echo "$with_sysroot" >&6; }
9162 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9167 $as_echo "${lt_sysroot:-no}" >&6; }
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9174 $as_echo_n "checking for a working dd... " >&6; }
9175 if ${ac_cv_path_lt_DD+:} false; then :
9176 $as_echo_n "(cached) " >&6
9178 printf 0123456789abcdef0123456789abcdef >conftest.i
9179 cat conftest.i conftest.i >conftest2.i
9181 if test -z "$lt_DD"; then
9182 ac_path_lt_DD_found=false
9183 # Loop through the user's path and test for each of PROGNAME-LIST
9184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188 test -z "$as_dir" && as_dir=.
9189 for ac_prog in dd; do
9190 for ac_exec_ext in '' $ac_executable_extensions; do
9191 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9192 as_fn_executable_p "$ac_path_lt_DD" || continue
9193 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9194 cmp -s conftest.i conftest.out \
9195 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9197 $ac_path_lt_DD_found && break 3
9202 if test -z "$ac_cv_path_lt_DD"; then
9206 ac_cv_path_lt_DD=$lt_DD
9209 rm -f conftest.i conftest2.i conftest.out
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9212 $as_echo "$ac_cv_path_lt_DD" >&6; }
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9216 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9217 if ${lt_cv_truncate_bin+:} false; then :
9218 $as_echo_n "(cached) " >&6
9220 printf 0123456789abcdef0123456789abcdef >conftest.i
9221 cat conftest.i conftest.i >conftest2.i
9223 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9224 cmp -s conftest.i conftest.out \
9225 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9227 rm -f conftest.i conftest2.i conftest.out
9228 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9231 $as_echo "$lt_cv_truncate_bin" >&6; }
9239 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9242 for cc_temp in $*""; do
9244 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9245 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9250 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9253 # Check whether --enable-libtool-lock was given.
9254 if test "${enable_libtool_lock+set}" = set; then :
9255 enableval=$enable_libtool_lock;
9258 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9260 # Some flags need to be propagated to the compiler or linker for good
9264 # Find out what ABI is being produced by ac_compile, and set mode
9265 # options accordingly.
9266 echo 'int i;' > conftest.$ac_ext
9267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9268 (eval $ac_compile) 2>&5
9270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9271 test $ac_status = 0; }; then
9272 case `/usr/bin/file conftest.$ac_objext` in
9284 # Find out what ABI is being produced by ac_compile, and set linker
9285 # options accordingly.
9286 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9288 (eval $ac_compile) 2>&5
9290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9291 test $ac_status = 0; }; then
9292 if test yes = "$lt_cv_prog_gnu_ld"; then
9293 case `/usr/bin/file conftest.$ac_objext` in
9295 LD="${LD-ld} -melf32bsmip"
9298 LD="${LD-ld} -melf32bmipn32"
9301 LD="${LD-ld} -melf64bmip"
9305 case `/usr/bin/file conftest.$ac_objext` in
9322 # Find out what ABI is being produced by ac_compile, and set linker
9323 # options accordingly.
9324 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9326 (eval $ac_compile) 2>&5
9328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9329 test $ac_status = 0; }; then
9331 case `/usr/bin/file conftest.$ac_objext` in
9339 case `/usr/bin/file conftest.$ac_objext` in
9341 emul="${emul}btsmip"
9344 emul="${emul}ltsmip"
9347 case `/usr/bin/file conftest.$ac_objext` in
9352 LD="${LD-ld} -m $emul"
9357 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9358 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9359 # Find out what ABI is being produced by ac_compile, and set linker
9360 # options accordingly. Note that the listed cases only cover the
9361 # situations where additional linker options are needed (such as when
9362 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9363 # vice versa); the common cases where no linker options are needed do
9364 # not appear in the list.
9365 echo 'int i;' > conftest.$ac_ext
9366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9367 (eval $ac_compile) 2>&5
9369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9370 test $ac_status = 0; }; then
9371 case `/usr/bin/file conftest.o` in
9374 x86_64-*kfreebsd*-gnu)
9375 LD="${LD-ld} -m elf_i386_fbsd"
9378 case `/usr/bin/file conftest.o` in
9380 LD="${LD-ld} -m elf32_x86_64"
9383 LD="${LD-ld} -m elf_i386"
9387 powerpc64le-*linux*)
9388 LD="${LD-ld} -m elf32lppclinux"
9391 LD="${LD-ld} -m elf32ppclinux"
9394 LD="${LD-ld} -m elf_s390"
9397 LD="${LD-ld} -m elf32_sparc"
9403 x86_64-*kfreebsd*-gnu)
9404 LD="${LD-ld} -m elf_x86_64_fbsd"
9407 LD="${LD-ld} -m elf_x86_64"
9410 LD="${LD-ld} -m elf64lppc"
9413 LD="${LD-ld} -m elf64ppc"
9415 s390*-*linux*|s390*-*tpf*)
9416 LD="${LD-ld} -m elf64_s390"
9419 LD="${LD-ld} -m elf64_sparc"
9429 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9431 CFLAGS="$CFLAGS -belf"
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9433 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9434 if ${lt_cv_cc_needs_belf+:} false; then :
9435 $as_echo_n "(cached) " >&6
9438 ac_cpp='$CPP $CPPFLAGS'
9439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444 /* end confdefs.h. */
9454 if ac_fn_c_try_link "$LINENO"; then :
9455 lt_cv_cc_needs_belf=yes
9457 lt_cv_cc_needs_belf=no
9459 rm -f core conftest.err conftest.$ac_objext \
9460 conftest$ac_exeext conftest.$ac_ext
9462 ac_cpp='$CPP $CPPFLAGS'
9463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9469 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9470 if test yes != "$lt_cv_cc_needs_belf"; then
9471 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9476 # Find out what ABI is being produced by ac_compile, and set linker
9477 # options accordingly.
9478 echo 'int i;' > conftest.$ac_ext
9479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9480 (eval $ac_compile) 2>&5
9482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9483 test $ac_status = 0; }; then
9484 case `/usr/bin/file conftest.o` in
9486 case $lt_cv_prog_gnu_ld in
9489 i?86-*-solaris*|x86_64-*-solaris*)
9490 LD="${LD-ld} -m elf_x86_64"
9493 LD="${LD-ld} -m elf64_sparc"
9496 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9497 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9502 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9514 need_locks=$enable_libtool_lock
9516 if test -n "$ac_tool_prefix"; then
9517 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9518 set dummy ${ac_tool_prefix}mt; ac_word=$2
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9520 $as_echo_n "checking for $ac_word... " >&6; }
9521 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9522 $as_echo_n "(cached) " >&6
9524 if test -n "$MANIFEST_TOOL"; then
9525 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531 test -z "$as_dir" && as_dir=.
9532 for ac_exec_ext in '' $ac_executable_extensions; do
9533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9534 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9544 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9545 if test -n "$MANIFEST_TOOL"; then
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9547 $as_echo "$MANIFEST_TOOL" >&6; }
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9550 $as_echo "no" >&6; }
9555 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9556 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9557 # Extract the first word of "mt", so it can be a program name with args.
9558 set dummy mt; ac_word=$2
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9560 $as_echo_n "checking for $ac_word... " >&6; }
9561 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9562 $as_echo_n "(cached) " >&6
9564 if test -n "$ac_ct_MANIFEST_TOOL"; then
9565 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9571 test -z "$as_dir" && as_dir=.
9572 for ac_exec_ext in '' $ac_executable_extensions; do
9573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9574 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9584 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9585 if test -n "$ac_ct_MANIFEST_TOOL"; then
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9587 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590 $as_echo "no" >&6; }
9593 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9596 case $cross_compiling:$ac_tool_warned in
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9600 ac_tool_warned=yes ;;
9602 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9605 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9608 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9610 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9611 if ${lt_cv_path_mainfest_tool+:} false; then :
9612 $as_echo_n "(cached) " >&6
9614 lt_cv_path_mainfest_tool=no
9615 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9616 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9617 cat conftest.err >&5
9618 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9619 lt_cv_path_mainfest_tool=yes
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9624 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9625 if test yes != "$lt_cv_path_mainfest_tool"; then
9635 rhapsody* | darwin*)
9636 if test -n "$ac_tool_prefix"; then
9637 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9638 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640 $as_echo_n "checking for $ac_word... " >&6; }
9641 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9642 $as_echo_n "(cached) " >&6
9644 if test -n "$DSYMUTIL"; then
9645 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651 test -z "$as_dir" && as_dir=.
9652 for ac_exec_ext in '' $ac_executable_extensions; do
9653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9654 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9664 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9665 if test -n "$DSYMUTIL"; then
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9667 $as_echo "$DSYMUTIL" >&6; }
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9670 $as_echo "no" >&6; }
9675 if test -z "$ac_cv_prog_DSYMUTIL"; then
9676 ac_ct_DSYMUTIL=$DSYMUTIL
9677 # Extract the first word of "dsymutil", so it can be a program name with args.
9678 set dummy dsymutil; ac_word=$2
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9680 $as_echo_n "checking for $ac_word... " >&6; }
9681 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9682 $as_echo_n "(cached) " >&6
9684 if test -n "$ac_ct_DSYMUTIL"; then
9685 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9691 test -z "$as_dir" && as_dir=.
9692 for ac_exec_ext in '' $ac_executable_extensions; do
9693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9694 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9704 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9705 if test -n "$ac_ct_DSYMUTIL"; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9707 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 $as_echo "no" >&6; }
9713 if test "x$ac_ct_DSYMUTIL" = x; then
9716 case $cross_compiling:$ac_tool_warned in
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9720 ac_tool_warned=yes ;;
9722 DSYMUTIL=$ac_ct_DSYMUTIL
9725 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9728 if test -n "$ac_tool_prefix"; then
9729 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9730 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9732 $as_echo_n "checking for $ac_word... " >&6; }
9733 if ${ac_cv_prog_NMEDIT+:} false; then :
9734 $as_echo_n "(cached) " >&6
9736 if test -n "$NMEDIT"; then
9737 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9743 test -z "$as_dir" && as_dir=.
9744 for ac_exec_ext in '' $ac_executable_extensions; do
9745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9746 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9756 NMEDIT=$ac_cv_prog_NMEDIT
9757 if test -n "$NMEDIT"; then
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9759 $as_echo "$NMEDIT" >&6; }
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9762 $as_echo "no" >&6; }
9767 if test -z "$ac_cv_prog_NMEDIT"; then
9768 ac_ct_NMEDIT=$NMEDIT
9769 # Extract the first word of "nmedit", so it can be a program name with args.
9770 set dummy nmedit; ac_word=$2
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9772 $as_echo_n "checking for $ac_word... " >&6; }
9773 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9774 $as_echo_n "(cached) " >&6
9776 if test -n "$ac_ct_NMEDIT"; then
9777 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783 test -z "$as_dir" && as_dir=.
9784 for ac_exec_ext in '' $ac_executable_extensions; do
9785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9786 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9796 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9797 if test -n "$ac_ct_NMEDIT"; then
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9799 $as_echo "$ac_ct_NMEDIT" >&6; }
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9802 $as_echo "no" >&6; }
9805 if test "x$ac_ct_NMEDIT" = x; then
9808 case $cross_compiling:$ac_tool_warned in
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9812 ac_tool_warned=yes ;;
9814 NMEDIT=$ac_ct_NMEDIT
9817 NMEDIT="$ac_cv_prog_NMEDIT"
9820 if test -n "$ac_tool_prefix"; then
9821 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9822 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9824 $as_echo_n "checking for $ac_word... " >&6; }
9825 if ${ac_cv_prog_LIPO+:} false; then :
9826 $as_echo_n "(cached) " >&6
9828 if test -n "$LIPO"; then
9829 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835 test -z "$as_dir" && as_dir=.
9836 for ac_exec_ext in '' $ac_executable_extensions; do
9837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9838 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9848 LIPO=$ac_cv_prog_LIPO
9849 if test -n "$LIPO"; then
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9851 $as_echo "$LIPO" >&6; }
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9854 $as_echo "no" >&6; }
9859 if test -z "$ac_cv_prog_LIPO"; then
9861 # Extract the first word of "lipo", so it can be a program name with args.
9862 set dummy lipo; ac_word=$2
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9864 $as_echo_n "checking for $ac_word... " >&6; }
9865 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9866 $as_echo_n "(cached) " >&6
9868 if test -n "$ac_ct_LIPO"; then
9869 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9875 test -z "$as_dir" && as_dir=.
9876 for ac_exec_ext in '' $ac_executable_extensions; do
9877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9878 ac_cv_prog_ac_ct_LIPO="lipo"
9879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9888 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9889 if test -n "$ac_ct_LIPO"; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9891 $as_echo "$ac_ct_LIPO" >&6; }
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894 $as_echo "no" >&6; }
9897 if test "x$ac_ct_LIPO" = x; then
9900 case $cross_compiling:$ac_tool_warned in
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9904 ac_tool_warned=yes ;;
9909 LIPO="$ac_cv_prog_LIPO"
9912 if test -n "$ac_tool_prefix"; then
9913 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9914 set dummy ${ac_tool_prefix}otool; ac_word=$2
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916 $as_echo_n "checking for $ac_word... " >&6; }
9917 if ${ac_cv_prog_OTOOL+:} false; then :
9918 $as_echo_n "(cached) " >&6
9920 if test -n "$OTOOL"; then
9921 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927 test -z "$as_dir" && as_dir=.
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9930 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9940 OTOOL=$ac_cv_prog_OTOOL
9941 if test -n "$OTOOL"; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9943 $as_echo "$OTOOL" >&6; }
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946 $as_echo "no" >&6; }
9951 if test -z "$ac_cv_prog_OTOOL"; then
9953 # Extract the first word of "otool", so it can be a program name with args.
9954 set dummy otool; ac_word=$2
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9956 $as_echo_n "checking for $ac_word... " >&6; }
9957 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9958 $as_echo_n "(cached) " >&6
9960 if test -n "$ac_ct_OTOOL"; then
9961 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967 test -z "$as_dir" && as_dir=.
9968 for ac_exec_ext in '' $ac_executable_extensions; do
9969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9970 ac_cv_prog_ac_ct_OTOOL="otool"
9971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9980 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9981 if test -n "$ac_ct_OTOOL"; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9983 $as_echo "$ac_ct_OTOOL" >&6; }
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986 $as_echo "no" >&6; }
9989 if test "x$ac_ct_OTOOL" = x; then
9992 case $cross_compiling:$ac_tool_warned in
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9996 ac_tool_warned=yes ;;
10001 OTOOL="$ac_cv_prog_OTOOL"
10004 if test -n "$ac_tool_prefix"; then
10005 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10006 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10008 $as_echo_n "checking for $ac_word... " >&6; }
10009 if ${ac_cv_prog_OTOOL64+:} false; then :
10010 $as_echo_n "(cached) " >&6
10012 if test -n "$OTOOL64"; then
10013 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10016 for as_dir in $PATH
10019 test -z "$as_dir" && as_dir=.
10020 for ac_exec_ext in '' $ac_executable_extensions; do
10021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10022 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10032 OTOOL64=$ac_cv_prog_OTOOL64
10033 if test -n "$OTOOL64"; then
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10035 $as_echo "$OTOOL64" >&6; }
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038 $as_echo "no" >&6; }
10043 if test -z "$ac_cv_prog_OTOOL64"; then
10044 ac_ct_OTOOL64=$OTOOL64
10045 # Extract the first word of "otool64", so it can be a program name with args.
10046 set dummy otool64; ac_word=$2
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10048 $as_echo_n "checking for $ac_word... " >&6; }
10049 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10050 $as_echo_n "(cached) " >&6
10052 if test -n "$ac_ct_OTOOL64"; then
10053 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056 for as_dir in $PATH
10059 test -z "$as_dir" && as_dir=.
10060 for ac_exec_ext in '' $ac_executable_extensions; do
10061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10062 ac_cv_prog_ac_ct_OTOOL64="otool64"
10063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10073 if test -n "$ac_ct_OTOOL64"; then
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10075 $as_echo "$ac_ct_OTOOL64" >&6; }
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10078 $as_echo "no" >&6; }
10081 if test "x$ac_ct_OTOOL64" = x; then
10084 case $cross_compiling:$ac_tool_warned in
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10088 ac_tool_warned=yes ;;
10090 OTOOL64=$ac_ct_OTOOL64
10093 OTOOL64="$ac_cv_prog_OTOOL64"
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10123 $as_echo_n "checking for -single_module linker flag... " >&6; }
10124 if ${lt_cv_apple_cc_single_mod+:} false; then :
10125 $as_echo_n "(cached) " >&6
10127 lt_cv_apple_cc_single_mod=no
10128 if test -z "$LT_MULTI_MODULE"; then
10129 # By default we will add the -single_module flag. You can override
10130 # by either setting the environment variable LT_MULTI_MODULE
10131 # non-empty at configure time, or by adding -multi_module to the
10133 rm -rf libconftest.dylib*
10134 echo "int foo(void){return 1;}" > conftest.c
10135 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10136 -dynamiclib -Wl,-single_module conftest.c" >&5
10137 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10138 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10140 # If there is a non-empty error log, and "single_module"
10141 # appears in it, assume the flag caused a linker warning
10142 if test -s conftest.err && $GREP single_module conftest.err; then
10143 cat conftest.err >&5
10144 # Otherwise, if the output was created with a 0 exit code from
10145 # the compiler, it worked.
10146 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10147 lt_cv_apple_cc_single_mod=yes
10149 cat conftest.err >&5
10151 rm -rf libconftest.dylib*
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10156 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10159 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10160 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10161 $as_echo_n "(cached) " >&6
10163 lt_cv_ld_exported_symbols_list=no
10164 save_LDFLAGS=$LDFLAGS
10165 echo "_main" > conftest.sym
10166 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168 /* end confdefs.h. */
10178 if ac_fn_c_try_link "$LINENO"; then :
10179 lt_cv_ld_exported_symbols_list=yes
10181 lt_cv_ld_exported_symbols_list=no
10183 rm -f core conftest.err conftest.$ac_objext \
10184 conftest$ac_exeext conftest.$ac_ext
10185 LDFLAGS=$save_LDFLAGS
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10189 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10192 $as_echo_n "checking for -force_load linker flag... " >&6; }
10193 if ${lt_cv_ld_force_load+:} false; then :
10194 $as_echo_n "(cached) " >&6
10196 lt_cv_ld_force_load=no
10197 cat > conftest.c << _LT_EOF
10198 int forced_loaded() { return 2;}
10200 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10201 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10202 echo "$AR cru libconftest.a conftest.o" >&5
10203 $AR cru libconftest.a conftest.o 2>&5
10204 echo "$RANLIB libconftest.a" >&5
10205 $RANLIB libconftest.a 2>&5
10206 cat > conftest.c << _LT_EOF
10207 int main() { return 0;}
10209 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10210 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10212 if test -s conftest.err && $GREP force_load conftest.err; then
10213 cat conftest.err >&5
10214 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10215 lt_cv_ld_force_load=yes
10217 cat conftest.err >&5
10219 rm -f conftest.err libconftest.a conftest conftest.c
10220 rm -rf conftest.dSYM
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10224 $as_echo "$lt_cv_ld_force_load" >&6; }
10226 rhapsody* | darwin1.[012])
10227 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10229 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10230 darwin*) # darwin 5.x on
10231 # if running on 10.5 or later, the deployment target defaults
10232 # to the OS version, if on x86, and 10.4, the deployment
10233 # target defaults to 10.4. Don't you love it?
10234 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10235 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10236 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10238 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10240 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10244 if test yes = "$lt_cv_apple_cc_single_mod"; then
10245 _lt_dar_single_mod='$single_module'
10247 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10248 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10250 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10252 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10253 _lt_dsymutil='~$DSYMUTIL $lib || :'
10260 # func_munge_path_list VARIABLE PATH
10261 # -----------------------------------
10262 # VARIABLE is name of variable containing _space_ separated list of
10263 # directories to be munged by the contents of PATH, which is string
10266 # string "DIR[ DIR]" will be prepended to VARIABLE
10268 # string "DIR[ DIR]" will be appended to VARIABLE
10269 # "DIRP[:DIRP]::[DIRA:]DIRA"
10270 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10271 # "DIRA[ DIRA]" will be appended to VARIABLE
10273 # VARIABLE will be replaced by "DIR[ DIR]"
10274 func_munge_path_list ()
10280 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10283 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10286 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10287 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10290 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10295 for ac_header in dlfcn.h
10297 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10299 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10300 cat >>confdefs.h <<_ACEOF
10301 #define HAVE_DLFCN_H 1
10319 enable_win32_dll=no
10323 # Check whether --enable-static was given.
10324 if test "${enable_static+set}" = set; then :
10325 enableval=$enable_static; p=${PACKAGE-default}
10327 yes) enable_static=yes ;;
10328 no) enable_static=no ;;
10331 # Look at the argument we got. We use all the common list separators.
10332 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10333 for pkg in $enableval; do
10335 if test "X$pkg" = "X$p"; then
10355 # Check whether --with-pic was given.
10356 if test "${with_pic+set}" = set; then :
10357 withval=$with_pic; lt_p=${PACKAGE-default}
10359 yes|no) pic_mode=$withval ;;
10362 # Look at the argument we got. We use all the common list separators.
10363 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10364 for lt_pkg in $withval; do
10366 if test "X$lt_pkg" = "X$lt_p"; then
10384 # Check whether --enable-fast-install was given.
10385 if test "${enable_fast_install+set}" = set; then :
10386 enableval=$enable_fast_install; p=${PACKAGE-default}
10388 yes) enable_fast_install=yes ;;
10389 no) enable_fast_install=no ;;
10391 enable_fast_install=no
10392 # Look at the argument we got. We use all the common list separators.
10393 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10394 for pkg in $enableval; do
10396 if test "X$pkg" = "X$p"; then
10397 enable_fast_install=yes
10404 enable_fast_install=yes
10414 shared_archive_member_spec=
10415 case $host,$enable_shared in
10416 power*-*-aix[5-9]*,yes)
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10418 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10420 # Check whether --with-aix-soname was given.
10421 if test "${with_aix_soname+set}" = set; then :
10422 withval=$with_aix_soname; case $withval in
10426 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10429 lt_cv_with_aix_soname=$with_aix_soname
10431 if ${lt_cv_with_aix_soname+:} false; then :
10432 $as_echo_n "(cached) " >&6
10434 lt_cv_with_aix_soname=aix
10437 with_aix_soname=$lt_cv_with_aix_soname
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10441 $as_echo "$with_aix_soname" >&6; }
10442 if test aix != "$with_aix_soname"; then
10443 # For the AIX way of multilib, we name the shared archive member
10444 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10445 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10446 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10447 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10448 if test 64 = "${OBJECT_MODE-32}"; then
10449 shared_archive_member_spec=shr_64
10451 shared_archive_member_spec=shr
10456 with_aix_soname=aix
10469 # This can be used to rebuild libtool when needed
10470 LIBTOOL_DEPS=$ltmain
10472 # Always use our own libtool.
10473 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10504 test -z "$LN_S" && LN_S="ln -s"
10519 if test -n "${ZSH_VERSION+set}"; then
10520 setopt NO_GLOB_SUBST
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10524 $as_echo_n "checking for objdir... " >&6; }
10525 if ${lt_cv_objdir+:} false; then :
10526 $as_echo_n "(cached) " >&6
10528 rm -f .libs 2>/dev/null
10529 mkdir .libs 2>/dev/null
10530 if test -d .libs; then
10533 # MS-DOS does not allow filenames that begin with a dot.
10536 rmdir .libs 2>/dev/null
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10539 $as_echo "$lt_cv_objdir" >&6; }
10540 objdir=$lt_cv_objdir
10546 cat >>confdefs.h <<_ACEOF
10547 #define LT_OBJDIR "$lt_cv_objdir/"
10555 # AIX sometimes has problems with the GCC collect2 program. For some
10556 # reason, if we set the COLLECT_NAMES environment variable, the problems
10557 # vanish in a puff of smoke.
10558 if test set != "${COLLECT_NAMES+set}"; then
10560 export COLLECT_NAMES
10565 # Global variables:
10567 can_build_shared=yes
10569 # All known linkers require a '.a' archive for static linking (except MSVC,
10570 # which needs '.lib').
10573 with_gnu_ld=$lt_cv_prog_gnu_ld
10578 # Set sane defaults for various variables
10579 test -z "$CC" && CC=cc
10580 test -z "$LTCC" && LTCC=$CC
10581 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10582 test -z "$LD" && LD=ld
10583 test -z "$ac_objext" && ac_objext=o
10585 func_cc_basename $compiler
10586 cc_basename=$func_cc_basename_result
10589 # Only perform the check for file, if the check method requires it
10590 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10591 case $deplibs_check_method in
10593 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10595 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10596 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10597 $as_echo_n "(cached) " >&6
10601 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10604 lt_save_MAGIC_CMD=$MAGIC_CMD
10605 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10606 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10607 for ac_dir in $ac_dummy; do
10609 test -z "$ac_dir" && ac_dir=.
10610 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10611 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10612 if test -n "$file_magic_test_file"; then
10613 case $deplibs_check_method in
10615 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10616 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10617 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10618 $EGREP "$file_magic_regex" > /dev/null; then
10623 *** Warning: the command libtool uses to detect shared libraries,
10624 *** $file_magic_cmd, produces output that libtool cannot recognize.
10625 *** The result is that libtool may fail to recognize shared libraries
10626 *** as such. This will affect the creation of libtool libraries that
10627 *** depend on shared libraries, but programs linked with such libtool
10628 *** libraries will work regardless of this problem. Nevertheless, you
10629 *** may want to report the problem to your system manager and/or to
10630 *** bug-libtool@gnu.org
10640 MAGIC_CMD=$lt_save_MAGIC_CMD
10645 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10646 if test -n "$MAGIC_CMD"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10648 $as_echo "$MAGIC_CMD" >&6; }
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; }
10658 if test -z "$lt_cv_path_MAGIC_CMD"; then
10659 if test -n "$ac_tool_prefix"; then
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10661 $as_echo_n "checking for file... " >&6; }
10662 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10663 $as_echo_n "(cached) " >&6
10667 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10670 lt_save_MAGIC_CMD=$MAGIC_CMD
10671 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10672 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10673 for ac_dir in $ac_dummy; do
10675 test -z "$ac_dir" && ac_dir=.
10676 if test -f "$ac_dir/file"; then
10677 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10678 if test -n "$file_magic_test_file"; then
10679 case $deplibs_check_method in
10681 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10682 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10683 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10684 $EGREP "$file_magic_regex" > /dev/null; then
10689 *** Warning: the command libtool uses to detect shared libraries,
10690 *** $file_magic_cmd, produces output that libtool cannot recognize.
10691 *** The result is that libtool may fail to recognize shared libraries
10692 *** as such. This will affect the creation of libtool libraries that
10693 *** depend on shared libraries, but programs linked with such libtool
10694 *** libraries will work regardless of this problem. Nevertheless, you
10695 *** may want to report the problem to your system manager and/or to
10696 *** bug-libtool@gnu.org
10706 MAGIC_CMD=$lt_save_MAGIC_CMD
10711 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10712 if test -n "$MAGIC_CMD"; then
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10714 $as_echo "$MAGIC_CMD" >&6; }
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10717 $as_echo "no" >&6; }
10730 # Use C for the default configuration in the libtool script
10734 ac_cpp='$CPP $CPPFLAGS'
10735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10740 # Source file extension for C test sources.
10743 # Object file extension for compiled C test sources.
10747 # Code to be used in simple compile tests
10748 lt_simple_compile_test_code="int some_variable = 0;"
10750 # Code to be used in simple link tests
10751 lt_simple_link_test_code='int main(){return(0);}'
10759 # If no C compiler was specified, use CC.
10762 # If no C compiler flags were specified, use CFLAGS.
10763 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10765 # Allow CC to be a program name with arguments.
10768 # Save the default compiler, since it gets overwritten when the other
10769 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10770 compiler_DEFAULT=$CC
10772 # save warnings/boilerplate of simple test code
10773 ac_outfile=conftest.$ac_objext
10774 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10775 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10776 _lt_compiler_boilerplate=`cat conftest.err`
10779 ac_outfile=conftest.$ac_objext
10780 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10781 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10782 _lt_linker_boilerplate=`cat conftest.err`
10787 ## There is no encapsulation within the following macros, do not change
10788 ## the running order or otherwise move them around unless you know exactly
10789 ## what you are doing...
10790 if test -n "$compiler"; then
10792 lt_prog_compiler_no_builtin_flag=
10794 if test yes = "$GCC"; then
10795 case $cc_basename in
10797 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10799 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10803 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10804 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10805 $as_echo_n "(cached) " >&6
10807 lt_cv_prog_compiler_rtti_exceptions=no
10808 ac_outfile=conftest.$ac_objext
10809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10810 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10811 # Insert the option either (1) after the last *FLAGS variable, or
10812 # (2) before a word containing "conftest.", or (3) at the end.
10813 # Note that $ac_compile itself does not contain backslashes and begins
10814 # with a dollar sign (not a hyphen), so the echo should work correctly.
10815 # The option is referenced via a variable to avoid confusing sed.
10816 lt_compile=`echo "$ac_compile" | $SED \
10817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10819 -e 's:$: $lt_compiler_flag:'`
10820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10821 (eval "$lt_compile" 2>conftest.err)
10823 cat conftest.err >&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 if (exit $ac_status) && test -s "$ac_outfile"; then
10826 # The compiler can only warn and ignore the option if not recognized
10827 # So say no if there are warnings other than the usual output.
10828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10830 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10831 lt_cv_prog_compiler_rtti_exceptions=yes
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10838 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10840 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10841 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10853 lt_prog_compiler_wl=
10854 lt_prog_compiler_pic=
10855 lt_prog_compiler_static=
10858 if test yes = "$GCC"; then
10859 lt_prog_compiler_wl='-Wl,'
10860 lt_prog_compiler_static='-static'
10864 # All AIX code is PIC.
10865 if test ia64 = "$host_cpu"; then
10866 # AIX 5 now supports IA64 processor
10867 lt_prog_compiler_static='-Bstatic'
10869 lt_prog_compiler_pic='-fPIC'
10875 # see comment about AmigaOS4 .so support
10876 lt_prog_compiler_pic='-fPIC'
10879 # FIXME: we need at least 68020 code to build shared libraries, but
10880 # adding the '-m68020' flag to GCC prevents building anything better,
10882 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10887 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10888 # PIC is the default for these OSes.
10891 mingw* | cygwin* | pw32* | os2* | cegcc*)
10892 # This hack is so that the source file can tell whether it is being
10893 # built for inclusion in a dll (and should export symbols for example).
10894 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10895 # (--disable-auto-import) libraries
10896 lt_prog_compiler_pic='-DDLL_EXPORT'
10899 lt_prog_compiler_static='$wl-static'
10904 darwin* | rhapsody*)
10905 # PIC is the default on this platform
10906 # Common symbols not allowed in MH_DYLIB files
10907 lt_prog_compiler_pic='-fno-common'
10911 # PIC is the default for Haiku.
10912 # The "-static" flag exists, but is broken.
10913 lt_prog_compiler_static=
10917 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10918 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10919 # sets the default TLS model and affects inlining.
10925 lt_prog_compiler_pic='-fPIC'
10931 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10932 # Instead, we relocate shared libraries at runtime.
10936 # Just because we use GCC doesn't mean we suddenly get shared libraries
10937 # on systems that don't support them.
10938 lt_prog_compiler_can_build_shared=no
10943 # QNX uses GNU C++, but need to define -shared option too, otherwise
10944 # it will coredump.
10945 lt_prog_compiler_pic='-fPIC -shared'
10949 if test -d /usr/nec; then
10950 lt_prog_compiler_pic=-Kconform_pic
10955 lt_prog_compiler_pic='-fPIC'
10959 case $cc_basename in
10960 nvcc*) # Cuda Compiler Driver 2.2
10961 lt_prog_compiler_wl='-Xlinker '
10962 if test -n "$lt_prog_compiler_pic"; then
10963 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10968 # PORTME Check for flag to pass linker flags through the system compiler.
10971 lt_prog_compiler_wl='-Wl,'
10972 if test ia64 = "$host_cpu"; then
10973 # AIX 5 now supports IA64 processor
10974 lt_prog_compiler_static='-Bstatic'
10976 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10980 darwin* | rhapsody*)
10981 # PIC is the default on this platform
10982 # Common symbols not allowed in MH_DYLIB files
10983 lt_prog_compiler_pic='-fno-common'
10984 case $cc_basename in
10986 # NAG Fortran compiler
10987 lt_prog_compiler_wl='-Wl,-Wl,,'
10988 lt_prog_compiler_pic='-PIC'
10989 lt_prog_compiler_static='-Bstatic'
10994 mingw* | cygwin* | pw32* | os2* | cegcc*)
10995 # This hack is so that the source file can tell whether it is being
10996 # built for inclusion in a dll (and should export symbols for example).
10997 lt_prog_compiler_pic='-DDLL_EXPORT'
11000 lt_prog_compiler_static='$wl-static'
11005 hpux9* | hpux10* | hpux11*)
11006 lt_prog_compiler_wl='-Wl,'
11007 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11008 # not for PA HP-UX.
11014 lt_prog_compiler_pic='+Z'
11017 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11018 lt_prog_compiler_static='$wl-a ${wl}archive'
11021 irix5* | irix6* | nonstopux*)
11022 lt_prog_compiler_wl='-Wl,'
11023 # PIC (with -KPIC) is the default.
11024 lt_prog_compiler_static='-non_shared'
11027 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11028 case $cc_basename in
11029 # old Intel for x86_64, which still supported -KPIC.
11031 lt_prog_compiler_wl='-Wl,'
11032 lt_prog_compiler_pic='-KPIC'
11033 lt_prog_compiler_static='-static'
11035 # icc used to be incompatible with GCC.
11036 # ICC 10 doesn't accept -KPIC any more.
11038 lt_prog_compiler_wl='-Wl,'
11039 lt_prog_compiler_pic='-fPIC'
11040 lt_prog_compiler_static='-static'
11042 # Lahey Fortran 8.1.
11044 lt_prog_compiler_wl='-Wl,'
11045 lt_prog_compiler_pic='--shared'
11046 lt_prog_compiler_static='--static'
11049 # NAG Fortran compiler
11050 lt_prog_compiler_wl='-Wl,-Wl,,'
11051 lt_prog_compiler_pic='-PIC'
11052 lt_prog_compiler_static='-Bstatic'
11055 # Fabrice Bellard et al's Tiny C Compiler
11056 lt_prog_compiler_wl='-Wl,'
11057 lt_prog_compiler_pic='-fPIC'
11058 lt_prog_compiler_static='-static'
11060 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11061 # Portland Group compilers (*not* the Pentium gcc compiler,
11062 # which looks to be a dead project)
11063 lt_prog_compiler_wl='-Wl,'
11064 lt_prog_compiler_pic='-fpic'
11065 lt_prog_compiler_static='-Bstatic'
11068 lt_prog_compiler_wl='-Wl,'
11069 # All Alpha code is PIC.
11070 lt_prog_compiler_static='-non_shared'
11072 xl* | bgxl* | bgf* | mpixl*)
11073 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11074 lt_prog_compiler_wl='-Wl,'
11075 lt_prog_compiler_pic='-qpic'
11076 lt_prog_compiler_static='-qstaticlink'
11079 case `$CC -V 2>&1 | sed 5q` in
11080 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11081 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11082 lt_prog_compiler_pic='-KPIC'
11083 lt_prog_compiler_static='-Bstatic'
11084 lt_prog_compiler_wl=''
11086 *Sun\ F* | *Sun*Fortran*)
11087 lt_prog_compiler_pic='-KPIC'
11088 lt_prog_compiler_static='-Bstatic'
11089 lt_prog_compiler_wl='-Qoption ld '
11093 lt_prog_compiler_pic='-KPIC'
11094 lt_prog_compiler_static='-Bstatic'
11095 lt_prog_compiler_wl='-Wl,'
11097 *Intel*\ [CF]*Compiler*)
11098 lt_prog_compiler_wl='-Wl,'
11099 lt_prog_compiler_pic='-fPIC'
11100 lt_prog_compiler_static='-static'
11103 lt_prog_compiler_wl='-Wl,'
11104 lt_prog_compiler_pic='-fpic'
11105 lt_prog_compiler_static='-Bstatic'
11113 lt_prog_compiler_pic='-KPIC'
11114 lt_prog_compiler_static='-Bstatic'
11118 # QNX uses GNU C++, but need to define -shared option too, otherwise
11119 # it will coredump.
11120 lt_prog_compiler_pic='-fPIC -shared'
11123 osf3* | osf4* | osf5*)
11124 lt_prog_compiler_wl='-Wl,'
11125 # All OSF/1 code is PIC.
11126 lt_prog_compiler_static='-non_shared'
11130 lt_prog_compiler_static='-non_shared'
11134 lt_prog_compiler_pic='-KPIC'
11135 lt_prog_compiler_static='-Bstatic'
11136 case $cc_basename in
11137 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11138 lt_prog_compiler_wl='-Qoption ld ';;
11140 lt_prog_compiler_wl='-Wl,';;
11145 lt_prog_compiler_wl='-Qoption ld '
11146 lt_prog_compiler_pic='-PIC'
11147 lt_prog_compiler_static='-Bstatic'
11150 sysv4 | sysv4.2uw2* | sysv4.3*)
11151 lt_prog_compiler_wl='-Wl,'
11152 lt_prog_compiler_pic='-KPIC'
11153 lt_prog_compiler_static='-Bstatic'
11157 if test -d /usr/nec; then
11158 lt_prog_compiler_pic='-Kconform_pic'
11159 lt_prog_compiler_static='-Bstatic'
11163 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11164 lt_prog_compiler_wl='-Wl,'
11165 lt_prog_compiler_pic='-KPIC'
11166 lt_prog_compiler_static='-Bstatic'
11170 lt_prog_compiler_wl='-Wl,'
11171 lt_prog_compiler_can_build_shared=no
11175 lt_prog_compiler_pic='-pic'
11176 lt_prog_compiler_static='-Bstatic'
11180 lt_prog_compiler_can_build_shared=no
11186 # For platforms that do not support PIC, -DPIC is meaningless:
11188 lt_prog_compiler_pic=
11191 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11196 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11197 if ${lt_cv_prog_compiler_pic+:} false; then :
11198 $as_echo_n "(cached) " >&6
11200 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11203 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11204 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11207 # Check to make sure the PIC flag actually works.
11209 if test -n "$lt_prog_compiler_pic"; then
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11211 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11212 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11213 $as_echo_n "(cached) " >&6
11215 lt_cv_prog_compiler_pic_works=no
11216 ac_outfile=conftest.$ac_objext
11217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11218 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11219 # Insert the option either (1) after the last *FLAGS variable, or
11220 # (2) before a word containing "conftest.", or (3) at the end.
11221 # Note that $ac_compile itself does not contain backslashes and begins
11222 # with a dollar sign (not a hyphen), so the echo should work correctly.
11223 # The option is referenced via a variable to avoid confusing sed.
11224 lt_compile=`echo "$ac_compile" | $SED \
11225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11227 -e 's:$: $lt_compiler_flag:'`
11228 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11229 (eval "$lt_compile" 2>conftest.err)
11231 cat conftest.err >&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 if (exit $ac_status) && test -s "$ac_outfile"; then
11234 # The compiler can only warn and ignore the option if not recognized
11235 # So say no if there are warnings other than the usual output.
11236 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11237 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11238 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11239 lt_cv_prog_compiler_pic_works=yes
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11246 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11248 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11249 case $lt_prog_compiler_pic in
11251 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11254 lt_prog_compiler_pic=
11255 lt_prog_compiler_can_build_shared=no
11271 # Check to make sure the static flag actually works.
11273 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11275 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11276 if ${lt_cv_prog_compiler_static_works+:} false; then :
11277 $as_echo_n "(cached) " >&6
11279 lt_cv_prog_compiler_static_works=no
11280 save_LDFLAGS=$LDFLAGS
11281 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11282 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11283 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11284 # The linker can only warn and ignore the option if not recognized
11285 # So say no if there are warnings
11286 if test -s conftest.err; then
11287 # Append any errors to the config.log.
11288 cat conftest.err 1>&5
11289 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11291 if diff conftest.exp conftest.er2 >/dev/null; then
11292 lt_cv_prog_compiler_static_works=yes
11295 lt_cv_prog_compiler_static_works=yes
11299 LDFLAGS=$save_LDFLAGS
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11303 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11305 if test yes = "$lt_cv_prog_compiler_static_works"; then
11308 lt_prog_compiler_static=
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11318 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11319 if ${lt_cv_prog_compiler_c_o+:} false; then :
11320 $as_echo_n "(cached) " >&6
11322 lt_cv_prog_compiler_c_o=no
11323 $RM -r conftest 2>/dev/null
11327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11329 lt_compiler_flag="-o out/conftest2.$ac_objext"
11330 # Insert the option either (1) after the last *FLAGS variable, or
11331 # (2) before a word containing "conftest.", or (3) at the end.
11332 # Note that $ac_compile itself does not contain backslashes and begins
11333 # with a dollar sign (not a hyphen), so the echo should work correctly.
11334 lt_compile=`echo "$ac_compile" | $SED \
11335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11337 -e 's:$: $lt_compiler_flag:'`
11338 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11339 (eval "$lt_compile" 2>out/conftest.err)
11341 cat out/conftest.err >&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11345 # The compiler can only warn and ignore the option if not recognized
11346 # So say no if there are warnings
11347 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11348 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11349 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11350 lt_cv_prog_compiler_c_o=yes
11355 # SGI C++ compiler will create directory out/ii_files/ for
11356 # template instantiation
11357 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11358 $RM out/* && rmdir out
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11365 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11373 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11374 if ${lt_cv_prog_compiler_c_o+:} false; then :
11375 $as_echo_n "(cached) " >&6
11377 lt_cv_prog_compiler_c_o=no
11378 $RM -r conftest 2>/dev/null
11382 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11384 lt_compiler_flag="-o out/conftest2.$ac_objext"
11385 # Insert the option either (1) after the last *FLAGS variable, or
11386 # (2) before a word containing "conftest.", or (3) at the end.
11387 # Note that $ac_compile itself does not contain backslashes and begins
11388 # with a dollar sign (not a hyphen), so the echo should work correctly.
11389 lt_compile=`echo "$ac_compile" | $SED \
11390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11392 -e 's:$: $lt_compiler_flag:'`
11393 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11394 (eval "$lt_compile" 2>out/conftest.err)
11396 cat out/conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11400 # The compiler can only warn and ignore the option if not recognized
11401 # So say no if there are warnings
11402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11403 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11404 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11405 lt_cv_prog_compiler_c_o=yes
11410 # SGI C++ compiler will create directory out/ii_files/ for
11411 # template instantiation
11412 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11413 $RM out/* && rmdir out
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11420 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11425 hard_links=nottested
11426 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11427 # do not overwrite the value of need_locks provided by the user
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11429 $as_echo_n "checking if we can lock with hard links... " >&6; }
11432 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11434 ln conftest.a conftest.b 2>&5 || hard_links=no
11435 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11437 $as_echo "$hard_links" >&6; }
11438 if test no = "$hard_links"; then
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11440 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11453 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11456 allow_undefined_flag=
11457 always_export_symbols=no
11459 archive_expsym_cmds=
11460 compiler_needs_object=no
11461 enable_shared_with_static_runtimes=no
11462 export_dynamic_flag_spec=
11463 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11464 hardcode_automatic=no
11466 hardcode_direct_absolute=no
11467 hardcode_libdir_flag_spec=
11468 hardcode_libdir_separator=
11469 hardcode_minus_L=no
11470 hardcode_shlibpath_var=unsupported
11472 link_all_deplibs=unknown
11474 module_expsym_cmds=
11475 old_archive_from_new_cmds=
11476 old_archive_from_expsyms_cmds=
11477 thread_safe_flag_spec=
11478 whole_archive_flag_spec=
11479 # include_expsyms should be a list of space-separated symbols to be *always*
11480 # included in the symbol list
11482 # exclude_expsyms can be an extended regexp of symbols to exclude
11483 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11484 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11485 # as well as any symbol that contains 'd'.
11486 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11487 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11488 # platforms (ab)use it in PIC code, but their linkers get confused if
11489 # the symbol is explicitly referenced. Since portable code cannot
11490 # rely on this symbol name, it's probably fine to never include it in
11491 # preloaded symbol tables.
11492 # Exclude shared library initialization/finalization symbols.
11493 extract_expsyms_cmds=
11496 cygwin* | mingw* | pw32* | cegcc*)
11497 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11498 # When not using gcc, we currently assume that we are using
11499 # Microsoft Visual C++.
11500 if test yes != "$GCC"; then
11505 # we just hope/assume this is gcc and not c89 (= MSVC++)
11508 openbsd* | bitrig*)
11515 # On some targets, GNU ld is compatible enough with the native linker
11516 # that we're better off using the native interface for both.
11517 lt_use_gnu_ld_interface=no
11518 if test yes = "$with_gnu_ld"; then
11521 # The AIX port of GNU ld has always aspired to compatibility
11522 # with the native linker. However, as the warning in the GNU ld
11523 # block says, versions before 2.19.5* couldn't really create working
11524 # shared libraries, regardless of the interface used.
11525 case `$LD -v 2>&1` in
11526 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11527 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11528 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11530 lt_use_gnu_ld_interface=yes
11535 lt_use_gnu_ld_interface=yes
11540 if test yes = "$lt_use_gnu_ld_interface"; then
11541 # If archive_cmds runs LD, not CC, wlarc should be empty
11544 # Set some defaults for GNU ld with shared library support. These
11545 # are reset later if shared libraries are not supported. Putting them
11546 # here allows them to be overridden if necessary.
11547 runpath_var=LD_RUN_PATH
11548 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11549 export_dynamic_flag_spec='$wl--export-dynamic'
11550 # ancient GNU ld didn't support --whole-archive et. al.
11551 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11552 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11554 whole_archive_flag_spec=
11556 supports_anon_versioning=no
11557 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11558 *GNU\ gold*) supports_anon_versioning=yes ;;
11559 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11560 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11561 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11562 *\ 2.11.*) ;; # other 2.11 versions
11563 *) supports_anon_versioning=yes ;;
11566 # See if GNU ld supports shared libraries.
11569 # On AIX/PPC, the GNU linker is very broken
11570 if test ia64 != "$host_cpu"; then
11574 *** Warning: the GNU linker, at least up to release 2.19, is reported
11575 *** to be unable to reliably create shared libraries on AIX.
11576 *** Therefore, libtool is disabling shared libraries support. If you
11577 *** really care for shared libraries, you may want to install binutils
11578 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11579 *** You will then need to restart the configuration process.
11588 # see comment about AmigaOS4 .so support
11589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11590 archive_expsym_cmds=''
11593 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11594 hardcode_libdir_flag_spec='-L$libdir'
11595 hardcode_minus_L=yes
11601 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11602 allow_undefined_flag=unsupported
11603 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11604 # support --undefined. This deserves some investigation. FIXME
11605 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11611 cygwin* | mingw* | pw32* | cegcc*)
11612 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11613 # as there is no search path for DLLs.
11614 hardcode_libdir_flag_spec='-L$libdir'
11615 export_dynamic_flag_spec='$wl--export-all-symbols'
11616 allow_undefined_flag=unsupported
11617 always_export_symbols=no
11618 enable_shared_with_static_runtimes=yes
11619 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11620 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11622 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11624 # If the export-symbols file already is a .def file, use it as
11625 # is; otherwise, prepend EXPORTS...
11626 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11627 cp $export_symbols $output_objdir/$soname.def;
11629 echo EXPORTS > $output_objdir/$soname.def;
11630 cat $export_symbols >> $output_objdir/$soname.def;
11632 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11639 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11640 link_all_deplibs=yes
11644 hardcode_libdir_flag_spec='-L$libdir'
11645 hardcode_minus_L=yes
11646 allow_undefined_flag=unsupported
11648 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11649 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11650 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11651 $ECHO EXPORTS >> $output_objdir/$libname.def~
11652 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11653 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11654 emximp -o $lib $output_objdir/$libname.def'
11655 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11656 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11657 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11658 $ECHO EXPORTS >> $output_objdir/$libname.def~
11659 prefix_cmds="$SED"~
11660 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11661 prefix_cmds="$prefix_cmds -e 1d";
11663 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11664 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11665 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11666 emximp -o $lib $output_objdir/$libname.def'
11667 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11668 enable_shared_with_static_runtimes=yes
11673 hardcode_shlibpath_var=no
11674 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11675 export_dynamic_flag_spec='$wl-E'
11676 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11677 # Instead, shared libraries are loaded at an image base (0x10000000 by
11678 # default) and relocated if they conflict, which is a slow very memory
11679 # consuming and fragmenting process. To avoid this, we pick a random,
11680 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11681 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11682 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11683 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11686 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11688 if test linux-dietlibc = "$host_os"; then
11689 case $cc_basename in
11690 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11693 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11694 && test no = "$tmp_diet"
11696 tmp_addflag=' $pic_flag'
11697 tmp_sharedflag='-shared'
11698 case $cc_basename,$host_cpu in
11699 pgcc*) # Portland Group C compiler
11700 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11701 tmp_addflag=' $pic_flag'
11703 pgf77* | pgf90* | pgf95* | pgfortran*)
11704 # Portland Group f77 and f90 compilers
11705 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11706 tmp_addflag=' $pic_flag -Mnomain' ;;
11707 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11708 tmp_addflag=' -i_dynamic' ;;
11709 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11710 tmp_addflag=' -i_dynamic -nofor_main' ;;
11711 ifc* | ifort*) # Intel Fortran compiler
11712 tmp_addflag=' -nofor_main' ;;
11713 lf95*) # Lahey Fortran 8.1
11714 whole_archive_flag_spec=
11715 tmp_sharedflag='--shared' ;;
11716 nagfor*) # NAGFOR 5.3
11717 tmp_sharedflag='-Wl,-shared' ;;
11718 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11719 tmp_sharedflag='-qmkshrobj'
11721 nvcc*) # Cuda Compiler Driver 2.2
11722 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11723 compiler_needs_object=yes
11726 case `$CC -V 2>&1 | sed 5q` in
11727 *Sun\ C*) # Sun C 5.9
11728 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
11729 compiler_needs_object=yes
11730 tmp_sharedflag='-G' ;;
11731 *Sun\ F*) # Sun Fortran 8.3
11732 tmp_sharedflag='-G' ;;
11734 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11736 if test yes = "$supports_anon_versioning"; then
11737 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11738 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11739 echo "local: *; };" >> $output_objdir/$libname.ver~
11740 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11743 case $cc_basename in
11745 export_dynamic_flag_spec='-rdynamic'
11747 xlf* | bgf* | bgxlf* | mpixlf*)
11748 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11749 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11750 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11751 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11752 if test yes = "$supports_anon_versioning"; then
11753 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11754 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11755 echo "local: *; };" >> $output_objdir/$libname.ver~
11756 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11766 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11767 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11770 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11771 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11776 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11780 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11781 *** create shared libraries on Solaris systems. Therefore, libtool
11782 *** is disabling shared libraries support. We urge you to upgrade GNU
11783 *** binutils to release 2.9.1 or newer. Another option is to modify
11784 *** your PATH or compiler configuration so that the native linker is
11785 *** used, and then restart.
11788 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11789 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11790 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11797 case `$LD -v 2>&1` in
11798 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11802 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11803 *** reliably create shared libraries on SCO systems. Therefore, libtool
11804 *** is disabling shared libraries support. We urge you to upgrade GNU
11805 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11806 *** your PATH or compiler configuration so that the native linker is
11807 *** used, and then restart.
11812 # For security reasons, it is highly recommended that you always
11813 # use absolute paths for naming shared libraries, and exclude the
11814 # DT_RUNPATH tag from executables and libraries. But doing so
11815 # requires that you compile everything twice, which is a pain.
11816 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11817 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11819 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11828 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11830 hardcode_direct=yes
11831 hardcode_shlibpath_var=no
11835 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11836 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11837 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11844 if test no = "$ld_shlibs"; then
11846 hardcode_libdir_flag_spec=
11847 export_dynamic_flag_spec=
11848 whole_archive_flag_spec=
11851 # PORTME fill in a description of your system's linker (not GNU ld)
11854 allow_undefined_flag=unsupported
11855 always_export_symbols=yes
11856 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11857 # Note: this linker hardcodes the directories in LIBPATH if there
11858 # are no directories specified by -L.
11859 hardcode_minus_L=yes
11860 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11861 # Neither direct hardcoding nor static linking is supported with a
11863 hardcode_direct=unsupported
11868 if test ia64 = "$host_cpu"; then
11869 # On IA64, the linker does run time linking by default, so we don't
11870 # have to do anything special.
11871 aix_use_runtimelinking=no
11872 exp_sym_flag='-Bexport'
11875 # If we're using GNU nm, then we don't want the "-C" option.
11876 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11877 # Without the "-l" option, or with the "-B" option, AIX nm treats
11878 # weak defined symbols like other global defined symbols, whereas
11879 # GNU nm marks them as "W".
11880 # While the 'weak' keyword is ignored in the Export File, we need
11881 # it in the Import File for the 'aix-soname' feature, so we have
11882 # to replace the "-B" option with "-P" for AIX nm.
11883 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11884 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11886 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11888 aix_use_runtimelinking=no
11890 # Test if we are trying to use run time linking or normal
11891 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11892 # have runtime linking enabled, and use it for executables.
11893 # For shared libraries, we enable/disable runtime linking
11894 # depending on the kind of the shared library created -
11895 # when "with_aix_soname,aix_use_runtimelinking" is:
11896 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11897 # "aix,yes" lib.so shared, rtl:yes, for executables
11898 # lib.a static archive
11899 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11900 # lib.a(lib.so.V) shared, rtl:no, for executables
11901 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11902 # lib.a(lib.so.V) shared, rtl:no
11903 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11904 # lib.a static archive
11905 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11906 for ld_flag in $LDFLAGS; do
11907 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11908 aix_use_runtimelinking=yes
11912 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11913 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11914 # so we don't have lib.a shared libs to link our executables.
11915 # We have to force runtime linking in this case.
11916 aix_use_runtimelinking=yes
11917 LDFLAGS="$LDFLAGS -Wl,-brtl"
11922 exp_sym_flag='-bexport'
11923 no_entry_flag='-bnoentry'
11926 # When large executables or shared objects are built, AIX ld can
11927 # have problems creating the table of contents. If linking a library
11928 # or program results in "error TOC overflow" add -mminimal-toc to
11929 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11930 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11933 hardcode_direct=yes
11934 hardcode_direct_absolute=yes
11935 hardcode_libdir_separator=':'
11936 link_all_deplibs=yes
11937 file_list_spec='$wl-f,'
11938 case $with_aix_soname,$aix_use_runtimelinking in
11939 aix,*) ;; # traditional, no import file
11940 svr4,* | *,yes) # use import file
11941 # The Import File defines what to hardcode.
11943 hardcode_direct_absolute=no
11947 if test yes = "$GCC"; then
11948 case $host_os in aix4.[012]|aix4.[012].*)
11949 # We only want to do this on AIX 4.2 and lower, the check
11950 # below for broken collect2 doesn't work under 4.3+
11951 collect2name=`$CC -print-prog-name=collect2`
11952 if test -f "$collect2name" &&
11953 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11955 # We have reworked collect2
11958 # We have old collect2
11959 hardcode_direct=unsupported
11960 # It fails to find uninstalled libraries when the uninstalled
11961 # path is not listed in the libpath. Setting hardcode_minus_L
11962 # to unsupported forces relinking
11963 hardcode_minus_L=yes
11964 hardcode_libdir_flag_spec='-L$libdir'
11965 hardcode_libdir_separator=
11969 shared_flag='-shared'
11970 if test yes = "$aix_use_runtimelinking"; then
11971 shared_flag="$shared_flag "'$wl-G'
11973 # Need to ensure runtime linking is disabled for the traditional
11974 # shared library, or the linker may eventually find shared libraries
11975 # /with/ Import File - we do not want to mix them.
11976 shared_flag_aix='-shared'
11977 shared_flag_svr4='-shared $wl-G'
11980 if test ia64 = "$host_cpu"; then
11981 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11982 # chokes on -Wl,-G. The following line is correct:
11985 if test yes = "$aix_use_runtimelinking"; then
11986 shared_flag='$wl-G'
11988 shared_flag='$wl-bM:SRE'
11990 shared_flag_aix='$wl-bM:SRE'
11991 shared_flag_svr4='$wl-G'
11995 export_dynamic_flag_spec='$wl-bexpall'
11996 # It seems that -bexpall does not export symbols beginning with
11997 # underscore (_), so it is better to generate a list of symbols to export.
11998 always_export_symbols=yes
11999 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12000 # Warning - without using the other runtime loading flags (-brtl),
12001 # -berok will link without error, but may produce a broken library.
12002 allow_undefined_flag='-berok'
12003 # Determine the default libpath from the value encoded in an
12004 # empty executable.
12005 if test set = "${lt_cv_aix_libpath+set}"; then
12006 aix_libpath=$lt_cv_aix_libpath
12008 if ${lt_cv_aix_libpath_+:} false; then :
12009 $as_echo_n "(cached) " >&6
12011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012 /* end confdefs.h. */
12022 if ac_fn_c_try_link "$LINENO"; then :
12024 lt_aix_libpath_sed='
12025 /Import File Strings/,/^$/ {
12027 s/^0 *\([^ ]*\) *$/\1/
12031 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12032 # Check for a 64-bit object if we didn't find anything.
12033 if test -z "$lt_cv_aix_libpath_"; then
12034 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12037 rm -f core conftest.err conftest.$ac_objext \
12038 conftest$ac_exeext conftest.$ac_ext
12039 if test -z "$lt_cv_aix_libpath_"; then
12040 lt_cv_aix_libpath_=/usr/lib:/lib
12045 aix_libpath=$lt_cv_aix_libpath_
12048 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12049 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12051 if test ia64 = "$host_cpu"; then
12052 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12053 allow_undefined_flag="-z nodefs"
12054 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
12056 # Determine the default libpath from the value encoded in an
12057 # empty executable.
12058 if test set = "${lt_cv_aix_libpath+set}"; then
12059 aix_libpath=$lt_cv_aix_libpath
12061 if ${lt_cv_aix_libpath_+:} false; then :
12062 $as_echo_n "(cached) " >&6
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h. */
12075 if ac_fn_c_try_link "$LINENO"; then :
12077 lt_aix_libpath_sed='
12078 /Import File Strings/,/^$/ {
12080 s/^0 *\([^ ]*\) *$/\1/
12084 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12085 # Check for a 64-bit object if we didn't find anything.
12086 if test -z "$lt_cv_aix_libpath_"; then
12087 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12090 rm -f core conftest.err conftest.$ac_objext \
12091 conftest$ac_exeext conftest.$ac_ext
12092 if test -z "$lt_cv_aix_libpath_"; then
12093 lt_cv_aix_libpath_=/usr/lib:/lib
12098 aix_libpath=$lt_cv_aix_libpath_
12101 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12102 # Warning - without using the other run time loading flags,
12103 # -berok will link without error, but may produce a broken library.
12104 no_undefined_flag=' $wl-bernotok'
12105 allow_undefined_flag=' $wl-berok'
12106 if test yes = "$with_gnu_ld"; then
12107 # We only use this code for GNU lds that support --whole-archive.
12108 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12110 # Exported symbols can be pulled into shared objects from archives
12111 whole_archive_flag_spec='$convenience'
12113 archive_cmds_need_lc=yes
12114 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12115 # -brtl affects multiple linker settings, -berok does not and is overridden later
12116 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12117 if test svr4 != "$with_aix_soname"; then
12118 # This is similar to how AIX traditionally builds its shared libraries.
12119 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12121 if test aix != "$with_aix_soname"; then
12122 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12124 # used by -dlpreopen to get the symbols
12125 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12127 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12135 # see comment about AmigaOS4 .so support
12136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12137 archive_expsym_cmds=''
12140 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12141 hardcode_libdir_flag_spec='-L$libdir'
12142 hardcode_minus_L=yes
12148 export_dynamic_flag_spec=-rdynamic
12151 cygwin* | mingw* | pw32* | cegcc*)
12152 # When not using gcc, we currently assume that we are using
12153 # Microsoft Visual C++.
12154 # hardcode_libdir_flag_spec is actually meaningless, as there is
12155 # no search path for DLLs.
12156 case $cc_basename in
12159 hardcode_libdir_flag_spec=' '
12160 allow_undefined_flag=unsupported
12161 always_export_symbols=yes
12163 # Tell ltmain to make .lib files, not .a files.
12165 # Tell ltmain to make .dll files, not .so files.
12167 # FIXME: Setting linknames here is a bad hack.
12168 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12169 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12170 cp "$export_symbols" "$output_objdir/$soname.def";
12171 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12173 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12175 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12177 # The linker will not automatically build a static lib if we build a DLL.
12178 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12179 enable_shared_with_static_runtimes=yes
12180 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12181 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12183 old_postinstall_cmds='chmod 644 $oldlib'
12184 postlink_cmds='lt_outputfile="@OUTPUT@"~
12185 lt_tool_outputfile="@TOOL_OUTPUT@"~
12186 case $lt_outputfile in
12189 lt_outputfile=$lt_outputfile.exe
12190 lt_tool_outputfile=$lt_tool_outputfile.exe
12193 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12194 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12195 $RM "$lt_outputfile.manifest";
12199 # Assume MSVC wrapper
12200 hardcode_libdir_flag_spec=' '
12201 allow_undefined_flag=unsupported
12202 # Tell ltmain to make .lib files, not .a files.
12204 # Tell ltmain to make .dll files, not .so files.
12206 # FIXME: Setting linknames here is a bad hack.
12207 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12208 # The linker will automatically build a .lib file if we build a DLL.
12209 old_archive_from_new_cmds='true'
12210 # FIXME: Should let the user specify the lib program.
12211 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12212 enable_shared_with_static_runtimes=yes
12217 darwin* | rhapsody*)
12220 archive_cmds_need_lc=no
12222 hardcode_automatic=yes
12223 hardcode_shlibpath_var=unsupported
12224 if test yes = "$lt_cv_ld_force_load"; then
12225 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12228 whole_archive_flag_spec=''
12230 link_all_deplibs=yes
12231 allow_undefined_flag=$_lt_dar_allow_undefined
12232 case $cc_basename in
12233 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12234 *) _lt_dar_can_shared=$GCC ;;
12236 if test yes = "$_lt_dar_can_shared"; then
12237 output_verbose_link_cmd=func_echo_all
12238 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12239 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12240 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
12241 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
12250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12251 hardcode_libdir_flag_spec='-L$libdir'
12252 hardcode_shlibpath_var=no
12255 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12256 # support. Future versions do this automatically, but an explicit c++rt0.o
12257 # does not break anything, and helps significantly (at the cost of a little
12260 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12261 hardcode_libdir_flag_spec='-R$libdir'
12262 hardcode_direct=yes
12263 hardcode_shlibpath_var=no
12266 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12268 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12269 hardcode_direct=yes
12270 hardcode_minus_L=yes
12271 hardcode_shlibpath_var=no
12274 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12275 freebsd* | dragonfly*)
12276 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12277 hardcode_libdir_flag_spec='-R$libdir'
12278 hardcode_direct=yes
12279 hardcode_shlibpath_var=no
12283 if test yes = "$GCC"; then
12284 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12286 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12288 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12289 hardcode_libdir_separator=:
12290 hardcode_direct=yes
12292 # hardcode_minus_L: Not really in the search PATH,
12293 # but as the default location of the library.
12294 hardcode_minus_L=yes
12295 export_dynamic_flag_spec='$wl-E'
12299 if test yes,no = "$GCC,$with_gnu_ld"; then
12300 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12302 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12304 if test no = "$with_gnu_ld"; then
12305 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12306 hardcode_libdir_separator=:
12307 hardcode_direct=yes
12308 hardcode_direct_absolute=yes
12309 export_dynamic_flag_spec='$wl-E'
12310 # hardcode_minus_L: Not really in the search PATH,
12311 # but as the default location of the library.
12312 hardcode_minus_L=yes
12317 if test yes,no = "$GCC,$with_gnu_ld"; then
12320 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12323 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12326 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12332 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12335 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12339 # Older versions of the 11.00 compiler do not understand -b yet
12340 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12342 $as_echo_n "checking if $CC understands -b... " >&6; }
12343 if ${lt_cv_prog_compiler__b+:} false; then :
12344 $as_echo_n "(cached) " >&6
12346 lt_cv_prog_compiler__b=no
12347 save_LDFLAGS=$LDFLAGS
12348 LDFLAGS="$LDFLAGS -b"
12349 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12350 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12351 # The linker can only warn and ignore the option if not recognized
12352 # So say no if there are warnings
12353 if test -s conftest.err; then
12354 # Append any errors to the config.log.
12355 cat conftest.err 1>&5
12356 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12358 if diff conftest.exp conftest.er2 >/dev/null; then
12359 lt_cv_prog_compiler__b=yes
12362 lt_cv_prog_compiler__b=yes
12366 LDFLAGS=$save_LDFLAGS
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12370 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12372 if test yes = "$lt_cv_prog_compiler__b"; then
12373 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12375 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12381 if test no = "$with_gnu_ld"; then
12382 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12383 hardcode_libdir_separator=:
12388 hardcode_shlibpath_var=no
12391 hardcode_direct=yes
12392 hardcode_direct_absolute=yes
12393 export_dynamic_flag_spec='$wl-E'
12395 # hardcode_minus_L: Not really in the search PATH,
12396 # but as the default location of the library.
12397 hardcode_minus_L=yes
12403 irix5* | irix6* | nonstopux*)
12404 if test yes = "$GCC"; then
12405 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12406 # Try to use the -exported_symbol ld option, if it does not
12407 # work, assume that -exports_file does not work either and
12408 # implicitly export all symbols.
12409 # This should be the same for all languages, so no per-tag cache variable.
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12411 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12412 if ${lt_cv_irix_exported_symbol+:} false; then :
12413 $as_echo_n "(cached) " >&6
12415 save_LDFLAGS=$LDFLAGS
12416 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12419 int foo (void) { return 0; }
12421 if ac_fn_c_try_link "$LINENO"; then :
12422 lt_cv_irix_exported_symbol=yes
12424 lt_cv_irix_exported_symbol=no
12426 rm -f core conftest.err conftest.$ac_objext \
12427 conftest$ac_exeext conftest.$ac_ext
12428 LDFLAGS=$save_LDFLAGS
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12431 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12432 if test yes = "$lt_cv_irix_exported_symbol"; then
12433 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
12436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12437 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
12439 archive_cmds_need_lc='no'
12440 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12441 hardcode_libdir_separator=:
12443 link_all_deplibs=yes
12447 case $cc_basename in
12449 # Fabrice Bellard et al's Tiny C Compiler
12451 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12457 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12458 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12460 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12462 hardcode_libdir_flag_spec='-R$libdir'
12463 hardcode_direct=yes
12464 hardcode_shlibpath_var=no
12468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12469 hardcode_direct=yes
12470 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12471 hardcode_libdir_separator=:
12472 hardcode_shlibpath_var=no
12478 openbsd* | bitrig*)
12479 if test -f /usr/libexec/ld.so; then
12480 hardcode_direct=yes
12481 hardcode_shlibpath_var=no
12482 hardcode_direct_absolute=yes
12483 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12484 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12485 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12486 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12487 export_dynamic_flag_spec='$wl-E'
12489 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12490 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12498 hardcode_libdir_flag_spec='-L$libdir'
12499 hardcode_minus_L=yes
12500 allow_undefined_flag=unsupported
12502 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12503 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12504 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12505 $ECHO EXPORTS >> $output_objdir/$libname.def~
12506 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12507 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12508 emximp -o $lib $output_objdir/$libname.def'
12509 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12510 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12511 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12512 $ECHO EXPORTS >> $output_objdir/$libname.def~
12513 prefix_cmds="$SED"~
12514 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12515 prefix_cmds="$prefix_cmds -e 1d";
12517 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12518 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12519 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12520 emximp -o $lib $output_objdir/$libname.def'
12521 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12522 enable_shared_with_static_runtimes=yes
12526 if test yes = "$GCC"; then
12527 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12528 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12530 allow_undefined_flag=' -expect_unresolved \*'
12531 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12533 archive_cmds_need_lc='no'
12534 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12535 hardcode_libdir_separator=:
12538 osf4* | osf5*) # as osf3* with the addition of -msym flag
12539 if test yes = "$GCC"; then
12540 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12541 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
12542 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12544 allow_undefined_flag=' -expect_unresolved \*'
12545 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
12546 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12547 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
12549 # Both c and cxx compiler support -rpath directly
12550 hardcode_libdir_flag_spec='-rpath $libdir'
12552 archive_cmds_need_lc='no'
12553 hardcode_libdir_separator=:
12557 no_undefined_flag=' -z defs'
12558 if test yes = "$GCC"; then
12560 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12561 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12562 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12564 case `$CC -V 2>&1` in
12567 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12568 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12569 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12573 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12574 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12575 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12579 hardcode_libdir_flag_spec='-R$libdir'
12580 hardcode_shlibpath_var=no
12582 solaris2.[0-5] | solaris2.[0-5].*) ;;
12584 # The compiler driver will combine and reorder linker options,
12585 # but understands '-z linker_flag'. GCC discards it without '$wl',
12586 # but is careful enough not to reorder.
12587 # Supported since Solaris 2.6 (maybe 2.5.1?)
12588 if test yes = "$GCC"; then
12589 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12591 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12595 link_all_deplibs=yes
12599 if test sequent = "$host_vendor"; then
12600 # Use $CC to link under sequent, because it throws in some extra .o
12601 # files that make .init and .fini sections work.
12602 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12604 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12606 hardcode_libdir_flag_spec='-L$libdir'
12607 hardcode_direct=yes
12608 hardcode_minus_L=yes
12609 hardcode_shlibpath_var=no
12613 case $host_vendor in
12615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12616 hardcode_direct=yes # is this really true???
12619 ## LD is ld it makes a PLAMLIB
12620 ## CC just makes a GrossModule.
12621 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12622 reload_cmds='$CC -r -o $output$reload_objs'
12626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12627 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12630 runpath_var='LD_RUN_PATH'
12631 hardcode_shlibpath_var=no
12635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12636 hardcode_shlibpath_var=no
12637 export_dynamic_flag_spec='-Bexport'
12641 if test -d /usr/nec; then
12642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12643 hardcode_shlibpath_var=no
12644 runpath_var=LD_RUN_PATH
12645 hardcode_runpath_var=yes
12650 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12651 no_undefined_flag='$wl-z,text'
12652 archive_cmds_need_lc=no
12653 hardcode_shlibpath_var=no
12654 runpath_var='LD_RUN_PATH'
12656 if test yes = "$GCC"; then
12657 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12658 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12660 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12661 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12665 sysv5* | sco3.2v5* | sco5v6*)
12666 # Note: We CANNOT use -z defs as we might desire, because we do not
12667 # link with -lc, and that would cause any symbols used from libc to
12668 # always be unresolved, which means just about no library would
12669 # ever link correctly. If we're not using GNU ld we use -z text
12670 # though, which does catch some bad symbols but isn't as heavy-handed
12672 no_undefined_flag='$wl-z,text'
12673 allow_undefined_flag='$wl-z,nodefs'
12674 archive_cmds_need_lc=no
12675 hardcode_shlibpath_var=no
12676 hardcode_libdir_flag_spec='$wl-R,$libdir'
12677 hardcode_libdir_separator=':'
12678 link_all_deplibs=yes
12679 export_dynamic_flag_spec='$wl-Bexport'
12680 runpath_var='LD_RUN_PATH'
12682 if test yes = "$GCC"; then
12683 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12684 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12686 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12687 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12693 hardcode_libdir_flag_spec='-L$libdir'
12694 hardcode_shlibpath_var=no
12702 if test sni = "$host_vendor"; then
12704 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12705 export_dynamic_flag_spec='$wl-Blargedynsym'
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12712 $as_echo "$ld_shlibs" >&6; }
12713 test no = "$ld_shlibs" && can_build_shared=no
12715 with_gnu_ld=$with_gnu_ld
12732 # Do we need to explicitly link libc?
12734 case "x$archive_cmds_need_lc" in
12736 # Assume -lc should be added
12737 archive_cmds_need_lc=yes
12739 if test yes,yes = "$GCC,$enable_shared"; then
12740 case $archive_cmds in
12742 # FIXME: we may have to deal with multi-command sequences.
12745 # Test whether the compiler implicitly links with -lc since on some
12746 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12747 # to ld, don't add -lc before -lgcc.
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12749 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12750 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12751 $as_echo_n "(cached) " >&6
12754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12757 (eval $ac_compile) 2>&5
12759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12760 test $ac_status = 0; } 2>conftest.err; then
12763 libobjs=conftest.$ac_objext
12765 wl=$lt_prog_compiler_wl
12766 pic_flag=$lt_prog_compiler_pic
12772 lt_save_allow_undefined_flag=$allow_undefined_flag
12773 allow_undefined_flag=
12774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12775 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12778 test $ac_status = 0; }
12780 lt_cv_archive_cmds_need_lc=no
12782 lt_cv_archive_cmds_need_lc=yes
12784 allow_undefined_flag=$lt_save_allow_undefined_flag
12786 cat conftest.err 1>&5
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12792 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12793 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12952 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12954 if test yes = "$GCC"; then
12956 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12957 *) lt_awk_arg='/^libraries:/' ;;
12960 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12961 *) lt_sed_strip_eq='s|=/|/|g' ;;
12963 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12964 case $lt_search_path_spec in
12966 # if the path contains ";" then we assume it to be the separator
12967 # otherwise default to the standard path separator (i.e. ":") - it is
12968 # assumed that no part of a normal pathname contains ";" but that should
12969 # okay in the real world where ";" in dirpaths is itself problematic.
12970 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12973 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12976 # Ok, now we have the path, separated by spaces, we can step through it
12977 # and add multilib dir if necessary...
12978 lt_tmp_lt_search_path_spec=
12979 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12980 # ...but if some path component already ends with the multilib dir we assume
12981 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12982 case "$lt_multi_os_dir; $lt_search_path_spec " in
12983 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12987 for lt_sys_path in $lt_search_path_spec; do
12988 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12989 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12990 elif test -n "$lt_multi_os_dir"; then
12991 test -d "$lt_sys_path" && \
12992 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12995 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12996 BEGIN {RS = " "; FS = "/|\n";} {
12999 for (lt_i = NF; lt_i > 0; lt_i--) {
13000 if ($lt_i != "" && $lt_i != ".") {
13001 if ($lt_i == "..") {
13004 if (lt_count == 0) {
13005 lt_foo = "/" $lt_i lt_foo;
13012 if (lt_foo != "") { lt_freq[lt_foo]++; }
13013 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13015 # AWK program above erroneously prepends '/' to C:/dos/paths
13018 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13019 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13021 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13023 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13025 library_names_spec=
13026 libname_spec='lib$name'
13030 postuninstall_cmds=
13034 shlibpath_overrides_runpath=unknown
13036 dynamic_linker="$host_os ld.so"
13037 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13038 need_lib_prefix=unknown
13039 hardcode_into_libs=no
13041 # when you set need_version to no, make sure it does not cause -set_version
13042 # flags to be left without arguments
13043 need_version=unknown
13049 version_type=linux # correct to gnu/linux during the next big refactor
13050 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13051 shlibpath_var=LIBPATH
13053 # AIX 3 has no versioning support, so we append a major version to the name.
13054 soname_spec='$libname$release$shared_ext$major'
13058 version_type=linux # correct to gnu/linux during the next big refactor
13061 hardcode_into_libs=yes
13062 if test ia64 = "$host_cpu"; then
13063 # AIX 5 supports IA64
13064 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13065 shlibpath_var=LD_LIBRARY_PATH
13067 # With GCC up to 2.95.x, collect2 would create an import file
13068 # for dependence libraries. The import file would start with
13069 # the line '#! .'. This would cause the generated library to
13070 # depend on '.', always an invalid library. This was fixed in
13071 # development snapshots of GCC prior to 3.0.
13073 aix4 | aix4.[01] | aix4.[01].*)
13074 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13076 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13079 can_build_shared=no
13083 # Using Import Files as archive members, it is possible to support
13084 # filename-based versioning of shared library archives on AIX. While
13085 # this would work for both with and without runtime linking, it will
13086 # prevent static linking of such archives. So we do filename-based
13087 # shared library versioning with .so extension only, which is used
13088 # when both runtime linking and shared linking is enabled.
13089 # Unfortunately, runtime linking may impact performance, so we do
13090 # not want this to be the default eventually. Also, we use the
13091 # versioned .so libs for executables only if there is the -brtl
13092 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13093 # To allow for filename-based versioning support, we need to create
13094 # libNAME.so.V as an archive file, containing:
13095 # *) an Import File, referring to the versioned filename of the
13096 # archive as well as the shared archive member, telling the
13097 # bitwidth (32 or 64) of that shared object, and providing the
13098 # list of exported symbols of that shared object, eventually
13099 # decorated with the 'weak' keyword
13100 # *) the shared object with the F_LOADONLY flag set, to really avoid
13101 # it being seen by the linker.
13102 # At run time we better use the real file rather than another symlink,
13103 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13105 case $with_aix_soname,$aix_use_runtimelinking in
13106 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13107 # soname into executable. Probably we can add versioning support to
13108 # collect2, so additional links can be useful in future.
13109 aix,yes) # traditional libtool
13110 dynamic_linker='AIX unversionable lib.so'
13111 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13112 # instead of lib<name>.a to let people know that these are not
13113 # typical AIX shared libraries.
13114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13116 aix,no) # traditional AIX only
13117 dynamic_linker='AIX lib.a(lib.so.V)'
13118 # We preserve .a as extension for shared libraries through AIX4.2
13119 # and later when we are not doing run time linking.
13120 library_names_spec='$libname$release.a $libname.a'
13121 soname_spec='$libname$release$shared_ext$major'
13123 svr4,*) # full svr4 only
13124 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13125 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13126 # We do not specify a path in Import Files, so LIBPATH fires.
13127 shlibpath_overrides_runpath=yes
13129 *,yes) # both, prefer svr4
13130 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13131 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13132 # unpreferred sharedlib libNAME.a needs extra handling
13133 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13134 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13135 # We do not specify a path in Import Files, so LIBPATH fires.
13136 shlibpath_overrides_runpath=yes
13138 *,no) # both, prefer aix
13139 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13140 library_names_spec='$libname$release.a $libname.a'
13141 soname_spec='$libname$release$shared_ext$major'
13142 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13143 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13144 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13147 shlibpath_var=LIBPATH
13154 # Since July 2007 AmigaOS4 officially supports .so libraries.
13155 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13156 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13159 library_names_spec='$libname.ixlibrary $libname.a'
13160 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13161 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13167 library_names_spec='$libname$shared_ext'
13168 dynamic_linker="$host_os ld.so"
13169 shlibpath_var=LIBRARY_PATH
13173 version_type=linux # correct to gnu/linux during the next big refactor
13175 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13176 soname_spec='$libname$release$shared_ext$major'
13177 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13178 shlibpath_var=LD_LIBRARY_PATH
13179 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13180 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13181 # the default ld.so.conf also contains /usr/contrib/lib and
13182 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13183 # libtool to hard-code these into programs
13186 cygwin* | mingw* | pw32* | cegcc*)
13187 version_type=windows
13192 case $GCC,$cc_basename in
13195 library_names_spec='$libname.dll.a'
13196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13197 postinstall_cmds='base_file=`basename \$file`~
13198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13199 dldir=$destdir/`dirname \$dlpath`~
13200 test -d \$dldir || mkdir -p \$dldir~
13201 $install_prog $dir/$dlname \$dldir/$dlname~
13202 chmod a+x \$dldir/$dlname~
13203 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13204 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13206 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13207 dlpath=$dir/\$dldll~
13209 shlibpath_overrides_runpath=yes
13213 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13214 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13216 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13219 # MinGW DLLs use traditional 'lib' prefix
13220 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13223 # pw32 DLLs use 'pw' prefix rather than 'lib'
13224 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13227 dynamic_linker='Win32 ld.exe'
13232 libname_spec='$name'
13233 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13234 library_names_spec='$libname.dll.lib'
13238 sys_lib_search_path_spec=
13241 for lt_path in $LIB
13244 # Let DOS variable expansion print the short 8.3 style file name.
13245 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13246 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13249 # Convert to MSYS style.
13250 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13253 # Convert to unix form, then to dos form, then back to unix form
13254 # but this time dos style (no spaces!) so that the unix form looks
13255 # like /cygdrive/c/PROGRA~1:/cygdr...
13256 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13257 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13258 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13261 sys_lib_search_path_spec=$LIB
13262 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13263 # It is most probably a Windows format PATH.
13264 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13266 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13268 # FIXME: find the short name or the path components, as spaces are
13269 # common. (e.g. "Program Files" -> "PROGRA~1")
13273 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13274 postinstall_cmds='base_file=`basename \$file`~
13275 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13276 dldir=$destdir/`dirname \$dlpath`~
13277 test -d \$dldir || mkdir -p \$dldir~
13278 $install_prog $dir/$dlname \$dldir/$dlname'
13279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13280 dlpath=$dir/\$dldll~
13282 shlibpath_overrides_runpath=yes
13283 dynamic_linker='Win32 link.exe'
13287 # Assume MSVC wrapper
13288 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13289 dynamic_linker='Win32 ld.exe'
13292 # FIXME: first we should search . and the directory the executable is in
13296 darwin* | rhapsody*)
13297 dynamic_linker="$host_os dyld"
13298 version_type=darwin
13301 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13302 soname_spec='$libname$release$major$shared_ext'
13303 shlibpath_overrides_runpath=yes
13304 shlibpath_var=DYLD_LIBRARY_PATH
13305 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13307 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13308 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13312 version_type=linux # correct to gnu/linux during the next big refactor
13315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13316 soname_spec='$libname$release$shared_ext$major'
13317 shlibpath_var=LD_LIBRARY_PATH
13320 freebsd* | dragonfly*)
13321 # DragonFly does not have aout. When/if they implement a new
13322 # versioning mechanism, adjust this.
13323 if test -x /usr/bin/objformat; then
13324 objformat=`/usr/bin/objformat`
13327 freebsd[23].*) objformat=aout ;;
13328 *) objformat=elf ;;
13331 version_type=freebsd-$objformat
13332 case $version_type in
13334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13335 soname_spec='$libname$release$shared_ext$major'
13340 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13344 shlibpath_var=LD_LIBRARY_PATH
13347 shlibpath_overrides_runpath=yes
13349 freebsd3.[01]* | freebsdelf3.[01]*)
13350 shlibpath_overrides_runpath=yes
13351 hardcode_into_libs=yes
13353 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13354 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13355 shlibpath_overrides_runpath=no
13356 hardcode_into_libs=yes
13358 *) # from 4.6 on, and DragonFly
13359 shlibpath_overrides_runpath=yes
13360 hardcode_into_libs=yes
13366 version_type=linux # correct to gnu/linux during the next big refactor
13369 dynamic_linker="$host_os runtime_loader"
13370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13371 soname_spec='$libname$release$shared_ext$major'
13372 shlibpath_var=LIBRARY_PATH
13373 shlibpath_overrides_runpath=no
13374 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13375 hardcode_into_libs=yes
13378 hpux9* | hpux10* | hpux11*)
13379 # Give a soname corresponding to the major version so that dld.sl refuses to
13380 # link against other versions.
13387 hardcode_into_libs=yes
13388 dynamic_linker="$host_os dld.so"
13389 shlibpath_var=LD_LIBRARY_PATH
13390 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13392 soname_spec='$libname$release$shared_ext$major'
13393 if test 32 = "$HPUX_IA64_MODE"; then
13394 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13395 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13397 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13398 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13403 hardcode_into_libs=yes
13404 dynamic_linker="$host_os dld.sl"
13405 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13406 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13407 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13408 soname_spec='$libname$release$shared_ext$major'
13409 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13414 dynamic_linker="$host_os dld.sl"
13415 shlibpath_var=SHLIB_PATH
13416 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13418 soname_spec='$libname$release$shared_ext$major'
13421 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13422 postinstall_cmds='chmod 555 $lib'
13423 # or fails outright, so override atomically:
13424 install_override_mode=555
13428 version_type=linux # correct to gnu/linux during the next big refactor
13431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13432 soname_spec='$libname$release$shared_ext$major'
13433 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13434 shlibpath_var=LD_LIBRARY_PATH
13435 shlibpath_overrides_runpath=no
13436 hardcode_into_libs=yes
13439 irix5* | irix6* | nonstopux*)
13441 nonstopux*) version_type=nonstopux ;;
13443 if test yes = "$lt_cv_prog_gnu_ld"; then
13444 version_type=linux # correct to gnu/linux during the next big refactor
13451 soname_spec='$libname$release$shared_ext$major'
13452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13454 irix5* | nonstopux*)
13455 libsuff= shlibsuff=
13458 case $LD in # libtool.m4 will add one of these switches to LD
13459 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13460 libsuff= shlibsuff= libmagic=32-bit;;
13461 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13462 libsuff=32 shlibsuff=N32 libmagic=N32;;
13463 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13464 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13465 *) libsuff= shlibsuff= libmagic=never-match;;
13469 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13470 shlibpath_overrides_runpath=no
13471 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13472 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13473 hardcode_into_libs=yes
13476 # No shared lib support for Linux oldld, aout, or coff.
13477 linux*oldld* | linux*aout* | linux*coff*)
13482 version_type=none # Android doesn't support versioned libraries.
13485 library_names_spec='$libname$release$shared_ext'
13486 soname_spec='$libname$release$shared_ext'
13488 shlibpath_var=LD_LIBRARY_PATH
13489 shlibpath_overrides_runpath=yes
13491 # This implies no fast_install, which is unacceptable.
13492 # Some rework will be needed to allow for fast_install
13493 # before this can be enabled.
13494 hardcode_into_libs=yes
13496 dynamic_linker='Android linker'
13497 # Don't embed -rpath directories since the linker doesn't support them.
13498 hardcode_libdir_flag_spec='-L$libdir'
13501 # This must be glibc/ELF.
13502 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13503 version_type=linux # correct to gnu/linux during the next big refactor
13506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13507 soname_spec='$libname$release$shared_ext$major'
13508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13509 shlibpath_var=LD_LIBRARY_PATH
13510 shlibpath_overrides_runpath=no
13512 # Some binutils ld are patched to set DT_RUNPATH
13513 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13514 $as_echo_n "(cached) " >&6
13516 lt_cv_shlibpath_overrides_runpath=no
13517 save_LDFLAGS=$LDFLAGS
13518 save_libdir=$libdir
13519 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13520 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13522 /* end confdefs.h. */
13532 if ac_fn_c_try_link "$LINENO"; then :
13533 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13534 lt_cv_shlibpath_overrides_runpath=yes
13537 rm -f core conftest.err conftest.$ac_objext \
13538 conftest$ac_exeext conftest.$ac_ext
13539 LDFLAGS=$save_LDFLAGS
13540 libdir=$save_libdir
13544 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13546 # This implies no fast_install, which is unacceptable.
13547 # Some rework will be needed to allow for fast_install
13548 # before this can be enabled.
13549 hardcode_into_libs=yes
13551 # Ideally, we could use ldconfig to report *all* directores which are
13552 # searched for libraries, however this is still not possible. Aside from not
13553 # being certain /sbin/ldconfig is available, command
13554 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13555 # even though it is searched at run-time. Try to do the best guess by
13556 # appending ld.so.conf contents (and includes) to the search path.
13557 if test -f /etc/ld.so.conf; then
13558 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13559 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13562 # We used to test for /lib/ld.so.1 and disable shared libraries on
13563 # powerpc, because MkLinux only supported shared libraries with the
13564 # GNU dynamic linker. Since this was broken with cross compilers,
13565 # most powerpc-linux boxes support dynamic linking these days and
13566 # people can always --disable-shared, the test was removed, and we
13567 # assume the GNU/Linux dynamic linker is in use.
13568 dynamic_linker='GNU/Linux ld.so'
13575 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13576 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13578 dynamic_linker='NetBSD (a.out) ld.so'
13580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13581 soname_spec='$libname$release$shared_ext$major'
13582 dynamic_linker='NetBSD ld.elf_so'
13584 shlibpath_var=LD_LIBRARY_PATH
13585 shlibpath_overrides_runpath=yes
13586 hardcode_into_libs=yes
13590 version_type=linux # correct to gnu/linux during the next big refactor
13591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13592 shlibpath_var=LD_LIBRARY_PATH
13593 shlibpath_overrides_runpath=yes
13600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13601 soname_spec='$libname$release$shared_ext$major'
13602 shlibpath_var=LD_LIBRARY_PATH
13603 shlibpath_overrides_runpath=no
13604 hardcode_into_libs=yes
13605 dynamic_linker='ldqnx.so'
13608 openbsd* | bitrig*)
13610 sys_lib_dlsearch_path_spec=/usr/lib
13612 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13617 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13619 shlibpath_var=LD_LIBRARY_PATH
13620 shlibpath_overrides_runpath=yes
13624 libname_spec='$name'
13625 version_type=windows
13629 # OS/2 can only load a DLL with a base name of 8 characters or less.
13630 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13631 v=$($ECHO $release$versuffix | tr -d .-);
13632 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13633 $ECHO $n$v`$shared_ext'
13634 library_names_spec='${libname}_dll.$libext'
13635 dynamic_linker='OS/2 ld.exe'
13636 shlibpath_var=BEGINLIBPATH
13637 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13638 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13639 postinstall_cmds='base_file=`basename \$file`~
13640 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13641 dldir=$destdir/`dirname \$dlpath`~
13642 test -d \$dldir || mkdir -p \$dldir~
13643 $install_prog $dir/$dlname \$dldir/$dlname~
13644 chmod a+x \$dldir/$dlname~
13645 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13646 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13648 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13649 dlpath=$dir/\$dldll~
13653 osf3* | osf4* | osf5*)
13657 soname_spec='$libname$release$shared_ext$major'
13658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13659 shlibpath_var=LD_LIBRARY_PATH
13660 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13661 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13669 version_type=linux # correct to gnu/linux during the next big refactor
13672 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13673 soname_spec='$libname$release$shared_ext$major'
13674 shlibpath_var=LD_LIBRARY_PATH
13675 shlibpath_overrides_runpath=yes
13676 hardcode_into_libs=yes
13677 # ldd complains unless libraries are executable
13678 postinstall_cmds='chmod +x $lib'
13683 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13684 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13685 shlibpath_var=LD_LIBRARY_PATH
13686 shlibpath_overrides_runpath=yes
13687 if test yes = "$with_gnu_ld"; then
13694 version_type=linux # correct to gnu/linux during the next big refactor
13695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13696 soname_spec='$libname$release$shared_ext$major'
13697 shlibpath_var=LD_LIBRARY_PATH
13698 case $host_vendor in
13700 shlibpath_overrides_runpath=no
13702 runpath_var=LD_RUN_PATH
13710 shlibpath_overrides_runpath=no
13711 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13717 if test -d /usr/nec; then
13718 version_type=linux # correct to gnu/linux during the next big refactor
13719 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13720 soname_spec='$libname$shared_ext.$major'
13721 shlibpath_var=LD_LIBRARY_PATH
13725 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13730 soname_spec='$libname$release$shared_ext$major'
13731 shlibpath_var=LD_LIBRARY_PATH
13732 shlibpath_overrides_runpath=yes
13733 hardcode_into_libs=yes
13734 if test yes = "$with_gnu_ld"; then
13735 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13737 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13740 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13744 sys_lib_dlsearch_path_spec='/usr/lib'
13748 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13749 version_type=linux # correct to gnu/linux during the next big refactor
13752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13753 shlibpath_var=LD_LIBRARY_PATH
13754 shlibpath_overrides_runpath=no
13755 hardcode_into_libs=yes
13759 version_type=linux # correct to gnu/linux during the next big refactor
13760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13761 soname_spec='$libname$release$shared_ext$major'
13762 shlibpath_var=LD_LIBRARY_PATH
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13770 $as_echo "$dynamic_linker" >&6; }
13771 test no = "$dynamic_linker" && can_build_shared=no
13773 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13774 if test yes = "$GCC"; then
13775 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13778 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13779 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13782 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13783 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13786 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13787 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13789 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13790 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13792 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13793 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13892 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13894 if test -n "$hardcode_libdir_flag_spec" ||
13895 test -n "$runpath_var" ||
13896 test yes = "$hardcode_automatic"; then
13898 # We can hardcode non-existent directories.
13899 if test no != "$hardcode_direct" &&
13900 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13901 # have to relink, otherwise we might link with an installed library
13902 # when we should be linking with a yet-to-be-installed one
13903 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13904 test no != "$hardcode_minus_L"; then
13905 # Linking always hardcodes the temporary library directory.
13906 hardcode_action=relink
13908 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13909 hardcode_action=immediate
13912 # We cannot hardcode anything, or else we can only hardcode existing
13914 hardcode_action=unsupported
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13917 $as_echo "$hardcode_action" >&6; }
13919 if test relink = "$hardcode_action" ||
13920 test yes = "$inherit_rpath"; then
13921 # Fast installation is not supported
13922 enable_fast_install=no
13923 elif test yes = "$shlibpath_overrides_runpath" ||
13924 test no = "$enable_shared"; then
13925 # Fast installation is not necessary
13926 enable_fast_install=needless
13934 if test yes != "$enable_dlopen"; then
13935 enable_dlopen=unknown
13936 enable_dlopen_self=unknown
13937 enable_dlopen_self_static=unknown
13944 lt_cv_dlopen=load_add_on
13946 lt_cv_dlopen_self=yes
13949 mingw* | pw32* | cegcc*)
13950 lt_cv_dlopen=LoadLibrary
13955 lt_cv_dlopen=dlopen
13960 # if libdl is installed we need to link against it
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13962 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13963 if ${ac_cv_lib_dl_dlopen+:} false; then :
13964 $as_echo_n "(cached) " >&6
13966 ac_check_lib_save_LIBS=$LIBS
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13971 /* Override any GCC internal prototype to avoid an error.
13972 Use char because int might match the return type of a GCC
13973 builtin and then its argument prototype would still apply. */
13986 if ac_fn_c_try_link "$LINENO"; then :
13987 ac_cv_lib_dl_dlopen=yes
13989 ac_cv_lib_dl_dlopen=no
13991 rm -f core conftest.err conftest.$ac_objext \
13992 conftest$ac_exeext conftest.$ac_ext
13993 LIBS=$ac_check_lib_save_LIBS
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13996 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13997 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13998 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14003 lt_cv_dlopen_self=yes
14010 # Don't try to run any link tests for TPF. We know it's impossible
14011 # because TPF is a cross-compiler, and we know how we open DSOs.
14012 lt_cv_dlopen=dlopen
14014 lt_cv_dlopen_self=no
14018 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14019 if test "x$ac_cv_func_shl_load" = xyes; then :
14020 lt_cv_dlopen=shl_load
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14023 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14024 if ${ac_cv_lib_dld_shl_load+:} false; then :
14025 $as_echo_n "(cached) " >&6
14027 ac_check_lib_save_LIBS=$LIBS
14029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14030 /* end confdefs.h. */
14032 /* Override any GCC internal prototype to avoid an error.
14033 Use char because int might match the return type of a GCC
14034 builtin and then its argument prototype would still apply. */
14042 return shl_load ();
14047 if ac_fn_c_try_link "$LINENO"; then :
14048 ac_cv_lib_dld_shl_load=yes
14050 ac_cv_lib_dld_shl_load=no
14052 rm -f core conftest.err conftest.$ac_objext \
14053 conftest$ac_exeext conftest.$ac_ext
14054 LIBS=$ac_check_lib_save_LIBS
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14057 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14058 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14059 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14061 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14062 if test "x$ac_cv_func_dlopen" = xyes; then :
14063 lt_cv_dlopen=dlopen
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14066 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14067 if ${ac_cv_lib_dl_dlopen+:} false; then :
14068 $as_echo_n "(cached) " >&6
14070 ac_check_lib_save_LIBS=$LIBS
14072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14073 /* end confdefs.h. */
14075 /* Override any GCC internal prototype to avoid an error.
14076 Use char because int might match the return type of a GCC
14077 builtin and then its argument prototype would still apply. */
14090 if ac_fn_c_try_link "$LINENO"; then :
14091 ac_cv_lib_dl_dlopen=yes
14093 ac_cv_lib_dl_dlopen=no
14095 rm -f core conftest.err conftest.$ac_objext \
14096 conftest$ac_exeext conftest.$ac_ext
14097 LIBS=$ac_check_lib_save_LIBS
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14100 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14101 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14102 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14105 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14106 if ${ac_cv_lib_svld_dlopen+:} false; then :
14107 $as_echo_n "(cached) " >&6
14109 ac_check_lib_save_LIBS=$LIBS
14110 LIBS="-lsvld $LIBS"
14111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14112 /* end confdefs.h. */
14114 /* Override any GCC internal prototype to avoid an error.
14115 Use char because int might match the return type of a GCC
14116 builtin and then its argument prototype would still apply. */
14129 if ac_fn_c_try_link "$LINENO"; then :
14130 ac_cv_lib_svld_dlopen=yes
14132 ac_cv_lib_svld_dlopen=no
14134 rm -f core conftest.err conftest.$ac_objext \
14135 conftest$ac_exeext conftest.$ac_ext
14136 LIBS=$ac_check_lib_save_LIBS
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14139 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14140 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14141 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14144 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14145 if ${ac_cv_lib_dld_dld_link+:} false; then :
14146 $as_echo_n "(cached) " >&6
14148 ac_check_lib_save_LIBS=$LIBS
14150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14151 /* end confdefs.h. */
14153 /* Override any GCC internal prototype to avoid an error.
14154 Use char because int might match the return type of a GCC
14155 builtin and then its argument prototype would still apply. */
14163 return dld_link ();
14168 if ac_fn_c_try_link "$LINENO"; then :
14169 ac_cv_lib_dld_dld_link=yes
14171 ac_cv_lib_dld_dld_link=no
14173 rm -f core conftest.err conftest.$ac_objext \
14174 conftest$ac_exeext conftest.$ac_ext
14175 LIBS=$ac_check_lib_save_LIBS
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14178 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14179 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14180 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14201 if test no = "$lt_cv_dlopen"; then
14207 case $lt_cv_dlopen in
14209 save_CPPFLAGS=$CPPFLAGS
14210 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14212 save_LDFLAGS=$LDFLAGS
14213 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14216 LIBS="$lt_cv_dlopen_libs $LIBS"
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14219 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14220 if ${lt_cv_dlopen_self+:} false; then :
14221 $as_echo_n "(cached) " >&6
14223 if test yes = "$cross_compiling"; then :
14224 lt_cv_dlopen_self=cross
14226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14227 lt_status=$lt_dlunknown
14228 cat > conftest.$ac_ext <<_LT_EOF
14229 #line $LINENO "configure"
14230 #include "confdefs.h"
14239 # define LT_DLGLOBAL RTLD_GLOBAL
14242 # define LT_DLGLOBAL DL_GLOBAL
14244 # define LT_DLGLOBAL 0
14248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14249 find out it does not work in some platform. */
14250 #ifndef LT_DLLAZY_OR_NOW
14252 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14255 # define LT_DLLAZY_OR_NOW DL_LAZY
14258 # define LT_DLLAZY_OR_NOW RTLD_NOW
14261 # define LT_DLLAZY_OR_NOW DL_NOW
14263 # define LT_DLLAZY_OR_NOW 0
14270 /* When -fvisibility=hidden is used, assume the code has been annotated
14271 correspondingly for the symbols needed. */
14272 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14273 int fnord () __attribute__((visibility("default")));
14276 int fnord () { return 42; }
14279 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14280 int status = $lt_dlunknown;
14284 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14287 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14288 else puts (dlerror ());
14290 /* dlclose (self); */
14298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14299 (eval $ac_link) 2>&5
14301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14302 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14303 (./conftest; exit; ) >&5 2>/dev/null
14305 case x$lt_status in
14306 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14307 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14308 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14311 # compilation failed
14312 lt_cv_dlopen_self=no
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14320 $as_echo "$lt_cv_dlopen_self" >&6; }
14322 if test yes = "$lt_cv_dlopen_self"; then
14323 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14325 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14326 if ${lt_cv_dlopen_self_static+:} false; then :
14327 $as_echo_n "(cached) " >&6
14329 if test yes = "$cross_compiling"; then :
14330 lt_cv_dlopen_self_static=cross
14332 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14333 lt_status=$lt_dlunknown
14334 cat > conftest.$ac_ext <<_LT_EOF
14335 #line $LINENO "configure"
14336 #include "confdefs.h"
14345 # define LT_DLGLOBAL RTLD_GLOBAL
14348 # define LT_DLGLOBAL DL_GLOBAL
14350 # define LT_DLGLOBAL 0
14354 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14355 find out it does not work in some platform. */
14356 #ifndef LT_DLLAZY_OR_NOW
14358 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14361 # define LT_DLLAZY_OR_NOW DL_LAZY
14364 # define LT_DLLAZY_OR_NOW RTLD_NOW
14367 # define LT_DLLAZY_OR_NOW DL_NOW
14369 # define LT_DLLAZY_OR_NOW 0
14376 /* When -fvisibility=hidden is used, assume the code has been annotated
14377 correspondingly for the symbols needed. */
14378 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14379 int fnord () __attribute__((visibility("default")));
14382 int fnord () { return 42; }
14385 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14386 int status = $lt_dlunknown;
14390 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14393 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14394 else puts (dlerror ());
14396 /* dlclose (self); */
14404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14405 (eval $ac_link) 2>&5
14407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14408 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14409 (./conftest; exit; ) >&5 2>/dev/null
14411 case x$lt_status in
14412 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14413 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14414 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14417 # compilation failed
14418 lt_cv_dlopen_self_static=no
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14426 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14429 CPPFLAGS=$save_CPPFLAGS
14430 LDFLAGS=$save_LDFLAGS
14435 case $lt_cv_dlopen_self in
14436 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14437 *) enable_dlopen_self=unknown ;;
14440 case $lt_cv_dlopen_self_static in
14441 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14442 *) enable_dlopen_self_static=unknown ;;
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14465 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14466 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14467 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14468 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14470 $as_echo "yes" >&6; }
14472 # FIXME - insert some real tests, host_os isn't really good enough
14475 if test -n "$STRIP"; then
14476 striplib="$STRIP -x"
14477 old_striplib="$STRIP -S"
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14479 $as_echo "yes" >&6; }
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14482 $as_echo "no" >&6; }
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14487 $as_echo "no" >&6; }
14503 # Report what library types will actually be built
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14505 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14507 $as_echo "$can_build_shared" >&6; }
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14510 $as_echo_n "checking whether to build shared libraries... " >&6; }
14511 test no = "$can_build_shared" && enable_shared=no
14513 # On AIX, shared libraries and static libraries use the same namespace, and
14514 # are all built from PIC.
14517 test yes = "$enable_shared" && enable_static=no
14518 if test -n "$RANLIB"; then
14519 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14520 postinstall_cmds='$RANLIB $lib'
14525 if test ia64 != "$host_cpu"; then
14526 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14527 yes,aix,yes) ;; # shared object as lib.so file only
14528 yes,svr4,*) ;; # shared object as lib.so archive member only
14529 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14535 $as_echo "$enable_shared" >&6; }
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14538 $as_echo_n "checking whether to build static libraries... " >&6; }
14539 # Make sure either enable_shared or enable_static is yes.
14540 test yes = "$enable_shared" || enable_static=yes
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14542 $as_echo "$enable_static" >&6; }
14549 ac_cpp='$CPP $CPPFLAGS'
14550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14570 ac_config_commands="$ac_config_commands libtool"
14575 # Only expand once:
14580 # NTP has (so far) been relying on leading-edge autogen, which
14581 # means we need the appropriate corresponding libopts as well.
14582 # Therefore, by default:
14583 # - use the version of libopts we ship with
14584 # - do not install it
14585 # - build a static copy (AC_DISABLE_SHARED - done earlier)
14586 case "${enable_local_libopts+set}" in
14588 *) enable_local_libopts=yes ;;
14590 case "${enable_libopts_install+set}" in
14592 *) enable_libopts_install=no ;;
14595 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14596 if test "x$ac_cv_type_pid_t" = xyes; then :
14600 cat >>confdefs.h <<_ACEOF
14608 ac_header_dirent=no
14609 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14610 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14612 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
14613 if eval \${$as_ac_Header+:} false; then :
14614 $as_echo_n "(cached) " >&6
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14618 #include <sys/types.h>
14630 if ac_fn_c_try_compile "$LINENO"; then :
14631 eval "$as_ac_Header=yes"
14633 eval "$as_ac_Header=no"
14635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637 eval ac_res=\$$as_ac_Header
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14639 $as_echo "$ac_res" >&6; }
14640 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14641 cat >>confdefs.h <<_ACEOF
14642 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14645 ac_header_dirent=$ac_hdr; break
14649 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14650 if test $ac_header_dirent = dirent.h; then
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14652 $as_echo_n "checking for library containing opendir... " >&6; }
14653 if ${ac_cv_search_opendir+:} false; then :
14654 $as_echo_n "(cached) " >&6
14656 ac_func_search_save_LIBS=$LIBS
14657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14658 /* end confdefs.h. */
14660 /* Override any GCC internal prototype to avoid an error.
14661 Use char because int might match the return type of a GCC
14662 builtin and then its argument prototype would still apply. */
14675 for ac_lib in '' dir; do
14676 if test -z "$ac_lib"; then
14677 ac_res="none required"
14680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14682 if ac_fn_c_try_link "$LINENO"; then :
14683 ac_cv_search_opendir=$ac_res
14685 rm -f core conftest.err conftest.$ac_objext \
14687 if ${ac_cv_search_opendir+:} false; then :
14691 if ${ac_cv_search_opendir+:} false; then :
14694 ac_cv_search_opendir=no
14696 rm conftest.$ac_ext
14697 LIBS=$ac_func_search_save_LIBS
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14700 $as_echo "$ac_cv_search_opendir" >&6; }
14701 ac_res=$ac_cv_search_opendir
14702 if test "$ac_res" != no; then :
14703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14709 $as_echo_n "checking for library containing opendir... " >&6; }
14710 if ${ac_cv_search_opendir+:} false; then :
14711 $as_echo_n "(cached) " >&6
14713 ac_func_search_save_LIBS=$LIBS
14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h. */
14717 /* Override any GCC internal prototype to avoid an error.
14718 Use char because int might match the return type of a GCC
14719 builtin and then its argument prototype would still apply. */
14732 for ac_lib in '' x; do
14733 if test -z "$ac_lib"; then
14734 ac_res="none required"
14737 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14739 if ac_fn_c_try_link "$LINENO"; then :
14740 ac_cv_search_opendir=$ac_res
14742 rm -f core conftest.err conftest.$ac_objext \
14744 if ${ac_cv_search_opendir+:} false; then :
14748 if ${ac_cv_search_opendir+:} false; then :
14751 ac_cv_search_opendir=no
14753 rm conftest.$ac_ext
14754 LIBS=$ac_func_search_save_LIBS
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14757 $as_echo "$ac_cv_search_opendir" >&6; }
14758 ac_res=$ac_cv_search_opendir
14759 if test "$ac_res" != no; then :
14760 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14767 # =================
14769 # =================
14771 sys/mman.h sys/param.h sys/poll.h sys/procset.h \
14772 sys/select.h sys/socket.h sys/stropts.h sys/time.h \
14773 sys/un.h sys/wait.h dlfcn.h errno.h \
14774 fcntl.h libgen.h libintl.h memory.h \
14775 netinet/in.h setjmp.h stdbool.h sysexits.h \
14778 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14779 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14780 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14781 cat >>confdefs.h <<_ACEOF
14782 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14790 for ac_header in stdarg.h varargs.h
14792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14793 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14794 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14795 cat >>confdefs.h <<_ACEOF
14796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14798 lo_have_arg_hdr=true;break
14800 lo_have_arg_hdr=false
14806 for ac_header in string.h strings.h
14808 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14809 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14810 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14811 cat >>confdefs.h <<_ACEOF
14812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14814 lo_have_str_hdr=true;break
14816 lo_have_str_hdr=false
14822 for ac_header in limits.h sys/limits.h values.h
14824 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14825 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14826 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14827 cat >>confdefs.h <<_ACEOF
14828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14830 lo_have_lim_hdr=true;break
14832 lo_have_lim_hdr=false
14838 for ac_header in inttypes.h stdint.h
14840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14841 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14842 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14843 cat >>confdefs.h <<_ACEOF
14844 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14846 lo_have_typ_hdr=true;break
14848 lo_have_typ_hdr=false
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
14855 $as_echo_n "checking for working stdnoreturn.h... " >&6; }
14856 if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
14857 $as_echo_n "(cached) " >&6
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14861 #include <stdlib.h>
14862 #include <stdnoreturn.h>
14863 /* Do not check for 'noreturn' after the return type.
14864 C11 allows it, but it's rarely done that way
14865 and circa-2012 bleeding-edge GCC rejects it when given
14866 -Werror=old-style-declaration. */
14867 noreturn void foo1 (void) { exit (0); }
14868 _Noreturn void foo2 (void) { exit (0); }
14869 int testit (int argc, char **argv) {
14872 (argv[0][0] ? foo1 : foo2) ();
14883 if ac_fn_c_try_compile "$LINENO"; then :
14884 gl_cv_header_working_stdnoreturn_h=yes
14886 gl_cv_header_working_stdnoreturn_h=no
14888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
14891 $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
14893 if test $gl_cv_header_working_stdnoreturn_h = yes; then
14896 STDNORETURN_H='stdnoreturn.h'
14900 if test -n "$STDNORETURN_H"; then
14901 GL_GENERATE_STDNORETURN_H_TRUE=
14902 GL_GENERATE_STDNORETURN_H_FALSE='#'
14904 GL_GENERATE_STDNORETURN_H_TRUE='#'
14905 GL_GENERATE_STDNORETURN_H_FALSE=
14910 # ----------------------------------------------------------------------
14911 # check for various programs used during the build.
14912 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
14913 # ----------------------------------------------------------------------
14914 for ac_header in runetype.h wchar.h
14916 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14917 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
14918 $ac_includes_default
14919 #if HAVE_RUNETYPE_H
14920 # include <runetype.h>
14924 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14925 cat >>confdefs.h <<_ACEOF
14926 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14934 # Check whether --enable-nls was given.
14935 if test "${enable_nls+set}" = set; then :
14936 enableval=$enable_nls;
14939 if test "x$enable_nls" != "xno" && \
14940 test "X${ac_cv_header_libintl_h}" = Xyes; then :
14943 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14947 # --------------------------------------------
14948 # Verify certain entries from AC_CHECK_HEADERS
14949 # --------------------------------------------
14950 ${lo_have_arg_hdr} || \
14951 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
14953 ${lo_have_str_hdr} || \
14954 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
14956 ${lo_have_lim_hdr} || \
14957 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
14959 ${lo_have_typ_hdr} || \
14960 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
14962 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
14963 do eval as_ac_var=\${ac_cv_header_${f}_h}
14964 test "X${as_ac_var}" = Xyes || {
14965 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
14968 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
14969 echo '#include <stdint.h>' > inttypes.h
14971 # ----------------------------------------------------------------------
14972 # Checks for typedefs
14973 # ----------------------------------------------------------------------
14974 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
14975 if test "x$ac_cv_type_wchar_t" = xyes; then :
14977 cat >>confdefs.h <<_ACEOF
14978 #define HAVE_WCHAR_T 1
14984 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
14985 $ac_includes_default
14986 #if HAVE_RUNETYPE_H
14987 # include <runetype.h>
14990 # include <wchar.h>
14994 if test "x$ac_cv_type_wint_t" = xyes; then :
14996 cat >>confdefs.h <<_ACEOF
14997 #define HAVE_WINT_T 1
15003 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
15004 if test "x$ac_cv_type_int8_t" = xyes; then :
15006 cat >>confdefs.h <<_ACEOF
15007 #define HAVE_INT8_T 1
15012 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
15013 if test "x$ac_cv_type_uint8_t" = xyes; then :
15015 cat >>confdefs.h <<_ACEOF
15016 #define HAVE_UINT8_T 1
15021 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
15022 if test "x$ac_cv_type_int16_t" = xyes; then :
15024 cat >>confdefs.h <<_ACEOF
15025 #define HAVE_INT16_T 1
15030 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15031 if test "x$ac_cv_type_uint16_t" = xyes; then :
15033 cat >>confdefs.h <<_ACEOF
15034 #define HAVE_UINT16_T 1
15039 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
15040 if test "x$ac_cv_type_int32_t" = xyes; then :
15042 cat >>confdefs.h <<_ACEOF
15043 #define HAVE_INT32_T 1
15048 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
15049 if test "x$ac_cv_type_uint32_t" = xyes; then :
15051 cat >>confdefs.h <<_ACEOF
15052 #define HAVE_UINT32_T 1
15057 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15058 if test "x$ac_cv_type_intptr_t" = xyes; then :
15060 cat >>confdefs.h <<_ACEOF
15061 #define HAVE_INTPTR_T 1
15066 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15067 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15069 cat >>confdefs.h <<_ACEOF
15070 #define HAVE_UINTPTR_T 1
15075 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
15076 if test "x$ac_cv_type_uint_t" = xyes; then :
15078 cat >>confdefs.h <<_ACEOF
15079 #define HAVE_UINT_T 1
15084 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15085 if test "x$ac_cv_type_pid_t" = xyes; then :
15087 cat >>confdefs.h <<_ACEOF
15088 #define HAVE_PID_T 1
15093 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15094 if test "x$ac_cv_type_size_t" = xyes; then :
15096 cat >>confdefs.h <<_ACEOF
15097 #define HAVE_SIZE_T 1
15102 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15103 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
15105 cat >>confdefs.h <<_ACEOF
15106 #define HAVE_PTRDIFF_T 1
15112 # The cast to long int works around a bug in the HP C Compiler
15113 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15114 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15115 # This bug is HP SR number 8606223364.
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
15117 $as_echo_n "checking size of char *... " >&6; }
15118 if ${ac_cv_sizeof_char_p+:} false; then :
15119 $as_echo_n "(cached) " >&6
15121 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
15124 if test "$ac_cv_type_char_p" = yes; then
15125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15127 as_fn_error 77 "cannot compute sizeof (char *)
15128 See \`config.log' for more details" "$LINENO" 5; }
15130 ac_cv_sizeof_char_p=0
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
15136 $as_echo "$ac_cv_sizeof_char_p" >&6; }
15140 cat >>confdefs.h <<_ACEOF
15141 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
15145 # The cast to long int works around a bug in the HP C Compiler
15146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15147 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15148 # This bug is HP SR number 8606223364.
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15150 $as_echo_n "checking size of int... " >&6; }
15151 if ${ac_cv_sizeof_int+:} false; then :
15152 $as_echo_n "(cached) " >&6
15154 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15157 if test "$ac_cv_type_int" = yes; then
15158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15160 as_fn_error 77 "cannot compute sizeof (int)
15161 See \`config.log' for more details" "$LINENO" 5; }
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15169 $as_echo "$ac_cv_sizeof_int" >&6; }
15173 cat >>confdefs.h <<_ACEOF
15174 #define SIZEOF_INT $ac_cv_sizeof_int
15178 # The cast to long int works around a bug in the HP C Compiler
15179 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15180 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15181 # This bug is HP SR number 8606223364.
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15183 $as_echo_n "checking size of long... " >&6; }
15184 if ${ac_cv_sizeof_long+:} false; then :
15185 $as_echo_n "(cached) " >&6
15187 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15190 if test "$ac_cv_type_long" = yes; then
15191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15193 as_fn_error 77 "cannot compute sizeof (long)
15194 See \`config.log' for more details" "$LINENO" 5; }
15196 ac_cv_sizeof_long=0
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15202 $as_echo "$ac_cv_sizeof_long" >&6; }
15206 cat >>confdefs.h <<_ACEOF
15207 #define SIZEOF_LONG $ac_cv_sizeof_long
15211 # The cast to long int works around a bug in the HP C Compiler
15212 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15213 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15214 # This bug is HP SR number 8606223364.
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15216 $as_echo_n "checking size of short... " >&6; }
15217 if ${ac_cv_sizeof_short+:} false; then :
15218 $as_echo_n "(cached) " >&6
15220 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15223 if test "$ac_cv_type_short" = yes; then
15224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15226 as_fn_error 77 "cannot compute sizeof (short)
15227 See \`config.log' for more details" "$LINENO" 5; }
15229 ac_cv_sizeof_short=0
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15235 $as_echo "$ac_cv_sizeof_short" >&6; }
15239 cat >>confdefs.h <<_ACEOF
15240 #define SIZEOF_SHORT $ac_cv_sizeof_short
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
15249 $as_echo_n "checking for pathfind in -lgen... " >&6; }
15250 if ${ac_cv_lib_gen_pathfind+:} false; then :
15251 $as_echo_n "(cached) " >&6
15253 ac_check_lib_save_LIBS=$LIBS
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15258 /* Override any GCC internal prototype to avoid an error.
15259 Use char because int might match the return type of a GCC
15260 builtin and then its argument prototype would still apply. */
15268 return pathfind ();
15273 if ac_fn_c_try_link "$LINENO"; then :
15274 ac_cv_lib_gen_pathfind=yes
15276 ac_cv_lib_gen_pathfind=no
15278 rm -f core conftest.err conftest.$ac_objext \
15279 conftest$ac_exeext conftest.$ac_ext
15280 LIBS=$ac_check_lib_save_LIBS
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
15283 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
15284 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
15285 cat >>confdefs.h <<_ACEOF
15286 #define HAVE_LIBGEN 1
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
15294 $as_echo_n "checking for gettext in -lintl... " >&6; }
15295 if ${ac_cv_lib_intl_gettext+:} false; then :
15296 $as_echo_n "(cached) " >&6
15298 ac_check_lib_save_LIBS=$LIBS
15299 LIBS="-lintl $LIBS"
15300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15301 /* end confdefs.h. */
15303 /* Override any GCC internal prototype to avoid an error.
15304 Use char because int might match the return type of a GCC
15305 builtin and then its argument prototype would still apply. */
15318 if ac_fn_c_try_link "$LINENO"; then :
15319 ac_cv_lib_intl_gettext=yes
15321 ac_cv_lib_intl_gettext=no
15323 rm -f core conftest.err conftest.$ac_objext \
15324 conftest$ac_exeext conftest.$ac_ext
15325 LIBS=$ac_check_lib_save_LIBS
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
15328 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
15329 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
15330 cat >>confdefs.h <<_ACEOF
15331 #define HAVE_LIBINTL 1
15334 LIBS="-lintl $LIBS"
15338 for ac_func in vprintf
15340 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
15341 if test "x$ac_cv_func_vprintf" = xyes; then :
15342 cat >>confdefs.h <<_ACEOF
15343 #define HAVE_VPRINTF 1
15346 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
15347 if test "x$ac_cv_func__doprnt" = xyes; then :
15349 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
15357 for ac_header in vfork.h
15359 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15360 if test "x$ac_cv_header_vfork_h" = xyes; then :
15361 cat >>confdefs.h <<_ACEOF
15362 #define HAVE_VFORK_H 1
15369 for ac_func in fork vfork
15371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15372 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15373 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15374 cat >>confdefs.h <<_ACEOF
15375 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15381 if test "x$ac_cv_func_fork" = xyes; then
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15383 $as_echo_n "checking for working fork... " >&6; }
15384 if ${ac_cv_func_fork_works+:} false; then :
15385 $as_echo_n "(cached) " >&6
15387 if test "$cross_compiling" = yes; then :
15388 ac_cv_func_fork_works=cross
15390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391 /* end confdefs.h. */
15392 $ac_includes_default
15397 /* By Ruediger Kuhlmann. */
15398 return fork () < 0;
15404 if ac_fn_c_try_run "$LINENO"; then :
15405 ac_cv_func_fork_works=yes
15407 ac_cv_func_fork_works=no
15409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15410 conftest.$ac_objext conftest.beam conftest.$ac_ext
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15415 $as_echo "$ac_cv_func_fork_works" >&6; }
15418 ac_cv_func_fork_works=$ac_cv_func_fork
15420 if test "x$ac_cv_func_fork_works" = xcross; then
15422 *-*-amigaos* | *-*-msdosdjgpp*)
15423 # Override, as these systems have only a dummy fork() stub
15424 ac_cv_func_fork_works=no
15427 ac_cv_func_fork_works=yes
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15431 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15433 ac_cv_func_vfork_works=$ac_cv_func_vfork
15434 if test "x$ac_cv_func_vfork" = xyes; then
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15436 $as_echo_n "checking for working vfork... " >&6; }
15437 if ${ac_cv_func_vfork_works+:} false; then :
15438 $as_echo_n "(cached) " >&6
15440 if test "$cross_compiling" = yes; then :
15441 ac_cv_func_vfork_works=cross
15443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15444 /* end confdefs.h. */
15445 /* Thanks to Paul Eggert for this test. */
15446 $ac_includes_default
15447 #include <sys/wait.h>
15448 #ifdef HAVE_VFORK_H
15449 # include <vfork.h>
15451 /* On some sparc systems, changes by the child to local and incoming
15452 argument registers are propagated back to the parent. The compiler
15453 is told about this with #include <vfork.h>, but some compilers
15454 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15455 static variable whose address is put into a register that is
15456 clobbered by the vfork. */
15459 sparc_address_test (int arg)
15461 sparc_address_test (arg) int arg;
15464 static pid_t child;
15482 pid_t parent = getpid ();
15485 sparc_address_test (0);
15490 /* Here is another test for sparc vfork register problems. This
15491 test uses lots of local variables, at least as many local
15492 variables as main has allocated so far including compiler
15493 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15494 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15495 reuse the register of parent for one of the local variables,
15496 since it will think that parent can't possibly be used any more
15497 in this routine. Assigning to the local variable will thus
15498 munge parent in the parent process. */
15500 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15501 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15502 /* Convince the compiler that p..p7 are live; otherwise, it might
15503 use the same hardware register for all 8 local variables. */
15504 if (p != p1 || p != p2 || p != p3 || p != p4
15505 || p != p5 || p != p6 || p != p7)
15508 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15509 from child file descriptors. If the child closes a descriptor
15510 before it execs or exits, this munges the parent's descriptor
15511 as well. Test for this by closing stdout in the child. */
15512 _exit(close(fileno(stdout)) != 0);
15517 while (wait(&status) != child)
15520 /* Was there some problem with vforking? */
15523 /* Did the child fail? (This shouldn't happen.) */
15526 /* Did the vfork/compiler bug occur? */
15527 || parent != getpid()
15529 /* Did the file descriptor bug occur? */
15530 || fstat(fileno(stdout), &st) != 0
15535 if ac_fn_c_try_run "$LINENO"; then :
15536 ac_cv_func_vfork_works=yes
15538 ac_cv_func_vfork_works=no
15540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15541 conftest.$ac_objext conftest.beam conftest.$ac_ext
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15546 $as_echo "$ac_cv_func_vfork_works" >&6; }
15549 if test "x$ac_cv_func_fork_works" = xcross; then
15550 ac_cv_func_vfork_works=$ac_cv_func_vfork
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15552 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15555 if test "x$ac_cv_func_vfork_works" = xyes; then
15557 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15561 $as_echo "#define vfork fork" >>confdefs.h
15564 if test "x$ac_cv_func_fork_works" = xyes; then
15566 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15570 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
15571 strrchr strsignal fchmod fstat chmod
15573 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15574 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15575 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15576 cat >>confdefs.h <<_ACEOF
15577 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15584 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
15585 if ${ac_cv_path_SED+:} false; then :
15586 $as_echo_n "(cached) " >&6
15588 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15589 for ac_i in 1 2 3 4 5 6 7; do
15590 ac_script="$ac_script$as_nl$ac_script"
15592 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15593 { ac_script=; unset ac_script;}
15594 if test -z "$SED"; then
15595 ac_path_SED_found=false
15596 # Loop through the user's path and test for each of PROGNAME-LIST
15597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15598 for as_dir in $PATH
15601 test -z "$as_dir" && as_dir=.
15602 for ac_prog in sed gsed; do
15603 for ac_exec_ext in '' $ac_executable_extensions; do
15604 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
15605 as_fn_executable_p "$ac_path_SED" || continue
15606 # Check for GNU ac_path_SED and select it if it is found.
15607 # Check for GNU $ac_path_SED
15608 case `"$ac_path_SED" --version 2>&1` in
15610 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
15613 $as_echo_n 0123456789 >"conftest.in"
15616 cat "conftest.in" "conftest.in" >"conftest.tmp"
15617 mv "conftest.tmp" "conftest.in"
15618 cp "conftest.in" "conftest.nl"
15619 $as_echo '' >> "conftest.nl"
15620 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
15621 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15622 as_fn_arith $ac_count + 1 && ac_count=$as_val
15623 if test $ac_count -gt ${ac_path_SED_max-0}; then
15624 # Best one so far, save it but keep looking for a better one
15625 ac_cv_path_SED="$ac_path_SED"
15626 ac_path_SED_max=$ac_count
15628 # 10*(2^10) chars as input seems more than enough
15629 test $ac_count -gt 10 && break
15631 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15634 $ac_path_SED_found && break 3
15639 if test -z "$ac_cv_path_SED"; then
15640 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
15643 ac_cv_path_SED=$SED
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15648 $as_echo "$ac_cv_path_SED" >&6; }
15649 SED="$ac_cv_path_SED"
15654 POSIX_SHELL=`which bash`
15655 test -x "$POSIX_SHELL" && break
15656 POSIX_SHELL=`which dash`
15657 test -x "$POSIX_SHELL" && break
15658 POSIX_SHELL=/usr/xpg4/bin/sh
15659 test -x "$POSIX_SHELL" && break
15660 POSIX_SHELL=`/bin/sh -c '
15662 if ! true ; then exit 1 ; fi
15664 test -x "$POSIX_SHELL" && break
15665 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
15668 cat >>confdefs.h <<_ACEOF
15669 #define POSIX_SHELL "${POSIX_SHELL}"
15676 LIBOPTS_BUILD_BLOCKED=true
15679 NEED_LIBOPTS_DIR=''
15681 # Check whether --enable-local-libopts was given.
15682 if test "${enable_local_libopts+set}" = set; then :
15683 enableval=$enable_local_libopts;
15684 if test x$enableval = xyes ; then
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
15686 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
15687 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
15688 NEED_LIBOPTS_DIR=true
15689 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
15694 # Check whether --enable-libopts-install was given.
15695 if test "${enable_libopts_install+set}" = set; then :
15696 enableval=$enable_libopts_install;
15699 if test "X${enable_libopts_install}" = Xyes; then
15700 INSTALL_LIBOPTS_TRUE=
15701 INSTALL_LIBOPTS_FALSE='#'
15703 INSTALL_LIBOPTS_TRUE='#'
15704 INSTALL_LIBOPTS_FALSE=
15708 if test -z "${NEED_LIBOPTS_DIR}" ; then
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
15710 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
15712 # Check whether --with-autoopts-config was given.
15713 if test "${with_autoopts_config+set}" = set; then :
15714 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
15717 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
15718 if ${lo_cv_with_autoopts_config+:} false; then :
15719 $as_echo_n "(cached) " >&6
15721 if autoopts-config --help 2>/dev/null 1>&2
15722 then lo_cv_with_autoopts_config=autoopts-config
15723 elif libopts-config --help 2>/dev/null 1>&2
15724 then lo_cv_with_autoopts_config=libopts-config
15725 else lo_cv_with_autoopts_config=no ; fi
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
15728 $as_echo "$lo_cv_with_autoopts_config" >&6; }
15731 # end of AC_ARG_WITH
15733 if ${lo_cv_test_autoopts+:} false; then :
15734 $as_echo_n "(cached) " >&6
15737 if test -z "${lo_cv_with_autoopts_config}" \
15738 -o X"${lo_cv_with_autoopts_config}" = Xno
15740 if autoopts-config --help 2>/dev/null 1>&2
15741 then lo_cv_with_autoopts_config=autoopts-config
15742 elif libopts-config --help 2>/dev/null 1>&2
15743 then lo_cv_with_autoopts_config=libopts-config
15744 else lo_cv_with_autoopts_config=false ; fi
15746 lo_cv_test_autoopts=`
15747 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
15748 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
15749 then lo_cv_test_autoopts=no ; fi
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
15754 $as_echo "${lo_cv_test_autoopts}" >&6; }
15756 if test "X${lo_cv_test_autoopts}" != Xno
15758 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
15759 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
15761 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
15762 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
15763 NEED_LIBOPTS_DIR=true
15765 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
15766 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
15767 NEED_LIBOPTS_DIR=''
15769 if test -n "${NEED_LIBOPTS_DIR}"; then
15771 NEED_LIBOPTS_FALSE='#'
15773 NEED_LIBOPTS_TRUE='#'
15774 NEED_LIBOPTS_FALSE=
15779 LIBOPTS_DIR=sntp/libopts
15782 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
15784 # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD
15789 ntp_pkgconfig_min_version='0.15.0'
15790 if test -n "$ac_tool_prefix"; then
15791 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15792 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15794 $as_echo_n "checking for $ac_word... " >&6; }
15795 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15796 $as_echo_n "(cached) " >&6
15798 case $PKG_CONFIG in
15800 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15804 for as_dir in $PATH
15807 test -z "$as_dir" && as_dir=.
15808 for ac_exec_ext in '' $ac_executable_extensions; do
15809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15810 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15821 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15822 if test -n "$PKG_CONFIG"; then
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15824 $as_echo "$PKG_CONFIG" >&6; }
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15827 $as_echo "no" >&6; }
15832 if test -z "$ac_cv_path_PKG_CONFIG"; then
15833 ac_pt_PKG_CONFIG=$PKG_CONFIG
15834 # Extract the first word of "pkg-config", so it can be a program name with args.
15835 set dummy pkg-config; ac_word=$2
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15837 $as_echo_n "checking for $ac_word... " >&6; }
15838 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15839 $as_echo_n "(cached) " >&6
15841 case $ac_pt_PKG_CONFIG in
15843 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15847 for as_dir in $PATH
15850 test -z "$as_dir" && as_dir=.
15851 for ac_exec_ext in '' $ac_executable_extensions; do
15852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15853 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15864 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15865 if test -n "$ac_pt_PKG_CONFIG"; then
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15867 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15870 $as_echo "no" >&6; }
15873 if test "x$ac_pt_PKG_CONFIG" = x; then
15876 case $cross_compiling:$ac_tool_warned in
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15880 ac_tool_warned=yes ;;
15882 PKG_CONFIG=$ac_pt_PKG_CONFIG
15885 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15888 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
15889 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
15891 case "$PKG_CONFIG" in
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
15894 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
15895 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15897 $as_echo "yes" >&6; }
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15900 $as_echo "no" >&6; }
15909 # Check whether --enable-local-libevent was given.
15910 if test "${enable_local_libevent+set}" = set; then :
15911 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
15913 ntp_use_local_libevent=${ntp_use_local_libevent-detect}
15921 ntp_libevent_min_version=2
15922 ntp_libevent_tearoff=sntp/libevent
15928 case "$ntp_use_local_libevent" in
15931 *) # If we have (a good enough) pkg-config, see if it can find libevent
15932 case "$PKG_CONFIG" in
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
15935 $as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
15936 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
15938 ntp_use_local_libevent=no
15939 ntp_libevent_version="`$PKG_CONFIG --modversion libevent`"
15940 case "$ntp_libevent_version" in
15942 *) ntp_libevent_version='(unknown)' ;;
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_libevent_version" >&5
15945 $as_echo "yes, version $ntp_libevent_version" >&6; }
15946 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
15947 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
15948 # HMS: I hope the following is accurate.
15949 # We don't need -levent, we only need -levent_core.
15950 # While we could grab only the -L stuff, there *might* be
15951 # other flags there we want. Originally we just removed -levent
15952 # but then somebody decided to install -levent-2.0
15953 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
15954 # So now we dance...
15956 for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
15961 *) case "$LDADD_LIBEVENT" in
15962 '') LDADD_LIBEVENT="$i" ;;
15963 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
15968 case "$LIBISC_PTHREADS_NOTHREADS" in
15970 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
15972 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
15974 ntp_use_local_libevent=yes
15975 # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
15977 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15979 $as_echo "no" >&6; }
15983 ntp_use_local_libevent=yes
15989 case "$ntp_use_local_libevent" in
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
15992 $as_echo "$as_me: Using libevent tearoff" >&6;}
15993 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
15994 case "$LIBISC_PTHREADS_NOTHREADS" in
15996 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
15999 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
16004 if test "x$ntp_use_local_libevent" = "xyes"; then
16005 BUILD_LIBEVENT_TRUE=
16006 BUILD_LIBEVENT_FALSE='#'
16008 BUILD_LIBEVENT_TRUE='#'
16009 BUILD_LIBEVENT_FALSE=
16017 # Expose a cross-compilation indicator to makefiles
16018 if test $build != $host; then
16019 NTP_CROSSCOMPILE_TRUE=
16020 NTP_CROSSCOMPILE_FALSE='#'
16022 NTP_CROSSCOMPILE_TRUE='#'
16023 NTP_CROSSCOMPILE_FALSE=
16028 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16029 if test "x$ac_cv_type_size_t" = xyes; then :
16033 cat >>confdefs.h <<_ACEOF
16034 #define size_t unsigned int
16040 # Check whether --enable-c99-snprintf was given.
16041 if test "${enable_c99_snprintf+set}" = set; then :
16042 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
16044 force_c99_snprintf=no
16048 case "$force_c99_snprintf" in
16050 hw_force_rpl_snprintf=yes
16051 hw_force_rpl_vsnprintf=yes
16059 for ac_header in $ac_header_list
16061 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16062 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16064 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16065 cat >>confdefs.h <<_ACEOF
16066 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16080 $as_echo_n "checking for unsigned long long int... " >&6; }
16081 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16082 $as_echo_n "(cached) " >&6
16084 ac_cv_type_unsigned_long_long_int=yes
16085 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16087 /* end confdefs.h. */
16089 /* For now, do not test the preprocessor; as of 2007 there are too many
16090 implementations with broken preprocessors. Perhaps this can
16091 be revisited in 2012. In the meantime, code should not expect
16092 #if to work with literals wider than 32 bits. */
16093 /* Test literals. */
16094 long long int ll = 9223372036854775807ll;
16095 long long int nll = -9223372036854775807LL;
16096 unsigned long long int ull = 18446744073709551615ULL;
16097 /* Test constant expressions. */
16098 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16100 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16106 /* Test availability of runtime routines for shift and division. */
16107 long long int llmax = 9223372036854775807ll;
16108 unsigned long long int ullmax = 18446744073709551615ull;
16109 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16110 | (llmax / ll) | (llmax % ll)
16111 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16112 | (ullmax / ull) | (ullmax % ull));
16118 if ac_fn_c_try_link "$LINENO"; then :
16121 ac_cv_type_unsigned_long_long_int=no
16123 rm -f core conftest.err conftest.$ac_objext \
16124 conftest$ac_exeext conftest.$ac_ext
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16128 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16129 if test $ac_cv_type_unsigned_long_long_int = yes; then
16131 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16136 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
16137 if test "x$ac_cv_func_vsnprintf" = xyes; then :
16138 hw_cv_func_vsnprintf=yes
16140 hw_cv_func_vsnprintf=no
16143 if test "$hw_cv_func_vsnprintf" = yes; then :
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
16145 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
16146 if ${hw_cv_func_vsnprintf_c99+:} false; then :
16147 $as_echo_n "(cached) " >&6
16149 if test "$cross_compiling" = yes; then :
16150 hw_cv_func_vsnprintf_c99=no
16152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16153 /* end confdefs.h. */
16155 #include <stdarg.h>
16158 static int testprintf(char *buf, size_t size, const char *format, ...)
16162 va_start(ap, format);
16163 result = vsnprintf(buf, size, format, ap);
16171 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
16172 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
16173 buf[0] != 'T' || buf[3] != '\0')
16179 if ac_fn_c_try_run "$LINENO"; then :
16180 hw_cv_func_vsnprintf_c99=yes
16182 hw_cv_func_vsnprintf_c99=no
16184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16185 conftest.$ac_objext conftest.beam conftest.$ac_ext
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
16190 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
16192 hw_cv_func_vsnprintf_c99=no
16195 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
16198 $as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
16199 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
16200 hw_use_rpl_vsnprintf=yes
16202 hw_use_rpl_vsnprintf=no
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
16205 $as_echo "$hw_use_rpl_vsnprintf" >&6; }
16206 if test "$hw_use_rpl_vsnprintf" = yes; then :
16208 $as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
16210 if test ${hw_nodef_vsnprintf=no} = no; then :
16212 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
16215 for ac_header in inttypes.h locale.h stddef.h stdint.h
16217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16218 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16219 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16220 cat >>confdefs.h <<_ACEOF
16221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16228 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
16230 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
16232 cat >>confdefs.h <<_ACEOF
16233 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
16238 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
16240 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
16242 cat >>confdefs.h <<_ACEOF
16243 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
16251 $as_echo_n "checking for long double... " >&6; }
16252 if ${ac_cv_type_long_double+:} false; then :
16253 $as_echo_n "(cached) " >&6
16255 if test "$GCC" = yes; then
16256 ac_cv_type_long_double=yes
16258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259 /* end confdefs.h. */
16260 /* The Stardent Vistra knows sizeof (long double), but does
16262 long double foo = 0.0L;
16266 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
16267 sizeof (double) <= sizeof (long double))];
16268 test_array [0] = 0;
16269 return test_array [0];
16275 if ac_fn_c_try_compile "$LINENO"; then :
16276 ac_cv_type_long_double=yes
16278 ac_cv_type_long_double=no
16280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
16284 $as_echo "$ac_cv_type_long_double" >&6; }
16285 if test $ac_cv_type_long_double = yes; then
16287 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16294 $as_echo_n "checking for long long int... " >&6; }
16295 if ${ac_cv_type_long_long_int+:} false; then :
16296 $as_echo_n "(cached) " >&6
16298 ac_cv_type_long_long_int=yes
16299 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16300 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16301 if test $ac_cv_type_long_long_int = yes; then
16302 if test "$cross_compiling" = yes; then :
16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306 /* end confdefs.h. */
16307 #include <limits.h>
16310 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16311 # define LLONG_MAX (HALF - 1 + HALF)
16316 long long int n = 1;
16320 long long int m = n << i;
16323 if (LLONG_MAX / 2 < m)
16331 if ac_fn_c_try_run "$LINENO"; then :
16334 ac_cv_type_long_long_int=no
16336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16337 conftest.$ac_objext conftest.beam conftest.$ac_ext
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16344 $as_echo "$ac_cv_type_long_long_int" >&6; }
16345 if test $ac_cv_type_long_long_int = yes; then
16347 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16353 $as_echo_n "checking for unsigned long long int... " >&6; }
16354 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16355 $as_echo_n "(cached) " >&6
16357 ac_cv_type_unsigned_long_long_int=yes
16358 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16362 /* For now, do not test the preprocessor; as of 2007 there are too many
16363 implementations with broken preprocessors. Perhaps this can
16364 be revisited in 2012. In the meantime, code should not expect
16365 #if to work with literals wider than 32 bits. */
16366 /* Test literals. */
16367 long long int ll = 9223372036854775807ll;
16368 long long int nll = -9223372036854775807LL;
16369 unsigned long long int ull = 18446744073709551615ULL;
16370 /* Test constant expressions. */
16371 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16373 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16379 /* Test availability of runtime routines for shift and division. */
16380 long long int llmax = 9223372036854775807ll;
16381 unsigned long long int ullmax = 18446744073709551615ull;
16382 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16383 | (llmax / ll) | (llmax % ll)
16384 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16385 | (ullmax / ull) | (ullmax % ull));
16391 if ac_fn_c_try_link "$LINENO"; then :
16394 ac_cv_type_unsigned_long_long_int=no
16396 rm -f core conftest.err conftest.$ac_objext \
16397 conftest$ac_exeext conftest.$ac_ext
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16401 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16402 if test $ac_cv_type_unsigned_long_long_int = yes; then
16404 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16408 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16409 if test "x$ac_cv_type_size_t" = xyes; then :
16413 cat >>confdefs.h <<_ACEOF
16414 #define size_t unsigned int
16421 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
16422 if test "x$ac_cv_type_intmax_t" = xyes; then :
16424 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
16427 test $ac_cv_type_long_long_int = yes \
16428 && ac_type='long long int' \
16429 || ac_type='long int'
16431 cat >>confdefs.h <<_ACEOF
16432 #define intmax_t $ac_type
16440 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
16441 if test "x$ac_cv_type_uintmax_t" = xyes; then :
16443 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
16446 test $ac_cv_type_unsigned_long_long_int = yes \
16447 && ac_type='unsigned long long int' \
16448 || ac_type='unsigned long int'
16450 cat >>confdefs.h <<_ACEOF
16451 #define uintmax_t $ac_type
16458 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16459 if test "x$ac_cv_type_uintptr_t" = xyes; then :
16461 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
16464 for ac_type in 'unsigned int' 'unsigned long int' \
16465 'unsigned long long int'; do
16466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16467 /* end confdefs.h. */
16468 $ac_includes_default
16472 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16473 test_array [0] = 0;
16474 return test_array [0];
16480 if ac_fn_c_try_compile "$LINENO"; then :
16482 cat >>confdefs.h <<_ACEOF
16483 #define uintptr_t $ac_type
16488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16489 test -z "$ac_type" && break
16494 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16495 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16497 cat >>confdefs.h <<_ACEOF
16498 #define HAVE_PTRDIFF_T 1
16504 for ac_func in localeconv
16506 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
16507 if test "x$ac_cv_func_localeconv" = xyes; then :
16508 cat >>confdefs.h <<_ACEOF
16509 #define HAVE_LOCALECONV 1
16516 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16518 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16519 if ${ac_cv_c_const+:} false; then :
16520 $as_echo_n "(cached) " >&6
16522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523 /* end confdefs.h. */
16529 #ifndef __cplusplus
16530 /* Ultrix mips cc rejects this sort of thing. */
16531 typedef int charset[2];
16532 const charset cs = { 0, 0 };
16533 /* SunOS 4.1.1 cc rejects this. */
16534 char const *const *pcpcc;
16536 /* NEC SVR4.0.2 mips cc rejects this. */
16537 struct point {int x, y;};
16538 static struct point const zero = {0,0};
16539 /* AIX XL C 1.02.0.0 rejects this.
16540 It does not let you subtract one const X* pointer from another in
16541 an arm of an if-expression whose if-part is not a constant
16543 const char *g = "string";
16544 pcpcc = &g + (g ? g-g : 0);
16545 /* HPUX 7.0 cc rejects these. */
16547 ppc = (char**) pcpcc;
16548 pcpcc = (char const *const *) ppc;
16549 { /* SCO 3.2v4 cc rejects this sort of thing. */
16552 char const *s = 0 ? (char *) 0 : (char const *) 0;
16557 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16558 int x[] = {25, 17};
16559 const int *foo = &x[0];
16562 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16563 typedef const int *iptr;
16567 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16568 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16569 struct s { int j; const int *ap[3]; } bx;
16570 struct s *b = &bx; b->j = 5;
16572 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16573 const int foo = 10;
16574 if (!foo) return 0;
16576 return !cs[0] && !zero.x;
16583 if ac_fn_c_try_compile "$LINENO"; then :
16588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16591 $as_echo "$ac_cv_c_const" >&6; }
16592 if test $ac_cv_c_const = no; then
16594 $as_echo "#define const /**/" >>confdefs.h
16601 case " $LIBOBJS " in
16602 *" snprintf.$ac_objext "* ) ;;
16603 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16607 _hw_cv_func_xprintf_replace_done=yes
16613 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16614 if test "x$ac_cv_func_snprintf" = xyes; then :
16615 hw_cv_func_snprintf=yes
16617 hw_cv_func_snprintf=no
16620 if test "$hw_cv_func_snprintf" = yes; then :
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
16622 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
16623 if ${hw_cv_func_snprintf_c99+:} false; then :
16624 $as_echo_n "(cached) " >&6
16626 if test "$cross_compiling" = yes; then :
16627 hw_cv_func_snprintf_c99=no
16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h. */
16636 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
16637 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
16638 buf[0] != 'T' || buf[3] != '\0')
16644 if ac_fn_c_try_run "$LINENO"; then :
16645 hw_cv_func_snprintf_c99=yes
16647 hw_cv_func_snprintf_c99=no
16649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16650 conftest.$ac_objext conftest.beam conftest.$ac_ext
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
16655 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
16657 hw_cv_func_snprintf_c99=no
16660 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
16663 $as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
16664 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
16665 hw_use_rpl_snprintf=yes
16667 hw_use_rpl_snprintf=no
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
16670 $as_echo "$hw_use_rpl_snprintf" >&6; }
16671 if test "$hw_use_rpl_snprintf" = yes; then :
16673 $as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
16675 if test ${hw_nodef_snprintf=no} = no; then :
16677 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
16681 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16683 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16684 if ${ac_cv_c_const+:} false; then :
16685 $as_echo_n "(cached) " >&6
16687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16688 /* end confdefs.h. */
16694 #ifndef __cplusplus
16695 /* Ultrix mips cc rejects this sort of thing. */
16696 typedef int charset[2];
16697 const charset cs = { 0, 0 };
16698 /* SunOS 4.1.1 cc rejects this. */
16699 char const *const *pcpcc;
16701 /* NEC SVR4.0.2 mips cc rejects this. */
16702 struct point {int x, y;};
16703 static struct point const zero = {0,0};
16704 /* AIX XL C 1.02.0.0 rejects this.
16705 It does not let you subtract one const X* pointer from another in
16706 an arm of an if-expression whose if-part is not a constant
16708 const char *g = "string";
16709 pcpcc = &g + (g ? g-g : 0);
16710 /* HPUX 7.0 cc rejects these. */
16712 ppc = (char**) pcpcc;
16713 pcpcc = (char const *const *) ppc;
16714 { /* SCO 3.2v4 cc rejects this sort of thing. */
16717 char const *s = 0 ? (char *) 0 : (char const *) 0;
16722 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16723 int x[] = {25, 17};
16724 const int *foo = &x[0];
16727 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16728 typedef const int *iptr;
16732 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16733 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16734 struct s { int j; const int *ap[3]; } bx;
16735 struct s *b = &bx; b->j = 5;
16737 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16738 const int foo = 10;
16739 if (!foo) return 0;
16741 return !cs[0] && !zero.x;
16748 if ac_fn_c_try_compile "$LINENO"; then :
16753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16756 $as_echo "$ac_cv_c_const" >&6; }
16757 if test $ac_cv_c_const = no; then
16759 $as_echo "#define const /**/" >>confdefs.h
16766 case " $LIBOBJS " in
16767 *" snprintf.$ac_objext "* ) ;;
16768 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
16772 _hw_cv_func_xprintf_replace_done=yes
16781 # HMS: Save $LIBS and empty it.
16782 # any LIBS we add here should go in to LDADD_LIBNTP
16789 # [Bug 2332] because we need to know if we are using GNU ld...
16792 # Check whether --with-gnu-ld was given.
16793 if test "${with_gnu_ld+set}" = set; then :
16794 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16800 if test yes = "$GCC"; then
16801 # Check if gcc -print-prog-name=ld gives a path.
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16803 $as_echo_n "checking for ld used by $CC... " >&6; }
16806 # gcc leaves a trailing carriage return, which upsets mingw
16807 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16809 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16812 # Accept absolute paths.
16814 re_direlt='/[^/][^/]*/\.\./'
16815 # Canonicalize the pathname of ld
16816 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16817 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16818 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16820 test -z "$LD" && LD=$ac_prog
16823 # If it fails, then pretend we aren't using GCC.
16827 # If it is relative, then search for the first ld in PATH.
16828 with_gnu_ld=unknown
16831 elif test yes = "$with_gnu_ld"; then
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16833 $as_echo_n "checking for GNU ld... " >&6; }
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16836 $as_echo_n "checking for non-GNU ld... " >&6; }
16838 if ${lt_cv_path_LD+:} false; then :
16839 $as_echo_n "(cached) " >&6
16841 if test -z "$LD"; then
16842 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16843 for ac_dir in $PATH; do
16845 test -z "$ac_dir" && ac_dir=.
16846 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16847 lt_cv_path_LD=$ac_dir/$ac_prog
16848 # Check to see if the program is GNU ld. I'd rather use --version,
16849 # but apparently some variants of GNU ld only accept -v.
16850 # Break only if it was the GNU/non-GNU ld that we prefer.
16851 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16852 *GNU* | *'with BFD'*)
16853 test no != "$with_gnu_ld" && break
16856 test yes != "$with_gnu_ld" && break
16863 lt_cv_path_LD=$LD # Let the user override the test with a path.
16868 if test -n "$LD"; then
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16870 $as_echo "$LD" >&6; }
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16873 $as_echo "no" >&6; }
16875 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16877 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16878 if ${lt_cv_prog_gnu_ld+:} false; then :
16879 $as_echo_n "(cached) " >&6
16881 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16882 case `$LD -v 2>&1 </dev/null` in
16883 *GNU* | *'with BFD'*)
16884 lt_cv_prog_gnu_ld=yes
16887 lt_cv_prog_gnu_ld=no
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16892 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16893 with_gnu_ld=$lt_cv_prog_gnu_ld
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
16903 $as_echo_n "checking for directory path separator... " >&6; }
16904 if ${ntp_cv_dir_sep+:} false; then :
16905 $as_echo_n "(cached) " >&6
16908 case "$ntp_cv_dir_sep" in
16911 *djgpp | *mingw32* | *emx*)
16912 ntp_cv_dir_sep="'\\'"
16915 ntp_cv_dir_sep="'/'"
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
16923 $as_echo "$ntp_cv_dir_sep" >&6; }
16925 cat >>confdefs.h <<_ACEOF
16926 #define DIR_SEP $ntp_cv_dir_sep
16931 NTP_ORIG_LIBS="$LIBS"
16933 # Check whether --with-lineeditlibs was given.
16934 if test "${with_lineeditlibs+set}" = set; then :
16935 withval=$with_lineeditlibs; use_lineeditlibs="$withval"
16937 use_lineeditlibs="edit,editline"
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
16942 $as_echo_n "checking line editing libraries... " >&6; }
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
16944 $as_echo "$use_lineeditlibs" >&6; }
16945 case "$use_lineeditlibs" in
16947 ntp_lib_lineedit=no
16950 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
16951 for term_lib in "" termcap curses ncurses; do
16952 case "$term_lib" in
16954 TRY_LIB="-l$lineedit_lib"
16957 TRY_LIB="-l$lineedit_lib -l$term_lib"
16960 LIBS="$NTP_ORIG_LIBS $TRY_LIB"
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
16962 $as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
16963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16964 /* end confdefs.h. */
16966 /* Override any GCC internal prototype to avoid an error.
16967 Use char because int might match the return type of a GCC
16968 builtin and then its argument prototype would still apply. */
16976 return readline ();
16981 if ac_fn_c_try_link "$LINENO"; then :
16982 ntp_lib_lineedit="$TRY_LIB"
16984 rm -f core conftest.err conftest.$ac_objext \
16985 conftest$ac_exeext conftest.$ac_ext
16986 case "$ntp_lib_lineedit" in
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16989 $as_echo "no" >&6; }
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16994 $as_echo "yes" >&6; }
16997 case "$term_lib" in
16999 # do not try el_gets without a terminal library
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
17003 $as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
17004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005 /* end confdefs.h. */
17007 /* Override any GCC internal prototype to avoid an error.
17008 Use char because int might match the return type of a GCC
17009 builtin and then its argument prototype would still apply. */
17022 if ac_fn_c_try_link "$LINENO"; then :
17023 ntp_lib_lineedit="$TRY_LIB"
17025 rm -f core conftest.err conftest.$ac_objext \
17026 conftest$ac_exeext conftest.$ac_ext
17027 case "$ntp_lib_lineedit" in
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17030 $as_echo "no" >&6; }
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17034 $as_echo "yes" >&6; }
17037 esac # $ntp_lib_lineedit
17040 case "$ntp_lib_lineedit" in
17048 LIBS="$NTP_ORIG_LIBS"
17050 esac # $use_lineeditlibs
17052 case "$ntp_lib_lineedit" in
17054 ntp_lib_lineedit="no"
17059 EDITLINE_LIBS="$ntp_lib_lineedit"
17062 esac # $ntp_lib_lineedit
17064 case "$ntp_lib_lineedit" in
17068 for ac_header in readline.h readline/readline.h histedit.h
17070 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17071 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17072 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17073 cat >>confdefs.h <<_ACEOF
17074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17081 for ac_header in history.h readline/history.h
17083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17084 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17085 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17086 cat >>confdefs.h <<_ACEOF
17087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17095 case "$ac_cv_header_histedit_h" in
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
17098 $as_echo_n "checking number of arguments to el_init()... " >&6; }
17099 if ${ntp_cv_el_init_args+:} false; then :
17100 $as_echo_n "(cached) " >&6
17102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17103 /* end confdefs.h. */
17106 #include <histedit.h>
17112 el_init("conftest", stdin, stdout, stderr);
17119 if ac_fn_c_try_compile "$LINENO"; then :
17120 ntp_cv_el_init_args=4
17122 ntp_cv_el_init_args=3
17125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
17129 $as_echo "$ntp_cv_el_init_args" >&6; }
17131 cat >>confdefs.h <<_ACEOF
17132 #define EL_INIT_ARGS $ntp_cv_el_init_args
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
17138 $as_echo_n "checking whether readline supports history... " >&6; }
17140 ntp_lib_lineedit_history="no"
17142 LIBS="$ORIG_LIBS $ntp_lib_lineedit"
17143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17144 /* end confdefs.h. */
17146 /* Override any GCC internal prototype to avoid an error.
17147 Use char because int might match the return type of a GCC
17148 builtin and then its argument prototype would still apply. */
17152 char add_history ();
17156 return add_history ();
17161 if ac_fn_c_try_link "$LINENO"; then :
17162 ntp_lib_lineedit_history="yes"
17164 rm -f core conftest.err conftest.$ac_objext \
17165 conftest$ac_exeext conftest.$ac_ext
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
17169 $as_echo "$ntp_lib_lineedit_history" >&6; }
17171 case "$ntp_lib_lineedit_history" in
17174 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
17177 esac # $ntp_lib_lineedit
17178 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
17179 { ORIG_LIBS=; unset ORIG_LIBS;}
17180 { TRY_LIB=; unset TRY_LIB;}
17181 { use_lineeditlibs=; unset use_lineeditlibs;}
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
17191 $as_echo_n "checking for library containing cos... " >&6; }
17192 if ${ac_cv_search_cos+:} false; then :
17193 $as_echo_n "(cached) " >&6
17195 ac_func_search_save_LIBS=$LIBS
17196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17197 /* end confdefs.h. */
17199 /* Override any GCC internal prototype to avoid an error.
17200 Use char because int might match the return type of a GCC
17201 builtin and then its argument prototype would still apply. */
17214 for ac_lib in '' m; do
17215 if test -z "$ac_lib"; then
17216 ac_res="none required"
17219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17221 if ac_fn_c_try_link "$LINENO"; then :
17222 ac_cv_search_cos=$ac_res
17224 rm -f core conftest.err conftest.$ac_objext \
17226 if ${ac_cv_search_cos+:} false; then :
17230 if ${ac_cv_search_cos+:} false; then :
17233 ac_cv_search_cos=no
17235 rm conftest.$ac_ext
17236 LIBS=$ac_func_search_save_LIBS
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
17239 $as_echo "$ac_cv_search_cos" >&6; }
17240 ac_res=$ac_cv_search_cos
17241 if test "$ac_res" != no; then :
17242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17250 { _libs=; unset _libs;}
17253 for ac_header in vfork.h
17255 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
17256 if test "x$ac_cv_header_vfork_h" = xyes; then :
17257 cat >>confdefs.h <<_ACEOF
17258 #define HAVE_VFORK_H 1
17265 for ac_func in fork vfork
17267 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17268 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17269 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17270 cat >>confdefs.h <<_ACEOF
17271 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17277 if test "x$ac_cv_func_fork" = xyes; then
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
17279 $as_echo_n "checking for working fork... " >&6; }
17280 if ${ac_cv_func_fork_works+:} false; then :
17281 $as_echo_n "(cached) " >&6
17283 if test "$cross_compiling" = yes; then :
17284 ac_cv_func_fork_works=cross
17286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17287 /* end confdefs.h. */
17288 $ac_includes_default
17293 /* By Ruediger Kuhlmann. */
17294 return fork () < 0;
17300 if ac_fn_c_try_run "$LINENO"; then :
17301 ac_cv_func_fork_works=yes
17303 ac_cv_func_fork_works=no
17305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17306 conftest.$ac_objext conftest.beam conftest.$ac_ext
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
17311 $as_echo "$ac_cv_func_fork_works" >&6; }
17314 ac_cv_func_fork_works=$ac_cv_func_fork
17316 if test "x$ac_cv_func_fork_works" = xcross; then
17318 *-*-amigaos* | *-*-msdosdjgpp*)
17319 # Override, as these systems have only a dummy fork() stub
17320 ac_cv_func_fork_works=no
17323 ac_cv_func_fork_works=yes
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17327 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17329 ac_cv_func_vfork_works=$ac_cv_func_vfork
17330 if test "x$ac_cv_func_vfork" = xyes; then
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
17332 $as_echo_n "checking for working vfork... " >&6; }
17333 if ${ac_cv_func_vfork_works+:} false; then :
17334 $as_echo_n "(cached) " >&6
17336 if test "$cross_compiling" = yes; then :
17337 ac_cv_func_vfork_works=cross
17339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17340 /* end confdefs.h. */
17341 /* Thanks to Paul Eggert for this test. */
17342 $ac_includes_default
17343 #include <sys/wait.h>
17344 #ifdef HAVE_VFORK_H
17345 # include <vfork.h>
17347 /* On some sparc systems, changes by the child to local and incoming
17348 argument registers are propagated back to the parent. The compiler
17349 is told about this with #include <vfork.h>, but some compilers
17350 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17351 static variable whose address is put into a register that is
17352 clobbered by the vfork. */
17355 sparc_address_test (int arg)
17357 sparc_address_test (arg) int arg;
17360 static pid_t child;
17378 pid_t parent = getpid ();
17381 sparc_address_test (0);
17386 /* Here is another test for sparc vfork register problems. This
17387 test uses lots of local variables, at least as many local
17388 variables as main has allocated so far including compiler
17389 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17390 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17391 reuse the register of parent for one of the local variables,
17392 since it will think that parent can't possibly be used any more
17393 in this routine. Assigning to the local variable will thus
17394 munge parent in the parent process. */
17396 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17397 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17398 /* Convince the compiler that p..p7 are live; otherwise, it might
17399 use the same hardware register for all 8 local variables. */
17400 if (p != p1 || p != p2 || p != p3 || p != p4
17401 || p != p5 || p != p6 || p != p7)
17404 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17405 from child file descriptors. If the child closes a descriptor
17406 before it execs or exits, this munges the parent's descriptor
17407 as well. Test for this by closing stdout in the child. */
17408 _exit(close(fileno(stdout)) != 0);
17413 while (wait(&status) != child)
17416 /* Was there some problem with vforking? */
17419 /* Did the child fail? (This shouldn't happen.) */
17422 /* Did the vfork/compiler bug occur? */
17423 || parent != getpid()
17425 /* Did the file descriptor bug occur? */
17426 || fstat(fileno(stdout), &st) != 0
17431 if ac_fn_c_try_run "$LINENO"; then :
17432 ac_cv_func_vfork_works=yes
17434 ac_cv_func_vfork_works=no
17436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17437 conftest.$ac_objext conftest.beam conftest.$ac_ext
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
17442 $as_echo "$ac_cv_func_vfork_works" >&6; }
17445 if test "x$ac_cv_func_fork_works" = xcross; then
17446 ac_cv_func_vfork_works=$ac_cv_func_vfork
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17448 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17451 if test "x$ac_cv_func_vfork_works" = xyes; then
17453 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
17457 $as_echo "#define vfork fork" >>confdefs.h
17460 if test "x$ac_cv_func_fork_works" = xyes; then
17462 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
17466 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17467 # for constant arguments. Useless!
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17469 $as_echo_n "checking for working alloca.h... " >&6; }
17470 if ${ac_cv_working_alloca_h+:} false; then :
17471 $as_echo_n "(cached) " >&6
17473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17474 /* end confdefs.h. */
17475 #include <alloca.h>
17479 char *p = (char *) alloca (2 * sizeof (int));
17485 if ac_fn_c_try_link "$LINENO"; then :
17486 ac_cv_working_alloca_h=yes
17488 ac_cv_working_alloca_h=no
17490 rm -f core conftest.err conftest.$ac_objext \
17491 conftest$ac_exeext conftest.$ac_ext
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17494 $as_echo "$ac_cv_working_alloca_h" >&6; }
17495 if test $ac_cv_working_alloca_h = yes; then
17497 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17502 $as_echo_n "checking for alloca... " >&6; }
17503 if ${ac_cv_func_alloca_works+:} false; then :
17504 $as_echo_n "(cached) " >&6
17506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17507 /* end confdefs.h. */
17509 # define alloca __builtin_alloca
17512 # include <malloc.h>
17513 # define alloca _alloca
17515 # ifdef HAVE_ALLOCA_H
17516 # include <alloca.h>
17521 # ifndef alloca /* predefined by HP cc +Olibcalls */
17522 void *alloca (size_t);
17532 char *p = (char *) alloca (1);
17538 if ac_fn_c_try_link "$LINENO"; then :
17539 ac_cv_func_alloca_works=yes
17541 ac_cv_func_alloca_works=no
17543 rm -f core conftest.err conftest.$ac_objext \
17544 conftest$ac_exeext conftest.$ac_ext
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17547 $as_echo "$ac_cv_func_alloca_works" >&6; }
17549 if test $ac_cv_func_alloca_works = yes; then
17551 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17554 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17555 # that cause trouble. Some versions do not even contain alloca or
17556 # contain a buggy version. If you still want to use their alloca,
17557 # use ar to extract alloca.o from them instead of compiling alloca.c.
17559 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17561 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
17565 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17566 if ${ac_cv_os_cray+:} false; then :
17567 $as_echo_n "(cached) " >&6
17569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17570 /* end confdefs.h. */
17571 #if defined CRAY && ! defined CRAY2
17578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17579 $EGREP "webecray" >/dev/null 2>&1; then :
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17588 $as_echo "$ac_cv_os_cray" >&6; }
17589 if test $ac_cv_os_cray = yes; then
17590 for ac_func in _getb67 GETB67 getb67; do
17591 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17592 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17593 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17595 cat >>confdefs.h <<_ACEOF
17596 #define CRAY_STACKSEG_END $ac_func
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17606 $as_echo_n "checking stack direction for C alloca... " >&6; }
17607 if ${ac_cv_c_stack_direction+:} false; then :
17608 $as_echo_n "(cached) " >&6
17610 if test "$cross_compiling" = yes; then :
17611 ac_cv_c_stack_direction=0
17613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17614 /* end confdefs.h. */
17615 $ac_includes_default
17617 find_stack_direction (int *addr, int depth)
17619 int dir, dummy = 0;
17622 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17623 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17624 return dir + dummy;
17628 main (int argc, char **argv)
17630 return find_stack_direction (0, argc + !argv + 20) < 0;
17633 if ac_fn_c_try_run "$LINENO"; then :
17634 ac_cv_c_stack_direction=1
17636 ac_cv_c_stack_direction=-1
17638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17639 conftest.$ac_objext conftest.beam conftest.$ac_ext
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17644 $as_echo "$ac_cv_c_stack_direction" >&6; }
17645 cat >>confdefs.h <<_ACEOF
17646 #define STACK_DIRECTION $ac_cv_c_stack_direction
17652 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
17653 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
17659 cat >>confdefs.h <<_ACEOF
17660 #define HAVE_DECL_STRERROR_R $ac_have_decl
17663 for ac_func in strerror_r
17665 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
17666 if test "x$ac_cv_func_strerror_r" = xyes; then :
17667 cat >>confdefs.h <<_ACEOF
17668 #define HAVE_STRERROR_R 1
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
17675 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
17676 if ${ac_cv_func_strerror_r_char_p+:} false; then :
17677 $as_echo_n "(cached) " >&6
17680 ac_cv_func_strerror_r_char_p=no
17681 if test $ac_cv_have_decl_strerror_r = yes; then
17682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17683 /* end confdefs.h. */
17684 $ac_includes_default
17690 char x = *strerror_r (0, buf, sizeof buf);
17691 char *p = strerror_r (0, buf, sizeof buf);
17698 if ac_fn_c_try_compile "$LINENO"; then :
17699 ac_cv_func_strerror_r_char_p=yes
17701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17703 # strerror_r is not declared. Choose between
17704 # systems that have relatively inaccessible declarations for the
17705 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
17706 # former has a strerror_r that returns char*, while the latter
17707 # has a strerror_r that returns `int'.
17708 # This test should segfault on the DEC system.
17709 if test "$cross_compiling" = yes; then :
17712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17713 /* end confdefs.h. */
17714 $ac_includes_default
17715 extern char *strerror_r ();
17720 char x = *strerror_r (0, buf, sizeof buf);
17721 return ! isalpha (x);
17726 if ac_fn_c_try_run "$LINENO"; then :
17727 ac_cv_func_strerror_r_char_p=yes
17729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17730 conftest.$ac_objext conftest.beam conftest.$ac_ext
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
17737 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
17738 if test $ac_cv_func_strerror_r_char_p = yes; then
17740 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
17745 ac_busted_vpath_in_make=no
17747 *-*-irix6.1*) # 64 bit only
17750 *-*-irix6*) # 6.2 (and later?)
17751 ac_busted_vpath_in_make=yes
17754 ac_busted_vpath_in_make=yes
17757 ac_busted_vpath_in_make=yes
17761 case "$ac_busted_vpath_in_make$srcdir" in
17764 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
17766 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
17774 # Was *-*-aix[[4-9]]*
17775 # XXX only verified thru AIX6. But...
17776 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
17777 # that this support would be in 5.3, removed in 6, and added back.
17779 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
17780 # (returning ENOSYS). I didn't check 4.2. If, in the future,
17781 # IBM pulls its thumbs out long enough to implement clock_settime,
17782 # this conditional will need to change. Maybe use AC_TRY_RUN
17783 # instead to try to set the time to itself and check errno.
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17787 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17788 if ${ac_cv_search_clock_gettime+:} false; then :
17789 $as_echo_n "(cached) " >&6
17791 ac_func_search_save_LIBS=$LIBS
17792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17793 /* end confdefs.h. */
17795 /* Override any GCC internal prototype to avoid an error.
17796 Use char because int might match the return type of a GCC
17797 builtin and then its argument prototype would still apply. */
17801 char clock_gettime ();
17805 return clock_gettime ();
17810 for ac_lib in '' rt; do
17811 if test -z "$ac_lib"; then
17812 ac_res="none required"
17815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17817 if ac_fn_c_try_link "$LINENO"; then :
17818 ac_cv_search_clock_gettime=$ac_res
17820 rm -f core conftest.err conftest.$ac_objext \
17822 if ${ac_cv_search_clock_gettime+:} false; then :
17826 if ${ac_cv_search_clock_gettime+:} false; then :
17829 ac_cv_search_clock_gettime=no
17831 rm conftest.$ac_ext
17832 LIBS=$ac_func_search_save_LIBS
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17835 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17836 ac_res=$ac_cv_search_clock_gettime
17837 if test "$ac_res" != no; then :
17838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17839 case "$ac_cv_search_clock_gettime" in
17840 'none required') ;;
17842 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
17847 for ac_func in clock_getres clock_gettime clock_settime
17849 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17850 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17851 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17852 cat >>confdefs.h <<_ACEOF
17853 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17862 for ac_func in getclock stime timegm strlcpy strlcat
17864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17865 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17866 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17867 cat >>confdefs.h <<_ACEOF
17868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
17879 $as_echo_n "checking for library containing snprintb... " >&6; }
17880 if ${ac_cv_search_snprintb+:} false; then :
17881 $as_echo_n "(cached) " >&6
17883 ac_func_search_save_LIBS=$LIBS
17884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17885 /* end confdefs.h. */
17887 /* Override any GCC internal prototype to avoid an error.
17888 Use char because int might match the return type of a GCC
17889 builtin and then its argument prototype would still apply. */
17897 return snprintb ();
17902 for ac_lib in '' util; do
17903 if test -z "$ac_lib"; then
17904 ac_res="none required"
17907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17909 if ac_fn_c_try_link "$LINENO"; then :
17910 ac_cv_search_snprintb=$ac_res
17912 rm -f core conftest.err conftest.$ac_objext \
17914 if ${ac_cv_search_snprintb+:} false; then :
17918 if ${ac_cv_search_snprintb+:} false; then :
17921 ac_cv_search_snprintb=no
17923 rm conftest.$ac_ext
17924 LIBS=$ac_func_search_save_LIBS
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
17927 $as_echo "$ac_cv_search_snprintb" >&6; }
17928 ac_res=$ac_cv_search_snprintb
17929 if test "$ac_res" != no; then :
17930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17931 case "$ac_cv_search_snprintb" in
17932 'none required') ;;
17934 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
17937 $as_echo "#define USE_SNPRINTB 1" >>confdefs.h
17943 for ac_header in errno.h sys/socket.h sys/types.h time.h
17945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17946 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17947 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17948 cat >>confdefs.h <<_ACEOF
17949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17956 for ac_header in net/if.h
17958 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
17959 #ifdef HAVE_SYS_SOCKET_H
17960 # include <sys/socket.h>
17964 if test "x$ac_cv_header_net_if_h" = xyes; then :
17965 cat >>confdefs.h <<_ACEOF
17966 #define HAVE_NET_IF_H 1
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
17976 $as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
17977 if ${ntp_cv_predecl_mpinfou+:} false; then :
17978 $as_echo_n "(cached) " >&6
17981 np_cv_predecl_mpinfou=no
17982 case "$ac_cv_header_net_if_h" in
17984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17985 /* end confdefs.h. */
17987 typedef union mpinfou {
17988 struct pdk_mpinfo *pdkptr;
17989 struct mpinfo *pikptr;
17991 #ifdef HAVE_SYS_SOCKET_H
17992 # include <sys/socket.h>
17994 #include <net/if.h>
18006 if ac_fn_c_try_compile "$LINENO"; then :
18008 ntp_cv_predecl_mpinfou=yes
18009 ac_cv_header_net_if_h=yes
18013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
18019 $as_echo "$ntp_cv_predecl_mpinfou" >&6; }
18020 case "$ntp_cv_predecl_mpinfou" in
18022 cat >>confdefs.h <<_ACEOF
18023 #ifndef MPINFOU_PREDECLARED
18024 # define MPINFOU_PREDECLARED
18025 typedef union mpinfou {
18026 struct pdk_mpinfo *pdkptr;
18027 struct mpinfo *pikptr;
18037 for ac_header in linux/if_addr.h
18039 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
18040 #ifdef HAVE_SYS_SOCKET_H
18041 # include <sys/socket.h>
18045 if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
18046 cat >>confdefs.h <<_ACEOF
18047 #define HAVE_LINUX_IF_ADDR_H 1
18055 $as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h
18059 for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
18061 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18062 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18063 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18064 cat >>confdefs.h <<_ACEOF
18065 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18072 # sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
18073 for ac_header in sys/sysctl.h
18075 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
18076 #if defined HAVE_SYS_PARAM_H
18077 # include <sys/param.h>
18081 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
18082 cat >>confdefs.h <<_ACEOF
18083 #define HAVE_SYS_SYSCTL_H 1
18090 for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
18092 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18093 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18094 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18095 cat >>confdefs.h <<_ACEOF
18096 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18104 for ac_header in resolv.h
18106 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
18107 #ifdef HAVE_SYS_TYPES_H
18108 # include <sys/types.h>
18110 #ifdef HAVE_NETINET_IN_H
18111 # include <netinet/in.h>
18113 #ifdef HAVE_ARPA_NAMESER_H
18114 # include <arpa/nameser.h>
18118 if test "x$ac_cv_header_resolv_h" = xyes; then :
18119 cat >>confdefs.h <<_ACEOF
18120 #define HAVE_RESOLV_H 1
18128 for ac_header in net/if_var.h
18130 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
18131 #if HAVE_SYS_TYPES_H
18132 # include <sys/types.h>
18134 #ifdef HAVE_SYS_SOCKET_H
18135 # include <sys/socket.h>
18137 #ifdef HAVE_NETINET_IN_H
18138 # include <netinet/in.h>
18140 #ifdef HAVE_NET_IF_H
18141 # include <net/if.h>
18145 if test "x$ac_cv_header_net_if_var_h" = xyes; then :
18146 cat >>confdefs.h <<_ACEOF
18147 #define HAVE_NET_IF_VAR_H 1
18155 for ac_header in netinet/ip.h netinet/in_var.h
18157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18158 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
18159 #ifdef HAVE_SYS_TYPES_H
18160 # include <sys/types.h>
18162 #ifdef HAVE_SYS_SOCKET_H
18163 # include <sys/socket.h>
18165 #ifdef HAVE_NET_IF_H
18166 # include <net/if.h>
18168 #ifdef HAVE_NETINET_IN_H
18169 # include <netinet/in.h>
18171 #ifdef HAVE_NET_IF_VAR_H
18172 # include <net/if_var.h>
18174 #ifdef HAVE_NETINET_IN_SYSTM_H
18175 # include <netinet/in_systm.h>
18179 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18180 cat >>confdefs.h <<_ACEOF
18181 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18189 # HMS: Do we need to check for -lsocket before or after these tests?
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
18191 $as_echo_n "checking for library containing inet_pton... " >&6; }
18192 if ${ac_cv_search_inet_pton+:} false; then :
18193 $as_echo_n "(cached) " >&6
18195 ac_func_search_save_LIBS=$LIBS
18196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18197 /* end confdefs.h. */
18199 /* Override any GCC internal prototype to avoid an error.
18200 Use char because int might match the return type of a GCC
18201 builtin and then its argument prototype would still apply. */
18209 return inet_pton ();
18214 for ac_lib in '' nsl; do
18215 if test -z "$ac_lib"; then
18216 ac_res="none required"
18219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18221 if ac_fn_c_try_link "$LINENO"; then :
18222 ac_cv_search_inet_pton=$ac_res
18224 rm -f core conftest.err conftest.$ac_objext \
18226 if ${ac_cv_search_inet_pton+:} false; then :
18230 if ${ac_cv_search_inet_pton+:} false; then :
18233 ac_cv_search_inet_pton=no
18235 rm conftest.$ac_ext
18236 LIBS=$ac_func_search_save_LIBS
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
18239 $as_echo "$ac_cv_search_inet_pton" >&6; }
18240 ac_res=$ac_cv_search_inet_pton
18241 if test "$ac_res" != no; then :
18242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18243 case "$ac_cv_search_inet_pton" in
18244 'none required') ;;
18246 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
18252 $as_echo_n "checking for library containing inet_ntop... " >&6; }
18253 if ${ac_cv_search_inet_ntop+:} false; then :
18254 $as_echo_n "(cached) " >&6
18256 ac_func_search_save_LIBS=$LIBS
18257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18258 /* end confdefs.h. */
18260 /* Override any GCC internal prototype to avoid an error.
18261 Use char because int might match the return type of a GCC
18262 builtin and then its argument prototype would still apply. */
18270 return inet_ntop ();
18275 for ac_lib in '' resolv; do
18276 if test -z "$ac_lib"; then
18277 ac_res="none required"
18280 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
18282 if ac_fn_c_try_link "$LINENO"; then :
18283 ac_cv_search_inet_ntop=$ac_res
18285 rm -f core conftest.err conftest.$ac_objext \
18287 if ${ac_cv_search_inet_ntop+:} false; then :
18291 if ${ac_cv_search_inet_ntop+:} false; then :
18294 ac_cv_search_inet_ntop=no
18296 rm conftest.$ac_ext
18297 LIBS=$ac_func_search_save_LIBS
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
18300 $as_echo "$ac_cv_search_inet_ntop" >&6; }
18301 ac_res=$ac_cv_search_inet_ntop
18302 if test "$ac_res" != no; then :
18303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18304 case "$ac_cv_search_inet_ntop" in
18305 'none required') ;;
18307 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
18313 # [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to
18314 # avoid keying on the OS name: If we find socket functions in
18315 # libsocket, next try for them in libxnet without libsocket, if found,
18316 # list both. If we simply tested libxnet first, we would find the
18317 # functions there and never add libsocket. See also [Bug 660]
18318 # http://bugs.ntp.org/show_bug.cgi?id=660#c9
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
18321 $as_echo_n "checking for library containing setsockopt... " >&6; }
18322 if ${ac_cv_search_setsockopt+:} false; then :
18323 $as_echo_n "(cached) " >&6
18325 ac_func_search_save_LIBS=$LIBS
18326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327 /* end confdefs.h. */
18329 /* Override any GCC internal prototype to avoid an error.
18330 Use char because int might match the return type of a GCC
18331 builtin and then its argument prototype would still apply. */
18335 char setsockopt ();
18339 return setsockopt ();
18344 for ac_lib in '' socket; do
18345 if test -z "$ac_lib"; then
18346 ac_res="none required"
18349 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18351 if ac_fn_c_try_link "$LINENO"; then :
18352 ac_cv_search_setsockopt=$ac_res
18354 rm -f core conftest.err conftest.$ac_objext \
18356 if ${ac_cv_search_setsockopt+:} false; then :
18360 if ${ac_cv_search_setsockopt+:} false; then :
18363 ac_cv_search_setsockopt=no
18365 rm conftest.$ac_ext
18366 LIBS=$ac_func_search_save_LIBS
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
18369 $as_echo "$ac_cv_search_setsockopt" >&6; }
18370 ac_res=$ac_cv_search_setsockopt
18371 if test "$ac_res" != no; then :
18372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18373 case "$ac_cv_search_setsockopt" in
18374 'none required') ;;
18376 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
18381 case "$ac_cv_search_setsockopt" in
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
18385 $as_echo_n "checking for library containing getsockopt... " >&6; }
18386 if ${ac_cv_search_getsockopt+:} false; then :
18387 $as_echo_n "(cached) " >&6
18389 ac_func_search_save_LIBS=$LIBS
18390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18391 /* end confdefs.h. */
18393 /* Override any GCC internal prototype to avoid an error.
18394 Use char because int might match the return type of a GCC
18395 builtin and then its argument prototype would still apply. */
18399 char getsockopt ();
18403 return getsockopt ();
18408 for ac_lib in '' xnet; do
18409 if test -z "$ac_lib"; then
18410 ac_res="none required"
18413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18415 if ac_fn_c_try_link "$LINENO"; then :
18416 ac_cv_search_getsockopt=$ac_res
18418 rm -f core conftest.err conftest.$ac_objext \
18420 if ${ac_cv_search_getsockopt+:} false; then :
18424 if ${ac_cv_search_getsockopt+:} false; then :
18427 ac_cv_search_getsockopt=no
18429 rm conftest.$ac_ext
18430 LIBS=$ac_func_search_save_LIBS
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
18433 $as_echo "$ac_cv_search_getsockopt" >&6; }
18434 ac_res=$ac_cv_search_getsockopt
18435 if test "$ac_res" != no; then :
18436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18437 case "$ac_cv_search_getsockopt" in
18438 'none required') ;;
18440 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
18445 # XXX Possible trouble here - reading the comments above and looking at the
18446 # code below I wonder if we'll add -lxnet when we don't need it.
18447 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
18448 # there when it is not needed?
18449 case "$ac_cv_search_getsockopt" in
18451 LIBS="-lxnet -lsocket $saved_LIBS"
18453 *) LIBS="-lsocket $saved_LIBS"
18458 { saved_LIBS=; unset saved_LIBS;}
18460 # Bug 2427 - look for recvmsg here.
18461 for ac_func in recvmsg
18463 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
18464 if test "x$ac_cv_func_recvmsg" = xyes; then :
18465 cat >>confdefs.h <<_ACEOF
18466 #define HAVE_RECVMSG 1
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18474 $as_echo_n "checking for inline... " >&6; }
18475 if ${ac_cv_c_inline+:} false; then :
18476 $as_echo_n "(cached) " >&6
18479 for ac_kw in inline __inline__ __inline; do
18480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481 /* end confdefs.h. */
18482 #ifndef __cplusplus
18484 static $ac_kw foo_t static_foo () {return 0; }
18485 $ac_kw foo_t foo () {return 0; }
18489 if ac_fn_c_try_compile "$LINENO"; then :
18490 ac_cv_c_inline=$ac_kw
18492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18493 test "$ac_cv_c_inline" != no && break
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18498 $as_echo "$ac_cv_c_inline" >&6; }
18500 case $ac_cv_c_inline in
18503 case $ac_cv_c_inline in
18505 *) ac_val=$ac_cv_c_inline;;
18507 cat >>confdefs.h <<_ACEOF
18508 #ifndef __cplusplus
18509 #define inline $ac_val
18516 case "$ac_cv_c_inline" in
18521 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18527 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18528 if ${ac_cv_header_time+:} false; then :
18529 $as_echo_n "(cached) " >&6
18531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18532 /* end confdefs.h. */
18533 #include <sys/types.h>
18534 #include <sys/time.h>
18540 if ((struct tm *) 0)
18546 if ac_fn_c_try_compile "$LINENO"; then :
18547 ac_cv_header_time=yes
18549 ac_cv_header_time=no
18551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18554 $as_echo "$ac_cv_header_time" >&6; }
18555 if test $ac_cv_header_time = yes; then
18557 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18561 # The cast to long int works around a bug in the HP C Compiler
18562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18564 # This bug is HP SR number 8606223364.
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
18566 $as_echo_n "checking size of time_t... " >&6; }
18567 if ${ac_cv_sizeof_time_t+:} false; then :
18568 $as_echo_n "(cached) " >&6
18570 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
18573 if test "$ac_cv_type_time_t" = yes; then
18574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18576 as_fn_error 77 "cannot compute sizeof (time_t)
18577 See \`config.log' for more details" "$LINENO" 5; }
18579 ac_cv_sizeof_time_t=0
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
18585 $as_echo "$ac_cv_sizeof_time_t" >&6; }
18589 cat >>confdefs.h <<_ACEOF
18590 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
18595 $as_echo_n "checking whether char is unsigned... " >&6; }
18596 if ${ac_cv_c_char_unsigned+:} false; then :
18597 $as_echo_n "(cached) " >&6
18599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18600 /* end confdefs.h. */
18601 $ac_includes_default
18605 static int test_array [1 - 2 * !(((char) -1) < 0)];
18606 test_array [0] = 0;
18607 return test_array [0];
18613 if ac_fn_c_try_compile "$LINENO"; then :
18614 ac_cv_c_char_unsigned=no
18616 ac_cv_c_char_unsigned=yes
18618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
18621 $as_echo "$ac_cv_c_char_unsigned" >&6; }
18622 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18623 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
18626 # The cast to long int works around a bug in the HP C Compiler
18627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18629 # This bug is HP SR number 8606223364.
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
18631 $as_echo_n "checking size of signed char... " >&6; }
18632 if ${ac_cv_sizeof_signed_char+:} false; then :
18633 $as_echo_n "(cached) " >&6
18635 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
18638 if test "$ac_cv_type_signed_char" = yes; then
18639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18641 as_fn_error 77 "cannot compute sizeof (signed char)
18642 See \`config.log' for more details" "$LINENO" 5; }
18644 ac_cv_sizeof_signed_char=0
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
18650 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
18654 cat >>confdefs.h <<_ACEOF
18655 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
18659 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
18660 if test "x$ac_cv_type_s_char" = xyes; then :
18662 cat >>confdefs.h <<_ACEOF
18663 #define HAVE_S_CHAR 1
18668 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
18669 if test "x$ac_cv_type_long_long" = xyes; then :
18671 cat >>confdefs.h <<_ACEOF
18672 #define HAVE_LONG_LONG 1
18678 # The cast to long int works around a bug in the HP C Compiler
18679 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18680 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18681 # This bug is HP SR number 8606223364.
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
18683 $as_echo_n "checking size of short... " >&6; }
18684 if ${ac_cv_sizeof_short+:} false; then :
18685 $as_echo_n "(cached) " >&6
18687 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
18690 if test "$ac_cv_type_short" = yes; then
18691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18693 as_fn_error 77 "cannot compute sizeof (short)
18694 See \`config.log' for more details" "$LINENO" 5; }
18696 ac_cv_sizeof_short=0
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
18702 $as_echo "$ac_cv_sizeof_short" >&6; }
18706 cat >>confdefs.h <<_ACEOF
18707 #define SIZEOF_SHORT $ac_cv_sizeof_short
18711 # The cast to long int works around a bug in the HP C Compiler
18712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18714 # This bug is HP SR number 8606223364.
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
18716 $as_echo_n "checking size of int... " >&6; }
18717 if ${ac_cv_sizeof_int+:} false; then :
18718 $as_echo_n "(cached) " >&6
18720 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
18723 if test "$ac_cv_type_int" = yes; then
18724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18726 as_fn_error 77 "cannot compute sizeof (int)
18727 See \`config.log' for more details" "$LINENO" 5; }
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
18735 $as_echo "$ac_cv_sizeof_int" >&6; }
18739 cat >>confdefs.h <<_ACEOF
18740 #define SIZEOF_INT $ac_cv_sizeof_int
18744 # The cast to long int works around a bug in the HP C Compiler
18745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18747 # This bug is HP SR number 8606223364.
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
18749 $as_echo_n "checking size of long... " >&6; }
18750 if ${ac_cv_sizeof_long+:} false; then :
18751 $as_echo_n "(cached) " >&6
18753 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
18756 if test "$ac_cv_type_long" = yes; then
18757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18759 as_fn_error 77 "cannot compute sizeof (long)
18760 See \`config.log' for more details" "$LINENO" 5; }
18762 ac_cv_sizeof_long=0
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
18768 $as_echo "$ac_cv_sizeof_long" >&6; }
18772 cat >>confdefs.h <<_ACEOF
18773 #define SIZEOF_LONG $ac_cv_sizeof_long
18778 case "$ac_cv_type_long_long" in
18782 # The cast to long int works around a bug in the HP C Compiler
18783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18785 # This bug is HP SR number 8606223364.
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
18787 $as_echo_n "checking size of long long... " >&6; }
18788 if ${ac_cv_sizeof_long_long+:} false; then :
18789 $as_echo_n "(cached) " >&6
18791 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
18794 if test "$ac_cv_type_long_long" = yes; then
18795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18797 as_fn_error 77 "cannot compute sizeof (long long)
18798 See \`config.log' for more details" "$LINENO" 5; }
18800 ac_cv_sizeof_long_long=0
18805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
18806 $as_echo "$ac_cv_sizeof_long_long" >&6; }
18810 cat >>confdefs.h <<_ACEOF
18811 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18818 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
18820 # We have a typedef for s_char. Might as well believe it...
18823 # We have signed chars, can't say 'signed char', no s_char typedef.
18825 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
18829 # We have signed chars, can say 'signed char', no s_char typedef.
18831 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
18835 # We have unsigned chars, can't say 'signed char', no s_char typedef.
18836 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
18839 # We have unsigned chars, can say 'signed char', no s_char typedef.
18841 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
18846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18847 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18848 if ${ac_cv_type_uid_t+:} false; then :
18849 $as_echo_n "(cached) " >&6
18851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18852 /* end confdefs.h. */
18853 #include <sys/types.h>
18856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18857 $EGREP "uid_t" >/dev/null 2>&1; then :
18858 ac_cv_type_uid_t=yes
18860 ac_cv_type_uid_t=no
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
18866 $as_echo "$ac_cv_type_uid_t" >&6; }
18867 if test $ac_cv_type_uid_t = no; then
18869 $as_echo "#define uid_t int" >>confdefs.h
18872 $as_echo "#define gid_t int" >>confdefs.h
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
18882 $as_echo_n "checking if we're including debugging code... " >&6; }
18883 # Check whether --enable-debugging was given.
18884 if test "${enable_debugging+set}" = set; then :
18885 enableval=$enable_debugging; ntp_ok=$enableval
18894 $as_echo "#define DEBUG 1" >>confdefs.h
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
18898 $as_echo "$ntp_ok" >&6; }
18902 # check if we can compile with pthreads
18903 for ac_header in semaphore.h
18905 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
18906 if test "x$ac_cv_header_semaphore_h" = xyes; then :
18907 cat >>confdefs.h <<_ACEOF
18908 #define HAVE_SEMAPHORE_H 1
18915 for ac_func in socketpair
18917 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
18918 if test "x$ac_cv_func_socketpair" = xyes; then :
18919 cat >>confdefs.h <<_ACEOF
18920 #define HAVE_SOCKETPAIR 1
18926 # Check whether --enable-thread-support was given.
18927 if test "${enable_thread_support+set}" = set; then :
18928 enableval=$enable_thread_support;
18930 enable_thread_support=yes
18935 case "$enable_thread_support" in
18938 ol_found_pthreads=no
18943 ac_cpp='$CPP $CPPFLAGS'
18944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18948 # OpenLDAP --with-threads
18950 # Check whether --with-threads was given.
18951 if test "${with_threads+set}" = set; then :
18952 withval=$with_threads;
18954 for ol_val in auto nt posix mach pth lwp yes no manual ; do
18955 if test "$withval" = "$ol_val" ; then
18959 if test "$ol_arg" = "invalid" ; then
18960 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
18962 ol_with_threads="$ol_arg"
18965 ol_with_threads="auto"
18967 # end --with-threads
18970 case "$ol_with_threads$host" in
18971 auto*-*-solaris2.[0-6])
18979 *-*-aix*) if test -z "$CC" ; then
18980 case "$ol_with_threads" in
18981 auto | yes | posix) ol_aix_threads=yes ;;
18987 if test $ol_aix_threads = yes ; then
18988 if test -z "${CC}" ; then
18989 for ac_prog in cc_r xlc_r cc
18991 # Extract the first word of "$ac_prog", so it can be a program name with args.
18992 set dummy $ac_prog; ac_word=$2
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18994 $as_echo_n "checking for $ac_word... " >&6; }
18995 if ${ac_cv_prog_CC+:} false; then :
18996 $as_echo_n "(cached) " >&6
18998 if test -n "$CC"; then
18999 ac_cv_prog_CC="$CC" # Let the user override the test.
19001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19002 for as_dir in $PATH
19005 test -z "$as_dir" && as_dir=.
19006 for ac_exec_ext in '' $ac_executable_extensions; do
19007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19008 ac_cv_prog_CC="$ac_prog"
19009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19019 if test -n "$CC"; then
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19021 $as_echo "$CC" >&6; }
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19024 $as_echo "no" >&6; }
19028 test -n "$CC" && break
19032 if test "$CC" = cc ; then
19033 if test $ol_with_threads != auto ; then
19034 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
19037 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
19043 case ${CC} in cc_r | xlc_r)
19044 ol_with_threads=posix
19045 ol_cv_pthread_create=yes
19051 # OpenLDAP --with-yielding_select
19053 # Check whether --with-yielding_select was given.
19054 if test "${with_yielding_select+set}" = set; then :
19055 withval=$with_yielding_select;
19057 for ol_val in auto yes no manual ; do
19058 if test "$withval" = "$ol_val" ; then
19062 if test "$ol_arg" = "invalid" ; then
19063 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
19065 ol_with_yielding_select="$ol_arg"
19068 ol_with_yielding_select="auto"
19070 # end --with-yielding_select
19073 case $ol_with_threads in auto | yes | nt)
19076 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
19077 if test "x$ac_cv_func__beginthread" = xyes; then :
19082 if test $ac_cv_func__beginthread = yes ; then
19084 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
19086 ol_cv_nt_threads=yes
19090 if test "$ol_cv_nt_threads" = yes ; then
19092 ol_with_threads=found
19093 ol_with_yielding_select=yes
19096 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
19099 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
19103 if test $ol_with_threads = nt ; then
19104 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
19109 case $ol_with_threads in auto | yes | posix)
19111 for ac_header in pthread.h
19113 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19114 if test "x$ac_cv_header_pthread_h" = xyes; then :
19115 cat >>confdefs.h <<_ACEOF
19116 #define HAVE_PTHREAD_H 1
19124 if test $ac_cv_header_pthread_h = yes ; then
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
19126 $as_echo_n "checking POSIX thread version... " >&6; }
19127 if ${ol_cv_pthread_version+:} false; then :
19128 $as_echo_n "(cached) " >&6
19131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19132 /* end confdefs.h. */
19134 # include <pthread.h>
19140 int i = PTHREAD_CREATE_JOINABLE;
19146 if ac_fn_c_try_compile "$LINENO"; then :
19148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h. */
19150 #include <pthread.h>
19153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19154 $EGREP "pthread_detach" >/dev/null 2>&1; then :
19155 ol_cv_pthread_version=10
19157 ol_cv_pthread_version=8
19163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19164 /* end confdefs.h. */
19166 # include <pthread.h>
19167 # ifdef PTHREAD_CREATE_UNDETACHED
19172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19173 $EGREP "draft7" >/dev/null 2>&1; then :
19174 ol_cv_pthread_version=7
19177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19178 /* end confdefs.h. */
19179 #include <pthread.h>
19182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19183 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
19184 ol_cv_pthread_version=6
19187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19188 /* end confdefs.h. */
19190 # include <pthread.h>
19191 #ifdef PTHREAD_MUTEX_INITIALIZER
19196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19197 $EGREP "draft5" >/dev/null 2>&1; then :
19198 ol_cv_pthread_version=5
19200 ol_cv_pthread_version=4
19211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
19215 $as_echo "$ol_cv_pthread_version" >&6; }
19218 if test $ol_cv_pthread_version != 0 ; then
19220 cat >>confdefs.h <<_ACEOF
19221 #define HAVE_PTHREADS $ol_cv_pthread_version
19225 as_fn_error $? "unknown pthread version" "$LINENO" 5
19228 # consider threads found
19229 ol_with_threads=found
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
19233 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
19234 if ${ol_cv_header_linux_threads+:} false; then :
19235 $as_echo_n "(cached) " >&6
19237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19238 /* end confdefs.h. */
19239 #include <pthread.h>
19241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19242 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
19243 ol_cv_header_linux_threads=yes
19245 ol_cv_header_linux_threads=no
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
19252 $as_echo "$ol_cv_header_linux_threads" >&6; }
19253 if test $ol_cv_header_linux_threads = yes; then
19255 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
19261 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
19262 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
19263 $as_echo_n "(cached) " >&6
19265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19266 /* end confdefs.h. */
19267 #include <pthread.h>
19268 #ifdef _POSIX_THREAD_IS_GNU_PTH
19273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19274 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
19275 ol_cv_header_gnu_pth_pthread_h=yes
19277 ol_cv_header_gnu_pth_pthread_h=no
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19284 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
19287 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19288 for ac_header in sched.h
19290 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19291 if test "x$ac_cv_header_sched_h" = xyes; then :
19292 cat >>confdefs.h <<_ACEOF
19293 #define HAVE_SCHED_H 1
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
19304 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
19305 if ${ol_cv_pthread_create+:} false; then :
19306 $as_echo_n "(cached) " >&6
19309 if test "$cross_compiling" = yes; then :
19310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19311 /* end confdefs.h. */
19313 /* pthread test headers */
19314 #include <pthread.h>
19315 #if HAVE_PTHREADS < 7
19319 #define NULL (void*)0
19322 static void *task(p)
19325 return (void *) (p == NULL);
19332 /* pthread test function */
19333 #ifndef PTHREAD_CREATE_DETACHED
19334 #define PTHREAD_CREATE_DETACHED 1
19338 int detach = PTHREAD_CREATE_DETACHED;
19340 #if HAVE_PTHREADS > 4
19341 /* Final pthreads */
19342 pthread_attr_t attr;
19344 status = pthread_attr_init(&attr);
19345 if( status ) return status;
19347 #if HAVE_PTHREADS < 7
19348 status = pthread_attr_setdetachstate(&attr, &detach);
19349 if( status < 0 ) status = errno;
19351 status = pthread_attr_setdetachstate(&attr, detach);
19353 if( status ) return status;
19354 status = pthread_create( &t, &attr, task, NULL );
19355 #if HAVE_PTHREADS < 7
19356 if( status < 0 ) status = errno;
19358 if( status ) return status;
19360 /* Draft 4 pthreads */
19361 status = pthread_create( &t, pthread_attr_default, task, NULL );
19362 if( status ) return errno;
19364 /* give thread a chance to complete */
19365 /* it should remain joinable and hence detachable */
19368 status = pthread_detach( &t );
19369 if( status ) return errno;
19372 #ifdef HAVE_LINUX_THREADS
19373 pthread_kill_other_threads_np();
19382 if ac_fn_c_try_link "$LINENO"; then :
19383 ol_cv_pthread_create=yes
19385 ol_cv_pthread_create=no
19387 rm -f core conftest.err conftest.$ac_objext \
19388 conftest$ac_exeext conftest.$ac_ext
19390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19391 /* end confdefs.h. */
19394 /* pthread test headers */
19395 #include <pthread.h>
19396 #if HAVE_PTHREADS < 7
19400 #define NULL (void*)0
19403 static void *task(p)
19406 return (void *) (p == NULL);
19410 int main(argc, argv)
19415 /* pthread test function */
19416 #ifndef PTHREAD_CREATE_DETACHED
19417 #define PTHREAD_CREATE_DETACHED 1
19421 int detach = PTHREAD_CREATE_DETACHED;
19423 #if HAVE_PTHREADS > 4
19424 /* Final pthreads */
19425 pthread_attr_t attr;
19427 status = pthread_attr_init(&attr);
19428 if( status ) return status;
19430 #if HAVE_PTHREADS < 7
19431 status = pthread_attr_setdetachstate(&attr, &detach);
19432 if( status < 0 ) status = errno;
19434 status = pthread_attr_setdetachstate(&attr, detach);
19436 if( status ) return status;
19437 status = pthread_create( &t, &attr, task, NULL );
19438 #if HAVE_PTHREADS < 7
19439 if( status < 0 ) status = errno;
19441 if( status ) return status;
19443 /* Draft 4 pthreads */
19444 status = pthread_create( &t, pthread_attr_default, task, NULL );
19445 if( status ) return errno;
19447 /* give thread a chance to complete */
19448 /* it should remain joinable and hence detachable */
19451 status = pthread_detach( &t );
19452 if( status ) return errno;
19455 #ifdef HAVE_LINUX_THREADS
19456 pthread_kill_other_threads_np();
19464 if ac_fn_c_try_run "$LINENO"; then :
19465 ol_cv_pthread_create=yes
19467 ol_cv_pthread_create=no
19469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19470 conftest.$ac_objext conftest.beam conftest.$ac_ext
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
19475 $as_echo "$ol_cv_pthread_create" >&6; }
19477 if test $ol_cv_pthread_create != no ; then
19478 ol_link_threads=posix
19479 ol_link_pthreads=""
19482 # Pthread try link: -kthread (ol_cv_pthread_kthread)
19483 if test "$ol_link_threads" = no ; then
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
19486 $as_echo_n "checking for pthread link with -kthread... " >&6; }
19487 if ${ol_cv_pthread_kthread+:} false; then :
19488 $as_echo_n "(cached) " >&6
19493 LIBS="-kthread $LIBS"
19495 if test "$cross_compiling" = yes; then :
19496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19497 /* end confdefs.h. */
19499 /* pthread test headers */
19500 #include <pthread.h>
19501 #if HAVE_PTHREADS < 7
19505 #define NULL (void*)0
19508 static void *task(p)
19511 return (void *) (p == NULL);
19518 /* pthread test function */
19519 #ifndef PTHREAD_CREATE_DETACHED
19520 #define PTHREAD_CREATE_DETACHED 1
19524 int detach = PTHREAD_CREATE_DETACHED;
19526 #if HAVE_PTHREADS > 4
19527 /* Final pthreads */
19528 pthread_attr_t attr;
19530 status = pthread_attr_init(&attr);
19531 if( status ) return status;
19533 #if HAVE_PTHREADS < 7
19534 status = pthread_attr_setdetachstate(&attr, &detach);
19535 if( status < 0 ) status = errno;
19537 status = pthread_attr_setdetachstate(&attr, detach);
19539 if( status ) return status;
19540 status = pthread_create( &t, &attr, task, NULL );
19541 #if HAVE_PTHREADS < 7
19542 if( status < 0 ) status = errno;
19544 if( status ) return status;
19546 /* Draft 4 pthreads */
19547 status = pthread_create( &t, pthread_attr_default, task, NULL );
19548 if( status ) return errno;
19550 /* give thread a chance to complete */
19551 /* it should remain joinable and hence detachable */
19554 status = pthread_detach( &t );
19555 if( status ) return errno;
19558 #ifdef HAVE_LINUX_THREADS
19559 pthread_kill_other_threads_np();
19568 if ac_fn_c_try_link "$LINENO"; then :
19569 ol_cv_pthread_kthread=yes
19571 ol_cv_pthread_kthread=no
19573 rm -f core conftest.err conftest.$ac_objext \
19574 conftest$ac_exeext conftest.$ac_ext
19576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19577 /* end confdefs.h. */
19580 /* pthread test headers */
19581 #include <pthread.h>
19582 #if HAVE_PTHREADS < 7
19586 #define NULL (void*)0
19589 static void *task(p)
19592 return (void *) (p == NULL);
19596 int main(argc, argv)
19601 /* pthread test function */
19602 #ifndef PTHREAD_CREATE_DETACHED
19603 #define PTHREAD_CREATE_DETACHED 1
19607 int detach = PTHREAD_CREATE_DETACHED;
19609 #if HAVE_PTHREADS > 4
19610 /* Final pthreads */
19611 pthread_attr_t attr;
19613 status = pthread_attr_init(&attr);
19614 if( status ) return status;
19616 #if HAVE_PTHREADS < 7
19617 status = pthread_attr_setdetachstate(&attr, &detach);
19618 if( status < 0 ) status = errno;
19620 status = pthread_attr_setdetachstate(&attr, detach);
19622 if( status ) return status;
19623 status = pthread_create( &t, &attr, task, NULL );
19624 #if HAVE_PTHREADS < 7
19625 if( status < 0 ) status = errno;
19627 if( status ) return status;
19629 /* Draft 4 pthreads */
19630 status = pthread_create( &t, pthread_attr_default, task, NULL );
19631 if( status ) return errno;
19633 /* give thread a chance to complete */
19634 /* it should remain joinable and hence detachable */
19637 status = pthread_detach( &t );
19638 if( status ) return errno;
19641 #ifdef HAVE_LINUX_THREADS
19642 pthread_kill_other_threads_np();
19650 if ac_fn_c_try_run "$LINENO"; then :
19651 ol_cv_pthread_kthread=yes
19653 ol_cv_pthread_kthread=no
19655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19656 conftest.$ac_objext conftest.beam conftest.$ac_ext
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
19665 $as_echo "$ol_cv_pthread_kthread" >&6; }
19667 if test $ol_cv_pthread_kthread = yes ; then
19668 ol_link_pthreads="-kthread"
19669 ol_link_threads=posix
19673 # Pthread try link: -pthread (ol_cv_pthread_pthread)
19674 if test "$ol_link_threads" = no ; then
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
19677 $as_echo_n "checking for pthread link with -pthread... " >&6; }
19678 if ${ol_cv_pthread_pthread+:} false; then :
19679 $as_echo_n "(cached) " >&6
19684 LIBS="-pthread $LIBS"
19686 if test "$cross_compiling" = yes; then :
19687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19688 /* end confdefs.h. */
19690 /* pthread test headers */
19691 #include <pthread.h>
19692 #if HAVE_PTHREADS < 7
19696 #define NULL (void*)0
19699 static void *task(p)
19702 return (void *) (p == NULL);
19709 /* pthread test function */
19710 #ifndef PTHREAD_CREATE_DETACHED
19711 #define PTHREAD_CREATE_DETACHED 1
19715 int detach = PTHREAD_CREATE_DETACHED;
19717 #if HAVE_PTHREADS > 4
19718 /* Final pthreads */
19719 pthread_attr_t attr;
19721 status = pthread_attr_init(&attr);
19722 if( status ) return status;
19724 #if HAVE_PTHREADS < 7
19725 status = pthread_attr_setdetachstate(&attr, &detach);
19726 if( status < 0 ) status = errno;
19728 status = pthread_attr_setdetachstate(&attr, detach);
19730 if( status ) return status;
19731 status = pthread_create( &t, &attr, task, NULL );
19732 #if HAVE_PTHREADS < 7
19733 if( status < 0 ) status = errno;
19735 if( status ) return status;
19737 /* Draft 4 pthreads */
19738 status = pthread_create( &t, pthread_attr_default, task, NULL );
19739 if( status ) return errno;
19741 /* give thread a chance to complete */
19742 /* it should remain joinable and hence detachable */
19745 status = pthread_detach( &t );
19746 if( status ) return errno;
19749 #ifdef HAVE_LINUX_THREADS
19750 pthread_kill_other_threads_np();
19759 if ac_fn_c_try_link "$LINENO"; then :
19760 ol_cv_pthread_pthread=yes
19762 ol_cv_pthread_pthread=no
19764 rm -f core conftest.err conftest.$ac_objext \
19765 conftest$ac_exeext conftest.$ac_ext
19767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19768 /* end confdefs.h. */
19771 /* pthread test headers */
19772 #include <pthread.h>
19773 #if HAVE_PTHREADS < 7
19777 #define NULL (void*)0
19780 static void *task(p)
19783 return (void *) (p == NULL);
19787 int main(argc, argv)
19792 /* pthread test function */
19793 #ifndef PTHREAD_CREATE_DETACHED
19794 #define PTHREAD_CREATE_DETACHED 1
19798 int detach = PTHREAD_CREATE_DETACHED;
19800 #if HAVE_PTHREADS > 4
19801 /* Final pthreads */
19802 pthread_attr_t attr;
19804 status = pthread_attr_init(&attr);
19805 if( status ) return status;
19807 #if HAVE_PTHREADS < 7
19808 status = pthread_attr_setdetachstate(&attr, &detach);
19809 if( status < 0 ) status = errno;
19811 status = pthread_attr_setdetachstate(&attr, detach);
19813 if( status ) return status;
19814 status = pthread_create( &t, &attr, task, NULL );
19815 #if HAVE_PTHREADS < 7
19816 if( status < 0 ) status = errno;
19818 if( status ) return status;
19820 /* Draft 4 pthreads */
19821 status = pthread_create( &t, pthread_attr_default, task, NULL );
19822 if( status ) return errno;
19824 /* give thread a chance to complete */
19825 /* it should remain joinable and hence detachable */
19828 status = pthread_detach( &t );
19829 if( status ) return errno;
19832 #ifdef HAVE_LINUX_THREADS
19833 pthread_kill_other_threads_np();
19841 if ac_fn_c_try_run "$LINENO"; then :
19842 ol_cv_pthread_pthread=yes
19844 ol_cv_pthread_pthread=no
19846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19847 conftest.$ac_objext conftest.beam conftest.$ac_ext
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
19856 $as_echo "$ol_cv_pthread_pthread" >&6; }
19858 if test $ol_cv_pthread_pthread = yes ; then
19859 ol_link_pthreads="-pthread"
19860 ol_link_threads=posix
19864 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
19865 if test "$ol_link_threads" = no ; then
19867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
19868 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
19869 if ${ol_cv_pthread_pthreads+:} false; then :
19870 $as_echo_n "(cached) " >&6
19875 LIBS="-pthreads $LIBS"
19877 if test "$cross_compiling" = yes; then :
19878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19879 /* end confdefs.h. */
19881 /* pthread test headers */
19882 #include <pthread.h>
19883 #if HAVE_PTHREADS < 7
19887 #define NULL (void*)0
19890 static void *task(p)
19893 return (void *) (p == NULL);
19900 /* pthread test function */
19901 #ifndef PTHREAD_CREATE_DETACHED
19902 #define PTHREAD_CREATE_DETACHED 1
19906 int detach = PTHREAD_CREATE_DETACHED;
19908 #if HAVE_PTHREADS > 4
19909 /* Final pthreads */
19910 pthread_attr_t attr;
19912 status = pthread_attr_init(&attr);
19913 if( status ) return status;
19915 #if HAVE_PTHREADS < 7
19916 status = pthread_attr_setdetachstate(&attr, &detach);
19917 if( status < 0 ) status = errno;
19919 status = pthread_attr_setdetachstate(&attr, detach);
19921 if( status ) return status;
19922 status = pthread_create( &t, &attr, task, NULL );
19923 #if HAVE_PTHREADS < 7
19924 if( status < 0 ) status = errno;
19926 if( status ) return status;
19928 /* Draft 4 pthreads */
19929 status = pthread_create( &t, pthread_attr_default, task, NULL );
19930 if( status ) return errno;
19932 /* give thread a chance to complete */
19933 /* it should remain joinable and hence detachable */
19936 status = pthread_detach( &t );
19937 if( status ) return errno;
19940 #ifdef HAVE_LINUX_THREADS
19941 pthread_kill_other_threads_np();
19950 if ac_fn_c_try_link "$LINENO"; then :
19951 ol_cv_pthread_pthreads=yes
19953 ol_cv_pthread_pthreads=no
19955 rm -f core conftest.err conftest.$ac_objext \
19956 conftest$ac_exeext conftest.$ac_ext
19958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19959 /* end confdefs.h. */
19962 /* pthread test headers */
19963 #include <pthread.h>
19964 #if HAVE_PTHREADS < 7
19968 #define NULL (void*)0
19971 static void *task(p)
19974 return (void *) (p == NULL);
19978 int main(argc, argv)
19983 /* pthread test function */
19984 #ifndef PTHREAD_CREATE_DETACHED
19985 #define PTHREAD_CREATE_DETACHED 1
19989 int detach = PTHREAD_CREATE_DETACHED;
19991 #if HAVE_PTHREADS > 4
19992 /* Final pthreads */
19993 pthread_attr_t attr;
19995 status = pthread_attr_init(&attr);
19996 if( status ) return status;
19998 #if HAVE_PTHREADS < 7
19999 status = pthread_attr_setdetachstate(&attr, &detach);
20000 if( status < 0 ) status = errno;
20002 status = pthread_attr_setdetachstate(&attr, detach);
20004 if( status ) return status;
20005 status = pthread_create( &t, &attr, task, NULL );
20006 #if HAVE_PTHREADS < 7
20007 if( status < 0 ) status = errno;
20009 if( status ) return status;
20011 /* Draft 4 pthreads */
20012 status = pthread_create( &t, pthread_attr_default, task, NULL );
20013 if( status ) return errno;
20015 /* give thread a chance to complete */
20016 /* it should remain joinable and hence detachable */
20019 status = pthread_detach( &t );
20020 if( status ) return errno;
20023 #ifdef HAVE_LINUX_THREADS
20024 pthread_kill_other_threads_np();
20032 if ac_fn_c_try_run "$LINENO"; then :
20033 ol_cv_pthread_pthreads=yes
20035 ol_cv_pthread_pthreads=no
20037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20038 conftest.$ac_objext conftest.beam conftest.$ac_ext
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
20047 $as_echo "$ol_cv_pthread_pthreads" >&6; }
20049 if test $ol_cv_pthread_pthreads = yes ; then
20050 ol_link_pthreads="-pthreads"
20051 ol_link_threads=posix
20055 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20056 if test "$ol_link_threads" = no ; then
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
20059 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
20060 if ${ol_cv_pthread_mthreads+:} false; then :
20061 $as_echo_n "(cached) " >&6
20066 LIBS="-mthreads $LIBS"
20068 if test "$cross_compiling" = yes; then :
20069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20070 /* end confdefs.h. */
20072 /* pthread test headers */
20073 #include <pthread.h>
20074 #if HAVE_PTHREADS < 7
20078 #define NULL (void*)0
20081 static void *task(p)
20084 return (void *) (p == NULL);
20091 /* pthread test function */
20092 #ifndef PTHREAD_CREATE_DETACHED
20093 #define PTHREAD_CREATE_DETACHED 1
20097 int detach = PTHREAD_CREATE_DETACHED;
20099 #if HAVE_PTHREADS > 4
20100 /* Final pthreads */
20101 pthread_attr_t attr;
20103 status = pthread_attr_init(&attr);
20104 if( status ) return status;
20106 #if HAVE_PTHREADS < 7
20107 status = pthread_attr_setdetachstate(&attr, &detach);
20108 if( status < 0 ) status = errno;
20110 status = pthread_attr_setdetachstate(&attr, detach);
20112 if( status ) return status;
20113 status = pthread_create( &t, &attr, task, NULL );
20114 #if HAVE_PTHREADS < 7
20115 if( status < 0 ) status = errno;
20117 if( status ) return status;
20119 /* Draft 4 pthreads */
20120 status = pthread_create( &t, pthread_attr_default, task, NULL );
20121 if( status ) return errno;
20123 /* give thread a chance to complete */
20124 /* it should remain joinable and hence detachable */
20127 status = pthread_detach( &t );
20128 if( status ) return errno;
20131 #ifdef HAVE_LINUX_THREADS
20132 pthread_kill_other_threads_np();
20141 if ac_fn_c_try_link "$LINENO"; then :
20142 ol_cv_pthread_mthreads=yes
20144 ol_cv_pthread_mthreads=no
20146 rm -f core conftest.err conftest.$ac_objext \
20147 conftest$ac_exeext conftest.$ac_ext
20149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20150 /* end confdefs.h. */
20153 /* pthread test headers */
20154 #include <pthread.h>
20155 #if HAVE_PTHREADS < 7
20159 #define NULL (void*)0
20162 static void *task(p)
20165 return (void *) (p == NULL);
20169 int main(argc, argv)
20174 /* pthread test function */
20175 #ifndef PTHREAD_CREATE_DETACHED
20176 #define PTHREAD_CREATE_DETACHED 1
20180 int detach = PTHREAD_CREATE_DETACHED;
20182 #if HAVE_PTHREADS > 4
20183 /* Final pthreads */
20184 pthread_attr_t attr;
20186 status = pthread_attr_init(&attr);
20187 if( status ) return status;
20189 #if HAVE_PTHREADS < 7
20190 status = pthread_attr_setdetachstate(&attr, &detach);
20191 if( status < 0 ) status = errno;
20193 status = pthread_attr_setdetachstate(&attr, detach);
20195 if( status ) return status;
20196 status = pthread_create( &t, &attr, task, NULL );
20197 #if HAVE_PTHREADS < 7
20198 if( status < 0 ) status = errno;
20200 if( status ) return status;
20202 /* Draft 4 pthreads */
20203 status = pthread_create( &t, pthread_attr_default, task, NULL );
20204 if( status ) return errno;
20206 /* give thread a chance to complete */
20207 /* it should remain joinable and hence detachable */
20210 status = pthread_detach( &t );
20211 if( status ) return errno;
20214 #ifdef HAVE_LINUX_THREADS
20215 pthread_kill_other_threads_np();
20223 if ac_fn_c_try_run "$LINENO"; then :
20224 ol_cv_pthread_mthreads=yes
20226 ol_cv_pthread_mthreads=no
20228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20229 conftest.$ac_objext conftest.beam conftest.$ac_ext
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
20238 $as_echo "$ol_cv_pthread_mthreads" >&6; }
20240 if test $ol_cv_pthread_mthreads = yes ; then
20241 ol_link_pthreads="-mthreads"
20242 ol_link_threads=posix
20246 # Pthread try link: -thread (ol_cv_pthread_thread)
20247 if test "$ol_link_threads" = no ; then
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
20250 $as_echo_n "checking for pthread link with -thread... " >&6; }
20251 if ${ol_cv_pthread_thread+:} false; then :
20252 $as_echo_n "(cached) " >&6
20257 LIBS="-thread $LIBS"
20259 if test "$cross_compiling" = yes; then :
20260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20261 /* end confdefs.h. */
20263 /* pthread test headers */
20264 #include <pthread.h>
20265 #if HAVE_PTHREADS < 7
20269 #define NULL (void*)0
20272 static void *task(p)
20275 return (void *) (p == NULL);
20282 /* pthread test function */
20283 #ifndef PTHREAD_CREATE_DETACHED
20284 #define PTHREAD_CREATE_DETACHED 1
20288 int detach = PTHREAD_CREATE_DETACHED;
20290 #if HAVE_PTHREADS > 4
20291 /* Final pthreads */
20292 pthread_attr_t attr;
20294 status = pthread_attr_init(&attr);
20295 if( status ) return status;
20297 #if HAVE_PTHREADS < 7
20298 status = pthread_attr_setdetachstate(&attr, &detach);
20299 if( status < 0 ) status = errno;
20301 status = pthread_attr_setdetachstate(&attr, detach);
20303 if( status ) return status;
20304 status = pthread_create( &t, &attr, task, NULL );
20305 #if HAVE_PTHREADS < 7
20306 if( status < 0 ) status = errno;
20308 if( status ) return status;
20310 /* Draft 4 pthreads */
20311 status = pthread_create( &t, pthread_attr_default, task, NULL );
20312 if( status ) return errno;
20314 /* give thread a chance to complete */
20315 /* it should remain joinable and hence detachable */
20318 status = pthread_detach( &t );
20319 if( status ) return errno;
20322 #ifdef HAVE_LINUX_THREADS
20323 pthread_kill_other_threads_np();
20332 if ac_fn_c_try_link "$LINENO"; then :
20333 ol_cv_pthread_thread=yes
20335 ol_cv_pthread_thread=no
20337 rm -f core conftest.err conftest.$ac_objext \
20338 conftest$ac_exeext conftest.$ac_ext
20340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20341 /* end confdefs.h. */
20344 /* pthread test headers */
20345 #include <pthread.h>
20346 #if HAVE_PTHREADS < 7
20350 #define NULL (void*)0
20353 static void *task(p)
20356 return (void *) (p == NULL);
20360 int main(argc, argv)
20365 /* pthread test function */
20366 #ifndef PTHREAD_CREATE_DETACHED
20367 #define PTHREAD_CREATE_DETACHED 1
20371 int detach = PTHREAD_CREATE_DETACHED;
20373 #if HAVE_PTHREADS > 4
20374 /* Final pthreads */
20375 pthread_attr_t attr;
20377 status = pthread_attr_init(&attr);
20378 if( status ) return status;
20380 #if HAVE_PTHREADS < 7
20381 status = pthread_attr_setdetachstate(&attr, &detach);
20382 if( status < 0 ) status = errno;
20384 status = pthread_attr_setdetachstate(&attr, detach);
20386 if( status ) return status;
20387 status = pthread_create( &t, &attr, task, NULL );
20388 #if HAVE_PTHREADS < 7
20389 if( status < 0 ) status = errno;
20391 if( status ) return status;
20393 /* Draft 4 pthreads */
20394 status = pthread_create( &t, pthread_attr_default, task, NULL );
20395 if( status ) return errno;
20397 /* give thread a chance to complete */
20398 /* it should remain joinable and hence detachable */
20401 status = pthread_detach( &t );
20402 if( status ) return errno;
20405 #ifdef HAVE_LINUX_THREADS
20406 pthread_kill_other_threads_np();
20414 if ac_fn_c_try_run "$LINENO"; then :
20415 ol_cv_pthread_thread=yes
20417 ol_cv_pthread_thread=no
20419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20420 conftest.$ac_objext conftest.beam conftest.$ac_ext
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
20429 $as_echo "$ol_cv_pthread_thread" >&6; }
20431 if test $ol_cv_pthread_thread = yes ; then
20432 ol_link_pthreads="-thread"
20433 ol_link_threads=posix
20438 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
20439 if test "$ol_link_threads" = no ; then
20440 # try -lpthread -lmach -lexc -lc_r
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
20442 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
20443 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
20444 $as_echo_n "(cached) " >&6
20449 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
20451 if test "$cross_compiling" = yes; then :
20452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20453 /* end confdefs.h. */
20455 /* pthread test headers */
20456 #include <pthread.h>
20457 #if HAVE_PTHREADS < 7
20461 #define NULL (void*)0
20464 static void *task(p)
20467 return (void *) (p == NULL);
20474 /* pthread test function */
20475 #ifndef PTHREAD_CREATE_DETACHED
20476 #define PTHREAD_CREATE_DETACHED 1
20480 int detach = PTHREAD_CREATE_DETACHED;
20482 #if HAVE_PTHREADS > 4
20483 /* Final pthreads */
20484 pthread_attr_t attr;
20486 status = pthread_attr_init(&attr);
20487 if( status ) return status;
20489 #if HAVE_PTHREADS < 7
20490 status = pthread_attr_setdetachstate(&attr, &detach);
20491 if( status < 0 ) status = errno;
20493 status = pthread_attr_setdetachstate(&attr, detach);
20495 if( status ) return status;
20496 status = pthread_create( &t, &attr, task, NULL );
20497 #if HAVE_PTHREADS < 7
20498 if( status < 0 ) status = errno;
20500 if( status ) return status;
20502 /* Draft 4 pthreads */
20503 status = pthread_create( &t, pthread_attr_default, task, NULL );
20504 if( status ) return errno;
20506 /* give thread a chance to complete */
20507 /* it should remain joinable and hence detachable */
20510 status = pthread_detach( &t );
20511 if( status ) return errno;
20514 #ifdef HAVE_LINUX_THREADS
20515 pthread_kill_other_threads_np();
20524 if ac_fn_c_try_link "$LINENO"; then :
20525 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
20527 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
20529 rm -f core conftest.err conftest.$ac_objext \
20530 conftest$ac_exeext conftest.$ac_ext
20532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20533 /* end confdefs.h. */
20536 /* pthread test headers */
20537 #include <pthread.h>
20538 #if HAVE_PTHREADS < 7
20542 #define NULL (void*)0
20545 static void *task(p)
20548 return (void *) (p == NULL);
20552 int main(argc, argv)
20557 /* pthread test function */
20558 #ifndef PTHREAD_CREATE_DETACHED
20559 #define PTHREAD_CREATE_DETACHED 1
20563 int detach = PTHREAD_CREATE_DETACHED;
20565 #if HAVE_PTHREADS > 4
20566 /* Final pthreads */
20567 pthread_attr_t attr;
20569 status = pthread_attr_init(&attr);
20570 if( status ) return status;
20572 #if HAVE_PTHREADS < 7
20573 status = pthread_attr_setdetachstate(&attr, &detach);
20574 if( status < 0 ) status = errno;
20576 status = pthread_attr_setdetachstate(&attr, detach);
20578 if( status ) return status;
20579 status = pthread_create( &t, &attr, task, NULL );
20580 #if HAVE_PTHREADS < 7
20581 if( status < 0 ) status = errno;
20583 if( status ) return status;
20585 /* Draft 4 pthreads */
20586 status = pthread_create( &t, pthread_attr_default, task, NULL );
20587 if( status ) return errno;
20589 /* give thread a chance to complete */
20590 /* it should remain joinable and hence detachable */
20593 status = pthread_detach( &t );
20594 if( status ) return errno;
20597 #ifdef HAVE_LINUX_THREADS
20598 pthread_kill_other_threads_np();
20606 if ac_fn_c_try_run "$LINENO"; then :
20607 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
20609 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
20611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20612 conftest.$ac_objext conftest.beam conftest.$ac_ext
20620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
20621 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
20623 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
20624 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
20625 ol_link_threads=posix
20629 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
20630 if test "$ol_link_threads" = no ; then
20631 # try -lpthread -lmach -lexc
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
20633 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
20634 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
20635 $as_echo_n "(cached) " >&6
20640 LIBS="-lpthread -lmach -lexc $LIBS"
20642 if test "$cross_compiling" = yes; then :
20643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20644 /* end confdefs.h. */
20646 /* pthread test headers */
20647 #include <pthread.h>
20648 #if HAVE_PTHREADS < 7
20652 #define NULL (void*)0
20655 static void *task(p)
20658 return (void *) (p == NULL);
20665 /* pthread test function */
20666 #ifndef PTHREAD_CREATE_DETACHED
20667 #define PTHREAD_CREATE_DETACHED 1
20671 int detach = PTHREAD_CREATE_DETACHED;
20673 #if HAVE_PTHREADS > 4
20674 /* Final pthreads */
20675 pthread_attr_t attr;
20677 status = pthread_attr_init(&attr);
20678 if( status ) return status;
20680 #if HAVE_PTHREADS < 7
20681 status = pthread_attr_setdetachstate(&attr, &detach);
20682 if( status < 0 ) status = errno;
20684 status = pthread_attr_setdetachstate(&attr, detach);
20686 if( status ) return status;
20687 status = pthread_create( &t, &attr, task, NULL );
20688 #if HAVE_PTHREADS < 7
20689 if( status < 0 ) status = errno;
20691 if( status ) return status;
20693 /* Draft 4 pthreads */
20694 status = pthread_create( &t, pthread_attr_default, task, NULL );
20695 if( status ) return errno;
20697 /* give thread a chance to complete */
20698 /* it should remain joinable and hence detachable */
20701 status = pthread_detach( &t );
20702 if( status ) return errno;
20705 #ifdef HAVE_LINUX_THREADS
20706 pthread_kill_other_threads_np();
20715 if ac_fn_c_try_link "$LINENO"; then :
20716 ol_cv_pthread_lpthread_lmach_lexc=yes
20718 ol_cv_pthread_lpthread_lmach_lexc=no
20720 rm -f core conftest.err conftest.$ac_objext \
20721 conftest$ac_exeext conftest.$ac_ext
20723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20724 /* end confdefs.h. */
20727 /* pthread test headers */
20728 #include <pthread.h>
20729 #if HAVE_PTHREADS < 7
20733 #define NULL (void*)0
20736 static void *task(p)
20739 return (void *) (p == NULL);
20743 int main(argc, argv)
20748 /* pthread test function */
20749 #ifndef PTHREAD_CREATE_DETACHED
20750 #define PTHREAD_CREATE_DETACHED 1
20754 int detach = PTHREAD_CREATE_DETACHED;
20756 #if HAVE_PTHREADS > 4
20757 /* Final pthreads */
20758 pthread_attr_t attr;
20760 status = pthread_attr_init(&attr);
20761 if( status ) return status;
20763 #if HAVE_PTHREADS < 7
20764 status = pthread_attr_setdetachstate(&attr, &detach);
20765 if( status < 0 ) status = errno;
20767 status = pthread_attr_setdetachstate(&attr, detach);
20769 if( status ) return status;
20770 status = pthread_create( &t, &attr, task, NULL );
20771 #if HAVE_PTHREADS < 7
20772 if( status < 0 ) status = errno;
20774 if( status ) return status;
20776 /* Draft 4 pthreads */
20777 status = pthread_create( &t, pthread_attr_default, task, NULL );
20778 if( status ) return errno;
20780 /* give thread a chance to complete */
20781 /* it should remain joinable and hence detachable */
20784 status = pthread_detach( &t );
20785 if( status ) return errno;
20788 #ifdef HAVE_LINUX_THREADS
20789 pthread_kill_other_threads_np();
20797 if ac_fn_c_try_run "$LINENO"; then :
20798 ol_cv_pthread_lpthread_lmach_lexc=yes
20800 ol_cv_pthread_lpthread_lmach_lexc=no
20802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20803 conftest.$ac_objext conftest.beam conftest.$ac_ext
20811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
20812 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
20814 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
20815 ol_link_pthreads="-lpthread -lmach -lexc"
20816 ol_link_threads=posix
20821 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
20822 if test "$ol_link_threads" = no ; then
20823 # try -lpthread -Wl,-woff,85
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
20825 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
20826 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
20827 $as_echo_n "(cached) " >&6
20832 LIBS="-lpthread -Wl,-woff,85 $LIBS"
20834 if test "$cross_compiling" = yes; then :
20835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20836 /* end confdefs.h. */
20838 /* pthread test headers */
20839 #include <pthread.h>
20840 #if HAVE_PTHREADS < 7
20844 #define NULL (void*)0
20847 static void *task(p)
20850 return (void *) (p == NULL);
20857 /* pthread test function */
20858 #ifndef PTHREAD_CREATE_DETACHED
20859 #define PTHREAD_CREATE_DETACHED 1
20863 int detach = PTHREAD_CREATE_DETACHED;
20865 #if HAVE_PTHREADS > 4
20866 /* Final pthreads */
20867 pthread_attr_t attr;
20869 status = pthread_attr_init(&attr);
20870 if( status ) return status;
20872 #if HAVE_PTHREADS < 7
20873 status = pthread_attr_setdetachstate(&attr, &detach);
20874 if( status < 0 ) status = errno;
20876 status = pthread_attr_setdetachstate(&attr, detach);
20878 if( status ) return status;
20879 status = pthread_create( &t, &attr, task, NULL );
20880 #if HAVE_PTHREADS < 7
20881 if( status < 0 ) status = errno;
20883 if( status ) return status;
20885 /* Draft 4 pthreads */
20886 status = pthread_create( &t, pthread_attr_default, task, NULL );
20887 if( status ) return errno;
20889 /* give thread a chance to complete */
20890 /* it should remain joinable and hence detachable */
20893 status = pthread_detach( &t );
20894 if( status ) return errno;
20897 #ifdef HAVE_LINUX_THREADS
20898 pthread_kill_other_threads_np();
20907 if ac_fn_c_try_link "$LINENO"; then :
20908 ol_cv_pthread_lib_lpthread_woff=yes
20910 ol_cv_pthread_lib_lpthread_woff=no
20912 rm -f core conftest.err conftest.$ac_objext \
20913 conftest$ac_exeext conftest.$ac_ext
20915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20916 /* end confdefs.h. */
20919 /* pthread test headers */
20920 #include <pthread.h>
20921 #if HAVE_PTHREADS < 7
20925 #define NULL (void*)0
20928 static void *task(p)
20931 return (void *) (p == NULL);
20935 int main(argc, argv)
20940 /* pthread test function */
20941 #ifndef PTHREAD_CREATE_DETACHED
20942 #define PTHREAD_CREATE_DETACHED 1
20946 int detach = PTHREAD_CREATE_DETACHED;
20948 #if HAVE_PTHREADS > 4
20949 /* Final pthreads */
20950 pthread_attr_t attr;
20952 status = pthread_attr_init(&attr);
20953 if( status ) return status;
20955 #if HAVE_PTHREADS < 7
20956 status = pthread_attr_setdetachstate(&attr, &detach);
20957 if( status < 0 ) status = errno;
20959 status = pthread_attr_setdetachstate(&attr, detach);
20961 if( status ) return status;
20962 status = pthread_create( &t, &attr, task, NULL );
20963 #if HAVE_PTHREADS < 7
20964 if( status < 0 ) status = errno;
20966 if( status ) return status;
20968 /* Draft 4 pthreads */
20969 status = pthread_create( &t, pthread_attr_default, task, NULL );
20970 if( status ) return errno;
20972 /* give thread a chance to complete */
20973 /* it should remain joinable and hence detachable */
20976 status = pthread_detach( &t );
20977 if( status ) return errno;
20980 #ifdef HAVE_LINUX_THREADS
20981 pthread_kill_other_threads_np();
20989 if ac_fn_c_try_run "$LINENO"; then :
20990 ol_cv_pthread_lib_lpthread_woff=yes
20992 ol_cv_pthread_lib_lpthread_woff=no
20994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20995 conftest.$ac_objext conftest.beam conftest.$ac_ext
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21004 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
21006 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21007 ol_link_pthreads="-lpthread -Wl,-woff,85"
21008 ol_link_threads=posix
21013 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21014 if test "$ol_link_threads" = no ; then
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
21017 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
21018 if ${ol_cv_pthread_lpthread+:} false; then :
21019 $as_echo_n "(cached) " >&6
21024 LIBS="-lpthread $LIBS"
21026 if test "$cross_compiling" = yes; then :
21027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21028 /* end confdefs.h. */
21030 /* pthread test headers */
21031 #include <pthread.h>
21032 #if HAVE_PTHREADS < 7
21036 #define NULL (void*)0
21039 static void *task(p)
21042 return (void *) (p == NULL);
21049 /* pthread test function */
21050 #ifndef PTHREAD_CREATE_DETACHED
21051 #define PTHREAD_CREATE_DETACHED 1
21055 int detach = PTHREAD_CREATE_DETACHED;
21057 #if HAVE_PTHREADS > 4
21058 /* Final pthreads */
21059 pthread_attr_t attr;
21061 status = pthread_attr_init(&attr);
21062 if( status ) return status;
21064 #if HAVE_PTHREADS < 7
21065 status = pthread_attr_setdetachstate(&attr, &detach);
21066 if( status < 0 ) status = errno;
21068 status = pthread_attr_setdetachstate(&attr, detach);
21070 if( status ) return status;
21071 status = pthread_create( &t, &attr, task, NULL );
21072 #if HAVE_PTHREADS < 7
21073 if( status < 0 ) status = errno;
21075 if( status ) return status;
21077 /* Draft 4 pthreads */
21078 status = pthread_create( &t, pthread_attr_default, task, NULL );
21079 if( status ) return errno;
21081 /* give thread a chance to complete */
21082 /* it should remain joinable and hence detachable */
21085 status = pthread_detach( &t );
21086 if( status ) return errno;
21089 #ifdef HAVE_LINUX_THREADS
21090 pthread_kill_other_threads_np();
21099 if ac_fn_c_try_link "$LINENO"; then :
21100 ol_cv_pthread_lpthread=yes
21102 ol_cv_pthread_lpthread=no
21104 rm -f core conftest.err conftest.$ac_objext \
21105 conftest$ac_exeext conftest.$ac_ext
21107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21108 /* end confdefs.h. */
21111 /* pthread test headers */
21112 #include <pthread.h>
21113 #if HAVE_PTHREADS < 7
21117 #define NULL (void*)0
21120 static void *task(p)
21123 return (void *) (p == NULL);
21127 int main(argc, argv)
21132 /* pthread test function */
21133 #ifndef PTHREAD_CREATE_DETACHED
21134 #define PTHREAD_CREATE_DETACHED 1
21138 int detach = PTHREAD_CREATE_DETACHED;
21140 #if HAVE_PTHREADS > 4
21141 /* Final pthreads */
21142 pthread_attr_t attr;
21144 status = pthread_attr_init(&attr);
21145 if( status ) return status;
21147 #if HAVE_PTHREADS < 7
21148 status = pthread_attr_setdetachstate(&attr, &detach);
21149 if( status < 0 ) status = errno;
21151 status = pthread_attr_setdetachstate(&attr, detach);
21153 if( status ) return status;
21154 status = pthread_create( &t, &attr, task, NULL );
21155 #if HAVE_PTHREADS < 7
21156 if( status < 0 ) status = errno;
21158 if( status ) return status;
21160 /* Draft 4 pthreads */
21161 status = pthread_create( &t, pthread_attr_default, task, NULL );
21162 if( status ) return errno;
21164 /* give thread a chance to complete */
21165 /* it should remain joinable and hence detachable */
21168 status = pthread_detach( &t );
21169 if( status ) return errno;
21172 #ifdef HAVE_LINUX_THREADS
21173 pthread_kill_other_threads_np();
21181 if ac_fn_c_try_run "$LINENO"; then :
21182 ol_cv_pthread_lpthread=yes
21184 ol_cv_pthread_lpthread=no
21186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21187 conftest.$ac_objext conftest.beam conftest.$ac_ext
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
21196 $as_echo "$ol_cv_pthread_lpthread" >&6; }
21198 if test $ol_cv_pthread_lpthread = yes ; then
21199 ol_link_pthreads="-lpthread"
21200 ol_link_threads=posix
21204 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
21205 if test "$ol_link_threads" = no ; then
21207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
21208 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
21209 if ${ol_cv_pthread_lc_r+:} false; then :
21210 $as_echo_n "(cached) " >&6
21217 if test "$cross_compiling" = yes; then :
21218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21219 /* end confdefs.h. */
21221 /* pthread test headers */
21222 #include <pthread.h>
21223 #if HAVE_PTHREADS < 7
21227 #define NULL (void*)0
21230 static void *task(p)
21233 return (void *) (p == NULL);
21240 /* pthread test function */
21241 #ifndef PTHREAD_CREATE_DETACHED
21242 #define PTHREAD_CREATE_DETACHED 1
21246 int detach = PTHREAD_CREATE_DETACHED;
21248 #if HAVE_PTHREADS > 4
21249 /* Final pthreads */
21250 pthread_attr_t attr;
21252 status = pthread_attr_init(&attr);
21253 if( status ) return status;
21255 #if HAVE_PTHREADS < 7
21256 status = pthread_attr_setdetachstate(&attr, &detach);
21257 if( status < 0 ) status = errno;
21259 status = pthread_attr_setdetachstate(&attr, detach);
21261 if( status ) return status;
21262 status = pthread_create( &t, &attr, task, NULL );
21263 #if HAVE_PTHREADS < 7
21264 if( status < 0 ) status = errno;
21266 if( status ) return status;
21268 /* Draft 4 pthreads */
21269 status = pthread_create( &t, pthread_attr_default, task, NULL );
21270 if( status ) return errno;
21272 /* give thread a chance to complete */
21273 /* it should remain joinable and hence detachable */
21276 status = pthread_detach( &t );
21277 if( status ) return errno;
21280 #ifdef HAVE_LINUX_THREADS
21281 pthread_kill_other_threads_np();
21290 if ac_fn_c_try_link "$LINENO"; then :
21291 ol_cv_pthread_lc_r=yes
21293 ol_cv_pthread_lc_r=no
21295 rm -f core conftest.err conftest.$ac_objext \
21296 conftest$ac_exeext conftest.$ac_ext
21298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21299 /* end confdefs.h. */
21302 /* pthread test headers */
21303 #include <pthread.h>
21304 #if HAVE_PTHREADS < 7
21308 #define NULL (void*)0
21311 static void *task(p)
21314 return (void *) (p == NULL);
21318 int main(argc, argv)
21323 /* pthread test function */
21324 #ifndef PTHREAD_CREATE_DETACHED
21325 #define PTHREAD_CREATE_DETACHED 1
21329 int detach = PTHREAD_CREATE_DETACHED;
21331 #if HAVE_PTHREADS > 4
21332 /* Final pthreads */
21333 pthread_attr_t attr;
21335 status = pthread_attr_init(&attr);
21336 if( status ) return status;
21338 #if HAVE_PTHREADS < 7
21339 status = pthread_attr_setdetachstate(&attr, &detach);
21340 if( status < 0 ) status = errno;
21342 status = pthread_attr_setdetachstate(&attr, detach);
21344 if( status ) return status;
21345 status = pthread_create( &t, &attr, task, NULL );
21346 #if HAVE_PTHREADS < 7
21347 if( status < 0 ) status = errno;
21349 if( status ) return status;
21351 /* Draft 4 pthreads */
21352 status = pthread_create( &t, pthread_attr_default, task, NULL );
21353 if( status ) return errno;
21355 /* give thread a chance to complete */
21356 /* it should remain joinable and hence detachable */
21359 status = pthread_detach( &t );
21360 if( status ) return errno;
21363 #ifdef HAVE_LINUX_THREADS
21364 pthread_kill_other_threads_np();
21372 if ac_fn_c_try_run "$LINENO"; then :
21373 ol_cv_pthread_lc_r=yes
21375 ol_cv_pthread_lc_r=no
21377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21378 conftest.$ac_objext conftest.beam conftest.$ac_ext
21386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
21387 $as_echo "$ol_cv_pthread_lc_r" >&6; }
21389 if test $ol_cv_pthread_lc_r = yes ; then
21390 ol_link_pthreads="-lc_r"
21391 ol_link_threads=posix
21396 # Pthread try link: -threads (ol_cv_pthread_threads)
21397 if test "$ol_link_threads" = no ; then
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
21400 $as_echo_n "checking for pthread link with -threads... " >&6; }
21401 if ${ol_cv_pthread_threads+:} false; then :
21402 $as_echo_n "(cached) " >&6
21407 LIBS="-threads $LIBS"
21409 if test "$cross_compiling" = yes; then :
21410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21411 /* end confdefs.h. */
21413 /* pthread test headers */
21414 #include <pthread.h>
21415 #if HAVE_PTHREADS < 7
21419 #define NULL (void*)0
21422 static void *task(p)
21425 return (void *) (p == NULL);
21432 /* pthread test function */
21433 #ifndef PTHREAD_CREATE_DETACHED
21434 #define PTHREAD_CREATE_DETACHED 1
21438 int detach = PTHREAD_CREATE_DETACHED;
21440 #if HAVE_PTHREADS > 4
21441 /* Final pthreads */
21442 pthread_attr_t attr;
21444 status = pthread_attr_init(&attr);
21445 if( status ) return status;
21447 #if HAVE_PTHREADS < 7
21448 status = pthread_attr_setdetachstate(&attr, &detach);
21449 if( status < 0 ) status = errno;
21451 status = pthread_attr_setdetachstate(&attr, detach);
21453 if( status ) return status;
21454 status = pthread_create( &t, &attr, task, NULL );
21455 #if HAVE_PTHREADS < 7
21456 if( status < 0 ) status = errno;
21458 if( status ) return status;
21460 /* Draft 4 pthreads */
21461 status = pthread_create( &t, pthread_attr_default, task, NULL );
21462 if( status ) return errno;
21464 /* give thread a chance to complete */
21465 /* it should remain joinable and hence detachable */
21468 status = pthread_detach( &t );
21469 if( status ) return errno;
21472 #ifdef HAVE_LINUX_THREADS
21473 pthread_kill_other_threads_np();
21482 if ac_fn_c_try_link "$LINENO"; then :
21483 ol_cv_pthread_threads=yes
21485 ol_cv_pthread_threads=no
21487 rm -f core conftest.err conftest.$ac_objext \
21488 conftest$ac_exeext conftest.$ac_ext
21490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21491 /* end confdefs.h. */
21494 /* pthread test headers */
21495 #include <pthread.h>
21496 #if HAVE_PTHREADS < 7
21500 #define NULL (void*)0
21503 static void *task(p)
21506 return (void *) (p == NULL);
21510 int main(argc, argv)
21515 /* pthread test function */
21516 #ifndef PTHREAD_CREATE_DETACHED
21517 #define PTHREAD_CREATE_DETACHED 1
21521 int detach = PTHREAD_CREATE_DETACHED;
21523 #if HAVE_PTHREADS > 4
21524 /* Final pthreads */
21525 pthread_attr_t attr;
21527 status = pthread_attr_init(&attr);
21528 if( status ) return status;
21530 #if HAVE_PTHREADS < 7
21531 status = pthread_attr_setdetachstate(&attr, &detach);
21532 if( status < 0 ) status = errno;
21534 status = pthread_attr_setdetachstate(&attr, detach);
21536 if( status ) return status;
21537 status = pthread_create( &t, &attr, task, NULL );
21538 #if HAVE_PTHREADS < 7
21539 if( status < 0 ) status = errno;
21541 if( status ) return status;
21543 /* Draft 4 pthreads */
21544 status = pthread_create( &t, pthread_attr_default, task, NULL );
21545 if( status ) return errno;
21547 /* give thread a chance to complete */
21548 /* it should remain joinable and hence detachable */
21551 status = pthread_detach( &t );
21552 if( status ) return errno;
21555 #ifdef HAVE_LINUX_THREADS
21556 pthread_kill_other_threads_np();
21564 if ac_fn_c_try_run "$LINENO"; then :
21565 ol_cv_pthread_threads=yes
21567 ol_cv_pthread_threads=no
21569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21570 conftest.$ac_objext conftest.beam conftest.$ac_ext
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
21579 $as_echo "$ol_cv_pthread_threads" >&6; }
21581 if test $ol_cv_pthread_threads = yes ; then
21582 ol_link_pthreads="-threads"
21583 ol_link_threads=posix
21588 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
21589 if test "$ol_link_threads" = no ; then
21590 # try -lpthreads -lmach -lexc -lc_r
21591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
21592 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
21593 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
21594 $as_echo_n "(cached) " >&6
21599 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
21601 if test "$cross_compiling" = yes; then :
21602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21603 /* end confdefs.h. */
21605 /* pthread test headers */
21606 #include <pthread.h>
21607 #if HAVE_PTHREADS < 7
21611 #define NULL (void*)0
21614 static void *task(p)
21617 return (void *) (p == NULL);
21624 /* pthread test function */
21625 #ifndef PTHREAD_CREATE_DETACHED
21626 #define PTHREAD_CREATE_DETACHED 1
21630 int detach = PTHREAD_CREATE_DETACHED;
21632 #if HAVE_PTHREADS > 4
21633 /* Final pthreads */
21634 pthread_attr_t attr;
21636 status = pthread_attr_init(&attr);
21637 if( status ) return status;
21639 #if HAVE_PTHREADS < 7
21640 status = pthread_attr_setdetachstate(&attr, &detach);
21641 if( status < 0 ) status = errno;
21643 status = pthread_attr_setdetachstate(&attr, detach);
21645 if( status ) return status;
21646 status = pthread_create( &t, &attr, task, NULL );
21647 #if HAVE_PTHREADS < 7
21648 if( status < 0 ) status = errno;
21650 if( status ) return status;
21652 /* Draft 4 pthreads */
21653 status = pthread_create( &t, pthread_attr_default, task, NULL );
21654 if( status ) return errno;
21656 /* give thread a chance to complete */
21657 /* it should remain joinable and hence detachable */
21660 status = pthread_detach( &t );
21661 if( status ) return errno;
21664 #ifdef HAVE_LINUX_THREADS
21665 pthread_kill_other_threads_np();
21674 if ac_fn_c_try_link "$LINENO"; then :
21675 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
21677 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
21679 rm -f core conftest.err conftest.$ac_objext \
21680 conftest$ac_exeext conftest.$ac_ext
21682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21683 /* end confdefs.h. */
21686 /* pthread test headers */
21687 #include <pthread.h>
21688 #if HAVE_PTHREADS < 7
21692 #define NULL (void*)0
21695 static void *task(p)
21698 return (void *) (p == NULL);
21702 int main(argc, argv)
21707 /* pthread test function */
21708 #ifndef PTHREAD_CREATE_DETACHED
21709 #define PTHREAD_CREATE_DETACHED 1
21713 int detach = PTHREAD_CREATE_DETACHED;
21715 #if HAVE_PTHREADS > 4
21716 /* Final pthreads */
21717 pthread_attr_t attr;
21719 status = pthread_attr_init(&attr);
21720 if( status ) return status;
21722 #if HAVE_PTHREADS < 7
21723 status = pthread_attr_setdetachstate(&attr, &detach);
21724 if( status < 0 ) status = errno;
21726 status = pthread_attr_setdetachstate(&attr, detach);
21728 if( status ) return status;
21729 status = pthread_create( &t, &attr, task, NULL );
21730 #if HAVE_PTHREADS < 7
21731 if( status < 0 ) status = errno;
21733 if( status ) return status;
21735 /* Draft 4 pthreads */
21736 status = pthread_create( &t, pthread_attr_default, task, NULL );
21737 if( status ) return errno;
21739 /* give thread a chance to complete */
21740 /* it should remain joinable and hence detachable */
21743 status = pthread_detach( &t );
21744 if( status ) return errno;
21747 #ifdef HAVE_LINUX_THREADS
21748 pthread_kill_other_threads_np();
21756 if ac_fn_c_try_run "$LINENO"; then :
21757 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
21759 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
21761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21762 conftest.$ac_objext conftest.beam conftest.$ac_ext
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
21771 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
21773 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
21774 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
21775 ol_link_threads=posix
21779 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
21780 if test "$ol_link_threads" = no ; then
21781 # try -lpthreads -lmach -lexc
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
21783 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
21784 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
21785 $as_echo_n "(cached) " >&6
21790 LIBS="-lpthreads -lmach -lexc $LIBS"
21792 if test "$cross_compiling" = yes; then :
21793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21794 /* end confdefs.h. */
21796 /* pthread test headers */
21797 #include <pthread.h>
21798 #if HAVE_PTHREADS < 7
21802 #define NULL (void*)0
21805 static void *task(p)
21808 return (void *) (p == NULL);
21815 /* pthread test function */
21816 #ifndef PTHREAD_CREATE_DETACHED
21817 #define PTHREAD_CREATE_DETACHED 1
21821 int detach = PTHREAD_CREATE_DETACHED;
21823 #if HAVE_PTHREADS > 4
21824 /* Final pthreads */
21825 pthread_attr_t attr;
21827 status = pthread_attr_init(&attr);
21828 if( status ) return status;
21830 #if HAVE_PTHREADS < 7
21831 status = pthread_attr_setdetachstate(&attr, &detach);
21832 if( status < 0 ) status = errno;
21834 status = pthread_attr_setdetachstate(&attr, detach);
21836 if( status ) return status;
21837 status = pthread_create( &t, &attr, task, NULL );
21838 #if HAVE_PTHREADS < 7
21839 if( status < 0 ) status = errno;
21841 if( status ) return status;
21843 /* Draft 4 pthreads */
21844 status = pthread_create( &t, pthread_attr_default, task, NULL );
21845 if( status ) return errno;
21847 /* give thread a chance to complete */
21848 /* it should remain joinable and hence detachable */
21851 status = pthread_detach( &t );
21852 if( status ) return errno;
21855 #ifdef HAVE_LINUX_THREADS
21856 pthread_kill_other_threads_np();
21865 if ac_fn_c_try_link "$LINENO"; then :
21866 ol_cv_pthread_lpthreads_lmach_lexc=yes
21868 ol_cv_pthread_lpthreads_lmach_lexc=no
21870 rm -f core conftest.err conftest.$ac_objext \
21871 conftest$ac_exeext conftest.$ac_ext
21873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21874 /* end confdefs.h. */
21877 /* pthread test headers */
21878 #include <pthread.h>
21879 #if HAVE_PTHREADS < 7
21883 #define NULL (void*)0
21886 static void *task(p)
21889 return (void *) (p == NULL);
21893 int main(argc, argv)
21898 /* pthread test function */
21899 #ifndef PTHREAD_CREATE_DETACHED
21900 #define PTHREAD_CREATE_DETACHED 1
21904 int detach = PTHREAD_CREATE_DETACHED;
21906 #if HAVE_PTHREADS > 4
21907 /* Final pthreads */
21908 pthread_attr_t attr;
21910 status = pthread_attr_init(&attr);
21911 if( status ) return status;
21913 #if HAVE_PTHREADS < 7
21914 status = pthread_attr_setdetachstate(&attr, &detach);
21915 if( status < 0 ) status = errno;
21917 status = pthread_attr_setdetachstate(&attr, detach);
21919 if( status ) return status;
21920 status = pthread_create( &t, &attr, task, NULL );
21921 #if HAVE_PTHREADS < 7
21922 if( status < 0 ) status = errno;
21924 if( status ) return status;
21926 /* Draft 4 pthreads */
21927 status = pthread_create( &t, pthread_attr_default, task, NULL );
21928 if( status ) return errno;
21930 /* give thread a chance to complete */
21931 /* it should remain joinable and hence detachable */
21934 status = pthread_detach( &t );
21935 if( status ) return errno;
21938 #ifdef HAVE_LINUX_THREADS
21939 pthread_kill_other_threads_np();
21947 if ac_fn_c_try_run "$LINENO"; then :
21948 ol_cv_pthread_lpthreads_lmach_lexc=yes
21950 ol_cv_pthread_lpthreads_lmach_lexc=no
21952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21953 conftest.$ac_objext conftest.beam conftest.$ac_ext
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
21962 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
21964 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
21965 ol_link_pthreads="-lpthreads -lmach -lexc"
21966 ol_link_threads=posix
21970 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
21971 if test "$ol_link_threads" = no ; then
21972 # try -lpthreads -lexc
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
21974 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
21975 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
21976 $as_echo_n "(cached) " >&6
21981 LIBS="-lpthreads -lexc $LIBS"
21983 if test "$cross_compiling" = yes; then :
21984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21985 /* end confdefs.h. */
21987 /* pthread test headers */
21988 #include <pthread.h>
21989 #if HAVE_PTHREADS < 7
21993 #define NULL (void*)0
21996 static void *task(p)
21999 return (void *) (p == NULL);
22006 /* pthread test function */
22007 #ifndef PTHREAD_CREATE_DETACHED
22008 #define PTHREAD_CREATE_DETACHED 1
22012 int detach = PTHREAD_CREATE_DETACHED;
22014 #if HAVE_PTHREADS > 4
22015 /* Final pthreads */
22016 pthread_attr_t attr;
22018 status = pthread_attr_init(&attr);
22019 if( status ) return status;
22021 #if HAVE_PTHREADS < 7
22022 status = pthread_attr_setdetachstate(&attr, &detach);
22023 if( status < 0 ) status = errno;
22025 status = pthread_attr_setdetachstate(&attr, detach);
22027 if( status ) return status;
22028 status = pthread_create( &t, &attr, task, NULL );
22029 #if HAVE_PTHREADS < 7
22030 if( status < 0 ) status = errno;
22032 if( status ) return status;
22034 /* Draft 4 pthreads */
22035 status = pthread_create( &t, pthread_attr_default, task, NULL );
22036 if( status ) return errno;
22038 /* give thread a chance to complete */
22039 /* it should remain joinable and hence detachable */
22042 status = pthread_detach( &t );
22043 if( status ) return errno;
22046 #ifdef HAVE_LINUX_THREADS
22047 pthread_kill_other_threads_np();
22056 if ac_fn_c_try_link "$LINENO"; then :
22057 ol_cv_pthread_lpthreads_lexc=yes
22059 ol_cv_pthread_lpthreads_lexc=no
22061 rm -f core conftest.err conftest.$ac_objext \
22062 conftest$ac_exeext conftest.$ac_ext
22064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22065 /* end confdefs.h. */
22068 /* pthread test headers */
22069 #include <pthread.h>
22070 #if HAVE_PTHREADS < 7
22074 #define NULL (void*)0
22077 static void *task(p)
22080 return (void *) (p == NULL);
22084 int main(argc, argv)
22089 /* pthread test function */
22090 #ifndef PTHREAD_CREATE_DETACHED
22091 #define PTHREAD_CREATE_DETACHED 1
22095 int detach = PTHREAD_CREATE_DETACHED;
22097 #if HAVE_PTHREADS > 4
22098 /* Final pthreads */
22099 pthread_attr_t attr;
22101 status = pthread_attr_init(&attr);
22102 if( status ) return status;
22104 #if HAVE_PTHREADS < 7
22105 status = pthread_attr_setdetachstate(&attr, &detach);
22106 if( status < 0 ) status = errno;
22108 status = pthread_attr_setdetachstate(&attr, detach);
22110 if( status ) return status;
22111 status = pthread_create( &t, &attr, task, NULL );
22112 #if HAVE_PTHREADS < 7
22113 if( status < 0 ) status = errno;
22115 if( status ) return status;
22117 /* Draft 4 pthreads */
22118 status = pthread_create( &t, pthread_attr_default, task, NULL );
22119 if( status ) return errno;
22121 /* give thread a chance to complete */
22122 /* it should remain joinable and hence detachable */
22125 status = pthread_detach( &t );
22126 if( status ) return errno;
22129 #ifdef HAVE_LINUX_THREADS
22130 pthread_kill_other_threads_np();
22138 if ac_fn_c_try_run "$LINENO"; then :
22139 ol_cv_pthread_lpthreads_lexc=yes
22141 ol_cv_pthread_lpthreads_lexc=no
22143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22144 conftest.$ac_objext conftest.beam conftest.$ac_ext
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
22153 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
22155 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
22156 ol_link_pthreads="-lpthreads -lexc"
22157 ol_link_threads=posix
22162 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
22163 if test "$ol_link_threads" = no ; then
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
22166 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
22167 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
22168 $as_echo_n "(cached) " >&6
22173 LIBS="-lpthreads $LIBS"
22175 if test "$cross_compiling" = yes; then :
22176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22177 /* end confdefs.h. */
22179 /* pthread test headers */
22180 #include <pthread.h>
22181 #if HAVE_PTHREADS < 7
22185 #define NULL (void*)0
22188 static void *task(p)
22191 return (void *) (p == NULL);
22198 /* pthread test function */
22199 #ifndef PTHREAD_CREATE_DETACHED
22200 #define PTHREAD_CREATE_DETACHED 1
22204 int detach = PTHREAD_CREATE_DETACHED;
22206 #if HAVE_PTHREADS > 4
22207 /* Final pthreads */
22208 pthread_attr_t attr;
22210 status = pthread_attr_init(&attr);
22211 if( status ) return status;
22213 #if HAVE_PTHREADS < 7
22214 status = pthread_attr_setdetachstate(&attr, &detach);
22215 if( status < 0 ) status = errno;
22217 status = pthread_attr_setdetachstate(&attr, detach);
22219 if( status ) return status;
22220 status = pthread_create( &t, &attr, task, NULL );
22221 #if HAVE_PTHREADS < 7
22222 if( status < 0 ) status = errno;
22224 if( status ) return status;
22226 /* Draft 4 pthreads */
22227 status = pthread_create( &t, pthread_attr_default, task, NULL );
22228 if( status ) return errno;
22230 /* give thread a chance to complete */
22231 /* it should remain joinable and hence detachable */
22234 status = pthread_detach( &t );
22235 if( status ) return errno;
22238 #ifdef HAVE_LINUX_THREADS
22239 pthread_kill_other_threads_np();
22248 if ac_fn_c_try_link "$LINENO"; then :
22249 ol_cv_pthread_lib_lpthreads=yes
22251 ol_cv_pthread_lib_lpthreads=no
22253 rm -f core conftest.err conftest.$ac_objext \
22254 conftest$ac_exeext conftest.$ac_ext
22256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22257 /* end confdefs.h. */
22260 /* pthread test headers */
22261 #include <pthread.h>
22262 #if HAVE_PTHREADS < 7
22266 #define NULL (void*)0
22269 static void *task(p)
22272 return (void *) (p == NULL);
22276 int main(argc, argv)
22281 /* pthread test function */
22282 #ifndef PTHREAD_CREATE_DETACHED
22283 #define PTHREAD_CREATE_DETACHED 1
22287 int detach = PTHREAD_CREATE_DETACHED;
22289 #if HAVE_PTHREADS > 4
22290 /* Final pthreads */
22291 pthread_attr_t attr;
22293 status = pthread_attr_init(&attr);
22294 if( status ) return status;
22296 #if HAVE_PTHREADS < 7
22297 status = pthread_attr_setdetachstate(&attr, &detach);
22298 if( status < 0 ) status = errno;
22300 status = pthread_attr_setdetachstate(&attr, detach);
22302 if( status ) return status;
22303 status = pthread_create( &t, &attr, task, NULL );
22304 #if HAVE_PTHREADS < 7
22305 if( status < 0 ) status = errno;
22307 if( status ) return status;
22309 /* Draft 4 pthreads */
22310 status = pthread_create( &t, pthread_attr_default, task, NULL );
22311 if( status ) return errno;
22313 /* give thread a chance to complete */
22314 /* it should remain joinable and hence detachable */
22317 status = pthread_detach( &t );
22318 if( status ) return errno;
22321 #ifdef HAVE_LINUX_THREADS
22322 pthread_kill_other_threads_np();
22330 if ac_fn_c_try_run "$LINENO"; then :
22331 ol_cv_pthread_lib_lpthreads=yes
22333 ol_cv_pthread_lib_lpthreads=no
22335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22336 conftest.$ac_objext conftest.beam conftest.$ac_ext
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
22345 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
22347 if test $ol_cv_pthread_lib_lpthreads = yes ; then
22348 ol_link_pthreads="-lpthreads"
22349 ol_link_threads=posix
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
22355 $as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
22357 if test $ol_link_threads != no ; then
22358 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
22360 save_CPPFLAGS="$CPPFLAGS"
22362 LIBS="$LTHREAD_LIBS $LIBS"
22364 for ac_func in sched_yield pthread_yield thr_yield
22366 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22367 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22368 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22369 cat >>confdefs.h <<_ACEOF
22370 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22377 if test $ac_cv_func_sched_yield = no &&
22378 test $ac_cv_func_pthread_yield = no &&
22379 test $ac_cv_func_thr_yield = no ; then
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22381 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22382 if ${ac_cv_lib_rt_sched_yield+:} false; then :
22383 $as_echo_n "(cached) " >&6
22385 ac_check_lib_save_LIBS=$LIBS
22387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22388 /* end confdefs.h. */
22390 /* Override any GCC internal prototype to avoid an error.
22391 Use char because int might match the return type of a GCC
22392 builtin and then its argument prototype would still apply. */
22396 char sched_yield ();
22400 return sched_yield ();
22405 if ac_fn_c_try_link "$LINENO"; then :
22406 ac_cv_lib_rt_sched_yield=yes
22408 ac_cv_lib_rt_sched_yield=no
22410 rm -f core conftest.err conftest.$ac_objext \
22411 conftest$ac_exeext conftest.$ac_ext
22412 LIBS=$ac_check_lib_save_LIBS
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22415 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22416 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
22417 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
22419 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22421 ac_cv_func_sched_yield=yes
22423 ac_cv_func_sched_yield=no
22427 if test $ac_cv_func_sched_yield = no &&
22428 test $ac_cv_func_pthread_yield = no &&
22429 test "$ac_cv_func_thr_yield" = no ; then
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
22431 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
22434 for ac_func in pthread_kill
22436 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
22437 if test "x$ac_cv_func_pthread_kill" = xyes; then :
22438 cat >>confdefs.h <<_ACEOF
22439 #define HAVE_PTHREAD_KILL 1
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
22447 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
22448 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
22449 $as_echo_n "(cached) " >&6
22452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22453 /* end confdefs.h. */
22455 #include <pthread.h>
22456 pthread_rwlock_t rwlock;
22461 pthread_rwlock_destroy(&rwlock);
22466 if ac_fn_c_try_link "$LINENO"; then :
22467 ol_cv_func_pthread_rwlock_destroy=yes
22469 ol_cv_func_pthread_rwlock_destroy=no
22471 rm -f core conftest.err conftest.$ac_objext \
22472 conftest$ac_exeext conftest.$ac_ext
22475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
22476 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
22477 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
22479 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
22484 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
22485 if ${ol_cv_func_pthread_detach+:} false; then :
22486 $as_echo_n "(cached) " >&6
22489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22490 /* end confdefs.h. */
22492 #include <pthread.h>
22494 #define NULL (void*)0
22500 pthread_detach(NULL);
22505 if ac_fn_c_try_link "$LINENO"; then :
22506 ol_cv_func_pthread_detach=yes
22508 ol_cv_func_pthread_detach=no
22510 rm -f core conftest.err conftest.$ac_objext \
22511 conftest$ac_exeext conftest.$ac_ext
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
22515 $as_echo "$ol_cv_func_pthread_detach" >&6; }
22517 if test $ol_cv_func_pthread_detach = no ; then
22518 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
22522 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
22526 pthread_setconcurrency \
22527 pthread_getconcurrency \
22528 thr_setconcurrency \
22529 thr_getconcurrency \
22532 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22533 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22534 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22535 cat >>confdefs.h <<_ACEOF
22536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22544 for ac_func in pthread_kill_other_threads_np
22546 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
22547 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
22548 cat >>confdefs.h <<_ACEOF
22549 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
22556 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
22557 if ${ol_cv_sys_linux_threads+:} false; then :
22558 $as_echo_n "(cached) " >&6
22560 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
22563 $as_echo "$ol_cv_sys_linux_threads" >&6; }
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
22569 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
22570 if ${ol_cv_linux_threads+:} false; then :
22571 $as_echo_n "(cached) " >&6
22574 if test $ol_cv_header_linux_threads = yes &&
22575 test $ol_cv_sys_linux_threads = yes; then
22576 ol_cv_linux_threads=yes
22577 elif test $ol_cv_header_linux_threads = no &&
22578 test $ol_cv_sys_linux_threads = no; then
22579 ol_cv_linux_threads=no
22581 ol_cv_linux_threads=error
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
22586 $as_echo "$ol_cv_linux_threads" >&6; }
22589 if test $ol_cv_linux_threads = error; then
22590 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
22594 $as_echo_n "checking if pthread_create() works... " >&6; }
22595 if ${ol_cv_pthread_create_works+:} false; then :
22596 $as_echo_n "(cached) " >&6
22599 if test "$cross_compiling" = yes; then :
22600 ol_cv_pthread_create_works=yes
22602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22603 /* end confdefs.h. */
22606 /* pthread test headers */
22607 #include <pthread.h>
22608 #if HAVE_PTHREADS < 7
22612 #define NULL (void*)0
22615 static void *task(p)
22618 return (void *) (p == NULL);
22622 int main(argc, argv)
22627 /* pthread test function */
22628 #ifndef PTHREAD_CREATE_DETACHED
22629 #define PTHREAD_CREATE_DETACHED 1
22633 int detach = PTHREAD_CREATE_DETACHED;
22635 #if HAVE_PTHREADS > 4
22636 /* Final pthreads */
22637 pthread_attr_t attr;
22639 status = pthread_attr_init(&attr);
22640 if( status ) return status;
22642 #if HAVE_PTHREADS < 7
22643 status = pthread_attr_setdetachstate(&attr, &detach);
22644 if( status < 0 ) status = errno;
22646 status = pthread_attr_setdetachstate(&attr, detach);
22648 if( status ) return status;
22649 status = pthread_create( &t, &attr, task, NULL );
22650 #if HAVE_PTHREADS < 7
22651 if( status < 0 ) status = errno;
22653 if( status ) return status;
22655 /* Draft 4 pthreads */
22656 status = pthread_create( &t, pthread_attr_default, task, NULL );
22657 if( status ) return errno;
22659 /* give thread a chance to complete */
22660 /* it should remain joinable and hence detachable */
22663 status = pthread_detach( &t );
22664 if( status ) return errno;
22667 #ifdef HAVE_LINUX_THREADS
22668 pthread_kill_other_threads_np();
22676 if ac_fn_c_try_run "$LINENO"; then :
22677 ol_cv_pthread_create_works=yes
22679 ol_cv_pthread_create_works=no
22681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22682 conftest.$ac_objext conftest.beam conftest.$ac_ext
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
22687 $as_echo "$ol_cv_pthread_create_works" >&6; }
22689 if test $ol_cv_pthread_create_works = no ; then
22690 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
22693 ol_replace_broken_yield=no
22695 if test $ol_replace_broken_yield = yes ; then
22697 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
22701 if test x$ol_with_yielding_select = xauto ; then
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
22703 $as_echo_n "checking if select yields when using pthreads... " >&6; }
22704 if ${ol_cv_pthread_select_yields+:} false; then :
22705 $as_echo_n "(cached) " >&6
22708 if test "$cross_compiling" = yes; then :
22709 ol_cv_pthread_select_yields=cross
22711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22712 /* end confdefs.h. */
22714 #include <sys/types.h>
22715 #include <sys/time.h>
22716 #include <unistd.h>
22717 #include <pthread.h>
22719 #define NULL (void*) 0
22722 static int fildes[2];
22724 static void *task(p)
22736 FD_SET(fildes[0], &rfds);
22738 /* we're not interested in any fds */
22739 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
22746 exit(0); /* if we exit here, the select blocked the whole process */
22749 int main(argc, argv)
22755 /* create a pipe to select */
22756 if(pipe(&fildes[0])) {
22761 #ifdef HAVE_PTHREAD_SETCONCURRENCY
22762 (void) pthread_setconcurrency(2);
22764 #ifdef HAVE_THR_SETCONCURRENCY
22765 /* Set Solaris LWP concurrency to 2 */
22766 thr_setconcurrency(2);
22770 #if HAVE_PTHREADS < 6
22771 pthread_create(&t, pthread_attr_default, task, NULL);
22773 pthread_create(&t, NULL, task, NULL);
22776 /* make sure task runs first */
22777 #ifdef HAVE_THR_YIELD
22779 #elif defined( HAVE_SCHED_YIELD )
22781 #elif defined( HAVE_PTHREAD_YIELD )
22788 if ac_fn_c_try_run "$LINENO"; then :
22789 ol_cv_pthread_select_yields=no
22791 ol_cv_pthread_select_yields=yes
22793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22794 conftest.$ac_objext conftest.beam conftest.$ac_ext
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
22799 $as_echo "$ol_cv_pthread_select_yields" >&6; }
22801 if test $ol_cv_pthread_select_yields = cross ; then
22802 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
22805 if test $ol_cv_pthread_select_yields = yes ; then
22806 ol_with_yielding_select=yes
22810 CPPFLAGS="$save_CPPFLAGS"
22813 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
22817 if test $ol_with_threads = posix ; then
22818 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
22823 case $ol_with_threads in auto | yes | mach)
22825 for ac_header in mach/cthreads.h cthreads.h
22827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22828 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22829 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22830 cat >>confdefs.h <<_ACEOF
22831 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22838 if test $ac_cv_header_mach_cthreads_h = yes ; then
22839 ol_with_threads=found
22841 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
22842 if test "x$ac_cv_func_cthread_fork" = xyes; then :
22843 ol_link_threads=yes
22847 if test $ol_link_threads = no ; then
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
22849 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
22850 if ${ol_cv_cthread_all_load+:} false; then :
22851 $as_echo_n "(cached) " >&6
22855 LIBS="-all_load $LIBS"
22856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22857 /* end confdefs.h. */
22858 #include <mach/cthreads.h>
22863 cthread_fork((void *)0, (void *)0);
22869 if ac_fn_c_try_link "$LINENO"; then :
22870 ol_cv_cthread_all_load=yes
22872 ol_cv_cthread_all_load=no
22874 rm -f core conftest.err conftest.$ac_objext \
22875 conftest$ac_exeext conftest.$ac_ext
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
22880 $as_echo "$ol_cv_cthread_all_load" >&6; }
22882 if test $ol_cv_cthread_all_load = yes ; then
22883 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
22884 ol_link_threads=mach
22885 ol_with_threads=found
22889 elif test $ac_cv_header_cthreads_h = yes ; then
22891 ol_with_threads=found
22894 LIBS="$LIBS -lthreads"
22895 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
22896 if test "x$ac_cv_func_cthread_fork" = xyes; then :
22897 ol_link_threads=yes
22902 if test $ol_link_threads = yes ; then
22903 LTHREAD_LIBS="-lthreads"
22904 ol_link_threads=mach
22905 ol_with_threads=found
22907 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
22910 elif test $ol_with_threads = mach ; then
22911 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
22914 if test $ol_link_threads = mach ; then
22916 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
22918 elif test $ol_with_threads = found ; then
22919 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
22924 case $ol_with_threads in auto | yes | pth)
22926 for ac_header in pth.h
22928 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
22929 if test "x$ac_cv_header_pth_h" = xyes; then :
22930 cat >>confdefs.h <<_ACEOF
22931 #define HAVE_PTH_H 1
22939 if test $ac_cv_header_pth_h = yes ; then
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
22941 $as_echo_n "checking for pth_version in -lpth... " >&6; }
22942 if ${ac_cv_lib_pth_pth_version+:} false; then :
22943 $as_echo_n "(cached) " >&6
22945 ac_check_lib_save_LIBS=$LIBS
22947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22948 /* end confdefs.h. */
22950 /* Override any GCC internal prototype to avoid an error.
22951 Use char because int might match the return type of a GCC
22952 builtin and then its argument prototype would still apply. */
22956 char pth_version ();
22960 return pth_version ();
22965 if ac_fn_c_try_link "$LINENO"; then :
22966 ac_cv_lib_pth_pth_version=yes
22968 ac_cv_lib_pth_pth_version=no
22970 rm -f core conftest.err conftest.$ac_objext \
22971 conftest$ac_exeext conftest.$ac_ext
22972 LIBS=$ac_check_lib_save_LIBS
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
22975 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
22976 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
22983 if test $have_pth = yes ; then
22985 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
22987 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
22988 ol_link_threads=pth
22989 ol_with_threads=found
22991 if test x$ol_with_yielding_select = xauto ; then
22992 ol_with_yielding_select=yes
22999 case $ol_with_threads in auto | yes | lwp)
23001 for ac_header in thread.h synch.h
23003 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23004 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23005 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23006 cat >>confdefs.h <<_ACEOF
23007 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23014 if test $ac_cv_header_thread_h = yes &&
23015 test $ac_cv_header_synch_h = yes ; then
23016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
23017 $as_echo_n "checking for thr_create in -lthread... " >&6; }
23018 if ${ac_cv_lib_thread_thr_create+:} false; then :
23019 $as_echo_n "(cached) " >&6
23021 ac_check_lib_save_LIBS=$LIBS
23022 LIBS="-lthread $LIBS"
23023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23024 /* end confdefs.h. */
23026 /* Override any GCC internal prototype to avoid an error.
23027 Use char because int might match the return type of a GCC
23028 builtin and then its argument prototype would still apply. */
23032 char thr_create ();
23036 return thr_create ();
23041 if ac_fn_c_try_link "$LINENO"; then :
23042 ac_cv_lib_thread_thr_create=yes
23044 ac_cv_lib_thread_thr_create=no
23046 rm -f core conftest.err conftest.$ac_objext \
23047 conftest$ac_exeext conftest.$ac_ext
23048 LIBS=$ac_check_lib_save_LIBS
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
23051 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
23052 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
23059 if test $have_thr = yes ; then
23061 $as_echo "#define HAVE_THR 1" >>confdefs.h
23063 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
23064 ol_link_threads=thr
23066 if test x$ol_with_yielding_select = xauto ; then
23067 ol_with_yielding_select=yes
23071 thr_setconcurrency \
23072 thr_getconcurrency \
23075 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23076 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23077 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23078 cat >>confdefs.h <<_ACEOF
23079 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23088 for ac_header in lwp/lwp.h
23090 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
23091 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
23092 cat >>confdefs.h <<_ACEOF
23093 #define HAVE_LWP_LWP_H 1
23100 if test $ac_cv_header_lwp_lwp_h = yes ; then
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
23102 $as_echo_n "checking for lwp_create in -llwp... " >&6; }
23103 if ${ac_cv_lib_lwp_lwp_create+:} false; then :
23104 $as_echo_n "(cached) " >&6
23106 ac_check_lib_save_LIBS=$LIBS
23108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23109 /* end confdefs.h. */
23111 /* Override any GCC internal prototype to avoid an error.
23112 Use char because int might match the return type of a GCC
23113 builtin and then its argument prototype would still apply. */
23117 char lwp_create ();
23121 return lwp_create ();
23126 if ac_fn_c_try_link "$LINENO"; then :
23127 ac_cv_lib_lwp_lwp_create=yes
23129 ac_cv_lib_lwp_lwp_create=no
23131 rm -f core conftest.err conftest.$ac_objext \
23132 conftest$ac_exeext conftest.$ac_ext
23133 LIBS=$ac_check_lib_save_LIBS
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
23136 $as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
23137 if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
23144 if test $have_lwp = yes ; then
23146 $as_echo "#define HAVE_LWP 1" >>confdefs.h
23148 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
23149 ol_link_threads=lwp
23151 if test x$ol_with_yielding_select = xauto ; then
23152 ol_with_yielding_select=no
23159 if test $ol_with_yielding_select = yes ; then
23161 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
23165 if test $ol_with_threads = manual ; then
23166 ol_link_threads=yes
23168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
23169 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
23171 for ac_header in pthread.h sched.h
23173 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23174 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23175 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23176 cat >>confdefs.h <<_ACEOF
23177 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23184 for ac_func in sched_yield pthread_yield
23186 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23187 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23188 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23189 cat >>confdefs.h <<_ACEOF
23190 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
23198 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
23199 if ${ol_cv_header_linux_threads+:} false; then :
23200 $as_echo_n "(cached) " >&6
23202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23203 /* end confdefs.h. */
23204 #include <pthread.h>
23206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23207 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
23208 ol_cv_header_linux_threads=yes
23210 ol_cv_header_linux_threads=no
23216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
23217 $as_echo "$ol_cv_header_linux_threads" >&6; }
23218 if test $ol_cv_header_linux_threads = yes; then
23220 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
23225 for ac_header in mach/cthreads.h
23227 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
23228 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
23229 cat >>confdefs.h <<_ACEOF
23230 #define HAVE_MACH_CTHREADS_H 1
23237 for ac_header in lwp/lwp.h
23239 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
23240 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
23241 cat >>confdefs.h <<_ACEOF
23242 #define HAVE_LWP_LWP_H 1
23249 for ac_header in thread.h synch.h
23251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23252 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23253 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23254 cat >>confdefs.h <<_ACEOF
23255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23264 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
23266 $as_echo "#define REENTRANT 1" >>confdefs.h
23269 $as_echo "#define _REENTRANT 1" >>confdefs.h
23272 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
23275 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
23278 $as_echo "#define THREADSAFE 1" >>confdefs.h
23281 $as_echo "#define _THREADSAFE 1" >>confdefs.h
23284 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
23287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
23288 $as_echo_n "checking for thread specific errno... " >&6; }
23289 if ${ol_cv_errno_thread_specific+:} false; then :
23290 $as_echo_n "(cached) " >&6
23293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23294 /* end confdefs.h. */
23304 if ac_fn_c_try_link "$LINENO"; then :
23305 ol_cv_errno_thread_specific=yes
23307 ol_cv_errno_thread_specific=no
23309 rm -f core conftest.err conftest.$ac_objext \
23310 conftest$ac_exeext conftest.$ac_ext
23313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
23314 $as_echo "$ol_cv_errno_thread_specific" >&6; }
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
23317 $as_echo_n "checking for thread specific h_errno... " >&6; }
23318 if ${ol_cv_h_errno_thread_specific+:} false; then :
23319 $as_echo_n "(cached) " >&6
23322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23323 /* end confdefs.h. */
23333 if ac_fn_c_try_link "$LINENO"; then :
23334 ol_cv_h_errno_thread_specific=yes
23336 ol_cv_h_errno_thread_specific=no
23338 rm -f core conftest.err conftest.$ac_objext \
23339 conftest$ac_exeext conftest.$ac_ext
23342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
23343 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
23345 if test $ol_cv_errno_thread_specific != yes ||
23346 test $ol_cv_h_errno_thread_specific != yes ; then
23347 LIBS="$LTHREAD_LIBS $LIBS"
23353 if test $ol_link_threads = no ; then
23354 if test $ol_with_threads = yes ; then
23355 as_fn_error $? "no suitable thread support" "$LINENO" 5
23358 if test $ol_with_threads = auto ; then
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
23360 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
23365 $as_echo "#define NO_THREADS 1" >>confdefs.h
23373 if test $ol_link_threads != no ; then
23375 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
23379 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23380 case "$ol_with_threads" in
23386 ol_found_pthreads=yes
23391 ac_cpp='$CPP $CPPFLAGS'
23392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23401 case "$ol_found_pthreads" in
23404 LIBS="$LTHREAD_LIBS $LIBS"
23405 saved_CFLAGS="$CFLAGS"
23406 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
23407 for ac_func in sem_timedwait
23409 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
23410 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
23411 cat >>confdefs.h <<_ACEOF
23412 #define HAVE_SEM_TIMEDWAIT 1
23419 { saved_LIBS=; unset saved_LIBS;}
23420 CFLAGS="$saved_CFLAGS"
23421 { saved_CFLAGS=; unset saved_CFLAGS;}
23422 case "$ac_cv_func_sem_timedwait" in
23424 PTHREAD_LIBS="$LTHREAD_LIBS"
23430 case "$have_pthreads" in
23432 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
23434 LIBS="$LTHREAD_LIBS $LIBS"
23435 saved_CFLAGS="$CFLAGS"
23436 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
23437 # The cast to long int works around a bug in the HP C Compiler
23438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23440 # This bug is HP SR number 8606223364.
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
23442 $as_echo_n "checking size of pthread_t... " >&6; }
23443 if ${ac_cv_sizeof_pthread_t+:} false; then :
23444 $as_echo_n "(cached) " >&6
23446 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
23447 $ac_includes_default
23448 #include <pthread.h>
23454 if test "$ac_cv_type_pthread_t" = yes; then
23455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23457 as_fn_error 77 "cannot compute sizeof (pthread_t)
23458 See \`config.log' for more details" "$LINENO" 5; }
23460 ac_cv_sizeof_pthread_t=0
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
23466 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
23470 cat >>confdefs.h <<_ACEOF
23471 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
23475 LIBISC_PTHREADS_NOTHREADS=pthreads
23477 $as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
23480 # We'd like to use sigwait() too
23482 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
23483 if test "x$ac_cv_func_sigwait" = xyes; then :
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
23487 $as_echo_n "checking for sigwait in -lc... " >&6; }
23488 if ${ac_cv_lib_c_sigwait+:} false; then :
23489 $as_echo_n "(cached) " >&6
23491 ac_check_lib_save_LIBS=$LIBS
23493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23494 /* end confdefs.h. */
23496 /* Override any GCC internal prototype to avoid an error.
23497 Use char because int might match the return type of a GCC
23498 builtin and then its argument prototype would still apply. */
23511 if ac_fn_c_try_link "$LINENO"; then :
23512 ac_cv_lib_c_sigwait=yes
23514 ac_cv_lib_c_sigwait=no
23516 rm -f core conftest.err conftest.$ac_objext \
23517 conftest$ac_exeext conftest.$ac_ext
23518 LIBS=$ac_check_lib_save_LIBS
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
23521 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
23522 if test "x$ac_cv_lib_c_sigwait" = xyes; then :
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
23526 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
23527 if ${ac_cv_lib_pthread_sigwait+:} false; then :
23528 $as_echo_n "(cached) " >&6
23530 ac_check_lib_save_LIBS=$LIBS
23531 LIBS="-lpthread $LIBS"
23532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23533 /* end confdefs.h. */
23535 /* Override any GCC internal prototype to avoid an error.
23536 Use char because int might match the return type of a GCC
23537 builtin and then its argument prototype would still apply. */
23550 if ac_fn_c_try_link "$LINENO"; then :
23551 ac_cv_lib_pthread_sigwait=yes
23553 ac_cv_lib_pthread_sigwait=no
23555 rm -f core conftest.err conftest.$ac_objext \
23556 conftest$ac_exeext conftest.$ac_ext
23557 LIBS=$ac_check_lib_save_LIBS
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
23560 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
23561 if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
23565 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
23566 if ${ac_cv_lib_pthread__Psigwait+:} false; then :
23567 $as_echo_n "(cached) " >&6
23569 ac_check_lib_save_LIBS=$LIBS
23570 LIBS="-lpthread $LIBS"
23571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23572 /* end confdefs.h. */
23574 /* Override any GCC internal prototype to avoid an error.
23575 Use char because int might match the return type of a GCC
23576 builtin and then its argument prototype would still apply. */
23584 return _Psigwait ();
23589 if ac_fn_c_try_link "$LINENO"; then :
23590 ac_cv_lib_pthread__Psigwait=yes
23592 ac_cv_lib_pthread__Psigwait=no
23594 rm -f core conftest.err conftest.$ac_objext \
23595 conftest$ac_exeext conftest.$ac_ext
23596 LIBS=$ac_check_lib_save_LIBS
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
23599 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
23600 if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
23616 case "$host:$have_sigwait" in
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
23619 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
23620 if ${ac_cv_lib_c_r_sigwait+:} false; then :
23621 $as_echo_n "(cached) " >&6
23623 ac_check_lib_save_LIBS=$LIBS
23625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23626 /* end confdefs.h. */
23628 /* Override any GCC internal prototype to avoid an error.
23629 Use char because int might match the return type of a GCC
23630 builtin and then its argument prototype would still apply. */
23643 if ac_fn_c_try_link "$LINENO"; then :
23644 ac_cv_lib_c_r_sigwait=yes
23646 ac_cv_lib_c_r_sigwait=no
23648 rm -f core conftest.err conftest.$ac_objext \
23649 conftest$ac_exeext conftest.$ac_ext
23650 LIBS=$ac_check_lib_save_LIBS
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
23653 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
23654 if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
23660 case "$have_sigwait" in
23662 ac_cv_func_sigwait=yes
23664 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
23668 for ac_func in pthread_attr_getstacksize
23670 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
23671 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
23672 cat >>confdefs.h <<_ACEOF
23673 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
23679 for ac_func in pthread_attr_setstacksize sysconf
23681 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23682 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23683 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23684 cat >>confdefs.h <<_ACEOF
23685 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23693 *-freebsd5.[012]|*-freebsd5.[012].*)
23695 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
23697 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
23700 *-bsdi3.*|*-bsdi4.0*)
23702 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
23707 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
23711 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
23713 for ac_func in pthread_setconcurrency
23715 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
23716 if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
23717 cat >>confdefs.h <<_ACEOF
23718 #define HAVE_PTHREAD_SETCONCURRENCY 1
23724 case "$ac_cv_func_pthread_setconcurrency" in
23727 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
23731 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
23733 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
23737 hack_shutup_pthreadonceinit=no
23740 hack_shutup_pthreadonceinit=yes
23743 hack_shutup_pthreadonceinit=yes
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
23747 $as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
23748 if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
23749 $as_echo_n "(cached) " >&6
23751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23752 /* end confdefs.h. */
23754 #include <pthread.h>
23760 static pthread_once_t once_test =
23768 if ac_fn_c_try_compile "$LINENO"; then :
23769 ntp_cv_braces_around_pthread_once_init=no
23771 ntp_cv_braces_around_pthread_once_init=yes
23774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
23778 $as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
23779 case "$ntp_cv_braces_around_pthread_once_init" in
23781 hack_shutup_pthreadonceinit=yes
23785 case "$hack_shutup_pthreadonceinit" in
23788 $as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
23792 { saved_LIBS=; unset saved_LIBS;}
23793 CFLAGS="$saved_CFLAGS"
23794 { saved_CFLAGS=; unset saved_CFLAGS;}
23797 LIBISC_PTHREADS_NOTHREADS=nothreads
23801 if test "$have_pthreads" != "no"; then
23815 case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
23817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
23818 $as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
23819 if ${ntp_cv_vsnprintf_percent_m+:} false; then :
23820 $as_echo_n "(cached) " >&6
23822 if test "$cross_compiling" = yes; then :
23823 ntp_cv_vsnprintf_percent_m=no
23826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23827 /* end confdefs.h. */
23829 #include <stdarg.h>
23832 #include <string.h>
23834 int call_vsnprintf(
23841 int call_vsnprintf(
23852 rc = vsnprintf(dst, sz, fmt, ap);
23866 strcpy(sbuf, strerror(ENOENT));
23868 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
23870 return strcmp(sbuf, pbuf);
23877 if ac_fn_c_try_run "$LINENO"; then :
23878 ntp_cv_vsnprintf_percent_m=yes
23880 ntp_cv_vsnprintf_percent_m=no
23882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23883 conftest.$ac_objext conftest.beam conftest.$ac_ext
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
23889 $as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
23890 case "$ntp_cv_vsnprintf_percent_m" in
23893 $as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
23898 for ac_header in sys/clockctl.h
23900 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
23901 if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
23902 cat >>confdefs.h <<_ACEOF
23903 #define HAVE_SYS_CLOCKCTL_H 1
23911 # Check whether --enable-clockctl was given.
23912 if test "${enable_clockctl+set}" = set; then :
23913 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
23915 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
23921 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
23923 $as_echo "$ntp_use_dev_clockctl" >&6; }
23926 for ac_header in sys/capability.h sys/prctl.h
23928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23929 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23930 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23931 cat >>confdefs.h <<_ACEOF
23932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
23941 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
23943 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
23947 ntp_have_linuxcaps=no
23949 *) ntp_have_linuxcaps=yes
23954 ntp_have_linuxcaps=no
23958 # Check whether --enable-linuxcaps was given.
23959 if test "${enable_linuxcaps+set}" = set; then :
23960 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
23966 $as_echo "$ntp_have_linuxcaps" >&6; }
23968 case "$ntp_have_linuxcaps" in
23971 $as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
23978 for ac_header in priv.h
23980 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
23981 if test "x$ac_cv_header_priv_h" = xyes; then :
23982 cat >>confdefs.h <<_ACEOF
23983 #define HAVE_PRIV_H 1
23990 case "$ac_cv_header_priv_h" in
23994 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
23995 if test "x$ac_cv_func_setppriv" = xyes; then :
23996 ntp_have_solarisprivs=yes
23998 ntp_have_solarisprivs=no
24006 # Check whether --enable-solarisprivs was given.
24007 if test "${enable_solarisprivs+set}" = set; then :
24008 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
24014 $as_echo_n "checking if we have solaris privileges... " >&6; }
24016 case "$ntp_have_solarisprivs" in
24019 $as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
24022 '') ntp_have_solarisprivs="no"
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
24027 $as_echo "$ntp_have_solarisprivs" >&6; }
24029 for ac_header in sys/mac.h
24031 ac_fn_c_check_header_mongrel "$LINENO" "sys/mac.h" "ac_cv_header_sys_mac_h" "$ac_includes_default"
24032 if test "x$ac_cv_header_sys_mac_h" = xyes; then :
24033 cat >>confdefs.h <<_ACEOF
24034 #define HAVE_SYS_MAC_H 1
24042 # Check whether --enable-trustedbsd_mac was given.
24043 if test "${enable_trustedbsd_mac+set}" = set; then :
24044 enableval=$enable_trustedbsd_mac; ntp_use_trustedbsd_mac=$enableval
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use TrustedBSD MAC privileges" >&5
24050 $as_echo_n "checking if we should use TrustedBSD MAC privileges... " >&6; }
24052 case "$ntp_use_trustedbsd_mac$ac_cv_header_sys_mac_h" in
24055 $as_echo "#define HAVE_TRUSTEDBSD_MAC 1" >>confdefs.h
24058 *) ntp_use_trustedbsd_mac="no";
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 # HMS: does this need to be a cached variable?
24580 # Check whether --enable-signalled-io was given.
24581 if test "${enable_signalled_io+set}" = set; then :
24582 enableval=$enable_signalled_io; use_signalled_io=$enableval
24584 use_signalled_io=yes
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
24590 $as_echo_n "checking for SIGIO... " >&6; }
24591 if ${ntp_cv_hdr_def_sigio+:} false; then :
24592 $as_echo_n "(cached) " >&6
24594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24595 /* end confdefs.h. */
24597 #include <signal.h>
24604 if ac_fn_c_try_cpp "$LINENO"; then :
24605 ntp_cv_hdr_def_sigio=yes
24607 ntp_cv_hdr_def_sigio=no
24610 rm -f conftest.err conftest.i conftest.$ac_ext
24613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
24614 $as_echo "$ntp_cv_hdr_def_sigio" >&6; }
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
24617 $as_echo_n "checking if we want to use SIGIO... " >&6; }
24619 case "$ntp_cv_hdr_def_sigio" in
24623 alpha*-dec-osf4*|alpha*-dec-osf5*)
24665 ans="Possible for $host but disabled because of reported problems"
24672 case "$use_signalled_io" in
24675 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
24678 *) ans="Allowed for $host but --disable-signalled-io was given"
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24683 $as_echo "$ans" >&6; }
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
24686 $as_echo_n "checking for SIGPOLL... " >&6; }
24687 if ${ntp_cv_hdr_def_sigpoll+:} false; then :
24688 $as_echo_n "(cached) " >&6
24690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24691 /* end confdefs.h. */
24693 #include <signal.h>
24700 if ac_fn_c_try_cpp "$LINENO"; then :
24701 ntp_cv_hdr_def_sigpoll=yes
24703 ntp_cv_hdr_def_sigpoll=no
24706 rm -f conftest.err conftest.i conftest.$ac_ext
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
24710 $as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
24713 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
24715 case "$ntp_cv_hdr_def_sigpoll" in
24734 # XXX Only verified thru AIX6
24772 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24776 $as_echo "$ans" >&6; }
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
24779 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
24781 case "$ntp_cv_hdr_def_sigpoll" in
24800 # XXX Only verified thru AIX6
24835 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24839 $as_echo "$ans" >&6; }
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
24842 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
24843 if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
24844 $as_echo_n "(cached) " >&6
24846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24847 /* end confdefs.h. */
24849 #include <sys/time.h>
24855 gettimeofday(0, 0);
24856 settimeofday(0, 0);
24863 if ac_fn_c_try_compile "$LINENO"; then :
24864 ntp_cv_func_Xettimeofday_nargs=2
24866 ntp_cv_func_Xettimeofday_nargs=1
24869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
24873 $as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
24874 case "$ntp_cv_func_Xettimeofday_nargs" in
24877 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
24881 for ac_func in settimeofday
24883 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
24884 if test "x$ac_cv_func_settimeofday" = xyes; then :
24885 cat >>confdefs.h <<_ACEOF
24886 #define HAVE_SETTIMEOFDAY 1
24892 *-*-mpeix*) ac_cv_func_settimeofday=yes
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
24900 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
24901 ntp_warning='GRONK'
24903 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
24906 ans='clock_settime()'
24909 ntp_warning='But clock_settime() would be better (if we had it)'
24910 ans='settimeofday()'
24913 ntp_warning='Which is the worst of the three'
24919 ntp_warning='Which leaves us with nothing to use!'
24922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24923 $as_echo "$ans" >&6; }
24924 case "$ntp_warning" in
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
24929 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
24934 LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
24936 { __LIBS=; unset __LIBS;}
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
24941 $as_echo_n "checking for deprecated --with-arlib... " >&6; }
24943 # Check whether --with-arlib was given.
24944 if test "${with_arlib+set}" = set; then :
24945 withval=$with_arlib; ans=$withval
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
24951 $as_echo "$ans" >&6; }
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not use --with-arlib, arlib is no longer included. In the future, --with-arlib will not be recognized." >&5
24956 $as_echo "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included. In the future, --with-arlib will not be recognized." >&2;}
24960 for ac_prog in gawk mawk nawk awk
24962 # Extract the first word of "$ac_prog", so it can be a program name with args.
24963 set dummy $ac_prog; ac_word=$2
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24965 $as_echo_n "checking for $ac_word... " >&6; }
24966 if ${ac_cv_prog_AWK+:} false; then :
24967 $as_echo_n "(cached) " >&6
24969 if test -n "$AWK"; then
24970 ac_cv_prog_AWK="$AWK" # Let the user override the test.
24972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24973 for as_dir in $PATH
24976 test -z "$as_dir" && as_dir=.
24977 for ac_exec_ext in '' $ac_executable_extensions; do
24978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24979 ac_cv_prog_AWK="$ac_prog"
24980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24989 AWK=$ac_cv_prog_AWK
24990 if test -n "$AWK"; then
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
24992 $as_echo "$AWK" >&6; }
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24995 $as_echo "no" >&6; }
24999 test -n "$AWK" && break
25002 { ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
25004 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
25006 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
25007 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
25008 $as_echo_n "(cached) " >&6
25010 cat >conftest.make <<\_ACEOF
25013 @echo '@@@%%%=$(MAKE)=@@@%%%'
25015 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25016 case `${MAKE-make} -f conftest.make 2>/dev/null` in
25017 *@@@%%%=?*=@@@%%%*)
25018 eval ac_cv_prog_make_${ac_make}_set=yes;;
25020 eval ac_cv_prog_make_${ac_make}_set=no;;
25022 rm -f conftest.make
25024 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25026 $as_echo "yes" >&6; }
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25030 $as_echo "no" >&6; }
25031 SET_MAKE="MAKE=${MAKE-make}"
25038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
25039 $as_echo_n "checking whether ln -s works... " >&6; }
25041 if test "$LN_S" = "ln -s"; then
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25043 $as_echo "yes" >&6; }
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
25046 $as_echo "no, using $LN_S" >&6; }
25049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
25050 $as_echo_n "checking for library containing strerror... " >&6; }
25051 if ${ac_cv_search_strerror+:} false; then :
25052 $as_echo_n "(cached) " >&6
25054 ac_func_search_save_LIBS=$LIBS
25055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25056 /* end confdefs.h. */
25058 /* Override any GCC internal prototype to avoid an error.
25059 Use char because int might match the return type of a GCC
25060 builtin and then its argument prototype would still apply. */
25068 return strerror ();
25073 for ac_lib in '' cposix; do
25074 if test -z "$ac_lib"; then
25075 ac_res="none required"
25078 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25080 if ac_fn_c_try_link "$LINENO"; then :
25081 ac_cv_search_strerror=$ac_res
25083 rm -f core conftest.err conftest.$ac_objext \
25085 if ${ac_cv_search_strerror+:} false; then :
25089 if ${ac_cv_search_strerror+:} false; then :
25092 ac_cv_search_strerror=no
25094 rm conftest.$ac_ext
25095 LIBS=$ac_func_search_save_LIBS
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
25098 $as_echo "$ac_cv_search_strerror" >&6; }
25099 ac_res=$ac_cv_search_strerror
25100 if test "$ac_res" != no; then :
25101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25107 # Extract the first word of "perl", so it can be a program name with args.
25108 set dummy perl; ac_word=$2
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25110 $as_echo_n "checking for $ac_word... " >&6; }
25111 if ${ac_cv_path_PATH_PERL+:} false; then :
25112 $as_echo_n "(cached) " >&6
25116 ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
25119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25120 for as_dir in $PATH
25123 test -z "$as_dir" && as_dir=.
25124 for ac_exec_ext in '' $ac_executable_extensions; do
25125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25126 ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
25127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25137 PATH_PERL=$ac_cv_path_PATH_PERL
25138 if test -n "$PATH_PERL"; then
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
25140 $as_echo "$PATH_PERL" >&6; }
25142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25143 $as_echo "no" >&6; }
25147 { ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
25148 # Extract the first word of "test", so it can be a program name with args.
25149 set dummy test; ac_word=$2
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25151 $as_echo_n "checking for $ac_word... " >&6; }
25152 if ${ac_cv_path_PATH_TEST+:} false; then :
25153 $as_echo_n "(cached) " >&6
25157 ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
25160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25161 for as_dir in $PATH
25164 test -z "$as_dir" && as_dir=.
25165 for ac_exec_ext in '' $ac_executable_extensions; do
25166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25167 ac_cv_path_PATH_TEST="$as_dir/$ac_word$ac_exec_ext"
25168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25178 PATH_TEST=$ac_cv_path_PATH_TEST
25179 if test -n "$PATH_TEST"; then
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
25181 $as_echo "$PATH_TEST" >&6; }
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25184 $as_echo "no" >&6; }
25188 { ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
25189 test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
25192 # Check whether --with-net-snmp-config was given.
25193 if test "${with_net_snmp_config+set}" = set; then :
25194 withval=$with_net_snmp_config; ans=$withval
25204 ans=net-snmp-config
25209 as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
25214 PROG_NET_SNMP_CONFIG=$ans
25215 case "$PROG_NET_SNMP_CONFIG" in
25218 PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
25221 # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
25222 set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
25223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25224 $as_echo_n "checking for $ac_word... " >&6; }
25225 if ${ac_cv_path_PATH_NET_SNMP_CONFIG+:} false; then :
25226 $as_echo_n "(cached) " >&6
25228 case $PATH_NET_SNMP_CONFIG in
25230 ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
25233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25234 for as_dir in $PATH
25237 test -z "$as_dir" && as_dir=.
25238 for ac_exec_ext in '' $ac_executable_extensions; do
25239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25240 ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25251 PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
25252 if test -n "$PATH_NET_SNMP_CONFIG"; then
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
25254 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
25256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25257 $as_echo "no" >&6; }
25261 { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
25265 $as_echo_n "checking for net-snmp-config path... " >&6; }
25266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
25267 $as_echo "$PATH_NET_SNMP_CONFIG" >&6; }
25269 case "$PATH_NET_SNMP_CONFIG" in
25270 /*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
25271 $as_echo_n "checking for net-snmp version... " >&6; }
25272 if ${ntp_cv_net_snmp_version+:} false; then :
25273 $as_echo_n "(cached) " >&6
25275 ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version`
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
25279 $as_echo "$ntp_cv_net_snmp_version" >&6; }
25285 ac_link="$ac_link $VX_KERNEL"
25289 # HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
25291 $as_echo_n "checking for library containing openlog... " >&6; }
25292 if ${ac_cv_search_openlog+:} false; then :
25293 $as_echo_n "(cached) " >&6
25295 ac_func_search_save_LIBS=$LIBS
25296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25297 /* end confdefs.h. */
25299 /* Override any GCC internal prototype to avoid an error.
25300 Use char because int might match the return type of a GCC
25301 builtin and then its argument prototype would still apply. */
25314 for ac_lib in '' gen syslog; do
25315 if test -z "$ac_lib"; then
25316 ac_res="none required"
25319 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25321 if ac_fn_c_try_link "$LINENO"; then :
25322 ac_cv_search_openlog=$ac_res
25324 rm -f core conftest.err conftest.$ac_objext \
25326 if ${ac_cv_search_openlog+:} false; then :
25330 if ${ac_cv_search_openlog+:} false; then :
25333 ac_cv_search_openlog=no
25335 rm conftest.$ac_ext
25336 LIBS=$ac_func_search_save_LIBS
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
25339 $as_echo "$ac_cv_search_openlog" >&6; }
25340 ac_res=$ac_cv_search_openlog
25341 if test "$ac_res" != no; then :
25342 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25346 # XXX library list will be in ac_cv_search_openlog
25348 # LIBSECCOMP is off by default -- needs testing with all the features
25349 # Please send bug reports to loganaden@gmail.com
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
25351 $as_echo_n "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
25352 # Check whether --enable-libseccomp was given.
25353 if test "${enable_libseccomp+set}" = set; then :
25354 enableval=$enable_libseccomp; ntp_ok=$enableval
25360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
25361 $as_echo "$ntp_ok" >&6; }
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
25365 $as_echo_n "checking for library containing seccomp_init... " >&6; }
25366 if ${ac_cv_search_seccomp_init+:} false; then :
25367 $as_echo_n "(cached) " >&6
25369 ac_func_search_save_LIBS=$LIBS
25370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25371 /* end confdefs.h. */
25373 /* Override any GCC internal prototype to avoid an error.
25374 Use char because int might match the return type of a GCC
25375 builtin and then its argument prototype would still apply. */
25379 char seccomp_init ();
25383 return seccomp_init ();
25388 for ac_lib in '' seccomp; do
25389 if test -z "$ac_lib"; then
25390 ac_res="none required"
25393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25395 if ac_fn_c_try_link "$LINENO"; then :
25396 ac_cv_search_seccomp_init=$ac_res
25398 rm -f core conftest.err conftest.$ac_objext \
25400 if ${ac_cv_search_seccomp_init+:} false; then :
25404 if ${ac_cv_search_seccomp_init+:} false; then :
25407 ac_cv_search_seccomp_init=no
25409 rm conftest.$ac_ext
25410 LIBS=$ac_func_search_save_LIBS
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
25413 $as_echo "$ac_cv_search_seccomp_init" >&6; }
25414 ac_res=$ac_cv_search_seccomp_init
25415 if test "$ac_res" != no; then :
25416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25418 $as_echo "#define LIBSECCOMP 1" >>confdefs.h
25423 if test "$cross_compiling" = yes; then :
25424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25426 as_fn_error $? "cannot run test program while cross compiling
25427 See \`config.log' for more details" "$LINENO" 5; }
25429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25430 /* end confdefs.h. */
25433 #include <stdlib.h>
25435 #include <sys/prctl.h>
25436 #include <linux/seccomp.h>
25441 ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
25453 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
25469 if ac_fn_c_try_run "$LINENO"; then :
25471 $as_echo "#define KERN_SECCOMP 1" >>confdefs.h
25475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25476 conftest.$ac_objext conftest.beam conftest.$ac_ext
25483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
25484 $as_echo_n "checking for facilitynames in syslog.h... " >&6; }
25485 if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
25486 $as_echo_n "(cached) " >&6
25489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25490 /* end confdefs.h. */
25492 #define SYSLOG_NAMES
25493 #include <stdlib.h>
25494 #include <syslog.h>
25499 void *fnames; fnames = facilitynames;
25504 if ac_fn_c_try_compile "$LINENO"; then :
25505 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
25507 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
25509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
25512 $as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
25513 case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
25516 $as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
25520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
25521 $as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
25525 $as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
25536 # HMS: Make sure we check for -lrt for clock_* before this...
25537 case "$ac_cv_search_clock_gettime" in
25538 '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
25541 $as_echo_n "checking for library containing sched_setscheduler... " >&6; }
25542 if ${ac_cv_search_sched_setscheduler+:} false; then :
25543 $as_echo_n "(cached) " >&6
25545 ac_func_search_save_LIBS=$LIBS
25546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25547 /* end confdefs.h. */
25549 /* Override any GCC internal prototype to avoid an error.
25550 Use char because int might match the return type of a GCC
25551 builtin and then its argument prototype would still apply. */
25555 char sched_setscheduler ();
25559 return sched_setscheduler ();
25564 for ac_lib in '' rt posix4; do
25565 if test -z "$ac_lib"; then
25566 ac_res="none required"
25569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25571 if ac_fn_c_try_link "$LINENO"; then :
25572 ac_cv_search_sched_setscheduler=$ac_res
25574 rm -f core conftest.err conftest.$ac_objext \
25576 if ${ac_cv_search_sched_setscheduler+:} false; then :
25580 if ${ac_cv_search_sched_setscheduler+:} false; then :
25583 ac_cv_search_sched_setscheduler=no
25585 rm conftest.$ac_ext
25586 LIBS=$ac_func_search_save_LIBS
25588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
25589 $as_echo "$ac_cv_search_sched_setscheduler" >&6; }
25590 ac_res=$ac_cv_search_sched_setscheduler
25591 if test "$ac_res" != no; then :
25592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25599 for ac_header in bstring.h
25601 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
25602 if test "x$ac_cv_header_bstring_h" = xyes; then :
25603 cat >>confdefs.h <<_ACEOF
25604 #define HAVE_BSTRING_H 1
25611 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
25612 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
25614 $as_echo_n "checking for library containing DNSServiceRegister... " >&6; }
25615 if ${ac_cv_search_DNSServiceRegister+:} false; then :
25616 $as_echo_n "(cached) " >&6
25618 ac_func_search_save_LIBS=$LIBS
25619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25620 /* end confdefs.h. */
25622 /* Override any GCC internal prototype to avoid an error.
25623 Use char because int might match the return type of a GCC
25624 builtin and then its argument prototype would still apply. */
25628 char DNSServiceRegister ();
25632 return DNSServiceRegister ();
25637 for ac_lib in '' dns_sd; do
25638 if test -z "$ac_lib"; then
25639 ac_res="none required"
25642 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25644 if ac_fn_c_try_link "$LINENO"; then :
25645 ac_cv_search_DNSServiceRegister=$ac_res
25647 rm -f core conftest.err conftest.$ac_objext \
25649 if ${ac_cv_search_DNSServiceRegister+:} false; then :
25653 if ${ac_cv_search_DNSServiceRegister+:} false; then :
25656 ac_cv_search_DNSServiceRegister=no
25658 rm conftest.$ac_ext
25659 LIBS=$ac_func_search_save_LIBS
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
25662 $as_echo "$ac_cv_search_DNSServiceRegister" >&6; }
25663 ac_res=$ac_cv_search_DNSServiceRegister
25664 if test "$ac_res" != no; then :
25665 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25667 $as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
25676 for ac_header in fcntl.h fnmatch.h ieeefp.h inttypes.h kvm.h math.h
25678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25679 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25680 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25681 cat >>confdefs.h <<_ACEOF
25682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25690 for ac_header in memory.h netdb.h poll.h
25692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25693 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25694 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25695 cat >>confdefs.h <<_ACEOF
25696 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25703 for ac_header in sgtty.h stdatomic.h
25705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25706 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25707 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25708 cat >>confdefs.h <<_ACEOF
25709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
25717 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
25718 if ${ac_cv_header_stdbool_h+:} false; then :
25719 $as_echo_n "(cached) " >&6
25721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25722 /* end confdefs.h. */
25724 #include <stdbool.h>
25726 "error: bool is not defined"
25729 "error: false is not defined"
25732 "error: false is not 0"
25735 "error: true is not defined"
25738 "error: true is not 1"
25740 #ifndef __bool_true_false_are_defined
25741 "error: __bool_true_false_are_defined is not defined"
25744 struct s { _Bool s: 1; _Bool t; } s;
25746 char a[true == 1 ? 1 : -1];
25747 char b[false == 0 ? 1 : -1];
25748 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
25749 char d[(bool) 0.5 == true ? 1 : -1];
25750 /* See body of main program for 'e'. */
25751 char f[(_Bool) 0.0 == false ? 1 : -1];
25753 char h[sizeof (_Bool)];
25754 char i[sizeof s.t];
25755 enum { j = false, k = true, l = false * true, m = true * 256 };
25756 /* The following fails for
25757 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
25759 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
25760 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
25761 /* Catch a bug in an HP-UX C compiler. See
25762 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
25763 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
25775 /* Refer to every declared value, to avoid compiler optimizations. */
25776 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
25777 + !m + !n + !o + !p + !q + !pq);
25783 if ac_fn_c_try_compile "$LINENO"; then :
25784 ac_cv_header_stdbool_h=yes
25786 ac_cv_header_stdbool_h=no
25788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
25791 $as_echo "$ac_cv_header_stdbool_h" >&6; }
25792 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
25793 if test "x$ac_cv_type__Bool" = xyes; then :
25795 cat >>confdefs.h <<_ACEOF
25796 #define HAVE__BOOL 1
25803 if test $ac_cv_header_stdbool_h = yes; then
25805 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
25809 for ac_header in stdlib.h string.h termio.h
25811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25812 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25813 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25814 cat >>confdefs.h <<_ACEOF
25815 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25822 for ac_header in termios.h timepps.h timex.h unistd.h
25824 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25825 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25826 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25827 cat >>confdefs.h <<_ACEOF
25828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25838 for ac_header in utmpx.h
25840 ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
25841 if test "x$ac_cv_header_utmpx_h" = xyes; then :
25842 cat >>confdefs.h <<_ACEOF
25843 #define HAVE_UTMPX_H 1
25850 case "$ac_cv_header_utmpx_h" in
25854 for ac_header in utmp.h
25856 ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
25857 if test "x$ac_cv_header_utmp_h" = xyes; then :
25858 cat >>confdefs.h <<_ACEOF
25859 #define HAVE_UTMP_H 1
25870 for ac_header in utmp.h utmpx.h
25872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25873 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25874 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25875 cat >>confdefs.h <<_ACEOF
25876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25887 # On Suns only (so far) getpass() truncates the typed password to 8
25888 # characters, but getpassphrase() allows up to 257. Most systems'
25889 # getpass() does not truncate, at least not so as to affect ntpq and
25890 # ntpdc password prompts.
25892 # So check for getpassphrase(), but only on Sun operating systems.
25895 *-*-sunos*|*-*-solaris*)
25896 for ac_func in getpassphrase
25898 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
25899 if test "x$ac_cv_func_getpassphrase" = xyes; then :
25900 cat >>confdefs.h <<_ACEOF
25901 #define HAVE_GETPASSPHRASE 1
25910 for ac_header in net/if6.h
25912 ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
25913 if test "x$ac_cv_header_net_if6_h" = xyes; then :
25914 cat >>confdefs.h <<_ACEOF
25915 #define HAVE_NET_IF6_H 1
25922 for ac_header in net/route.h
25924 ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
25925 #include <sys/types.h>
25926 #include <sys/socket.h>
25927 #include <net/if.h>
25930 if test "x$ac_cv_header_net_route_h" = xyes; then :
25931 cat >>confdefs.h <<_ACEOF
25932 #define HAVE_NET_ROUTE_H 1
25940 for ac_header in netinfo/ni.h
25942 ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
25943 if test "x$ac_cv_header_netinfo_ni_h" = xyes; then :
25944 cat >>confdefs.h <<_ACEOF
25945 #define HAVE_NETINFO_NI_H 1
25952 case "$ac_cv_header_netinfo_ni_h" in
25955 $as_echo "#define HAVE_NETINFO 1" >>confdefs.h
25958 for ac_header in sun/audioio.h sys/audioio.h sys/file.h
25960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25961 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25962 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25963 cat >>confdefs.h <<_ACEOF
25964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25975 for ac_header in sys/ioctl.h
25977 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
25978 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
25979 cat >>confdefs.h <<_ACEOF
25980 #define HAVE_SYS_IOCTL_H 1
25989 for ac_header in sys/ipc.h sys/lock.h sys/mman.h
25991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25992 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25993 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25994 cat >>confdefs.h <<_ACEOF
25995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26002 # HMS: Check sys/proc.h and sys/resource.h after some others
26003 for ac_header in sys/modem.h sys/ppsclock.h sys/ppstime.h sched.h
26005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26006 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26007 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26008 cat >>confdefs.h <<_ACEOF
26009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26016 case "$ac_cv_header_sched_h" in
26020 for ac_header in sys/sched.h
26022 ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
26023 if test "x$ac_cv_header_sys_sched_h" = xyes; then :
26024 cat >>confdefs.h <<_ACEOF
26025 #define HAVE_SYS_SCHED_H 1
26034 # HMS: Check sys/shm.h after some others
26035 for ac_header in sys/select.h sys/signal.h sys/sockio.h
26037 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26038 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26039 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26040 cat >>confdefs.h <<_ACEOF
26041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26048 # HMS: Checked sys/socket.h earlier
26053 for ac_header in machine/soundcard.h sys/soundcard.h
26055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26056 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26057 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26058 cat >>confdefs.h <<_ACEOF
26059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26068 for ac_header in sys/stat.h sys/stream.h stropts.h sys/stropts.h sys/syssgi.h
26070 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26071 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26072 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26073 cat >>confdefs.h <<_ACEOF
26074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26081 for ac_header in sys/systune.h sys/termios.h sys/tpro.h sys/wait.h
26083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26084 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26085 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26086 cat >>confdefs.h <<_ACEOF
26087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26096 for ac_header in /sys/sync/queue.h /sys/sync/sema.h
26098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26099 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26100 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26101 cat >>confdefs.h <<_ACEOF
26102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26111 for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
26113 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26114 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26115 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26116 cat >>confdefs.h <<_ACEOF
26117 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26127 case "$ac_cv_header_stdatomic_h" in
26129 for ac_func in atomic_thread_fence
26131 ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
26132 if test "x$ac_cv_func_atomic_thread_fence" = xyes; then :
26133 cat >>confdefs.h <<_ACEOF
26134 #define HAVE_ATOMIC_THREAD_FENCE 1
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
26141 $as_echo_n "checking for atomic_thread_fence()... " >&6; }
26142 if ${ntp_cv_func_atomic_thread_fence+:} false; then :
26143 $as_echo_n "(cached) " >&6
26145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26146 /* end confdefs.h. */
26148 #include <stdatomic.h>
26154 atomic_thread_fence(memory_order_seq_cst);
26160 ntp_cv_func_atomic_thread_fence=yes
26162 if ac_fn_c_try_compile "$LINENO"; then :
26163 ntp_cv_func_atomic_thread_fence=no
26166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
26170 $as_echo "$ntp_cv_func_atomic_thread_fence" >&6; }
26179 for ac_func in ntp_adjtime ntp_gettime
26181 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26182 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26183 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26184 cat >>confdefs.h <<_ACEOF
26185 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26196 case "$ac_cv_func_ntp_gettime" in
26200 for ac_func in __ntp_gettime
26202 ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
26203 if test "x$ac_cv_func___ntp_gettime" = xyes; then :
26204 cat >>confdefs.h <<_ACEOF
26205 #define HAVE___NTP_GETTIME 1
26211 case "$ac_cv_func___ntp_gettime" in
26214 $as_echo "#define ntp_gettime __ntp_gettime" >>confdefs.h
26217 $as_echo "#define HAVE_NTP_GETTIME 1" >>confdefs.h
26222 for ac_func in adjtimex
26224 ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
26225 if test "x$ac_cv_func_adjtimex" = xyes; then :
26226 cat >>confdefs.h <<_ACEOF
26227 #define HAVE_ADJTIMEX 1
26233 case "$ac_cv_func_adjtimex" in
26236 $as_echo "#define ntp_adjtime adjtimex" >>confdefs.h
26239 $as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
26244 for ac_func in __adjtimex
26246 ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
26247 if test "x$ac_cv_func___adjtimex" = xyes; then :
26248 cat >>confdefs.h <<_ACEOF
26249 #define HAVE___ADJTIMEX 1
26255 case "$ac_cv_func___adjtimex" in
26258 $as_echo "#define ntp_adjtime __adjtimex" >>confdefs.h
26261 $as_echo "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
26264 $as_echo "#define adjtimex __adjtimex" >>confdefs.h
26267 $as_echo "#define HAVE_ADJTIMEX 1" >>confdefs.h
26274 case "$have_adjtimex" in
26276 # nlist stuff is only needed for tickadj.
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
26280 $as_echo_n "checking for library containing nlist... " >&6; }
26281 if ${ac_cv_search_nlist+:} false; then :
26282 $as_echo_n "(cached) " >&6
26284 ac_func_search_save_LIBS=$LIBS
26285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26286 /* end confdefs.h. */
26288 /* Override any GCC internal prototype to avoid an error.
26289 Use char because int might match the return type of a GCC
26290 builtin and then its argument prototype would still apply. */
26303 for ac_lib in '' elf ld mld; do
26304 if test -z "$ac_lib"; then
26305 ac_res="none required"
26308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26310 if ac_fn_c_try_link "$LINENO"; then :
26311 ac_cv_search_nlist=$ac_res
26313 rm -f core conftest.err conftest.$ac_objext \
26315 if ${ac_cv_search_nlist+:} false; then :
26319 if ${ac_cv_search_nlist+:} false; then :
26322 ac_cv_search_nlist=no
26324 rm conftest.$ac_ext
26325 LIBS=$ac_func_search_save_LIBS
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
26328 $as_echo "$ac_cv_search_nlist" >&6; }
26329 ac_res=$ac_cv_search_nlist
26330 if test "$ac_res" != no; then :
26331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26335 # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
26337 $as_echo_n "checking for library containing kvm_open... " >&6; }
26338 if ${ac_cv_search_kvm_open+:} false; then :
26339 $as_echo_n "(cached) " >&6
26341 ac_func_search_save_LIBS=$LIBS
26342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26343 /* end confdefs.h. */
26345 /* Override any GCC internal prototype to avoid an error.
26346 Use char because int might match the return type of a GCC
26347 builtin and then its argument prototype would still apply. */
26355 return kvm_open ();
26360 for ac_lib in '' kvm; do
26361 if test -z "$ac_lib"; then
26362 ac_res="none required"
26365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26367 if ac_fn_c_try_link "$LINENO"; then :
26368 ac_cv_search_kvm_open=$ac_res
26370 rm -f core conftest.err conftest.$ac_objext \
26372 if ${ac_cv_search_kvm_open+:} false; then :
26376 if ${ac_cv_search_kvm_open+:} false; then :
26379 ac_cv_search_kvm_open=no
26381 rm conftest.$ac_ext
26382 LIBS=$ac_func_search_save_LIBS
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
26385 $as_echo "$ac_cv_search_kvm_open" >&6; }
26386 ac_res=$ac_cv_search_kvm_open
26387 if test "$ac_res" != no; then :
26388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26391 # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
26392 for ac_header in nlist.h sys/var.h
26394 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26395 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26396 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26397 cat >>confdefs.h <<_ACEOF
26398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26405 case "$ac_cv_header_nlist_h" in
26408 $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
26411 $as_echo_n "checking for n_un in struct nlist... " >&6; }
26412 if ${ntp_cv_struct_nlist_n_un+:} false; then :
26413 $as_echo_n "(cached) " >&6
26415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26416 /* end confdefs.h. */
26431 ntp_cv_struct_nlist_n_un=yes
26433 if ac_fn_c_try_compile "$LINENO"; then :
26434 ntp_cv_struct_nlist_n_un=no
26437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
26441 $as_echo "$ntp_cv_struct_nlist_n_un" >&6; }
26442 case "$ntp_cv_struct_nlist_n_un" in
26445 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
26450 LDADD_NLIST="$LIBS"
26452 { saved_LIBS=; unset saved_LIBS;}
26455 for ac_header in sys/proc.h
26457 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
26458 #ifdef HAVE_SYS_TYPES_H
26459 # include <sys/types.h>
26461 #ifdef HAVE_SYS_TIME_H
26462 # include <sys/time.h>
26466 if test "x$ac_cv_header_sys_proc_h" = xyes; then :
26467 cat >>confdefs.h <<_ACEOF
26468 #define HAVE_SYS_PROC_H 1
26476 for ac_header in sys/resource.h
26478 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
26479 #ifdef HAVE_SYS_TIME_H
26480 # include <sys/time.h>
26484 if test "x$ac_cv_header_sys_resource_h" = xyes; then :
26485 cat >>confdefs.h <<_ACEOF
26486 #define HAVE_SYS_RESOURCE_H 1
26494 for ac_header in sys/shm.h
26496 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
26497 #ifdef HAVE_SYS_TYPES_H
26498 # include <sys/types.h>
26500 #ifdef HAVE_SYS_IPC_H
26501 # include <sys/ipc.h>
26505 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
26506 cat >>confdefs.h <<_ACEOF
26507 #define HAVE_SYS_SHM_H 1
26515 for ac_header in sys/timex.h
26517 ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
26518 #ifdef HAVE_SYS_TIME_H
26519 # include <sys/time.h>
26523 if test "x$ac_cv_header_sys_timex_h" = xyes; then :
26524 cat >>confdefs.h <<_ACEOF
26525 #define HAVE_SYS_TIMEX_H 1
26535 # We could do a cv check here, but is it worth it?
26537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26538 /* end confdefs.h. */
26540 #include <sys/socket.h>
26542 #include "Bletch: AF_UNSPEC is undefined!"
26545 #include "Bletch: AF_UNSPEC != 0"
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: AF_UNSPEC is zero, as expected." >&5
26552 $as_echo "$as_me: AF_UNSPEC is zero, as expected." >&6;}
26558 if ac_fn_c_try_compile "$LINENO"; then :
26561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26564 $as_echo_n "checking return type of signal handlers... " >&6; }
26565 if ${ac_cv_type_signal+:} false; then :
26566 $as_echo_n "(cached) " >&6
26568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26569 /* end confdefs.h. */
26570 #include <sys/types.h>
26571 #include <signal.h>
26576 return *(signal (0, 0)) (0) == 1;
26581 if ac_fn_c_try_compile "$LINENO"; then :
26582 ac_cv_type_signal=int
26584 ac_cv_type_signal=void
26586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26589 $as_echo "$ac_cv_type_signal" >&6; }
26591 cat >>confdefs.h <<_ACEOF
26592 #define RETSIGTYPE $ac_cv_type_signal
26596 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26597 if test "x$ac_cv_type_off_t" = xyes; then :
26601 cat >>confdefs.h <<_ACEOF
26602 #define off_t long int
26607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26608 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26609 if ${ac_cv_struct_tm+:} false; then :
26610 $as_echo_n "(cached) " >&6
26612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26613 /* end confdefs.h. */
26614 #include <sys/types.h>
26621 int *p = &tm.tm_sec;
26627 if ac_fn_c_try_compile "$LINENO"; then :
26628 ac_cv_struct_tm=time.h
26630 ac_cv_struct_tm=sys/time.h
26632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26635 $as_echo "$ac_cv_struct_tm" >&6; }
26636 if test $ac_cv_struct_tm = sys/time.h; then
26638 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
26643 $as_echo_n "checking for a fallback value for HZ... " >&6; }
26644 if ${ntp_cv_default_hz+:} false; then :
26645 $as_echo_n "(cached) " >&6
26648 ntp_cv_default_hz=100
26650 alpha*-dec-osf4*|alpha*-dec-osf5*)
26651 ntp_cv_default_hz=1024
26654 ntp_cv_default_hz=256
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
26661 $as_echo "$ntp_cv_default_hz" >&6; }
26663 cat >>confdefs.h <<_ACEOF
26664 #define DEFAULT_HZ $ntp_cv_default_hz
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
26669 $as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
26670 if ${ntp_cv_override_hz+:} false; then :
26671 $as_echo_n "(cached) " >&6
26674 ntp_cv_override_hz=no
26676 alpha*-dec-osf4*|alpha*-dec-osf5*)
26677 ntp_cv_override_hz=yes
26680 ntp_cv_override_hz=yes
26683 ntp_cv_override_hz=yes
26686 ntp_cv_override_hz=yes
26689 ntp_cv_override_hz=yes
26695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
26696 $as_echo "$ntp_cv_override_hz" >&6; }
26697 case "$ntp_cv_override_hz" in
26700 $as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
26706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
26707 $as_echo_n "checking for struct rt_msghdr... " >&6; }
26708 if ${ntp_cv_struct_rt_msghdr+:} false; then :
26709 $as_echo_n "(cached) " >&6
26711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26712 /* end confdefs.h. */
26714 #include <sys/types.h>
26715 #include <sys/socket.h>
26716 #include <net/if.h>
26717 #include <net/route.h>
26723 struct rt_msghdr p;
26730 if ac_fn_c_try_compile "$LINENO"; then :
26731 ntp_cv_struct_rt_msghdr=yes
26733 ntp_cv_struct_rt_msghdr=no
26736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
26740 $as_echo "$ntp_cv_struct_rt_msghdr" >&6; }
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
26743 $as_echo_n "checking for struct rtattr... " >&6; }
26744 if ${ntp_cv_rtattr+:} false; then :
26745 $as_echo_n "(cached) " >&6
26747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26748 /* end confdefs.h. */
26750 #include <stddef.h>
26751 #include <sys/socket.h>
26752 #include <linux/rtnetlink.h>
26765 if ac_fn_c_try_compile "$LINENO"; then :
26771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
26775 $as_echo "$ntp_cv_rtattr" >&6; }
26777 case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
26780 $as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
26782 case "$ntp_cv_rtattr" in
26785 $as_echo "#define HAVE_RTNETLINK 1" >>confdefs.h
26790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
26791 $as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
26792 if ${ntp_cv_struct_sigaction_has_sa_sigaction+:} false; then :
26793 $as_echo_n "(cached) " >&6
26795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26796 /* end confdefs.h. */
26798 #include <signal.h>
26804 struct sigaction act;
26805 act.sa_sigaction = 0;
26812 if ac_fn_c_try_compile "$LINENO"; then :
26813 ntp_cv_struct_sigaction_has_sa_sigaction=yes
26815 ntp_cv_struct_sigaction_has_sa_sigaction=no
26818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
26822 $as_echo "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
26823 case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
26826 $as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
26831 $as_echo_n "checking for struct ppsclockev... " >&6; }
26832 if ${ntp_cv_struct_ppsclockev+:} false; then :
26833 $as_echo_n "(cached) " >&6
26835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26836 /* end confdefs.h. */
26838 #ifdef HAVE_SYS_TYPES_H
26839 # include <sys/types.h>
26841 #ifdef HAVE_SYS_TERMIOS_H
26842 # include <sys/termios.h>
26844 #ifdef HAVE_SYS_TIME_H
26845 # include <sys/time.h>
26847 #ifdef HAVE_SYS_PPSCLOCK_H
26848 # include <sys/ppsclock.h>
26855 extern struct ppsclockev *pce;
26856 return pce->serial;
26863 if ac_fn_c_try_compile "$LINENO"; then :
26864 ntp_cv_struct_ppsclockev=yes
26866 ntp_cv_struct_ppsclockev=no
26869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
26873 $as_echo "$ntp_cv_struct_ppsclockev" >&6; }
26874 case "$ntp_cv_struct_ppsclockev" in
26877 $as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
26881 case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
26883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
26884 $as_echo_n "checking for struct snd_size... " >&6; }
26885 if ${ntp_cv_struct_snd_size+:} false; then :
26886 $as_echo_n "(cached) " >&6
26888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26889 /* end confdefs.h. */
26891 #ifdef HAVE_MACHINE_SOUNDCARD_H
26892 # include <machine/soundcard.h>
26894 #ifdef HAVE_SYS_SOUNDCARD_H
26895 # include <sys/soundcard.h>
26902 extern struct snd_size *ss;
26903 return ss->rec_size;
26910 if ac_fn_c_try_compile "$LINENO"; then :
26911 ntp_cv_struct_snd_size=yes
26913 ntp_cv_struct_snd_size=no
26916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
26920 $as_echo "$ntp_cv_struct_snd_size" >&6; }
26921 case "$ntp_cv_struct_snd_size" in
26924 $as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
26929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
26930 $as_echo_n "checking struct clockinfo for hz... " >&6; }
26931 if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
26932 $as_echo_n "(cached) " >&6
26934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26935 /* end confdefs.h. */
26937 #include <sys/time.h>
26943 extern struct clockinfo *pc;
26951 if ac_fn_c_try_compile "$LINENO"; then :
26952 ntp_cv_struct_clockinfo_has_hz=yes
26954 ntp_cv_struct_clockinfo_has_hz=no
26957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
26961 $as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
26962 case "$ntp_cv_struct_clockinfo_has_hz" in
26965 $as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
26970 $as_echo_n "checking struct clockinfo for tickadj... " >&6; }
26971 if ${ntp_cv_struct_clockinfo_has_hz+:} false; then :
26972 $as_echo_n "(cached) " >&6
26974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26975 /* end confdefs.h. */
26977 #include <sys/time.h>
26983 extern struct clockinfo *pc;
26984 return pc->tickadj;
26991 if ac_fn_c_try_compile "$LINENO"; then :
26992 ntp_cv_struct_clockinfo_has_hz=yes
26994 ntp_cv_struct_clockinfo_has_hz=no
26997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
27001 $as_echo "$ntp_cv_struct_clockinfo_has_hz" >&6; }
27002 case "$ntp_cv_struct_clockinfo_has_hz" in
27005 $as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
27009 case "$ntp_cv_struct_ntptimeval" in
27011 ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
27012 #ifdef HAVE_SYS_TIME_H
27013 # include <sys/time.h>
27015 # ifdef HAVE_TIME_H
27019 #ifdef HAVE_SYS_TIMEX_H
27020 # include <sys/timex.h>
27022 # ifdef HAVE_TIMEX_H
27023 # include <timex.h>
27029 if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes; then :
27031 cat >>confdefs.h <<_ACEOF
27032 #define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
27042 for ac_func in arc4random_buf
27044 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
27045 if test "x$ac_cv_func_arc4random_buf" = xyes; then :
27046 cat >>confdefs.h <<_ACEOF
27047 #define HAVE_ARC4RANDOM_BUF 1
27057 LIBS="$LIBS $LDADD_LIBNTP"
27058 for ac_func in daemon
27060 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
27061 if test "x$ac_cv_func_daemon" = xyes; then :
27062 cat >>confdefs.h <<_ACEOF
27063 #define HAVE_DAEMON 1
27069 # XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
27071 { saved_LIBS=; unset saved_LIBS;}
27073 for ac_func in finite
27075 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
27076 if test "x$ac_cv_func_finite" = xyes; then :
27077 cat >>confdefs.h <<_ACEOF
27078 #define HAVE_FINITE 1
27082 for ac_func in isfinite
27084 ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
27085 if test "x$ac_cv_func_isfinite" = xyes; then :
27086 cat >>confdefs.h <<_ACEOF
27087 #define HAVE_ISFINITE 1
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
27093 $as_echo_n "checking for isfinite with <math.h>... " >&6; }
27097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27098 /* end confdefs.h. */
27114 if ac_fn_c_try_link "$LINENO"; then :
27120 rm -f core conftest.err conftest.$ac_objext \
27121 conftest$ac_exeext conftest.$ac_ext
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
27124 $as_echo "$ans" >&6; }
27127 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
27140 for ac_func in fnmatch getbootfile getuid getrusage nanosleep strsignal
27142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27143 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27144 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27145 cat >>confdefs.h <<_ACEOF
27146 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27153 # kvm_open() is only used by tickadj. Also see above.
27154 case "$ac_cv_header_kvm_h" in
27156 for ac_func in kvm_open
27158 ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
27159 if test "x$ac_cv_func_kvm_open" = xyes; then :
27160 cat >>confdefs.h <<_ACEOF
27161 #define HAVE_KVM_OPEN 1
27172 # Just stubs. Sigh.
27174 *) for ac_func in mkstemp
27176 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
27177 if test "x$ac_cv_func_mkstemp" = xyes; then :
27178 cat >>confdefs.h <<_ACEOF
27179 #define HAVE_MKSTEMP 1
27187 for ac_func in mktime
27189 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
27190 if test "x$ac_cv_func_mktime" = xyes; then :
27191 cat >>confdefs.h <<_ACEOF
27192 #define HAVE_MKTIME 1
27200 # XXX only verified thru AIX6.
27201 # Just a stub. Sigh.
27204 # Just a stub in "old" Irix. Sigh.
27206 # In the belief that the fix for bug 1223 fixes mlockall() under linux...
27208 # # there, but more trouble than it is worth for now (resolver problems)
27211 # Apparently there but not working in QNX. Sigh?
27214 # Just a stub. Sigh.
27216 alpha*-dec-osf4*|alpha*-dec-osf5*)
27217 # mlockall is there, as a #define calling memlk via <sys/mman.h>
27218 # Not easy to test for - cheat.
27219 for ac_func in memlk
27221 ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
27222 if test "x$ac_cv_func_memlk" = xyes; then :
27223 cat >>confdefs.h <<_ACEOF
27224 #define HAVE_MEMLK 1
27226 ac_cv_func_mlockall=yes
27230 for ac_func in mlockall
27232 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
27233 if test "x$ac_cv_func_mlockall" = xyes; then :
27234 cat >>confdefs.h <<_ACEOF
27235 #define HAVE_MLOCKALL 1
27242 *) for ac_func in mlockall
27244 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
27245 if test "x$ac_cv_func_mlockall" = xyes; then :
27246 cat >>confdefs.h <<_ACEOF
27247 #define HAVE_MLOCKALL 1
27255 for ac_func in nice plock pututline pututxline readlink rtprio
27257 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27258 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27259 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27260 cat >>confdefs.h <<_ACEOF
27261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27269 # XXX only verified thru AIX6.
27270 # Just a stub in AIX 4. Sigh.
27273 # Just stubs in solaris2.5. Sigh.
27275 *) for ac_func in sched_setscheduler
27277 ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
27278 if test "x$ac_cv_func_sched_setscheduler" = xyes; then :
27279 cat >>confdefs.h <<_ACEOF
27280 #define HAVE_SCHED_SETSCHEDULER 1
27288 for ac_func in setlinebuf setpgid setpriority setsid setvbuf
27290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27291 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27292 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27293 cat >>confdefs.h <<_ACEOF
27294 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27300 for ac_func in strdup strerror setrlimit strchr
27302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27303 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27304 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27305 cat >>confdefs.h <<_ACEOF
27306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27314 # XXX only verified thru AIX6.
27315 # Just stubs. Sigh.
27318 # Just stubs. Sigh.
27321 # Just stubs. Sigh.
27324 # Just stubs. Sigh.
27327 for ac_func in timer_create
27329 ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
27330 if test "x$ac_cv_func_timer_create" = xyes; then :
27331 cat >>confdefs.h <<_ACEOF
27332 #define HAVE_TIMER_CREATE 1
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
27344 $as_echo_n "checking for RLIMIT_MEMLOCK... " >&6; }
27345 if ${ntp_cv_rlimit_memlock+:} false; then :
27346 $as_echo_n "(cached) " >&6
27348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27349 /* end confdefs.h. */
27351 #ifdef HAVE_SYS_TYPES_H
27352 # include <sys/types.h>
27354 #ifdef HAVE_SYS_TIME_H
27355 # include <sys/time.h>
27357 #ifdef HAVE_SYS_RESOURCE_H
27358 # include <sys/resource.h>
27365 getrlimit(RLIMIT_MEMLOCK, 0);
27372 if ac_fn_c_try_compile "$LINENO"; then :
27373 ntp_cv_rlimit_memlock=yes
27375 ntp_cv_rlimit_memlock=no
27378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
27382 $as_echo "$ntp_cv_rlimit_memlock" >&6; }
27385 ntp_dflt_rlimit_memlock="-1" ;;
27386 *) ntp_dflt_rlimit_memlock="32" ;;
27388 case "$ntp_cv_rlimit_memlock" in
27391 HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock" ;;
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
27395 $as_echo_n "checking for RLIMIT_STACK... " >&6; }
27396 if ${ntp_cv_rlimit_stack+:} false; then :
27397 $as_echo_n "(cached) " >&6
27399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27400 /* end confdefs.h. */
27402 #ifdef HAVE_SYS_TYPES_H
27403 # include <sys/types.h>
27405 #ifdef HAVE_SYS_TIME_H
27406 # include <sys/time.h>
27408 #ifdef HAVE_SYS_RESOURCE_H
27409 # include <sys/resource.h>
27416 getrlimit(RLIMIT_STACK, 0);
27423 if ac_fn_c_try_compile "$LINENO"; then :
27424 ntp_cv_rlimit_stack=yes
27426 ntp_cv_rlimit_stack=no
27429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
27433 $as_echo "$ntp_cv_rlimit_stack" >&6; }
27434 case "$ntp_cv_rlimit_stack" in
27437 HAVE_RLIMIT_STACK=" stacksize 50"
27440 # HMS: Only if we are doing the MLOCKALL stuff...
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
27442 $as_echo_n "checking for the default number of 4k stack pages... " >&6; }
27444 # Check whether --with-stack-limit was given.
27445 if test "${with_stack_limit+set}" = set; then :
27446 withval=$with_stack_limit; ans=$withval
27464 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
27468 $as_echo "$ans" >&6; }
27470 cat >>confdefs.h <<_ACEOF
27471 #define DFLT_RLIMIT_STACK $ans
27475 # HMS: only if we have RLIMIT_MEMLOCK
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
27477 $as_echo_n "checking for the default number of megabytes to MEMLOCK... " >&6; }
27479 # Check whether --with-memlock was given.
27480 if test "${with_memlock+set}" = set; then :
27481 withval=$with_memlock; ans=$withval
27489 ans=$ntp_dflt_rlimit_memlock
27492 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
27495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
27496 $as_echo "$ans" >&6; }
27498 cat >>confdefs.h <<_ACEOF
27499 #define DFLT_RLIMIT_MEMLOCK $ans
27505 # some OSes prefer _exit() in forked children to exit()
27506 for ac_func in _exit
27508 ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
27509 if test "x$ac_cv_func__exit" = xyes; then :
27510 cat >>confdefs.h <<_ACEOF
27511 #define HAVE__EXIT 1
27517 ntp_worker_child_exit=exit
27518 case "$ac_cv_func__exit::$host_os" in
27520 ntp_worker_child_exit=_exit
27523 ntp_worker_child_exit=_exit
27527 cat >>confdefs.h <<_ACEOF
27528 #define WORKER_CHILD_EXIT $ntp_worker_child_exit
27532 for ac_func in umask uname updwtmp updwtmpx
27534 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27535 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27536 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27537 cat >>confdefs.h <<_ACEOF
27538 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27547 # http://bugs.ntp.org/737
27548 case "$ac_cv_func_recvmsg" in
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
27551 $as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
27552 if ${ntp_cv_struct_iovec_help+:} false; then :
27553 $as_echo_n "(cached) " >&6
27557 for ntp_cv_struct_iovec_help in '0' '1'; do
27558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27559 /* end confdefs.h. */
27561 #ifdef HAVE_SYS_TYPES_H
27562 # include <sys/types.h>
27564 #ifdef HAVE_SYS_SOCKET_H
27565 # include <sys/socket.h>
27567 #if $ntp_cv_struct_iovec_help
27568 # include <sys/uio.h>
27583 x = recvmsg(s, &mh, flags);
27591 if ac_fn_c_try_compile "$LINENO"; then :
27592 compiled=yes ; break 1
27594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27596 case "$compiled" in
27598 ntp_cv_struct_iovec_help=0
27600 { compiled=; unset compiled;}
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
27605 $as_echo "$ntp_cv_struct_iovec_help" >&6; }
27606 case "$ntp_cv_struct_iovec_help" in
27609 $as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
27615 $as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
27616 if ${ntp_cv_func_setpgrp_nargs+:} false; then :
27617 $as_echo_n "(cached) " >&6
27619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27620 /* end confdefs.h. */
27622 #ifdef HAVE_SYS_TYPES_H
27623 # include <sys/types.h>
27625 #ifdef HAVE_UNISTD_H
27626 # include <unistd.h>
27640 if ac_fn_c_try_compile "$LINENO"; then :
27641 ntp_cv_func_setpgrp_nargs=2
27643 ntp_cv_func_setpgrp_nargs=0
27646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
27650 $as_echo "$ntp_cv_func_setpgrp_nargs" >&6; }
27651 case "$ntp_cv_func_setpgrp_nargs" in
27654 $as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
27659 $as_echo_n "checking if we need to declare 'errno'... " >&6; }
27660 if ${ntp_cv_decl_errno+:} false; then :
27661 $as_echo_n "(cached) " >&6
27663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27664 /* end confdefs.h. */
27666 #ifdef HAVE_ERRNO_H
27667 # include <errno.h>
27681 if ac_fn_c_try_compile "$LINENO"; then :
27682 ntp_cv_decl_errno=no
27684 ntp_cv_decl_errno=yes
27687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
27691 $as_echo "$ntp_cv_decl_errno" >&6; }
27692 case "$ntp_cv_decl_errno" in
27695 $as_echo "#define DECL_ERRNO 1" >>confdefs.h
27699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
27700 $as_echo_n "checking if we may declare 'h_errno'... " >&6; }
27701 if ${ntp_cv_decl_h_errno+:} false; then :
27702 $as_echo_n "(cached) " >&6
27704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27705 /* end confdefs.h. */
27707 #include <sys/types.h>
27708 #ifdef HAVE_NETINET_IN_H
27709 # include <netinet/in.h>
27711 #ifdef HAVE_ARPA_NAMESER_H
27712 # include <arpa/nameser.h>
27714 #ifdef HAVE_NETDB_H
27715 # include <netdb.h>
27717 #ifdef HAVE_RESOLV_H
27718 # include <resolv.h>
27725 extern int h_errno;
27732 if ac_fn_c_try_compile "$LINENO"; then :
27733 ntp_cv_decl_h_errno=yes
27735 ntp_cv_decl_h_errno=no
27738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
27742 $as_echo "$ntp_cv_decl_h_errno" >&6; }
27743 case "$ntp_cv_decl_h_errno" in
27746 $as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
27751 $as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
27752 if ${ntp_cv_decl_syscall+:} false; then :
27753 $as_echo_n "(cached) " >&6
27755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27756 /* end confdefs.h. */
27758 #ifdef HAVE_SYS_TYPES_H
27759 # include <sys/types.h>
27761 #ifdef HAVE_UNISTD_H
27762 # include <unistd.h>
27769 extern int syscall (int, ...);
27775 ntp_cv_decl_syscall=yes
27777 if ac_fn_c_try_compile "$LINENO"; then :
27778 ntp_cv_decl_syscall=no
27781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
27785 $as_echo "$ntp_cv_decl_syscall" >&6; }
27786 case "$ntp_cv_decl_syscall" in
27789 $as_echo "#define DECL_SYSCALL 1" >>confdefs.h
27796 $as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
27797 # Needed for XLC under AIX 4.3.2
27801 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27804 $as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
27807 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
27810 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
27813 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
27816 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
27819 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
27824 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
27827 $as_echo "#define DECL_STIME_1 1" >>confdefs.h
27832 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27837 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27840 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
27843 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
27846 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
27849 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
27852 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
27855 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
27858 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
27861 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
27864 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
27867 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
27870 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
27873 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
27876 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
27879 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
27882 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
27887 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
27890 $as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
27895 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
27902 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27905 $as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
27908 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
27911 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
27914 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
27917 $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
27920 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
27923 $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
27926 $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
27929 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
27932 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
27935 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
27938 $as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
27940 case "`basename $ac_cv_prog_CC`" in
27943 $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
27948 $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
27951 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
27954 $as_echo "#define DECL_TIME_0 1" >>confdefs.h
27957 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
27960 $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
27963 $as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
27966 $as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
27971 $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
27974 $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
27977 $as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
27980 $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
27983 $as_echo "#define DECL_IPC_0 1" >>confdefs.h
27986 $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
27989 $as_echo "#define DECL_NLIST_0 1" >>confdefs.h
27992 $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
27995 $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
27998 $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
28001 $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
28004 $as_echo "#define DECL_STIME_0 1" >>confdefs.h
28007 $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
28010 $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
28018 $as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
28026 $as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
28031 $as_echo_n "checking if we will open the broadcast socket... " >&6; }
28032 if ${ntp_cv_var_open_bcast_socket+:} false; then :
28033 $as_echo_n "(cached) " >&6
28041 ntp_cv_var_open_bcast_socket=$ans
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
28046 $as_echo "$ntp_cv_var_open_bcast_socket" >&6; }
28047 case "$ntp_cv_var_open_bcast_socket" in
28050 $as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
28057 $as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
28061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
28062 $as_echo_n "checking if process groups are set with -pid... " >&6; }
28063 if ${ntp_cv_arg_setpgrp_negpid+:} false; then :
28064 $as_echo_n "(cached) " >&6
28087 ntp_cv_arg_setpgrp_negpid=$ans
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
28092 $as_echo "$ntp_cv_arg_setpgrp_negpid" >&6; }
28093 case "$ntp_cv_arg_setpgrp_negpid" in
28096 $as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
28100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
28101 $as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
28102 if ${ntp_cv_func_ctty_for_f_setown+:} false; then :
28103 $as_echo_n "(cached) " >&6
28113 # NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
28114 # while later versions will fail a ioctl(TIOCSCTTY, 0) call in
28115 # some cases and so should not have USE_FSETOWNCTTY. "netbsd"
28116 # in $host may be followed by "aout", "ecoff", or "elf".
28117 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
28120 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
28136 ntp_cv_func_ctty_for_f_setown=$ans
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
28141 $as_echo "$ntp_cv_func_ctty_for_f_setown" >&6; }
28142 case "$ntp_cv_func_ctty_for_f_setown" in
28145 $as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
28149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
28150 $as_echo_n "checking if the OS clears cached routes when more specifics become available... " >&6; }
28151 if ${ntp_cv_os_routeupdates+:} false; then :
28152 $as_echo_n "(cached) " >&6
28163 ntp_cv_os_routeupdates=$ans
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
28168 $as_echo "$ntp_cv_os_routeupdates" >&6; }
28169 case "$ntp_cv_os_routeupdates" in
28172 $as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
28176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
28177 $as_echo_n "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
28178 if ${ntp_cv_os_wildcardreuse+:} false; then :
28179 $as_echo_n "(cached) " >&6
28189 ntp_cv_os_wildcardreuse=$ans
28193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
28194 $as_echo "$ntp_cv_os_wildcardreuse" >&6; }
28195 case "$ntp_cv_os_wildcardreuse" in
28198 $as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
28205 $as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
28209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
28210 $as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
28211 if ${ntp_cv_var_min_rec_tickadj+:} false; then :
28212 $as_echo_n "(cached) " >&6
28221 ntp_cv_var_min_rec_tickadj=$ans
28225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
28226 $as_echo "$ntp_cv_var_min_rec_tickadj" >&6; }
28227 case "$ntp_cv_var_min_rec_tickadj" in
28232 cat >>confdefs.h <<_ACEOF
28233 #define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
28239 $as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
28240 if ${ntp_cv_no_parenb_ignpar+:} false; then :
28241 $as_echo_n "(cached) " >&6
28252 i?86-*-freebsd[123].*)
28261 ntp_cv_no_parenb_ignpar=$ans
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
28266 $as_echo "$ntp_cv_no_parenb_ignpar" >&6; }
28267 case "$ntp_cv_no_parenb_ignpar" in
28270 $as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
28274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
28275 $as_echo_n "checking if we're including processing time debugging code... " >&6; }
28276 # Check whether --enable-debug-timing was given.
28277 if test "${enable_debug_timing+set}" = set; then :
28278 enableval=$enable_debug_timing; ntp_ok=$enableval
28287 $as_echo "#define DEBUG_TIMING 1" >>confdefs.h
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28291 $as_echo "$ntp_ok" >&6; }
28293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
28294 $as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
28295 # Check whether --enable-dst-minutes was given.
28296 if test "${enable_dst_minutes+set}" = set; then :
28297 enableval=$enable_dst_minutes; ans=$enableval
28304 cat >>confdefs.h <<_ACEOF
28305 #define DSTMINUTES $ans
28308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28309 $as_echo "$ans" >&6; }
28311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
28312 $as_echo_n "checking if ntpd will retry permanent DNS failures... " >&6; }
28313 # Check whether --enable-ignore-dns-errors was given.
28314 if test "${enable_ignore_dns_errors+set}" = set; then :
28315 enableval=$enable_ignore_dns_errors; ans=$enableval
28324 $as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
28327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28328 $as_echo "$ans" >&6; }
28330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
28331 $as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
28332 if ${ntp_cv_var_ntp_syscalls+:} false; then :
28333 $as_echo_n "(cached) " >&6
28336 ntp_cv_var_ntp_syscalls=no
28337 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
28339 ntp_cv_var_ntp_syscalls=libc
28342 ntp_cv_var_ntp_syscalls=inline
28345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28346 /* end confdefs.h. */
28348 #include <sys/syscall.h>
28349 #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
28354 if ac_fn_c_try_cpp "$LINENO"; then :
28355 ntp_cv_var_ntp_syscalls=kernel
28358 rm -f conftest.err conftest.i conftest.$ac_ext
28364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
28365 $as_echo "$ntp_cv_var_ntp_syscalls" >&6; }
28366 case "$ntp_cv_var_ntp_syscalls" in
28369 $as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
28374 $as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
28379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
28380 $as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
28381 if ${ntp_cv_var_sta_fll+:} false; then :
28382 $as_echo_n "(cached) " >&6
28384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28385 /* end confdefs.h. */
28387 #include <sys/timex.h>
28393 if ac_fn_c_try_cpp "$LINENO"; then :
28394 ntp_cv_var_sta_fll=yes
28396 ntp_cv_var_sta_fll=no
28399 rm -f conftest.err conftest.i conftest.$ac_ext
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
28403 $as_echo "$ntp_cv_var_sta_fll" >&6; }
28405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
28406 $as_echo_n "checking if we have kernel PLL support... " >&6; }
28407 if ${ntp_cv_var_kernel_pll+:} false; then :
28408 $as_echo_n "(cached) " >&6
28410 case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
28412 ntp_cv_var_kernel_pll=no
28414 *) ntp_cv_var_kernel_pll=yes
28420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
28421 $as_echo "$ntp_cv_var_kernel_pll" >&6; }
28422 case "$ntp_cv_var_kernel_pll" in
28425 $as_echo "#define KERNEL_PLL 1" >>confdefs.h
28429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
28430 $as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
28431 if ${ntp_cv_size_returned_in_buffer+:} false; then :
28432 $as_echo_n "(cached) " >&6
28447 ntp_cv_size_returned_in_buffer=$ans
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
28452 $as_echo "$ntp_cv_size_returned_in_buffer" >&6; }
28453 case "$ntp_cv_size_returned_in_buffer" in
28456 $as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
28460 # Check for ioctls TIOCGPPSEV
28461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
28462 $as_echo_n "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
28463 case "$ac_cv_header_termios_h" in
28465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28466 /* end confdefs.h. */
28468 #include <termios.h>
28474 if ac_fn_c_try_cpp "$LINENO"; then :
28480 rm -f conftest.err conftest.i conftest.$ac_ext
28489 $as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
28492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28493 $as_echo "$ntp_ok" >&6; }
28495 # Check for ioctls TIOCSPPS
28496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
28497 $as_echo_n "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
28498 case "$ac_cv_header_termios_h" in
28500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28501 /* end confdefs.h. */
28503 #include <termios.h>
28509 if ac_fn_c_try_cpp "$LINENO"; then :
28515 rm -f conftest.err conftest.i conftest.$ac_ext
28524 $as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
28527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28528 $as_echo "$ntp_ok" >&6; }
28530 # Check for ioctls CIOGETEV
28531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
28532 $as_echo_n "checking for TTY PPS ioctl CIOGETEV... " >&6; }
28533 case "$ac_cv_header_sys_ppsclock_h" in
28535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28536 /* end confdefs.h. */
28538 #include <sys/ppsclock.h>
28544 if ac_fn_c_try_cpp "$LINENO"; then :
28550 rm -f conftest.err conftest.i conftest.$ac_ext
28559 $as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
28562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28563 $as_echo "$ntp_ok" >&6; }
28565 # ATOM/PPSAPI stuff.
28569 # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
28571 # The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
28572 # The PPSAPI needs struct timespec.
28573 # The PPSAPI also needs a timepps header.
28575 case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
28577 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
28578 *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
28580 $as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
28585 ntp_ripe_ncc_ok=yes
28591 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
28592 ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
28593 if test "x$ac_cv_header_linux_serial_h" = xyes; then :
28598 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
28600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
28601 $as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
28602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28603 /* end confdefs.h. */
28605 #include <sys/time.h>
28607 #include <sys/ppsclock.h>
28608 #include <linux/serial.h>
28610 #ifndef TIOCGSERIAL
28613 #ifndef TIOCSSERIAL
28616 #ifndef ASYNC_PPS_CD_POS
28619 #ifndef ASYNC_PPS_CD_NEG
28627 if ac_fn_c_try_cpp "$LINENO"; then :
28633 rm -f conftest.err conftest.i conftest.$ac_ext
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28635 $as_echo "$ntp_ok" >&6; }
28644 $as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
28648 # Check for SHMEM_STATUS support
28649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
28650 $as_echo_n "checking SHMEM_STATUS support... " >&6; }
28651 case "$ac_cv_header_sys_mman_h" in
28662 $as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28666 $as_echo "$ntp_ok" >&6; }
28670 # HPUX only, and by explicit request
28671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
28672 $as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
28673 # Check whether --enable-BANCOMM was given.
28674 if test "${enable_BANCOMM+set}" = set; then :
28675 enableval=$enable_BANCOMM; ntp_ok=$enableval
28685 $as_echo "#define CLOCK_BANC 1" >>confdefs.h
28687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bcStartPci" >&5
28688 $as_echo_n "checking for library containing bcStartPci... " >&6; }
28689 if ${ac_cv_search_bcStartPci+:} false; then :
28690 $as_echo_n "(cached) " >&6
28692 ac_func_search_save_LIBS=$LIBS
28693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28694 /* end confdefs.h. */
28696 /* Override any GCC internal prototype to avoid an error.
28697 Use char because int might match the return type of a GCC
28698 builtin and then its argument prototype would still apply. */
28702 char bcStartPci ();
28706 return bcStartPci ();
28711 for ac_lib in '' bcsdk; do
28712 if test -z "$ac_lib"; then
28713 ac_res="none required"
28716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28718 if ac_fn_c_try_link "$LINENO"; then :
28719 ac_cv_search_bcStartPci=$ac_res
28721 rm -f core conftest.err conftest.$ac_objext \
28723 if ${ac_cv_search_bcStartPci+:} false; then :
28727 if ${ac_cv_search_bcStartPci+:} false; then :
28730 ac_cv_search_bcStartPci=no
28732 rm conftest.$ac_ext
28733 LIBS=$ac_func_search_save_LIBS
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bcStartPci" >&5
28736 $as_echo "$ac_cv_search_bcStartPci" >&6; }
28737 ac_res=$ac_cv_search_bcStartPci
28738 if test "$ac_res" != no; then :
28739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28746 $as_echo "$ntp_ok" >&6; }
28747 case "$ntp_ok$host" in
28749 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
28750 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
28753 #HPUX only, and only by explicit request
28754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
28755 $as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
28756 # Check whether --enable-GPSVME was given.
28757 if test "${enable_GPSVME+set}" = set; then :
28758 enableval=$enable_GPSVME; ntp_ok=$enableval
28768 $as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28773 $as_echo "$ntp_ok" >&6; }
28774 case "$ntp_ok$host" in
28776 yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
28777 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
28781 $as_echo_n "checking for PCL720 clock support... " >&6; }
28782 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
28785 $as_echo "#define CLOCK_PPS720 1" >>confdefs.h
28793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28794 $as_echo "$ans" >&6; }
28796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
28797 $as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
28798 # Check whether --enable-all-clocks was given.
28799 if test "${enable_all_clocks+set}" = set; then :
28800 enableval=$enable_all_clocks; ntp_eac=$enableval
28806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
28807 $as_echo "$ntp_eac" >&6; }
28809 # HMS: Should we also require ntp_parse_ok?
28810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
28811 $as_echo_n "checking if we have support for PARSE clocks... " >&6; }
28812 case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
28819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
28820 $as_echo "$ntp_canparse" >&6; }
28822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
28823 $as_echo_n "checking if we have support for audio clocks... " >&6; }
28824 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
28828 $as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
28831 *) ntp_canaudio=no ;;
28833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
28834 $as_echo "$ntp_canaudio" >&6; }
28836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
28837 $as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
28838 case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
28842 *) ntp_canshm=no ;;
28844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
28845 $as_echo "$ntp_canshm" >&6; }
28847 # Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
28849 $as_echo_n "checking for termios modem control... " >&6; }
28850 if ${ntp_cv_modem_control+:} false; then :
28851 $as_echo_n "(cached) " >&6
28853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28854 /* end confdefs.h. */
28856 #ifdef HAVE_UNISTD_H
28857 # include <unistd.h>
28859 #ifdef HAVE_TERMIOS_H
28860 # include <termios.h>
28862 #ifdef HAVE_SYS_IOCTL_H
28863 # include <sys/ioctl.h>
28870 int dtr = TIOCM_DTR;
28872 ioctl(1, TIOCMBIS, (char *)&dtr);
28879 if ac_fn_c_try_compile "$LINENO"; then :
28880 ntp_cv_modem_control=yes
28882 ntp_cv_modem_control=no
28885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
28889 $as_echo "$ntp_cv_modem_control" >&6; }
28890 case "$ntp_eac::$ntp_cv_modem_control" in
28892 ntp_enable_all_modem_control_clocks=yes
28895 ntp_enable_all_modem_control_clocks=no
28899 # Requires modem control
28900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
28901 $as_echo_n "checking ACTS modem service... " >&6; }
28902 # Check whether --enable-ACTS was given.
28903 if test "${enable_ACTS+set}" = set; then :
28904 enableval=$enable_ACTS; ntp_ok=$enableval
28906 ntp_ok=$ntp_enable_all_modem_control_clocks
28914 $as_echo "#define CLOCK_ACTS 1" >>confdefs.h
28918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28919 $as_echo "$ntp_ok" >&6; }
28921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
28922 $as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
28923 # Check whether --enable-ARBITER was given.
28924 if test "${enable_ARBITER+set}" = set; then :
28925 enableval=$enable_ARBITER; ntp_ok=$enableval
28935 $as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
28939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28940 $as_echo "$ntp_ok" >&6; }
28942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
28943 $as_echo_n "checking Arcron MSF receiver... " >&6; }
28944 # Check whether --enable-ARCRON_MSF was given.
28945 if test "${enable_ARCRON_MSF+set}" = set; then :
28946 enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
28956 $as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
28960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28961 $as_echo "$ntp_ok" >&6; }
28963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
28964 $as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
28965 # Check whether --enable-AS2201 was given.
28966 if test "${enable_AS2201+set}" = set; then :
28967 enableval=$enable_AS2201; ntp_ok=$enableval
28977 $as_echo "#define CLOCK_AS2201 1" >>confdefs.h
28981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
28982 $as_echo "$ntp_ok" >&6; }
28984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
28985 $as_echo_n "checking ATOM PPS interface... " >&6; }
28986 # Check whether --enable-ATOM was given.
28987 if test "${enable_ATOM+set}" = set; then :
28988 enableval=$enable_ATOM; ntp_ok=$enableval
28994 case "$ntp_atom_ok" in
29001 $as_echo "#define CLOCK_ATOM 1" >>confdefs.h
29005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29006 $as_echo "$ntp_ok" >&6; }
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
29009 $as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
29010 # Check whether --enable-CHRONOLOG was given.
29011 if test "${enable_CHRONOLOG+set}" = set; then :
29012 enableval=$enable_CHRONOLOG; ntp_ok=$enableval
29022 $as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
29026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29027 $as_echo "$ntp_ok" >&6; }
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
29030 $as_echo_n "checking CHU modem/decoder... " >&6; }
29031 # Check whether --enable-CHU was given.
29032 if test "${enable_CHU+set}" = set; then :
29033 enableval=$enable_CHU; ntp_ok=$enableval
29043 $as_echo "#define CLOCK_CHU 1" >>confdefs.h
29047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29048 $as_echo "$ntp_ok" >&6; }
29049 ntp_refclock_chu=$ntp_ok
29051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
29052 $as_echo_n "checking CHU audio/decoder... " >&6; }
29053 # Check whether --enable-AUDIO-CHU was given.
29054 if test "${enable_AUDIO_CHU+set}" = set; then :
29055 enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
29058 case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29067 $as_echo "$ntp_ok" >&6; }
29068 # We used to check for sunos/solaris target...
29069 case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
29070 yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
29071 $as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
29075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
29076 $as_echo_n "checking Datum Programmable Time System... " >&6; }
29077 # Check whether --enable-DATUM was given.
29078 if test "${enable_DATUM+set}" = set; then :
29079 enableval=$enable_DATUM; ntp_ok=$enableval
29082 case "$ac_cv_header_termios_h" in
29097 $as_echo "#define CLOCK_DATUM 1" >>confdefs.h
29101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29102 $as_echo "$ntp_ok" >&6; }
29104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
29105 $as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
29106 # Check whether --enable-DUMBCLOCK was given.
29107 if test "${enable_DUMBCLOCK+set}" = set; then :
29108 enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
29118 $as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
29122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29123 $as_echo "$ntp_ok" >&6; }
29125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
29126 $as_echo_n "checking Forum Graphic GPS... " >&6; }
29127 # Check whether --enable-FG was given.
29128 if test "${enable_FG+set}" = set; then :
29129 enableval=$enable_FG; ntp_ok=$enableval
29139 $as_echo "#define CLOCK_FG 1" >>confdefs.h
29143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29144 $as_echo "$ntp_ok" >&6; }
29146 # Requires modem control
29147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
29148 $as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
29149 # Check whether --enable-HEATH was given.
29150 if test "${enable_HEATH+set}" = set; then :
29151 enableval=$enable_HEATH; ntp_ok=$enableval
29153 ntp_ok=$ntp_enable_all_modem_control_clocks
29161 $as_echo "#define CLOCK_HEATH 1" >>confdefs.h
29165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29166 $as_echo "$ntp_ok" >&6; }
29168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
29169 $as_echo_n "checking for hopf serial clock device... " >&6; }
29170 # Check whether --enable-HOPFSERIAL was given.
29171 if test "${enable_HOPFSERIAL+set}" = set; then :
29172 enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
29182 $as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
29186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29187 $as_echo "$ntp_ok" >&6; }
29189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
29190 $as_echo_n "checking for hopf PCI clock 6039... " >&6; }
29191 # Check whether --enable-HOPFPCI was given.
29192 if test "${enable_HOPFPCI+set}" = set; then :
29193 enableval=$enable_HOPFPCI; ntp_ok=$enableval
29203 $as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
29207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29208 $as_echo "$ntp_ok" >&6; }
29210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
29211 $as_echo_n "checking HP 58503A GPS receiver... " >&6; }
29212 # Check whether --enable-HPGPS was given.
29213 if test "${enable_HPGPS+set}" = set; then :
29214 enableval=$enable_HPGPS; ntp_ok=$enableval
29224 $as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
29228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29229 $as_echo "$ntp_ok" >&6; }
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
29232 $as_echo_n "checking IRIG audio decoder... " >&6; }
29233 # Check whether --enable-IRIG was given.
29234 if test "${enable_IRIG+set}" = set; then :
29235 enableval=$enable_IRIG; ntp_ok=$enableval
29238 case "$ntp_eac$ntp_canaudio" in
29250 $as_echo "#define CLOCK_IRIG 1" >>confdefs.h
29254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29255 $as_echo "$ntp_ok" >&6; }
29256 case "$ntp_ok$ntp_canaudio" in
29257 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29258 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
29262 $as_echo_n "checking for JJY receiver... " >&6; }
29263 # Check whether --enable-JJY was given.
29264 if test "${enable_JJY+set}" = set; then :
29265 enableval=$enable_JJY; ntp_ok=$enableval
29275 $as_echo "#define CLOCK_JJY 1" >>confdefs.h
29279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29280 $as_echo "$ntp_ok" >&6; }
29282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
29283 $as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
29284 # Check whether --enable-JUPITER was given.
29285 if test "${enable_JUPITER+set}" = set; then :
29286 enableval=$enable_JUPITER; ntp_ok=$enableval
29291 case "$ntp_jupiter_ok" in
29298 $as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
29302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29303 $as_echo "$ntp_ok" >&6; }
29305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
29306 $as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
29307 # Check whether --enable-LEITCH was given.
29308 if test "${enable_LEITCH+set}" = set; then :
29309 enableval=$enable_LEITCH; ntp_ok=$enableval
29319 $as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
29323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29324 $as_echo "$ntp_ok" >&6; }
29326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
29327 $as_echo_n "checking local clock reference... " >&6; }
29328 # Check whether --enable-LOCAL-CLOCK was given.
29329 if test "${enable_LOCAL_CLOCK+set}" = set; then :
29330 enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
29340 $as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
29344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29345 $as_echo "$ntp_ok" >&6; }
29349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
29350 $as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
29351 # Check whether --enable-MX4200 was given.
29352 if test "${enable_MX4200+set}" = set; then :
29353 enableval=$enable_MX4200; ntp_ok=$enableval
29356 case "$ac_cv_var_ppsclock" in
29372 $as_echo "#define CLOCK_MX4200 1" >>confdefs.h
29376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29377 $as_echo "$ntp_ok" >&6; }
29378 case "$ntp_ok$host" in
29379 yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29380 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
29384 $as_echo_n "checking for NeoClock4X receiver... " >&6; }
29385 # Check whether --enable-NEOCLOCK4X was given.
29386 if test "${enable_NEOCLOCK4X+set}" = set; then :
29387 enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
29397 $as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
29401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29402 $as_echo "$ntp_ok" >&6; }
29404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
29405 $as_echo_n "checking NMEA GPS receiver... " >&6; }
29406 # Check whether --enable-NMEA was given.
29407 if test "${enable_NMEA+set}" = set; then :
29408 enableval=$enable_NMEA; ntp_ok=$enableval
29418 $as_echo "#define CLOCK_NMEA 1" >>confdefs.h
29422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29423 $as_echo "$ntp_ok" >&6; }
29425 for ac_func in strtoll
29427 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
29428 if test "x$ac_cv_func_strtoll" = xyes; then :
29429 cat >>confdefs.h <<_ACEOF
29430 #define HAVE_STRTOLL 1
29436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
29437 $as_echo_n "checking for GPSD JSON receiver... " >&6; }
29438 # Check whether --enable-GPSD was given.
29439 if test "${enable_GPSD+set}" = set; then :
29440 enableval=$enable_GPSD; ntp_ok=$enableval
29442 case "$ac_cv_func_strtoll" in
29443 yes) ntp_ok=$ntp_eac ;;
29453 $as_echo "#define CLOCK_GPSDJSON 1" >>confdefs.h
29457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29458 $as_echo "$ntp_ok" >&6; }
29460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
29461 $as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
29462 # Check whether --enable-ONCORE was given.
29463 if test "${enable_ONCORE+set}" = set; then :
29464 enableval=$enable_ONCORE; ntp_ok=$enableval
29470 case "$ntp_oncore_ok" in
29477 $as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
29481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29482 $as_echo "$ntp_ok" >&6; }
29484 # Requires modem control
29485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
29486 $as_echo_n "checking for Palisade clock... " >&6; }
29487 # Check whether --enable-PALISADE was given.
29488 if test "${enable_PALISADE+set}" = set; then :
29489 enableval=$enable_PALISADE; ntp_ok=$enableval
29491 ntp_ok=$ntp_enable_all_modem_control_clocks
29499 $as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
29503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29504 $as_echo "$ntp_ok" >&6; }
29506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
29507 $as_echo_n "checking Conrad parallel port radio clock... " >&6; }
29508 # Check whether --enable-PCF was given.
29509 if test "${enable_PCF+set}" = set; then :
29510 enableval=$enable_PCF; ntp_ok=$enableval
29520 $as_echo "#define CLOCK_PCF 1" >>confdefs.h
29524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29525 $as_echo "$ntp_ok" >&6; }
29527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
29528 $as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
29529 # Check whether --enable-PST was given.
29530 if test "${enable_PST+set}" = set; then :
29531 enableval=$enable_PST; ntp_ok=$enableval
29541 $as_echo "#define CLOCK_PST 1" >>confdefs.h
29545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29546 $as_echo "$ntp_ok" >&6; }
29548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
29549 $as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
29550 # Check whether --enable-RIPENCC was given.
29551 if test "${enable_RIPENCC+set}" = set; then :
29552 enableval=$enable_RIPENCC; ntp_ok=$enableval
29558 # 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
29559 case "$ntp_ripe_ncc_ok" in
29566 $as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
29570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29571 $as_echo "$ntp_ok" >&6; }
29573 # Danny Meyer says SHM compiles (with a few warnings) under Win32.
29574 # For *IX, we need sys/ipc.h and sys/shm.h.
29575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
29576 $as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
29577 # Check whether --enable-SHM was given.
29578 if test "${enable_SHM+set}" = set; then :
29579 enableval=$enable_SHM; ntp_ok=$enableval
29582 case "$ntp_eac$ntp_canshm" in
29594 $as_echo "#define CLOCK_SHM 1" >>confdefs.h
29598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29599 $as_echo "$ntp_ok" >&6; }
29601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
29602 $as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
29603 # Check whether --enable-SPECTRACOM was given.
29604 if test "${enable_SPECTRACOM+set}" = set; then :
29605 enableval=$enable_SPECTRACOM; ntp_ok=$enableval
29615 $as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
29619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29620 $as_echo "$ntp_ok" >&6; }
29622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
29623 $as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
29624 # Check whether --enable-TPRO was given.
29625 if test "${enable_TPRO+set}" = set; then :
29626 enableval=$enable_TPRO; ntp_ok=$enableval
29629 case "$ac_cv_header_sys_tpro_h" in
29645 $as_echo "#define CLOCK_TPRO 1" >>confdefs.h
29649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29650 $as_echo "$ntp_ok" >&6; }
29651 case "$ntp_ok$ac_cv_header_sys_tpro" in
29652 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29653 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29656 # Not on a vax-dec-bsd
29657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
29658 $as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
29659 # Check whether --enable-TRUETIME was given.
29660 if test "${enable_TRUETIME+set}" = set; then :
29661 enableval=$enable_TRUETIME; ntp_ok=$enableval
29680 $as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
29684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29685 $as_echo "$ntp_ok" >&6; }
29686 case "$ntp_ok$host" in
29687 yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29688 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
29692 $as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
29693 # Check whether --enable-TT560 was given.
29694 if test "${enable_TT560+set}" = set; then :
29695 enableval=$enable_TT560; ntp_ok=$enableval
29705 $as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
29709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29710 $as_echo "$ntp_ok" >&6; }
29712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
29713 $as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
29714 # Check whether --enable-ULINK was given.
29715 if test "${enable_ULINK+set}" = set; then :
29716 enableval=$enable_ULINK; ntp_ok=$enableval
29726 $as_echo "#define CLOCK_ULINK 1" >>confdefs.h
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29731 $as_echo "$ntp_ok" >&6; }
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
29734 $as_echo_n "checking Spectracom TSYNC PCI timing board... " >&6; }
29735 # Check whether --enable-TSYNCPCI was given.
29736 if test "${enable_TSYNCPCI+set}" = set; then :
29737 enableval=$enable_TSYNCPCI; ntp_ok=$enableval
29755 $as_echo "#define CLOCK_TSYNCPCI 1" >>confdefs.h
29759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29760 $as_echo "$ntp_ok" >&6; }
29762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
29763 $as_echo_n "checking WWV receiver... " >&6; }
29764 # Check whether --enable-WWV was given.
29765 if test "${enable_WWV+set}" = set; then :
29766 enableval=$enable_WWV; ntp_ok=$enableval
29769 case "$ntp_eac$ntp_canaudio" in
29781 $as_echo "#define CLOCK_WWV 1" >>confdefs.h
29785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29786 $as_echo "$ntp_ok" >&6; }
29787 case "$ntp_ok$ntp_canaudio" in
29788 yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29789 $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
29792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
29793 $as_echo_n "checking for Zyfer receiver... " >&6; }
29794 # Check whether --enable-ZYFER was given.
29795 if test "${enable_ZYFER+set}" = set; then :
29796 enableval=$enable_ZYFER; ntp_ok=$enableval
29806 $as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
29810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29811 $as_echo "$ntp_ok" >&6; }
29813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
29814 $as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
29815 # Check whether --enable-parse-clocks was given.
29816 if test "${enable_parse_clocks+set}" = set; then :
29817 enableval=$enable_parse_clocks; ntp_eapc=$enableval
29821 yes) ntp_eapc=$ntp_canparse ;;
29824 # Delete the next line one of these days
29830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
29831 $as_echo "$ntp_eapc" >&6; }
29833 case "$ntp_eac$ntp_eapc$ntp_canparse" in
29835 as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
29838 as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
29846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
29847 $as_echo_n "checking Diem Computime Radio Clock... " >&6; }
29848 # Check whether --enable-COMPUTIME was given.
29849 if test "${enable_COMPUTIME+set}" = set; then :
29850 enableval=$enable_COMPUTIME; ntp_ok=$enableval
29861 $as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
29865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29866 $as_echo "$ntp_ok" >&6; }
29867 case "$ntp_ok$ntp_canparse" in
29869 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
29873 $as_echo_n "checking ELV/DCF7000 clock... " >&6; }
29874 # Check whether --enable-DCF7000 was given.
29875 if test "${enable_DCF7000+set}" = set; then :
29876 enableval=$enable_DCF7000; ntp_ok=$enableval
29887 $as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
29891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29892 $as_echo "$ntp_ok" >&6; }
29893 case "$ntp_ok$ntp_canparse" in
29895 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
29899 $as_echo_n "checking HOPF 6021 clock... " >&6; }
29900 # Check whether --enable-HOPF6021 was given.
29901 if test "${enable_HOPF6021+set}" = set; then :
29902 enableval=$enable_HOPF6021; ntp_ok=$enableval
29913 $as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
29917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29918 $as_echo "$ntp_ok" >&6; }
29919 case "$ntp_ok$ntp_canparse" in
29921 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
29925 $as_echo_n "checking Meinberg clocks... " >&6; }
29926 # Check whether --enable-MEINBERG was given.
29927 if test "${enable_MEINBERG+set}" = set; then :
29928 enableval=$enable_MEINBERG; ntp_ok=$enableval
29939 $as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
29943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29944 $as_echo "$ntp_ok" >&6; }
29945 case "$ntp_ok$ntp_canparse" in
29947 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
29951 $as_echo_n "checking DCF77 raw time code... " >&6; }
29952 # Check whether --enable-RAWDCF was given.
29953 if test "${enable_RAWDCF+set}" = set; then :
29954 enableval=$enable_RAWDCF; ntp_ok=$enableval
29967 $as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
29971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29972 $as_echo "$ntp_ok" >&6; }
29973 case "$ntp_ok$ntp_canparse" in
29975 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
29978 case "$ntp_rawdcf" in
29980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
29981 $as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
29982 if ${ntp_cv_rawdcf_parity+:} false; then :
29983 $as_echo_n "(cached) " >&6
29992 ntp_cv_rawdcf_parity=$ans
29996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
29997 $as_echo "$ntp_cv_rawdcf_parity" >&6; }
29998 case "$ntp_cv_rawdcf_parity" in
30001 $as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
30006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
30007 $as_echo_n "checking RCC 8000 clock... " >&6; }
30008 # Check whether --enable-RCC8000 was given.
30009 if test "${enable_RCC8000+set}" = set; then :
30010 enableval=$enable_RCC8000; ntp_ok=$enableval
30021 $as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
30025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30026 $as_echo "$ntp_ok" >&6; }
30027 case "$ntp_ok$ntp_canparse" in
30029 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
30032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
30033 $as_echo_n "checking Schmid DCF77 clock... " >&6; }
30034 # Check whether --enable-SCHMID was given.
30035 if test "${enable_SCHMID+set}" = set; then :
30036 enableval=$enable_SCHMID; ntp_ok=$enableval
30047 $as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
30051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30052 $as_echo "$ntp_ok" >&6; }
30053 case "$ntp_ok$ntp_canparse" in
30055 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
30058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
30059 $as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
30060 # Check whether --enable-TRIMTAIP was given.
30061 if test "${enable_TRIMTAIP+set}" = set; then :
30062 enableval=$enable_TRIMTAIP; ntp_ok=$enableval
30073 $as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
30077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30078 $as_echo "$ntp_ok" >&6; }
30079 case "$ntp_ok$ntp_canparse" in
30081 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
30084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
30085 $as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
30086 # Check whether --enable-TRIMTSIP was given.
30087 if test "${enable_TRIMTSIP+set}" = set; then :
30088 enableval=$enable_TRIMTSIP; ntp_ok=$enableval
30099 $as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
30103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30104 $as_echo "$ntp_ok" >&6; }
30105 case "$ntp_ok$ntp_canparse" in
30107 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
30110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
30111 $as_echo_n "checking WHARTON 400A Series clock... " >&6; }
30112 # Check whether --enable-WHARTON was given.
30113 if test "${enable_WHARTON+set}" = set; then :
30114 enableval=$enable_WHARTON; ntp_ok=$enableval
30125 $as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
30129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30130 $as_echo "$ntp_ok" >&6; }
30131 case "$ntp_ok$ntp_canparse" in
30133 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
30137 $as_echo_n "checking VARITEXT clock... " >&6; }
30138 # Check whether --enable-VARITEXT was given.
30139 if test "${enable_VARITEXT+set}" = set; then :
30140 enableval=$enable_VARITEXT; ntp_ok=$enableval
30151 $as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h
30155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30156 $as_echo "$ntp_ok" >&6; }
30157 case "$ntp_ok$ntp_canparse" in
30159 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
30162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
30163 $as_echo_n "checking SEL240X clock... " >&6; }
30164 # Check whether --enable-SEL240X was given.
30165 if test "${enable_SEL240X+set}" = set; then :
30166 enableval=$enable_SEL240X; ntp_ok=$enableval
30171 if test "$ntp_ok" = "yes"; then
30175 $as_echo "#define CLOCK_SEL240X 1" >>confdefs.h
30178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30179 $as_echo "$ntp_ok" >&6; }
30180 case "$ntp_ok$ntp_canparse" in
30182 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
30191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
30192 $as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
30194 case "$ntp_libparse" in
30198 $as_echo "#define CLOCK_PARSE 1" >>confdefs.h
30200 LIBPARSE=../libparse/libparse.a
30201 MAKE_LIBPARSE=libparse.a
30202 # HMS: check_y2k trips the 34 year problem now...
30203 false && MAKE_CHECK_Y2K=check_y2k
30205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30206 $as_echo "$ans" >&6; }
30216 # Check whether --with-crypto was given.
30217 if test "${with_crypto+set}" = set; then :
30218 withval=$with_crypto;
30222 # Check whether --with-openssl-libdir was given.
30223 if test "${with_openssl_libdir+set}" = set; then :
30224 withval=$with_openssl_libdir;
30228 # Check whether --with-openssl-incdir was given.
30229 if test "${with_openssl_incdir+set}" = set; then :
30230 withval=$with_openssl_incdir;
30234 # Check whether --with-rpath was given.
30235 if test "${with_rpath+set}" = set; then :
30236 withval=$with_rpath;
30241 ntp_openssl_from_pkg_config=no
30243 with_crypto=${with_crypto:-openssl,libcrypto}
30244 case "$with_crypto" in
30246 with_crypto=openssl,libcrypto
30250 case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
30252 *:notempty:notgiven:notgiven)
30253 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
30254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
30255 $as_echo_n "checking pkg-config for $pkg... " >&6; }
30256 if $PKG_CONFIG --exists $pkg ; then
30257 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
30258 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
30259 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
30260 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
30261 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
30264 ntp_openssl_from_pkg_config=yes
30265 ntp_openssl_version="`$PKG_CONFIG --modversion $pkg`"
30266 case "$ntp_openssl_version" in
30268 *) ntp_openssl_version='(unknown)' ;;
30270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_openssl_version" >&5
30271 $as_echo "yes, version $ntp_openssl_version" >&6; }
30275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30276 $as_echo "no" >&6; }
30279 case "$with_crypto:$ntp_openssl" in
30284 case "${with_rpath-notgiven}" in
30286 # Lame - what to do if we need -Wl... but not -R?
30292 # This may really only be true for gcc
30293 need_dash_Wlrpath=1
30305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
30306 $as_echo_n "checking for openssl library directory... " >&6; }
30307 with_openssl_libdir=${with_openssl_libdir-notgiven}
30308 case "$with_openssl_libdir" in
30312 with_openssl_libdir=default
30315 with_openssl_libdir=no
30319 case "$with_openssl_libdir" in
30322 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
30323 with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
30324 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
30326 case "$with_openssl_libdir" in
30329 *) # Look for libcrypto.a and libssl.a:
30330 for i in $with_openssl_libdir no
30334 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
30337 test -f $i/libcrypto.so -a -f $i/libssl.so && break
30338 test -f $i/libcrypto.a -a -f $i/libssl.a && break
30345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
30346 $as_echo "$openssl_libdir" >&6; }
30347 case "$openssl_libdir" in
30350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
30351 $as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
30354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
30355 $as_echo_n "checking for openssl include directory... " >&6; }
30356 with_openssl_incdir=${with_openssl_incdir-notgiven}
30357 case "$with_openssl_incdir" in
30360 with_openssl_incdir="/usr/include /usr/sfw/include"
30361 with_openssl_incdir="$with_openssl_incdir /usr/local/include"
30362 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
30364 case "$with_openssl_incdir" in
30367 *) # look for openssl/evp.h:
30368 for i in $with_openssl_incdir no
30370 test -f $i/openssl/evp.h && break
30376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
30377 $as_echo "$openssl_incdir" >&6; }
30378 case "$openssl_incdir" in
30381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
30382 $as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
30384 if test -z "$openssl_libdir" -o -z "$openssl_incdir"
30391 case "$ntp_openssl" in
30393 # We have OpenSSL inc/lib dirs - use them.
30394 case "$openssl_incdir" in
30398 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
30401 case "$openssl_libdir" in
30405 LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
30406 case "$need_dash_r" in
30408 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
30410 case "$need_dash_Wlrpath" in
30412 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
30416 LDADD_NTP="$LDADD_NTP -lcrypto"
30420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
30421 $as_echo_n "checking if we will use crypto... " >&6; }
30422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
30423 $as_echo "$ntp_openssl" >&6; }
30425 case "$ntp_openssl" in
30427 for ac_header in openssl/cmac.h openssl/hmac.h
30429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30430 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30431 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30432 cat >>confdefs.h <<_ACEOF
30433 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30441 $as_echo "#define OPENSSL /**/" >>confdefs.h
30443 case "$VER_SUFFIX" in
30445 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
30450 NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
30451 CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
30452 NTPO_SAVED_LIBS="$LIBS"
30455 # check for linking with -lcrypto failure, and try -lcrypto -lz.
30456 # Helps m68k-atari-mint
30458 case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
30460 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
30461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
30462 $as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
30463 if ${ntp_cv_bare_lcrypto+:} false; then :
30464 $as_echo_n "(cached) " >&6
30466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30467 /* end confdefs.h. */
30469 #include "openssl/err.h"
30470 #include "openssl/evp.h"
30476 ERR_load_crypto_strings();
30477 OpenSSL_add_all_algorithms();
30484 if ac_fn_c_try_link "$LINENO"; then :
30485 ntp_cv_bare_lcrypto=yes
30487 ntp_cv_bare_lcrypto=no
30490 rm -f core conftest.err conftest.$ac_objext \
30491 conftest$ac_exeext conftest.$ac_ext
30494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
30495 $as_echo "$ntp_cv_bare_lcrypto" >&6; }
30496 case "$ntp_cv_bare_lcrypto" in
30498 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
30499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
30500 $as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
30501 if ${ntp_cv_lcrypto_lz+:} false; then :
30502 $as_echo_n "(cached) " >&6
30504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30505 /* end confdefs.h. */
30507 #include "openssl/err.h"
30508 #include "openssl/evp.h"
30514 ERR_load_crypto_strings();
30515 OpenSSL_add_all_algorithms();
30522 if ac_fn_c_try_link "$LINENO"; then :
30523 ntp_cv_lcrypto_lz=yes
30525 ntp_cv_lcrypto_lz=no
30528 rm -f core conftest.err conftest.$ac_objext \
30529 conftest$ac_exeext conftest.$ac_ext
30532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
30533 $as_echo "$ntp_cv_lcrypto_lz" >&6; }
30534 case "$ntp_cv_lcrypto_lz" in
30536 LDADD_NTP="$LDADD_NTP -lz"
30542 # Older OpenSSL headers have a number of callback prototypes inside
30543 # other function prototypes which trigger copious warnings with gcc's
30544 # -Wstrict-prototypes, which is included in -Wall.
30548 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
30549 # int (*cb)(), int sgckey);
30554 openssl_triggers_warnings=unknown
30555 NTPO_SAVED_CFLAGS="$CFLAGS"
30557 case "$ntp_openssl:$GCC" in
30559 CFLAGS="$CFLAGS -Werror"
30560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30561 /* end confdefs.h. */
30568 /* see if -Werror breaks gcc */
30575 if ac_fn_c_try_compile "$LINENO"; then :
30576 gcc_handles_Werror=yes
30578 gcc_handles_Werror=no
30581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30582 case "$gcc_handles_Werror" in
30584 # if this gcc doesn't do -Werror go ahead and use
30585 # -Wstrict-prototypes.
30586 openssl_triggers_warnings=yes
30589 CFLAGS="$CFLAGS -Wstrict-prototypes"
30590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30591 /* end confdefs.h. */
30593 #include "openssl/asn1_mac.h"
30594 #include "openssl/bn.h"
30595 #include "openssl/err.h"
30596 #include "openssl/evp.h"
30597 #include "openssl/pem.h"
30598 #include "openssl/rand.h"
30599 #include "openssl/x509v3.h"
30612 if ac_fn_c_try_compile "$LINENO"; then :
30613 openssl_triggers_warnings=no
30615 openssl_triggers_warnings=yes
30618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30620 case "$openssl_triggers_warnings" in
30622 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
30625 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
30629 # gcc without OpenSSL
30630 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
30633 # Because we don't want -Werror for the EVP_MD_do_all_sorted check
30634 CFLAGS="$NTPO_SAVED_CFLAGS"
30636 case "$ntp_openssl" in
30638 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
30639 for ac_func in EVP_MD_do_all_sorted
30641 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
30642 if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
30643 cat >>confdefs.h <<_ACEOF
30644 #define HAVE_EVP_MD_DO_ALL_SORTED 1
30654 CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
30655 LIBS="$NTPO_SAVED_LIBS"
30656 { NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
30657 { NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
30658 { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
30659 { openssl_triggers_warnings=; unset openssl_triggers_warnings;}
30660 { ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
30663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable CMAC support" >&5
30664 $as_echo_n "checking if we want to enable CMAC support... " >&6; }
30665 case "$ac_cv_header_openssl_cmac_h" in
30668 $as_echo "#define ENABLE_CMAC 1" >>confdefs.h
30675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30676 $as_echo "$ans" >&6; }
30681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
30682 $as_echo_n "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
30683 # Check whether --enable-openssl-random was given.
30684 if test "${enable_openssl_random+set}" = set; then :
30685 enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
30687 ntp_use_openssl_random=yes
30691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
30692 $as_echo "$ntp_use_openssl_random" >&6; }
30694 # The following might need extra libraries
30695 NTPO_SAVED_LIBS="$LIBS"
30696 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
30697 for ac_func in RAND_bytes RAND_poll
30699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30700 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30701 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30702 cat >>confdefs.h <<_ACEOF
30703 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30709 LIBS="$NTPO_SAVED_LIBS"
30710 case "$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
30713 $as_echo "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h
30716 *) ntp_use_openssl_random=no ;;
30721 # if we are using OpenSSL (--with-crypto), by default Autokey is enabled
30722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
30723 $as_echo_n "checking if we want to include NTP Autokey protocol support... " >&6; }
30724 # Check whether --enable-autokey was given.
30725 if test "${enable_autokey+set}" = set; then :
30726 enableval=$enable_autokey; ntp_autokey=$enableval
30728 ntp_autokey=$ntp_openssl
30732 case "$ntp_autokey" in
30736 case "$ntp_openssl" in
30738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
30739 $as_echo "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
30744 $as_echo "#define AUTOKEY 1" >>confdefs.h
30751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
30752 $as_echo "$ntp_autokey" >&6; }
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
30756 $as_echo_n "checking if we want to run check-layout... " >&6; }
30757 case "$cross_compiling$PATH_PERL" in
30759 MAKE_CHECK_LAYOUT=check-layout
30766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30767 $as_echo "$ans" >&6; }
30771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
30772 $as_echo_n "checking if we can make dcf parse utilities... " >&6; }
30774 case "$ntp_parseutil" in
30777 *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
30784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30785 $as_echo "$ans" >&6; }
30788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
30789 $as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
30791 case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
30795 case "$ntp_cv_var_kernel_pll" in
30798 $as_echo "#define PPS_SYNC 1" >>confdefs.h
30803 MAKE_PARSEKMODULE=parsestreams.loadable_module.o
30807 MAKE_PARSEKMODULE=parse
30808 for ac_header in strings.h
30810 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
30811 if test "x$ac_cv_header_strings_h" = xyes; then :
30812 cat >>confdefs.h <<_ACEOF
30813 #define HAVE_STRINGS_H 1
30824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30825 $as_echo "$ans" >&6; }
30827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
30828 $as_echo_n "checking if we need basic refclock support... " >&6; }
30829 case "$ntp_refclock" in
30832 $as_echo "#define REFCLOCK 1" >>confdefs.h
30836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
30837 $as_echo "$ntp_refclock" >&6; }
30839 PROPDELAY=propdelay
30843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
30844 $as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
30854 MAKE_ADJTIMED=adjtimed
30856 $as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
30865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30866 $as_echo "$ans" >&6; }
30868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
30869 $as_echo_n "checking if we want QNX adjtime support... " >&6; }
30880 $as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
30884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30885 $as_echo "$ans" >&6; }
30887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
30888 $as_echo_n "checking if we can read kmem... " >&6; }
30890 # the default is to enable it if the system has the capability
30892 case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
30901 *-*-domainos) # Won't be found...
30921 # --enable-kmem / --disable-kmem controls if present
30922 # Check whether --enable-kmem was given.
30923 if test "${enable_kmem+set}" = set; then :
30924 enableval=$enable_kmem; ans=$enableval
30929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30930 $as_echo "$ans" >&6; }
30939 $as_echo "#define NOKMEM 1" >>confdefs.h
30944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
30945 $as_echo_n "checking if adjtime is accurate... " >&6; }
30947 # target-dependent defaults
30953 i386-unknown-osf1*)
30956 mips-sgi-irix[456]*)
30963 # XXX only verified thru AIX6.
30982 # --enable-accurate-adjtime / --disable-accurate-adjtime
30983 # override the default
30984 # Check whether --enable-accurate-adjtime was given.
30985 if test "${enable_accurate_adjtime+set}" = set; then :
30986 enableval=$enable_accurate_adjtime; ans=$enableval
30991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
30992 $as_echo "$ans" >&6; }
30997 $as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
30999 adjtime_is_accurate=yes
31002 adjtime_is_accurate=no
31006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
31007 $as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
31008 if ${ntp_cv_nlist_tick+:} false; then :
31009 $as_echo_n "(cached) " >&6
31014 m68*-hp-hpux*) # HP9000/300?
31024 # XXX only verified thru AIX6.
31043 ntp_cv_nlist_tick=$ans
31047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
31048 $as_echo "$ntp_cv_nlist_tick" >&6; }
31049 case "$ntp_cv_nlist_tick" in
31051 ;; # HMS: I think we can only get 'no' here...
31054 cat >>confdefs.h <<_ACEOF
31055 #define K_TICK_NAME "$ntp_cv_nlist_tick"
31060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
31061 $as_echo_n "checking for the units of 'tick'... " >&6; }
31062 if ${ntp_cv_tick_nano+:} false; then :
31063 $as_echo_n "(cached) " >&6
31072 ntp_cv_tick_nano=$ans
31076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
31077 $as_echo "$ntp_cv_tick_nano" >&6; }
31078 case "$ntp_cv_tick_nano" in
31081 $as_echo "#define TICK_NANO 1" >>confdefs.h
31085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
31086 $as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
31087 if ${ntp_cv_nlist_tickadj+:} false; then :
31088 $as_echo_n "(cached) " >&6
31093 m68*-hp-hpux*) # HP9000/300?
31124 ans=no # hrestime_adj
31130 ntp_cv_nlist_tickadj=$ans
31134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
31135 $as_echo "$ntp_cv_nlist_tickadj" >&6; }
31136 case "$ntp_cv_nlist_tickadj" in
31138 ;; # HMS: I think we can only get 'no' here...
31141 cat >>confdefs.h <<_ACEOF
31142 #define K_TICKADJ_NAME "$ntp_cv_nlist_tickadj"
31147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
31148 $as_echo_n "checking for the units of 'tickadj'... " >&6; }
31149 if ${ntp_cv_tickadj_nano+:} false; then :
31150 $as_echo_n "(cached) " >&6
31159 ntp_cv_tickadj_nano=$ans
31163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
31164 $as_echo "$ntp_cv_tickadj_nano" >&6; }
31165 case "$ntp_cv_tickadj_nano" in
31168 $as_echo "#define TICKADJ_NANO 1" >>confdefs.h
31172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
31173 $as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
31174 if ${ntp_cv_nlist_dosynctodr+:} false; then :
31175 $as_echo_n "(cached) " >&6
31219 ntp_cv_nlist_dosynctodr=$ans
31223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
31224 $as_echo "$ntp_cv_nlist_dosynctodr" >&6; }
31225 case "$ntp_cv_nlist_dosynctodr" in
31230 cat >>confdefs.h <<_ACEOF
31231 #define K_DOSYNCTODR_NAME "$ntp_cv_nlist_dosynctodr"
31237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
31238 $as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
31239 if ${ntp_cv_nlist_noprintf+:} false; then :
31240 $as_echo_n "(cached) " >&6
31278 ntp_cv_nlist_noprintf=$ans
31282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
31283 $as_echo "$ntp_cv_nlist_noprintf" >&6; }
31284 case "$ntp_cv_nlist_noprintf" in
31289 cat >>confdefs.h <<_ACEOF
31290 #define K_NOPRINTF_NAME "$ntp_cv_nlist_noprintf"
31299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
31300 $as_echo_n "checking for a default value for 'tick'... " >&6; }
31302 # target-dependent default for tick
31306 as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
31331 # Check whether --enable-tick was given.
31332 if test "${enable_tick+set}" = set; then :
31333 enableval=$enable_tick; ans=$enableval
31338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31339 $as_echo "$ans" >&6; }
31343 ;; # HMS: I think we can only get 'no' here...
31346 cat >>confdefs.h <<_ACEOF
31347 #define PRESET_TICK $ans
31352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
31353 $as_echo_n "checking for a default value for 'tickadj'... " >&6; }
31355 # target-specific default
31359 case "$adjtime_is_accurate" in
31368 case "$can_kmem" in
31374 *-*-domainos) # Skippy: won't be found...
31375 case "$can_kmem" in
31382 case "$adjtime_is_accurate" in
31405 # Check whether --enable-tickadj was given.
31406 if test "${enable_tickadj+set}" = set; then :
31407 enableval=$enable_tickadj; ans=$enableval
31412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31413 $as_echo "$ans" >&6; }
31415 default_tickadj=$ans
31417 case "$default_tickadj" in
31419 ;; # HMS: I think we can only get 'no' here...
31422 cat >>confdefs.h <<_ACEOF
31423 #define PRESET_TICKADJ $default_tickadj
31428 # Newer versions of ReliantUNIX round adjtime() values down to
31429 # 1/100s (system tick). Sigh ...
31430 # Unfortunately, there is no easy way to know if particular release
31431 # has this "feature" or any obvious way to test for it.
31435 $as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
31442 $as_echo "#define SCO5_CLOCK 1" >>confdefs.h
31446 ntp_cv_make_tickadj=yes
31447 case "$can_kmem$ac_cv_var_tick$default_tickadj" in
31448 nonono) # Don't read KMEM, no presets. Bogus.
31449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5
31450 $as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;}
31451 ntp_cv_make_tickadj=no
31453 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
31454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5
31455 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;}
31456 ntp_cv_make_tickadj=no
31458 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus.
31459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5
31460 $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;}
31461 ntp_cv_make_tickadj=no
31463 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool.
31465 yesnono) # Read KMEM, no presets. Cool.
31467 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
31468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5
31469 $as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;}
31471 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool.
31473 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
31475 *) # Generally bogus.
31476 as_fn_error $? "This shouldn't happen." "$LINENO" 5
31481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
31482 $as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
31483 if ${ac_cv_make_ntptime+:} false; then :
31484 $as_echo_n "(cached) " >&6
31487 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
31497 ac_cv_make_ntptime=$ans
31499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
31500 $as_echo "$ac_cv_make_ntptime" >&6; }
31501 case "$ac_cv_make_ntptime" in
31503 MAKE_NTPTIME=ntptime
31516 # tickadj is pretty useless on newer versions of ReliantUNIX
31518 ntp_cv_make_tickadj=no
31521 ntp_cv_make_tickadj=no
31524 # DLM says tickadj is a no-no starting with solaris2.5
31526 *-*-solaris2.1[0-9]*)
31527 ntp_cv_make_tickadj=no
31529 *-*-solaris2.[0-4]*) ;;
31530 *) ntp_cv_make_tickadj=no ;;
31534 ntp_cv_make_tickadj=no
31539 # Despite all the above, we always make tickadj. Setting
31540 # ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
31541 # report that the configuration variable was cached. It may
31542 # be better to simply remove the hunk above, I did not want
31543 # to remove it if there is hope it will be used again.
31545 { ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}
31547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
31548 $as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
31549 if ${ntp_cv_make_tickadj+:} false; then :
31550 $as_echo_n "(cached) " >&6
31552 ntp_cv_make_tickadj=yes
31555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
31556 $as_echo "$ntp_cv_make_tickadj" >&6; }
31557 case "$ntp_cv_make_tickadj" in
31559 MAKE_TICKADJ=tickadj
31574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
31575 $as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
31576 if ${ntp_cv_make_timetrim+:} false; then :
31577 $as_echo_n "(cached) " >&6
31582 ntp_cv_make_timetrim=yes
31585 ntp_cv_make_timetrim=yes
31588 ntp_cv_make_timetrim=no
31594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
31595 $as_echo "$ntp_cv_make_timetrim" >&6; }
31596 case "$ntp_cv_make_timetrim" in
31598 MAKE_TIMETRIM=timetrim
31610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
31611 $as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
31612 # Check whether --enable-simulator was given.
31613 if test "${enable_simulator+set}" = set; then :
31614 enableval=$enable_simulator; ans=$enableval
31620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31621 $as_echo "$ans" >&6; }
31624 MAKE_NTPDSIM=ntpdsim
31625 MAKE_LIBNTPSIM=libntpsim.a
31640 LDFLAGS="$LDFLAGS -r"
31648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
31649 $as_echo_n "checking if sntp will be built... " >&6; }
31651 # Check whether --with-sntp was given.
31652 if test "${with_sntp+set}" = set; then :
31653 withval=$with_sntp;
31655 with_sntp="${withsntp=yes}"
31659 case "$with_sntp" in
31668 if test -n "$SNTP"; then
31670 BUILD_SNTP_FALSE='#'
31672 BUILD_SNTP_TRUE='#'
31676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
31677 $as_echo "$with_sntp" >&6; }
31681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
31682 $as_echo_n "checking if we want to build ntpsnmpd... " >&6; }
31684 # Check whether --with-ntpsnmpd was given.
31685 if test "${with_ntpsnmpd+set}" = set; then :
31686 withval=$with_ntpsnmpd; ans=$withval
31689 case "$PATH_NET_SNMP_CONFIG" in
31697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31698 $as_echo "$ans" >&6; }
31701 case "$PATH_NET_SNMP_CONFIG" in
31703 SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`
31704 # Bug 2815. This is a bit of a hack, but it works...
31705 case "$ntp_cv_net_snmp_version" in
31706 5.3*) SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'`
31710 # HMS: we really want to separate CPPFLAGS and CFLAGS
31711 foo=`$PATH_NET_SNMP_CONFIG --cflags`
31717 SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
31719 *) SNMP_CFLAGS="$SNMP_CFLAGS $i"
31726 save_CFLAGS=$CFLAGS
31727 save_CPPFLAGS=$CPPFLAGS
31729 CFLAGS=$SNMP_CFLAGS
31730 CPPFLAGS=$SNMP_CPPFLAGS
31732 ac_fn_c_check_header_mongrel "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default"
31733 if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
31734 MAKE_NTPSNMPD=ntpsnmpd
31736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
31737 $as_echo "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
31743 # Do this last, as we're messing up LIBS.
31744 # check -lnetsnmp for netsnmp_daemonize
31745 LIBS=`$PATH_NET_SNMP_CONFIG --libs`
31746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
31747 $as_echo_n "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
31748 if ${ac_cv_lib_netsnmp_netsnmp_daemonize+:} false; then :
31749 $as_echo_n "(cached) " >&6
31751 ac_check_lib_save_LIBS=$LIBS
31752 LIBS="-lnetsnmp $LIBS"
31753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31754 /* end confdefs.h. */
31756 /* Override any GCC internal prototype to avoid an error.
31757 Use char because int might match the return type of a GCC
31758 builtin and then its argument prototype would still apply. */
31762 char netsnmp_daemonize ();
31766 return netsnmp_daemonize ();
31771 if ac_fn_c_try_link "$LINENO"; then :
31772 ac_cv_lib_netsnmp_netsnmp_daemonize=yes
31774 ac_cv_lib_netsnmp_netsnmp_daemonize=no
31776 rm -f core conftest.err conftest.$ac_objext \
31777 conftest$ac_exeext conftest.$ac_ext
31778 LIBS=$ac_check_lib_save_LIBS
31780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
31781 $as_echo "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
31782 if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes; then :
31792 $as_echo "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
31796 CFLAGS=$save_CFLAGS
31797 { save_CFLAGS=; unset save_CFLAGS;}
31798 CPPFLAGS=$save_CPPFLAGS
31799 { save_CPPFLAGS=; unset save_CPPFLAGS;}
31801 { save_LIBS=; unset save_LIBS;}
31804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
31805 $as_echo "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
31812 case "$MAKE_NTPSNMPD" in
31821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
31822 $as_echo_n "checking if we should always slew the time... " >&6; }
31824 # target-specific defaults
31836 *-*-openvms*) # HMS: won't be found
31843 # --enable-slew-always / --disable-slew-always overrides default
31845 # Check whether --enable-slew-always was given.
31846 if test "${enable_slew_always+set}" = set; then :
31847 enableval=$enable_slew_always; ans=$enableval
31852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31853 $as_echo "$ans" >&6; }
31858 $as_echo "#define SLEWALWAYS 1" >>confdefs.h
31862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
31863 $as_echo_n "checking if we should step and slew the time... " >&6; }
31878 *-*-solaris2.1[0-9]*)
31881 *-*-solaris2.[012]*)
31884 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP?
31891 # Check whether --enable-step-slew was given.
31892 if test "${enable_step_slew+set}" = set; then :
31893 enableval=$enable_step_slew; ans=$enableval
31898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31899 $as_echo "$ans" >&6; }
31904 $as_echo "#define STEP_SLEW 1" >>confdefs.h
31908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
31909 $as_echo_n "checking if ntpdate should step the time... " >&6; }
31919 # Check whether --enable-ntpdate-step was given.
31920 if test "${enable_ntpdate_step+set}" = set; then :
31921 enableval=$enable_ntpdate_step; ans=$enableval
31926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31927 $as_echo "$ans" >&6; }
31932 $as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
31937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
31938 $as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
31944 *-*-openvms*) # HMS: won't be found
31952 # Check whether --enable-hourly-todr-sync was given.
31953 if test "${enable_hourly_todr_sync+set}" = set; then :
31954 enableval=$enable_hourly_todr_sync; ans=$enableval
31959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31960 $as_echo "$ans" >&6; }
31962 case "$ac_cv_var_sync_todr" in
31965 $as_echo "#define DOSYNCTODR 1" >>confdefs.h
31970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
31971 $as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
31982 if test "$2" -ge 17
31984 # Generic_105181-17 and higher
32003 if test "$2" -ge 07
32005 # Generic_106541-07 and higher
32021 # Check whether --enable-kernel-fll-bug was given.
32022 if test "${enable_kernel_fll_bug+set}" = set; then :
32023 enableval=$enable_kernel_fll_bug; ans=$enableval
32028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32029 $as_echo "$ans" >&6; }
32034 $as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
32039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
32040 $as_echo_n "checking if we want new session key behavior... " >&6; }
32041 # Check whether --enable-bug1243-fix was given.
32042 if test "${enable_bug1243_fix+set}" = set; then :
32043 enableval=$enable_bug1243_fix; ans=$enableval
32049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32050 $as_echo "$ans" >&6; }
32054 $as_echo "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
32059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the explicit 127.0.0.0/8 martian filter" >&5
32060 $as_echo_n "checking if we want the explicit 127.0.0.0/8 martian filter... " >&6; }
32061 # Check whether --enable-bug3020-fix was given.
32062 if test "${enable_bug3020_fix+set}" = set; then :
32063 enableval=$enable_bug3020_fix; ans=$enableval
32069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32070 $as_echo "$ans" >&6; }
32074 $as_echo "#define ENABLE_BUG3020_FIX 1" >>confdefs.h
32079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want correct mode7 fudgetime2 behavior" >&5
32080 $as_echo_n "checking if we want correct mode7 fudgetime2 behavior... " >&6; }
32081 # Check whether --enable-bug3527-fix was given.
32082 if test "${enable_bug3527_fix+set}" = set; then :
32083 enableval=$enable_bug3527_fix; ans=$enableval
32089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32090 $as_echo "$ans" >&6; }
32094 $as_echo "#define DISABLE_BUG3527_FIX 1" >>confdefs.h
32099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
32100 $as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
32106 *-*-solaris2.1[0-9]*)
32113 # Check whether --enable-irig-sawtooth was given.
32114 if test "${enable_irig_sawtooth+set}" = set; then :
32115 enableval=$enable_irig_sawtooth; ans=$enableval
32120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32121 $as_echo "$ans" >&6; }
32126 $as_echo "#define IRIG_SUCKS 1" >>confdefs.h
32130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
32131 $as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
32132 # Check whether --enable-nist was given.
32133 if test "${enable_nist+set}" = set; then :
32134 enableval=$enable_nist; ans=$enableval
32141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32142 $as_echo "$ans" >&6; }
32147 $as_echo "#define LOCKCLOCK 1" >>confdefs.h
32151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
32152 $as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
32153 # Check whether --enable-ntp-signd was given.
32154 if test "${enable_ntp_signd+set}" = set; then :
32155 enableval=$enable_ntp_signd; ans=$enableval
32162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32163 $as_echo "$ans" >&6; }
32170 ntp_signd_path=/var/run/ntp_signd
32173 ntp_signd_path="$ans"
32176 case "$ntp_signd_path" in
32181 $as_echo "#define HAVE_NTP_SIGND 1" >>confdefs.h
32184 cat >>confdefs.h <<_ACEOF
32185 #define NTP_SIGND_PATH "$ntp_signd_path"
32191 for ac_header in libscf.h
32193 ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
32194 if test "x$ac_cv_header_libscf_h" = xyes; then :
32195 cat >>confdefs.h <<_ACEOF
32196 #define HAVE_LIBSCF_H 1
32204 case "$ac_cv_header_libscf_h" in
32212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
32213 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
32214 if ${ntp_cv_sockaddr_storage+:} false; then :
32215 $as_echo_n "(cached) " >&6
32217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32218 /* end confdefs.h. */
32220 #ifdef HAVE_SYS_TYPES_H
32221 # include <sys/types.h>
32223 #ifdef HAVE_SYS_SOCKET_H
32224 # include <sys/socket.h>
32226 #ifdef HAVE_NETINET_IN_H
32227 # include <netinet/in.h>
32234 struct sockaddr_storage n;
32241 if ac_fn_c_try_compile "$LINENO"; then :
32242 ntp_cv_sockaddr_storage=yes
32244 ntp_cv_sockaddr_storage=no
32247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
32251 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
32252 case "$ntp_cv_sockaddr_storage" in
32255 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
32257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
32258 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
32259 if ${ntp_cv_have___ss_family+:} false; then :
32260 $as_echo_n "(cached) " >&6
32262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32263 /* end confdefs.h. */
32265 #ifdef HAVE_SYS_TYPES_H
32266 # include <sys/types.h>
32268 #ifdef HAVE_SYS_SOCKET_H
32269 # include <sys/socket.h>
32271 #ifdef HAVE_NETINET_IN_H
32272 # include <netinet/in.h>
32279 struct sockaddr_storage s;
32287 if ac_fn_c_try_compile "$LINENO"; then :
32288 ntp_cv_have___ss_family=yes
32290 ntp_cv_have___ss_family=no
32293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
32297 $as_echo "$ntp_cv_have___ss_family" >&6; }
32298 case "$ntp_cv_have___ss_family" in
32301 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
32309 # Look for in_port_t.
32311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
32312 $as_echo_n "checking for in_port_t... " >&6; }
32313 if ${isc_cv_have_in_port_t+:} false; then :
32314 $as_echo_n "(cached) " >&6
32316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32317 /* end confdefs.h. */
32319 #include <sys/types.h>
32320 #include <netinet/in.h>
32326 in_port_t port = 25;
32334 if ac_fn_c_try_compile "$LINENO"; then :
32335 isc_cv_have_in_port_t=yes
32337 isc_cv_have_in_port_t=no
32340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
32344 $as_echo "$isc_cv_have_in_port_t" >&6; }
32345 case "$isc_cv_have_in_port_t" in
32348 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
32352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
32353 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
32354 if ${ntp_cv_getsockname_socklen_type+:} false; then :
32355 $as_echo_n "(cached) " >&6
32358 getsockname_socklen_type_found=no
32359 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
32360 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
32361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32362 /* end confdefs.h. */
32364 #ifdef HAVE_SYS_TYPES_H
32365 # include <sys/types.h>
32367 #ifdef HAVE_SYS_SOCKET_H
32368 # include <sys/socket.h>
32376 getsockname(int, $getsockname_arg2,
32377 $ntp_cv_getsockname_socklen_type *);
32384 if ac_fn_c_try_compile "$LINENO"; then :
32385 getsockname_socklen_type_found=yes ; break 2
32387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32390 case "$getsockname_socklen_type_found" in
32392 ntp_cv_getsockname_socklen_type='socklen_t'
32394 { getsockname_arg2=; unset getsockname_arg2;}
32395 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
32399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
32400 $as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
32402 cat >>confdefs.h <<_ACEOF
32403 #define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
32407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
32408 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
32409 if ${isc_cv_platform_havesalen+:} false; then :
32410 $as_echo_n "(cached) " >&6
32412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32413 /* end confdefs.h. */
32415 #include <sys/types.h>
32416 #include <sys/socket.h>
32422 extern struct sockaddr *ps;
32430 if ac_fn_c_try_compile "$LINENO"; then :
32431 isc_cv_platform_havesalen=yes
32433 isc_cv_platform_havesalen=no
32436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
32440 $as_echo "$isc_cv_platform_havesalen" >&6; }
32441 case "$isc_cv_platform_havesalen" in
32444 $as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
32448 # Check whether --enable-ipv6 was given.
32449 if test "${enable_ipv6+set}" = set; then :
32450 enableval=$enable_ipv6;
32454 case "$enable_ipv6" in
32461 $as_echo "#define WANT_IPV6 1" >>confdefs.h
32474 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
32479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
32480 $as_echo_n "checking for IPv6 structures... " >&6; }
32481 if ${isc_cv_found_ipv6+:} false; then :
32482 $as_echo_n "(cached) " >&6
32484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32485 /* end confdefs.h. */
32487 #include <sys/types.h>
32488 #include <sys/socket.h>
32489 #include <netinet/in.h>
32495 struct sockaddr_in6 sin6;
32502 if ac_fn_c_try_compile "$LINENO"; then :
32503 isc_cv_found_ipv6=yes
32505 isc_cv_found_ipv6=no
32508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
32512 $as_echo "$isc_cv_found_ipv6" >&6; }
32515 # See whether IPv6 support is provided via a Kame add-on.
32516 # This is done before other IPv6 linking tests so LIBS is properly set.
32518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
32519 $as_echo_n "checking for Kame IPv6 support... " >&6; }
32521 # Check whether --with-kame was given.
32522 if test "${with_kame+set}" = set; then :
32523 withval=$with_kame; use_kame="$withval"
32529 case "$use_kame" in
32533 kame_path=/usr/local/v6
32536 kame_path="$use_kame"
32539 case "$use_kame" in
32541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32542 $as_echo "no" >&6; }
32545 if test -f $kame_path/lib/libinet6.a; then
32546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
32547 $as_echo "$kame_path/lib/libinet6.a" >&6; }
32548 LIBS="-L$kame_path/lib -linet6 $LIBS"
32550 as_fn_error $? "$kame_path/lib/libinet6.a not found.
32552 Please choose the proper path with the following command:
32554 configure --with-kame=PATH
32561 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
32562 # Including it on Kame-using platforms is very bad, though, because
32563 # Kame uses #error against direct inclusion. So include it on only
32564 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
32565 # This is done before the in6_pktinfo check because that's what
32566 # netinet6/in6.h is needed for.
32571 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
32573 isc_netinet6in6_hack="#include <netinet6/in6.h>"
32576 isc_netinet6in6_hack=""
32581 # This is similar to the netinet6/in6.h issue.
32584 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
32586 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
32588 isc_netinetin6_hack="#include <netinet/in6.h>"
32591 isc_netinetin6_hack=""
32596 case "$isc_cv_found_ipv6" in
32599 $as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
32601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
32602 $as_echo_n "checking for in6_pktinfo... " >&6; }
32603 if ${isc_cv_have_in6_pktinfo+:} false; then :
32604 $as_echo_n "(cached) " >&6
32606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32607 /* end confdefs.h. */
32609 #include <sys/types.h>
32610 #include <sys/socket.h>
32611 #include <netinet/in.h>
32612 $isc_netinetin6_hack
32613 $isc_netinet6in6_hack
32619 struct in6_pktinfo xyzzy;
32626 if ac_fn_c_try_compile "$LINENO"; then :
32627 isc_cv_have_in6_pktinfo=yes
32629 isc_cv_have_in6_pktinfo=no
32632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
32636 $as_echo "$isc_cv_have_in6_pktinfo" >&6; }
32637 case "$isc_cv_have_in6_pktinfo" in
32640 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
32645 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
32646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
32647 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
32648 if ${isc_cv_have_sin6_scope_id+:} false; then :
32649 $as_echo_n "(cached) " >&6
32651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32652 /* end confdefs.h. */
32654 #include <sys/types.h>
32655 #include <sys/socket.h>
32656 #include <netinet/in.h>
32657 $isc_netinetin6_hack
32658 $isc_netinet6in6_hack
32664 struct sockaddr_in6 xyzzy;
32665 xyzzy.sin6_scope_id = 0;
32672 if ac_fn_c_try_compile "$LINENO"; then :
32673 isc_cv_have_sin6_scope_id=yes
32675 isc_cv_have_sin6_scope_id=no
32678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
32682 $as_echo "$isc_cv_have_sin6_scope_id" >&6; }
32684 case "$isc_cv_have_sin6_scope_id" in
32687 $as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
32693 # We need this check run even without isc_cv_found_ipv6=yes
32695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
32696 $as_echo_n "checking for in6addr_any... " >&6; }
32697 if ${isc_cv_in6addr_any_links+:} false; then :
32698 $as_echo_n "(cached) " >&6
32702 LIBS="$LDADD_LIBNTP $LIBS"
32703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32704 /* end confdefs.h. */
32705 $ac_includes_default
32706 #include <sys/socket.h>
32707 #include <netinet/in.h>
32708 $isc_netinetin6_hack
32709 $isc_netinet6in6_hack
32715 printf("%x", in6addr_any.s6_addr[15]);
32722 if ac_fn_c_try_link "$LINENO"; then :
32723 isc_cv_in6addr_any_links=yes
32725 isc_cv_in6addr_any_links=no
32728 rm -f core conftest.err conftest.$ac_objext \
32729 conftest$ac_exeext conftest.$ac_ext
32731 { SAVED_LIBS=; unset SAVED_LIBS;}
32735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
32736 $as_echo "$isc_cv_in6addr_any_links" >&6; }
32738 case "$isc_cv_in6addr_any_links" in
32741 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
32746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
32747 $as_echo_n "checking for struct if_laddrconf... " >&6; }
32748 if ${isc_cv_struct_if_laddrconf+:} false; then :
32749 $as_echo_n "(cached) " >&6
32751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32752 /* end confdefs.h. */
32754 #include <sys/types.h>
32755 #include <net/if6.h>
32761 struct if_laddrconf a;
32768 if ac_fn_c_try_compile "$LINENO"; then :
32769 isc_cv_struct_if_laddrconf=yes
32771 isc_cv_struct_if_laddrconf=no
32774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
32778 $as_echo "$isc_cv_struct_if_laddrconf" >&6; }
32780 case "$isc_cv_struct_if_laddrconf" in
32783 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
32787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
32788 $as_echo_n "checking for struct if_laddrreq... " >&6; }
32789 if ${isc_cv_struct_if_laddrreq+:} false; then :
32790 $as_echo_n "(cached) " >&6
32792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32793 /* end confdefs.h. */
32795 #include <sys/types.h>
32796 #include <net/if6.h>
32802 struct if_laddrreq a;
32809 if ac_fn_c_try_compile "$LINENO"; then :
32810 isc_cv_struct_if_laddrreq=yes
32812 isc_cv_struct_if_laddrreq=no
32815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
32819 $as_echo "$isc_cv_struct_if_laddrreq" >&6; }
32821 case "$isc_cv_struct_if_laddrreq" in
32824 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
32828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
32829 $as_echo_n "checking for multicast IP support... " >&6; }
32830 if ${ntp_cv_multicast+:} false; then :
32831 $as_echo_n "(cached) " >&6
32834 ntp_cv_multicast=no
32836 i386-sequent-sysv4)
32839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32840 /* end confdefs.h. */
32842 #ifdef HAVE_NETINET_IN_H
32843 # include <netinet/in.h>
32850 struct ip_mreq ipmr;
32851 ipmr.imr_interface.s_addr = 0;
32858 if ac_fn_c_try_compile "$LINENO"; then :
32859 ntp_cv_multicast=yes
32861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
32868 $as_echo "$ntp_cv_multicast" >&6; }
32869 case "$ntp_cv_multicast" in
32872 $as_echo "#define MCAST 1" >>confdefs.h
32874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
32875 $as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
32876 if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
32877 $as_echo_n "(cached) " >&6
32881 *-*-netbsd*|*-*-*linux*)
32882 ntp_cv_typeof_ip_multicast_loop=u_int
32885 ntp_cv_typeof_ip_multicast_loop=u_char
32891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
32892 $as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
32894 cat >>confdefs.h <<_ACEOF
32895 #define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
32900 # Check whether --enable-getifaddrs was given.
32901 if test "${enable_getifaddrs+set}" = set; then :
32902 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
32904 want_getifaddrs="yes"
32909 case $want_getifaddrs in
32911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
32912 $as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
32914 case $want_getifaddrs in
32919 LIBS="$LDADD_LIBNTP $LIBS"
32920 for ac_func in getifaddrs
32922 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
32923 if test "x$ac_cv_func_getifaddrs" = xyes; then :
32924 cat >>confdefs.h <<_ACEOF
32925 #define HAVE_GETIFADDRS 1
32932 { SAVED_LIBS=; unset SAVED_LIBS;}
32937 # Check for if_nametoindex() for IPv6 scoped addresses support
32941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
32942 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
32943 if ${ac_cv_search_if_nametoindex+:} false; then :
32944 $as_echo_n "(cached) " >&6
32946 ac_func_search_save_LIBS=$LIBS
32947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32948 /* end confdefs.h. */
32950 /* Override any GCC internal prototype to avoid an error.
32951 Use char because int might match the return type of a GCC
32952 builtin and then its argument prototype would still apply. */
32956 char if_nametoindex ();
32960 return if_nametoindex ();
32965 for ac_lib in '' ipv6; do
32966 if test -z "$ac_lib"; then
32967 ac_res="none required"
32970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32972 if ac_fn_c_try_link "$LINENO"; then :
32973 ac_cv_search_if_nametoindex=$ac_res
32975 rm -f core conftest.err conftest.$ac_objext \
32977 if ${ac_cv_search_if_nametoindex+:} false; then :
32981 if ${ac_cv_search_if_nametoindex+:} false; then :
32984 ac_cv_search_if_nametoindex=no
32986 rm conftest.$ac_ext
32987 LIBS=$ac_func_search_save_LIBS
32989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
32990 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
32991 ac_res=$ac_cv_search_if_nametoindex
32992 if test "$ac_res" != no; then :
32993 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32999 LIBS="$LDADD_LIBNTP $LIBS"
33000 for ac_func in if_nametoindex
33002 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
33003 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
33004 cat >>confdefs.h <<_ACEOF
33005 #define HAVE_IF_NAMETOINDEX 1
33012 { SAVED_LIBS=; unset SAVED_LIBS;}
33013 case "$ac_cv_func_if_nametoindex" in
33016 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
33024 # Look for a sysctl call to get the list of network interfaces.
33026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
33027 $as_echo_n "checking for interface list sysctl... " >&6; }
33028 if ${ntp_cv_iflist_sysctl+:} false; then :
33029 $as_echo_n "(cached) " >&6
33031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33032 /* end confdefs.h. */
33034 #include <sys/param.h>
33035 #include <sys/sysctl.h>
33036 #include <sys/socket.h>
33037 #ifndef NET_RT_IFLIST
33042 if ac_fn_c_try_cpp "$LINENO"; then :
33043 ntp_cv_iflist_sysctl=yes
33045 ntp_cv_iflist_sysctl=no
33048 rm -f conftest.err conftest.i conftest.$ac_ext
33051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
33052 $as_echo "$ntp_cv_iflist_sysctl" >&6; }
33053 case "$ntp_cv_iflist_sysctl" in
33056 $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
33062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
33063 $as_echo_n "checking if we want the saveconfig mechanism... " >&6; }
33064 # Check whether --enable-saveconfig was given.
33065 if test "${enable_saveconfig+set}" = set; then :
33066 enableval=$enable_saveconfig; ntp_ok=$enableval
33072 ntp_saveconfig_enabled=0
33075 ntp_saveconfig_enabled=1
33077 $as_echo "#define SAVECONFIG 1" >>confdefs.h
33081 if test x$ntp_saveconfig_enabled = x1; then
33082 SAVECONFIG_ENABLED_TRUE=
33083 SAVECONFIG_ENABLED_FALSE='#'
33085 SAVECONFIG_ENABLED_TRUE='#'
33086 SAVECONFIG_ENABLED_FALSE=
33089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33090 $as_echo "$ntp_ok" >&6; }
33094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
33095 $as_echo_n "checking if we want the experimental leap smear code... " >&6; }
33096 # Check whether --enable-leap-smear was given.
33097 if test "${enable_leap_smear+set}" = set; then :
33098 enableval=$enable_leap_smear; ntp_ok=$enableval
33104 ntp_leap_smear_enabled=0
33107 ntp_leap_smear_enabled=1
33109 $as_echo "#define LEAP_SMEAR 1" >>confdefs.h
33112 HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0"
33115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33116 $as_echo "$ntp_ok" >&6; }
33120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want dynamic interleave support" >&5
33121 $as_echo_n "checking if we want dynamic interleave support... " >&6; }
33122 # Check whether --enable-dynamic-interleave was given.
33123 if test "${enable_dynamic_interleave+set}" = set; then :
33124 enableval=$enable_dynamic_interleave; ntp_ok=$enableval
33130 ntp_dynamic_interleave=0
33133 ntp_dynamic_interleave=1
33137 cat >>confdefs.h <<_ACEOF
33138 #define DYNAMIC_INTERLEAVE $ntp_dynamic_interleave
33141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
33142 $as_echo "$ntp_ok" >&6; }
33145 # We may not need have_unity
33147 # Extract the first word of "ruby", so it can be a program name with args.
33148 set dummy ruby; ac_word=$2
33149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33150 $as_echo_n "checking for $ac_word... " >&6; }
33151 if ${ac_cv_path_PATH_RUBY+:} false; then :
33152 $as_echo_n "(cached) " >&6
33156 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
33159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33160 for as_dir in $PATH
33163 test -z "$as_dir" && as_dir=.
33164 for ac_exec_ext in '' $ac_executable_extensions; do
33165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33166 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
33167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33177 PATH_RUBY=$ac_cv_path_PATH_RUBY
33178 if test -n "$PATH_RUBY"; then
33179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
33180 $as_echo "$PATH_RUBY" >&6; }
33182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33183 $as_echo "no" >&6; }
33187 case "$PATH_RUBY" in
33191 *) PATH_RUBY="false"
33194 # We may not need UNITYBUILD_AVAILABLE
33195 if $have_unity; then
33196 UNITYBUILD_AVAILABLE_TRUE=
33197 UNITYBUILD_AVAILABLE_FALSE='#'
33199 UNITYBUILD_AVAILABLE_TRUE='#'
33200 UNITYBUILD_AVAILABLE_FALSE=
33209 # Check whether --with-gtest was given.
33210 if test "${with_gtest+set}" = set; then :
33211 withval=$with_gtest; try_gtest=$withval
33217 case "$try_gtest" in
33219 # Extract the first word of "gtest-config", so it can be a program name with args.
33220 set dummy gtest-config; ac_word=$2
33221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33222 $as_echo_n "checking for $ac_word... " >&6; }
33223 if ${ac_cv_path_GTEST_CONFIG+:} false; then :
33224 $as_echo_n "(cached) " >&6
33226 case $GTEST_CONFIG in
33228 ac_cv_path_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test with a path.
33231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33232 for as_dir in $PATH
33235 test -z "$as_dir" && as_dir=.
33236 for ac_exec_ext in '' $ac_executable_extensions; do
33237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33238 ac_cv_path_GTEST_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33249 GTEST_CONFIG=$ac_cv_path_GTEST_CONFIG
33250 if test -n "$GTEST_CONFIG"; then
33251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
33252 $as_echo "$GTEST_CONFIG" >&6; }
33254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33255 $as_echo "no" >&6; }
33259 { ac_cv_path_GTEST_CONFIG=; unset ac_cv_path_GTEST_CONFIG;}
33260 case x${GTEST_CONFIG} in
33263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gtest version" >&5
33264 $as_echo_n "checking gtest version... " >&6; }
33265 gtest_version_test=`$GTEST_CONFIG --min-version=1.5 || echo toolow`
33266 case "$gtest_version_test" in
33270 GTEST_LDFLAGS=`$GTEST_CONFIG --ldflags`
33271 GTEST_LIBS=`$GTEST_CONFIG --libs`
33272 GTEST_CXXFLAGS=`$GTEST_CONFIG --cxxflags`
33273 GTEST_CPPFLAGS=`$GTEST_CONFIG --cppflags`
33281 gtest_version=`$GTEST_CONFIG --version`
33284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) ok" >&5
33285 $as_echo "($gtest_version) ok" >&6; }
33287 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($gtest_version) not ok" >&5
33288 $as_echo "($gtest_version) not ok" >&6; }
33291 { gtest_version_test=; unset gtest_version_test;}
33292 { gtest_version=; unset gtest_version;}
33296 GTEST_AVAILABLE_TRUE=
33297 GTEST_AVAILABLE_FALSE='#'
33299 GTEST_AVAILABLE_TRUE='#'
33300 GTEST_AVAILABLE_FALSE=
33312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
33313 $as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
33314 # Check whether --enable-problem-tests was given.
33315 if test "${enable_problem_tests+set}" = set; then :
33316 enableval=$enable_problem_tests; ntp_ept=$enableval
33322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5
33323 $as_echo "$ntp_ept" >&6; }
33325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5
33326 $as_echo_n "checking if we can run test-ntp_restrict... " >&6; }
33327 ntp_test_ntp_restrict="no"
33328 case "$ntp_ept:$cross:$host" in
33329 no:0:*-*-freebsd6.4) ;;
33330 no:0:*-*-hpux11.23*) ;;
33331 no:0:*-*-solaris*) ;;
33332 *) ntp_test_ntp_restrict="yes" ;;
33334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5
33335 $as_echo "$ntp_test_ntp_restrict" >&6; }
33336 if test x$ntp_test_ntp_restrict = xyes; then
33337 BUILD_TEST_NTP_RESTRICT_TRUE=
33338 BUILD_TEST_NTP_RESTRICT_FALSE='#'
33340 BUILD_TEST_NTP_RESTRICT_TRUE='#'
33341 BUILD_TEST_NTP_RESTRICT_FALSE=
33345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5
33346 $as_echo_n "checking if we can run test-ntp_scanner... " >&6; }
33347 ntp_test_ntp_scanner="no"
33348 case "$ntp_ept:$cross:$host" in
33349 no:0:*-*-freebsd6.4) ;;
33350 no:0:*-*-solaris*) ;;
33351 *) ntp_test_ntp_scanner="yes" ;;
33353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5
33354 $as_echo "$ntp_test_ntp_scanner" >&6; }
33355 if test x$ntp_test_ntp_scanner = xyes; then
33356 BUILD_TEST_NTP_SCANNER_TRUE=
33357 BUILD_TEST_NTP_SCANNER_FALSE='#'
33359 BUILD_TEST_NTP_SCANNER_TRUE='#'
33360 BUILD_TEST_NTP_SCANNER_FALSE=
33364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5
33365 $as_echo_n "checking if we can run test-ntp_signd... " >&6; }
33366 ntp_test_ntp_signd="no"
33367 case "$ntp_ept:$cross:$host" in
33368 no:0:*-*-freebsd6.4) ;;
33369 no:0:*-*-solaris*) ;;
33370 *) ntp_test_ntp_signd="yes" ;;
33372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5
33373 $as_echo "$ntp_test_ntp_signd" >&6; }
33374 if test x$ntp_test_ntp_signd = xyes; then
33375 BUILD_TEST_NTP_SIGND_TRUE=
33376 BUILD_TEST_NTP_SIGND_FALSE='#'
33378 BUILD_TEST_NTP_SIGND_TRUE='#'
33379 BUILD_TEST_NTP_SIGND_FALSE=
33387 ac_fn_c_check_decl "$LINENO" "sigsetjmp" "ac_cv_have_decl_sigsetjmp" "#include <setjmp.h>
33389 if test "x$ac_cv_have_decl_sigsetjmp" = xyes; then :
33395 cat >>confdefs.h <<_ACEOF
33396 #define HAVE_DECL_SIGSETJMP $ac_have_decl
33398 ac_fn_c_check_decl "$LINENO" "siglongjmp" "ac_cv_have_decl_siglongjmp" "#include <setjmp.h>
33400 if test "x$ac_cv_have_decl_siglongjmp" = xyes; then :
33406 cat >>confdefs.h <<_ACEOF
33407 #define HAVE_DECL_SIGLONGJMP $ac_have_decl
33416 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33417 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33418 eval ac_define_dir="\"$sysconfdir\""
33419 eval ac_define_dir="\"$ac_define_dir\""
33420 NTP_KEYSDIR="$ac_define_dir"
33423 cat >>confdefs.h <<_ACEOF
33424 #define NTP_KEYSDIR "$ac_define_dir"
33427 test "$prefix_NONE" && prefix=NONE
33428 test "$exec_prefix_NONE" && exec_prefix=NONE
33431 ac_config_files="$ac_config_files Makefile"
33433 ac_config_files="$ac_config_files adjtimed/Makefile"
33435 ac_config_files="$ac_config_files clockstuff/Makefile"
33437 ac_config_files="$ac_config_files include/Makefile"
33439 ac_config_files="$ac_config_files include/isc/Makefile"
33441 ac_config_files="$ac_config_files kernel/Makefile"
33443 ac_config_files="$ac_config_files kernel/sys/Makefile"
33445 ac_config_files="$ac_config_files libntp/Makefile"
33447 ac_config_files="$ac_config_files libparse/Makefile"
33449 ac_config_files="$ac_config_files ntpd/Makefile"
33451 ac_config_files="$ac_config_files ntpd/complete.conf"
33453 ac_config_files="$ac_config_files ntpdate/Makefile"
33455 ac_config_files="$ac_config_files ntpdc/Makefile"
33457 ac_config_files="$ac_config_files ntpdc/nl.pl"
33459 ac_config_files="$ac_config_files ntpq/Makefile"
33461 ac_config_files="$ac_config_files ntpsnmpd/Makefile"
33463 ac_config_files="$ac_config_files parseutil/Makefile"
33465 ac_config_files="$ac_config_files scripts/Makefile"
33467 ac_config_files="$ac_config_files scripts/build/Makefile"
33469 ac_config_files="$ac_config_files scripts/build/genAuthors"
33471 ac_config_files="$ac_config_files scripts/build/mkver"
33473 ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
33475 ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
33477 ac_config_files="$ac_config_files scripts/lib/Makefile"
33479 ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
33481 ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
33483 ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
33485 ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
33487 ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
33489 ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
33491 ac_config_files="$ac_config_files scripts/ntpver"
33493 ac_config_files="$ac_config_files scripts/plot_summary"
33495 ac_config_files="$ac_config_files scripts/summary"
33497 ac_config_files="$ac_config_files scripts/update-leap/Makefile"
33499 ac_config_files="$ac_config_files scripts/update-leap/update-leap"
33501 ac_config_files="$ac_config_files tests/Makefile"
33503 ac_config_files="$ac_config_files tests/bug-2803/Makefile"
33505 ac_config_files="$ac_config_files tests/libntp/Makefile"
33507 ac_config_files="$ac_config_files tests/ntpd/Makefile"
33509 ac_config_files="$ac_config_files tests/ntpq/Makefile"
33511 ac_config_files="$ac_config_files tests/sandbox/Makefile"
33513 ac_config_files="$ac_config_files tests/sec-2853/Makefile"
33515 ac_config_files="$ac_config_files util/Makefile"
33518 perllibdir="${datadir}/ntp/lib"
33522 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33523 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33524 eval ac_define_dir="\"$perllibdir\""
33525 eval ac_define_dir="\"$ac_define_dir\""
33526 PERLLIBDIR="$ac_define_dir"
33529 cat >>confdefs.h <<_ACEOF
33530 #define PERLLIBDIR "$ac_define_dir"
33533 test "$prefix_NONE" && prefix=NONE
33534 test "$exec_prefix_NONE" && exec_prefix=NONE
33537 calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"
33539 ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"
33541 ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"
33543 ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"
33545 summary_opts="$srcdir/scripts/summary-opts"
33547 plot_summary_opts="$srcdir/scripts/plot_summary-opts"
33552 subdirs="$subdirs sntp"
33555 cat >confcache <<\_ACEOF
33556 # This file is a shell script that caches the results of configure
33557 # tests run on this system so they can be shared between configure
33558 # scripts and configure runs, see configure's option --config-cache.
33559 # It is not useful on other systems. If it contains results you don't
33560 # want to keep, you may remove or edit it.
33562 # config.status only pays attention to the cache file if you give it
33563 # the --recheck option to rerun configure.
33565 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33566 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33567 # following values.
33571 # The following way of writing the cache mishandles newlines in values,
33572 # but we know of no workaround that is simple, portable, and efficient.
33573 # So, we kill variables containing newlines.
33574 # Ultrix sh set writes to stderr and can't be redirected directly,
33575 # and sets the high bit in the cache file unless we assign to the vars.
33577 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33578 eval ac_val=\$$ac_var
33582 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33583 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33586 _ | IFS | as_nl) ;; #(
33587 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33588 *) { eval $ac_var=; unset $ac_var;} ;;
33594 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33595 *${as_nl}ac_space=\ *)
33596 # `set' does not quote correctly, so add quotes: double-quote
33597 # substitution turns \\\\ into \\, and sed turns \\ into \.
33600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33603 # `set' quotes correctly as required by POSIX, so do not add quotes.
33604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33613 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33615 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33617 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33618 if test -w "$cache_file"; then
33619 if test "x$cache_file" != "x/dev/null"; then
33620 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33621 $as_echo "$as_me: updating cache $cache_file" >&6;}
33622 if test ! -f "$cache_file" || test -h "$cache_file"; then
33623 cat confcache >"$cache_file"
33625 case $cache_file in #(
33627 mv -f confcache "$cache_file"$$ &&
33628 mv -f "$cache_file"$$ "$cache_file" ;; #(
33630 mv -f confcache "$cache_file" ;;
33635 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33636 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33641 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33642 # Let make expand exec_prefix.
33643 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33645 DEFS=-DHAVE_CONFIG_H
33650 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33651 # 1. Remove the extension, and $U if already installed.
33652 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33653 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33654 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33655 # will be set to the directory where LIBOBJS objects are built.
33656 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33657 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33659 LIBOBJS=$ac_libobjs
33661 LTLIBOBJS=$ac_ltlibobjs
33664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
33665 $as_echo_n "checking that generated files are newer than configure... " >&6; }
33666 if test -n "$am_sleep_pid"; then
33667 # Hide warnings about reused PIDs.
33668 wait $am_sleep_pid 2>/dev/null
33670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
33671 $as_echo "done" >&6; }
33672 if test -n "$EXEEXT"; then
33674 am__EXEEXT_FALSE='#'
33676 am__EXEEXT_TRUE='#'
33680 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33681 as_fn_error $? "conditional \"AMDEP\" was never defined.
33682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33684 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33685 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
33686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33689 if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
33690 as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
33691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33693 if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
33694 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
33695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33697 if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
33698 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
33699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33701 if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
33702 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
33703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33705 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
33706 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
33707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33709 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
33710 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
33711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33713 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
33714 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
33715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33717 if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
33718 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
33719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33721 if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
33722 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
33723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33725 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
33726 as_fn_error $? "conditional \"PTHREADS\" was never defined.
33727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33729 if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
33730 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
33731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33733 if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
33734 as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
33735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33737 if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
33738 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
33739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33741 if test -z "${GTEST_AVAILABLE_TRUE}" && test -z "${GTEST_AVAILABLE_FALSE}"; then
33742 as_fn_error $? "conditional \"GTEST_AVAILABLE\" was never defined.
33743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33745 if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then
33746 as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined.
33747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33749 if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then
33750 as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined.
33751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33753 if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then
33754 as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined.
33755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33758 : "${CONFIG_STATUS=./config.status}"
33760 ac_clean_files_save=$ac_clean_files
33761 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33762 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33763 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33765 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33767 # Generated by $as_me.
33768 # Run this file to recreate the current configuration.
33769 # Compiler output produced by configure, useful for debugging
33770 # configure, is in config.log if it exists.
33773 ac_cs_recheck=false
33776 SHELL=\${CONFIG_SHELL-$SHELL}
33779 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33780 ## -------------------- ##
33781 ## M4sh Initialization. ##
33782 ## -------------------- ##
33784 # Be more Bourne compatible
33785 DUALCASE=1; export DUALCASE # for MKS sh
33786 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33789 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33790 # is contrary to our usage. Disable this feature.
33791 alias -g '${1+"$@"}'='"$@"'
33792 setopt NO_GLOB_SUBST
33794 case `(set -o) 2>/dev/null` in #(
33806 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33807 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33808 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33809 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33810 # Prefer a ksh shell builtin over an external printf program on Solaris,
33811 # but without wasting forks for bash or zsh.
33812 if test -z "$BASH_VERSION$ZSH_VERSION" \
33813 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33814 as_echo='print -r --'
33815 as_echo_n='print -rn --'
33816 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33817 as_echo='printf %s\n'
33818 as_echo_n='printf %s'
33820 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33821 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33822 as_echo_n='/usr/ucb/echo -n'
33824 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33825 as_echo_n_body='eval
33829 expr "X$arg" : "X\\(.*\\)$as_nl";
33830 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33832 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33834 export as_echo_n_body
33835 as_echo_n='sh -c $as_echo_n_body as_echo'
33837 export as_echo_body
33838 as_echo='sh -c $as_echo_body as_echo'
33841 # The user is always right.
33842 if test "${PATH_SEPARATOR+set}" != set; then
33844 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33845 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33852 # We need space, tab and new line, in precisely that order. Quoting is
33853 # there to prevent editors from complaining about space-tab.
33854 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33855 # splitting by setting IFS to empty value.)
33858 # Find who we are. Look in the path if we contain no directory separator.
33861 *[\\/]* ) as_myself=$0 ;;
33862 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33863 for as_dir in $PATH
33866 test -z "$as_dir" && as_dir=.
33867 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33873 # We did not find ourselves, most probably we were run as `sh COMMAND'
33874 # in which case we are not to be found in the path.
33875 if test "x$as_myself" = x; then
33878 if test ! -f "$as_myself"; then
33879 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33883 # Unset variables that we do not need and which cause bugs (e.g. in
33884 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33885 # suppresses any "Segmentation fault" message there. '((' could
33886 # trigger a bug in pdksh 5.2.14.
33887 for as_var in BASH_ENV ENV MAIL MAILPATH
33888 do eval test x\${$as_var+set} = xset \
33889 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33902 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33905 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33906 # ----------------------------------------
33907 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33908 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33909 # script with STATUS, using 1 if that was 0.
33912 as_status=$1; test $as_status -eq 0 && as_status=1
33914 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33915 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33917 $as_echo "$as_me: error: $2" >&2
33918 as_fn_exit $as_status
33922 # as_fn_set_status STATUS
33923 # -----------------------
33924 # Set $? to STATUS, without forking.
33925 as_fn_set_status ()
33928 } # as_fn_set_status
33930 # as_fn_exit STATUS
33931 # -----------------
33932 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33936 as_fn_set_status $1
33942 # Portably unset VAR.
33945 { eval $1=; unset $1;}
33947 as_unset=as_fn_unset
33948 # as_fn_append VAR VALUE
33949 # ----------------------
33950 # Append the text in VALUE to the end of the definition contained in VAR. Take
33951 # advantage of any shell optimizations that allow amortized linear growth over
33952 # repeated appends, instead of the typical quadratic growth present in naive
33954 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33955 eval 'as_fn_append ()
33966 # as_fn_arith ARG...
33967 # ------------------
33968 # Perform arithmetic evaluation on the ARGs, and store the result in the
33969 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33970 # must be portable across $(()) and expr.
33971 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33972 eval 'as_fn_arith ()
33979 as_val=`expr "$@" || test $? -eq 1`
33984 if expr a : '\(a\)' >/dev/null 2>&1 &&
33985 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33991 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33992 as_basename=basename
33997 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34003 as_me=`$as_basename -- "$0" ||
34004 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34005 X"$0" : 'X\(//\)$' \| \
34006 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34008 sed '/^.*\/\([^/][^/]*\)\/*$/{
34022 # Avoid depending upon Character Ranges.
34023 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34024 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34025 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34026 as_cr_digits='0123456789'
34027 as_cr_alnum=$as_cr_Letters$as_cr_digits
34029 ECHO_C= ECHO_N= ECHO_T=
34030 case `echo -n x` in #(((((
34032 case `echo 'xy\c'` in
34033 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34035 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34042 rm -f conf$$ conf$$.exe conf$$.file
34043 if test -d conf$$.dir; then
34044 rm -f conf$$.dir/conf$$.file
34047 mkdir conf$$.dir 2>/dev/null
34049 if (echo >conf$$.file) 2>/dev/null; then
34050 if ln -s conf$$.file conf$$ 2>/dev/null; then
34052 # ... but there are two gotchas:
34053 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34054 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34055 # In both cases, we have to default to `cp -pR'.
34056 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34058 elif ln conf$$.file conf$$ 2>/dev/null; then
34066 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34067 rmdir conf$$.dir 2>/dev/null
34072 # Create "$as_dir" as a directory, including parents if necessary.
34077 -*) as_dir=./$as_dir;;
34079 test -d "$as_dir" || eval $as_mkdir_p || {
34083 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34084 *) as_qdir=$as_dir;;
34086 as_dirs="'$as_qdir' $as_dirs"
34087 as_dir=`$as_dirname -- "$as_dir" ||
34088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34089 X"$as_dir" : 'X\(//\)[^/]' \| \
34090 X"$as_dir" : 'X\(//\)$' \| \
34091 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34092 $as_echo X"$as_dir" |
34093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34097 /^X\(\/\/\)[^/].*/{
34110 test -d "$as_dir" && break
34112 test -z "$as_dirs" || eval "mkdir $as_dirs"
34113 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34117 if mkdir -p . 2>/dev/null; then
34118 as_mkdir_p='mkdir -p "$as_dir"'
34120 test -d ./-p && rmdir ./-p
34125 # as_fn_executable_p FILE
34126 # -----------------------
34127 # Test if FILE is an executable regular file.
34128 as_fn_executable_p ()
34130 test -f "$1" && test -x "$1"
34131 } # as_fn_executable_p
34132 as_test_x='test -x'
34133 as_executable_p=as_fn_executable_p
34135 # Sed expression to map a string onto a valid CPP name.
34136 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34138 # Sed expression to map a string onto a valid variable name.
34139 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34143 ## ----------------------------------- ##
34144 ## Main body of $CONFIG_STATUS script. ##
34145 ## ----------------------------------- ##
34147 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
34149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34150 # Save the log message, to keep $0 and so on meaningful, and to
34151 # report actual input values of CONFIG_FILES etc. instead of their
34152 # values after options handling.
34154 This file was extended by ntp $as_me 4.2.8p13, which was
34155 generated by GNU Autoconf 2.69. Invocation command line was
34157 CONFIG_FILES = $CONFIG_FILES
34158 CONFIG_HEADERS = $CONFIG_HEADERS
34159 CONFIG_LINKS = $CONFIG_LINKS
34160 CONFIG_COMMANDS = $CONFIG_COMMANDS
34163 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34168 case $ac_config_files in *"
34169 "*) set x $ac_config_files; shift; ac_config_files=$*;;
34172 case $ac_config_headers in *"
34173 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34178 # Files that config.status was made for.
34179 config_files="$ac_config_files"
34180 config_headers="$ac_config_headers"
34181 config_commands="$ac_config_commands"
34185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34187 \`$as_me' instantiates files and other configuration actions
34188 from templates according to the current configuration. Unless the files
34189 and actions are specified as TAGs, all are instantiated by default.
34191 Usage: $0 [OPTION]... [TAG]...
34193 -h, --help print this help, then exit
34194 -V, --version print version number and configuration settings, then exit
34195 --config print configuration, then exit
34196 -q, --quiet, --silent
34197 do not print progress messages
34198 -d, --debug don't remove temporary files
34199 --recheck update $as_me by reconfiguring in the same conditions
34200 --file=FILE[:TEMPLATE]
34201 instantiate the configuration file FILE
34202 --header=FILE[:TEMPLATE]
34203 instantiate the configuration header FILE
34205 Configuration files:
34208 Configuration headers:
34211 Configuration commands:
34214 Report bugs to <http://bugs.ntp.org./>.
34215 ntp home page: <http://www.ntp.org./>."
34218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34219 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34221 ntp config.status 4.2.8p13
34222 configured by $0, generated by GNU Autoconf 2.69,
34223 with options \\"\$ac_cs_config\\"
34225 Copyright (C) 2012 Free Software Foundation, Inc.
34226 This config.status script is free software; the Free Software Foundation
34227 gives unlimited permission to copy, distribute and modify it."
34234 test -n "\$AWK" || AWK=awk
34237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34238 # The default lists apply if the user does not specify any file.
34244 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34245 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34249 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34261 # Handling of the options.
34262 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34264 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34265 $as_echo "$ac_cs_version"; exit ;;
34266 --config | --confi | --conf | --con | --co | --c )
34267 $as_echo "$ac_cs_config"; exit ;;
34268 --debug | --debu | --deb | --de | --d | -d )
34270 --file | --fil | --fi | --f )
34273 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34274 '') as_fn_error $? "missing file argument" ;;
34276 as_fn_append CONFIG_FILES " '$ac_optarg'"
34277 ac_need_defaults=false;;
34278 --header | --heade | --head | --hea )
34281 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34283 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
34284 ac_need_defaults=false;;
34286 # Conflict between --help and --header
34287 as_fn_error $? "ambiguous option: \`$1'
34288 Try \`$0 --help' for more information.";;
34289 --help | --hel | -h )
34290 $as_echo "$ac_cs_usage"; exit ;;
34291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34292 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34295 # This is an error.
34296 -*) as_fn_error $? "unrecognized option: \`$1'
34297 Try \`$0 --help' for more information." ;;
34299 *) as_fn_append ac_config_targets " $1"
34300 ac_need_defaults=false ;;
34306 ac_configure_extra_args=
34308 if $ac_cs_silent; then
34310 ac_configure_extra_args="$ac_configure_extra_args --silent"
34314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34315 if \$ac_cs_recheck; then
34316 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34318 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34319 CONFIG_SHELL='$SHELL'
34320 export CONFIG_SHELL
34325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34329 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34330 ## Running $as_me. ##
34336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34340 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34343 # The HP-UX ksh and POSIX shell print the target directory to stdout
34344 # if CDPATH is set.
34345 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34347 sed_quote_subst='$sed_quote_subst'
34348 double_quote_subst='$double_quote_subst'
34349 delay_variable_subst='$delay_variable_subst'
34350 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34351 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34352 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34353 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34354 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34355 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34356 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
34357 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34358 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34359 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
34360 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34361 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34362 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34363 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34364 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34365 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34366 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34367 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34368 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34369 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34370 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34371 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34372 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34373 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34374 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34375 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34376 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34377 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34378 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34379 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34380 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34381 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
34382 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34383 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34384 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34385 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34386 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34387 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34388 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34389 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34390 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
34391 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34392 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34393 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
34394 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34395 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34396 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34397 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34398 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34399 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34400 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34401 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34402 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34403 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34404 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34405 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34406 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
34407 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34408 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"`'
34409 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
34410 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34411 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
34412 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
34413 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34414 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34415 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34416 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34417 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34418 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34419 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34420 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34421 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
34422 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34423 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34424 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34425 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34426 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34427 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34428 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34429 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34430 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34431 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34432 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34433 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34434 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34435 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34436 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34437 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34438 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34439 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34440 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34441 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34442 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34443 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34444 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34445 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34446 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34447 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34448 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34449 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34450 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34451 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34452 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34453 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34454 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34455 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34456 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34457 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34458 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
34459 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34460 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34461 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34462 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34463 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34464 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34465 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34466 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34467 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34468 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34469 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34470 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34471 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34472 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34473 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34474 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34475 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34476 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34477 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
34478 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
34479 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34480 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34481 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34482 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34483 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34484 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34487 LTCFLAGS='$LTCFLAGS'
34488 compiler='$compiler_DEFAULT'
34490 # A function that is used when there is no print builtin or printf.
34491 func_fallback_echo ()
34493 eval 'cat <<_LTECHO_EOF
34498 # Quote evaled strings.
34513 deplibs_check_method \
34518 sharedlib_from_linklib_cmd \
34521 archiver_list_spec \
34527 lt_cv_sys_global_symbol_pipe \
34528 lt_cv_sys_global_symbol_to_cdecl \
34529 lt_cv_sys_global_symbol_to_import \
34530 lt_cv_sys_global_symbol_to_c_name_address \
34531 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34532 lt_cv_nm_interface \
34533 nm_file_list_spec \
34534 lt_cv_truncate_bin \
34535 lt_prog_compiler_no_builtin_flag \
34536 lt_prog_compiler_pic \
34537 lt_prog_compiler_wl \
34538 lt_prog_compiler_static \
34539 lt_cv_prog_compiler_c_o \
34548 export_dynamic_flag_spec \
34549 whole_archive_flag_spec \
34550 compiler_needs_object \
34552 allow_undefined_flag \
34553 no_undefined_flag \
34554 hardcode_libdir_flag_spec \
34555 hardcode_libdir_separator \
34559 variables_saved_for_relink \
34561 library_names_spec \
34563 install_override_mode \
34567 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34568 *[\\\\\\\`\\"\\\$]*)
34569 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34572 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34577 # Double-quote double-evaled strings.
34578 for var in reload_cmds \
34579 old_postinstall_cmds \
34580 old_postuninstall_cmds \
34582 extract_expsyms_cmds \
34583 old_archive_from_new_cmds \
34584 old_archive_from_expsyms_cmds \
34586 archive_expsym_cmds \
34588 module_expsym_cmds \
34589 export_symbols_cmds \
34593 postuninstall_cmds \
34595 sys_lib_search_path_spec \
34596 configure_time_dlsearch_path \
34597 configure_time_lt_sys_library_path; do
34598 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34599 *[\\\\\\\`\\"\\\$]*)
34600 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34603 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34608 ac_aux_dir='$ac_aux_dir'
34610 # See if we are running on zsh, and set the options that allow our
34611 # commands through without removal of \ escapes INIT.
34612 if test -n "\${ZSH_VERSION+set}"; then
34613 setopt NO_GLOB_SUBST
34627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34629 # Handling of arguments.
34630 for ac_config_target in $ac_config_targets
34632 case $ac_config_target in
34633 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
34634 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34635 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34636 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34637 "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
34638 "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
34639 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
34640 "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
34641 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
34642 "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
34643 "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
34644 "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
34645 "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
34646 "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
34647 "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
34648 "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
34649 "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
34650 "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
34651 "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
34652 "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
34653 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34654 "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
34655 "scripts/build/genAuthors") CONFIG_FILES="$CONFIG_FILES scripts/build/genAuthors" ;;
34656 "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
34657 "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
34658 "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
34659 "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
34660 "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
34661 "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
34662 "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
34663 "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
34664 "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
34665 "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
34666 "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
34667 "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
34668 "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
34669 "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;;
34670 "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;;
34671 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
34672 "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;;
34673 "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
34674 "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
34675 "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;;
34676 "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;;
34677 "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;;
34678 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
34680 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34685 # If the user did not use the arguments to specify the items to instantiate,
34686 # then the envvar interface is used. Set only those that are not.
34687 # We use the long form for the default assignment because of an extremely
34688 # bizarre bug on SunOS 4.1.3.
34689 if $ac_need_defaults; then
34690 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34691 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34692 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34695 # Have a temporary directory for convenience. Make it in the build tree
34696 # simply because there is no reason against having it here, and in addition,
34697 # creating and moving files from /tmp can sometimes cause problems.
34698 # Hook for its removal unless debugging.
34699 # Note that there is a small window in which the directory will not be cleaned:
34700 # after its creation but before its name has been assigned to `$tmp'.
34704 trap 'exit_status=$?
34705 : "${ac_tmp:=$tmp}"
34706 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34708 trap 'as_fn_exit 1' 1 2 13 15
34710 # Create a (secure) tmp directory for tmp files.
34713 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34717 tmp=./conf$$-$RANDOM
34718 (umask 077 && mkdir "$tmp")
34719 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34722 # Set up the scripts for CONFIG_FILES section.
34723 # No need to generate them if there are no CONFIG_FILES.
34724 # This happens for instance with `./config.status config.h'.
34725 if test -n "$CONFIG_FILES"; then
34727 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
34728 ac_cs_awk_getline=:
34729 ac_cs_awk_pipe_init=
34730 ac_cs_awk_read_file='
34731 while ((getline aline < (F[key])) > 0)
34734 ac_cs_awk_pipe_fini=
34736 ac_cs_awk_getline=false
34737 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
34738 ac_cs_awk_read_file='
34740 print "cat " F[key] " &&"
34741 '$ac_cs_awk_pipe_init
34742 # The final `:' finishes the AND list.
34743 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
34745 ac_cr=`echo X | tr X '\015'`
34746 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34747 # But we know of no other shell where ac_cr would be empty at this
34748 # point, so we can use a bashism as a fallback.
34749 if test "x$ac_cr" = x; then
34750 eval ac_cr=\$\'\\r\'
34752 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34753 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34756 ac_cs_awk_cr=$ac_cr
34759 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34762 # Create commands to substitute file output variables.
34764 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
34765 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
34766 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
34769 } >conf$$files.sh &&
34770 . ./conf$$files.sh ||
34771 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34772 rm -f conf$$files.sh
34775 echo "cat >conf$$subs.awk <<_ACEOF" &&
34776 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34778 } >conf$$subs.sh ||
34779 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34780 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34782 for ac_last_try in false false false false false :; do
34783 . ./conf$$subs.sh ||
34784 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34786 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34787 if test $ac_delim_n = $ac_delim_num; then
34789 elif $ac_last_try; then
34790 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34792 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34795 rm -f conf$$subs.sh
34797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34798 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
34802 s/^/S["/; s/!.*/"]=/
34812 s/\(.\{148\}\)..*/\1/
34814 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34819 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34826 s/\(.\{148\}\)..*/\1/
34828 s/["\\]/\\&/g; s/^/"/; s/$/"/
34832 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34837 ' <conf$$subs.awk | sed '
34842 ' >>$CONFIG_STATUS || ac_write_fail=1
34843 rm -f conf$$subs.awk
34844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34846 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
34847 for (key in S) S_is_set[key] = 1
34849 \$ac_cs_awk_pipe_init
34853 nfields = split(line, field, "@")
34855 len = length(field[1])
34856 for (i = 2; i < nfields; i++) {
34858 keylen = length(key)
34859 if (S_is_set[key]) {
34861 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34862 len += length(value) + length(field[++i])
34867 if (nfields == 3 && !substed) {
34869 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
34870 \$ac_cs_awk_read_file
34876 \$ac_cs_awk_pipe_fini
34879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34880 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34881 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34884 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
34885 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34888 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34889 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34890 # trailing colons and then remove the whole line if VPATH becomes empty
34891 # (actually we leave an empty line to preserve line numbers).
34892 if test "x$srcdir" = x.; then
34893 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34912 fi # test -n "$CONFIG_FILES"
34914 # Set up the scripts for CONFIG_HEADERS section.
34915 # No need to generate them if there are no CONFIG_HEADERS.
34916 # This happens for instance with `./config.status Makefile'.
34917 if test -n "$CONFIG_HEADERS"; then
34918 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
34922 # Transform confdefs.h into an awk script `defines.awk', embedded as
34923 # here-document in config.status, that substitutes the proper values into
34924 # config.h.in to produce config.h.
34926 # Create a delimiter string that does not exist in confdefs.h, to ease
34927 # handling of long lines.
34929 for ac_last_try in false false :; do
34930 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
34931 if test -z "$ac_tt"; then
34933 elif $ac_last_try; then
34934 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34936 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34940 # For the awk script, D is an array of macro values keyed by name,
34941 # likewise P contains macro parameters if any. Preserve backslash
34942 # newline sequences.
34944 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34946 s/.\{148\}/&'"$ac_delim"'/g
34949 s/^[ ]*#[ ]*define[ ][ ]*/ /
34956 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34958 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34962 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34963 D["\1"]=" \3\\\\\\n"\\/p
34965 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34970 s/.\{148\}/&'"$ac_delim"'/g
34975 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34978 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34980 ' <confdefs.h | sed '
34981 s/'"$ac_delim"'/"\\\
34982 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34985 for (key in D) D_is_set[key] = 1
34988 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34990 split(line, arg, " ")
34991 if (arg[1] == "#") {
34995 defundef = substr(arg[1], 2)
34998 split(mac1, mac2, "(") #)
35000 prefix = substr(line, 1, index(line, defundef) - 1)
35001 if (D_is_set[macro]) {
35002 # Preserve the white space surrounding the "#".
35003 print prefix "define", macro P[macro] D[macro]
35006 # Replace #undef with comments. This is necessary, for example,
35007 # in the case of _POSIX_SOURCE, which is predefined and required
35008 # on some systems where configure will not decide to define it.
35009 if (defundef == "undef") {
35010 print "/*", prefix defundef, macro, "*/"
35018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35019 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
35020 fi # test -n "$CONFIG_HEADERS"
35023 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
35028 :[FHLC]) ac_mode=$ac_tag; continue;;
35030 case $ac_mode$ac_tag in
35032 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
35033 :[FH]-) ac_tag=-:-;;
35034 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35051 -) ac_f="$ac_tmp/stdin";;
35052 *) # Look for the file first in the build tree, then in the source tree
35053 # (if the path is not absolute). The absolute path cannot be DOS-style,
35054 # because $ac_f cannot contain `:'.
35058 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35060 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35062 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35063 as_fn_append ac_file_inputs " '$ac_f'"
35066 # Let's still pretend it is `configure' which instantiates (i.e., don't
35067 # use $as_me), people would be surprised to read:
35068 # /* config.h. Generated by config.status. */
35069 configure_input='Generated from '`
35070 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35072 if test x"$ac_file" != x-; then
35073 configure_input="$ac_file. $configure_input"
35074 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35075 $as_echo "$as_me: creating $ac_file" >&6;}
35077 # Neutralize special characters interpreted by sed in replacement strings.
35078 case $configure_input in #(
35079 *\&* | *\|* | *\\* )
35080 ac_sed_conf_input=`$as_echo "$configure_input" |
35081 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35082 *) ac_sed_conf_input=$configure_input;;
35086 *:-:* | *:-) cat >"$ac_tmp/stdin" \
35087 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
35092 ac_dir=`$as_dirname -- "$ac_file" ||
35093 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35094 X"$ac_file" : 'X\(//\)[^/]' \| \
35095 X"$ac_file" : 'X\(//\)$' \| \
35096 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35097 $as_echo X"$ac_file" |
35098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35102 /^X\(\/\/\)[^/].*/{
35115 as_dir="$ac_dir"; as_fn_mkdir_p
35119 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35121 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35122 # A ".." for each directory in $ac_dir_suffix.
35123 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35124 case $ac_top_builddir_sub in
35125 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35126 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35129 ac_abs_top_builddir=$ac_pwd
35130 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35131 # for backward compatibility:
35132 ac_top_builddir=$ac_top_build_prefix
35135 .) # We are building in place.
35137 ac_top_srcdir=$ac_top_builddir_sub
35138 ac_abs_top_srcdir=$ac_pwd ;;
35139 [\\/]* | ?:[\\/]* ) # Absolute name.
35140 ac_srcdir=$srcdir$ac_dir_suffix;
35141 ac_top_srcdir=$srcdir
35142 ac_abs_top_srcdir=$srcdir ;;
35143 *) # Relative name.
35144 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35145 ac_top_srcdir=$ac_top_build_prefix$srcdir
35146 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35148 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35158 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35159 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35161 ac_MKDIR_P=$MKDIR_P
35163 [\\/$]* | ?:[\\/]* ) ;;
35164 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35169 # If the template does not know about datarootdir, expand it.
35170 # FIXME: This hack should be removed a few years after 2.60.
35171 ac_datarootdir_hack=; ac_datarootdir_seen=
35182 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35183 *datarootdir*) ac_datarootdir_seen=yes;;
35184 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35186 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35189 ac_datarootdir_hack='
35190 s&@datadir@&$datadir&g
35191 s&@docdir@&$docdir&g
35192 s&@infodir@&$infodir&g
35193 s&@localedir@&$localedir&g
35194 s&@mandir@&$mandir&g
35195 s&\\\${datarootdir}&$datarootdir&g' ;;
35199 # Neutralize VPATH when `$srcdir' = `.'.
35200 # Shell code in configure.ac might set extrasub.
35201 # FIXME: do we really want to maintain this feature?
35202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35203 ac_sed_extra="$ac_vpsub
35206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35208 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35209 s|@configure_input@|$ac_sed_conf_input|;t t
35210 s&@top_builddir@&$ac_top_builddir_sub&;t t
35211 s&@top_build_prefix@&$ac_top_build_prefix&;t t
35212 s&@srcdir@&$ac_srcdir&;t t
35213 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35214 s&@top_srcdir@&$ac_top_srcdir&;t t
35215 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35216 s&@builddir@&$ac_builddir&;t t
35217 s&@abs_builddir@&$ac_abs_builddir&;t t
35218 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35219 s&@INSTALL@&$ac_INSTALL&;t t
35220 s&@MKDIR_P@&$ac_MKDIR_P&;t t
35221 $ac_datarootdir_hack
35223 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
35224 if $ac_cs_awk_getline; then
35225 $AWK -f "$ac_tmp/subs.awk"
35227 $AWK -f "$ac_tmp/subs.awk" | $SHELL
35229 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35231 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35232 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35233 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35234 "$ac_tmp/out"`; test -z "$ac_out"; } &&
35235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35236 which seems to be undefined. Please make sure it is defined" >&5
35237 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35238 which seems to be undefined. Please make sure it is defined" >&2;}
35240 rm -f "$ac_tmp/stdin"
35242 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35243 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
35245 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35251 if test x"$ac_file" != x-; then
35253 $as_echo "/* $configure_input */" \
35254 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35255 } >"$ac_tmp/config.h" \
35256 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35257 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
35258 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
35259 $as_echo "$as_me: $ac_file is unchanged" >&6;}
35262 mv "$ac_tmp/config.h" "$ac_file" \
35263 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35266 $as_echo "/* $configure_input */" \
35267 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
35268 || as_fn_error $? "could not create -" "$LINENO" 5
35270 # Compute "$ac_file"'s index in $config_headers.
35273 for _am_header in $config_headers :; do
35274 case $_am_header in
35275 $_am_arg | $_am_arg:* )
35278 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35281 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35282 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35283 X"$_am_arg" : 'X\(//\)[^/]' \| \
35284 X"$_am_arg" : 'X\(//\)$' \| \
35285 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35286 $as_echo X"$_am_arg" |
35287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35291 /^X\(\/\/\)[^/].*/{
35303 s/.*/./; q'`/stamp-h$_am_stamp_count
35306 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
35307 $as_echo "$as_me: executing $ac_file commands" >&6;}
35312 case $ac_file$ac_mode in
35313 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35314 # Older Autoconf quotes --file arguments for eval, but not when files
35315 # are listed without --file. Let's play safe and only enable the eval
35316 # if we detect the quoting.
35317 case $CONFIG_FILES in
35318 *\'*) eval set x "$CONFIG_FILES" ;;
35319 *) set x $CONFIG_FILES ;;
35324 # Strip MF so we end up with the name of the file.
35325 mf=`echo "$mf" | sed -e 's/:.*$//'`
35326 # Check whether this is an Automake generated Makefile or not.
35327 # We used to match only the files named 'Makefile.in', but
35328 # some people rename them; so instead we look at the file content.
35329 # Grep'ing the first line is not enough: some people post-process
35330 # each Makefile.in and add a new line on top of each file to say so.
35331 # Grep'ing the whole file is not good either: AIX grep has a line
35332 # limit of 2048, but all sed's we know have understand at least 4000.
35333 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
35334 dirpart=`$as_dirname -- "$mf" ||
35335 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35336 X"$mf" : 'X\(//\)[^/]' \| \
35337 X"$mf" : 'X\(//\)$' \| \
35338 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35344 /^X\(\/\/\)[^/].*/{
35360 # Extract the definition of DEPDIR, am__include, and am__quote
35361 # from the Makefile without running 'make'.
35362 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35363 test -z "$DEPDIR" && continue
35364 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35365 test -z "$am__include" && continue
35366 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35367 # Find all dependency output files, they are included files with
35368 # $(DEPDIR) in their names. We invoke sed twice because it is the
35369 # simplest approach to changing $(DEPDIR) to its actual value in the
35371 for file in `sed -n "
35372 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35373 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
35374 # Make sure the directory exists.
35375 test -f "$dirpart/$file" && continue
35376 fdir=`$as_dirname -- "$file" ||
35377 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35378 X"$file" : 'X\(//\)[^/]' \| \
35379 X"$file" : 'X\(//\)$' \| \
35380 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35381 $as_echo X"$file" |
35382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35386 /^X\(\/\/\)[^/].*/{
35399 as_dir=$dirpart/$fdir; as_fn_mkdir_p
35400 # echo "creating $dirpart/$file"
35401 echo '# dummy' > "$dirpart/$file"
35408 # See if we are running on zsh, and set the options that allow our
35409 # commands through without removal of \ escapes.
35410 if test -n "${ZSH_VERSION+set}"; then
35411 setopt NO_GLOB_SUBST
35415 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35418 cat <<_LT_EOF >> "$cfgfile"
35420 # Generated automatically by $as_me ($PACKAGE) $VERSION
35421 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35422 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
35424 # Provide generalized library-building support services.
35425 # Written by Gordon Matzigkeit, 1996
35427 # Copyright (C) 2014 Free Software Foundation, Inc.
35428 # This is free software; see the source for copying conditions. There is NO
35429 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
35431 # GNU Libtool is free software; you can redistribute it and/or modify
35432 # it under the terms of the GNU General Public License as published by
35433 # the Free Software Foundation; either version 2 of of the License, or
35434 # (at your option) any later version.
35436 # As a special exception to the GNU General Public License, if you
35437 # distribute this file as part of a program or library that is built
35438 # using GNU Libtool, you may include this file under the same
35439 # distribution terms that you use for the rest of that program.
35441 # GNU Libtool is distributed in the hope that it will be useful, but
35442 # WITHOUT ANY WARRANTY; without even the implied warranty of
35443 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35444 # GNU General Public License for more details.
35446 # You should have received a copy of the GNU General Public License
35447 # along with this program. If not, see <http://www.gnu.org/licenses/>.
35450 # The names of the tagged configurations supported by this script.
35453 # Configured defaults for sys_lib_dlsearch_path munging.
35454 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35456 # ### BEGIN LIBTOOL CONFIG
35458 # Whether or not to build shared libraries.
35459 build_libtool_libs=$enable_shared
35461 # Which release of libtool.m4 was used?
35462 macro_version=$macro_version
35463 macro_revision=$macro_revision
35465 # Whether or not to build static libraries.
35466 build_old_libs=$enable_static
35468 # What type of objects to build.
35471 # Whether or not to optimize for fast installation.
35472 fast_install=$enable_fast_install
35474 # Shared archive member basename,for filename based shared library versioning on AIX.
35475 shared_archive_member_spec=$shared_archive_member_spec
35477 # Shell to use when invoking shell scripts.
35480 # An echo program that protects backslashes.
35483 # The PATH separator for the build system.
35484 PATH_SEPARATOR=$lt_PATH_SEPARATOR
35487 host_alias=$host_alias
35491 # The build system.
35492 build_alias=$build_alias
35496 # A sed program that does not truncate output.
35499 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
35500 Xsed="\$SED -e 1s/^X//"
35502 # A grep program that handles long lines.
35508 # A literal string matcher.
35511 # A BSD- or MS-compatible name lister.
35514 # Whether we need soft or hard links.
35517 # What is the maximum length of a command?
35518 max_cmd_len=$max_cmd_len
35520 # Object file suffix (normally "o").
35523 # Executable file suffix (normally "").
35526 # whether the shell understands "unset".
35529 # turn spaces into newlines.
35532 # turn newlines into spaces.
35535 # convert \$build file names to \$host format.
35536 to_host_file_cmd=$lt_cv_to_host_file_cmd
35538 # convert \$build files to toolchain format.
35539 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35541 # An object symbol dumper.
35542 OBJDUMP=$lt_OBJDUMP
35544 # Method to check whether dependent libraries are shared objects.
35545 deplibs_check_method=$lt_deplibs_check_method
35547 # Command to use when deplibs_check_method = "file_magic".
35548 file_magic_cmd=$lt_file_magic_cmd
35550 # How to find potential files when deplibs_check_method = "file_magic".
35551 file_magic_glob=$lt_file_magic_glob
35553 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35554 want_nocaseglob=$lt_want_nocaseglob
35556 # DLL creation program.
35557 DLLTOOL=$lt_DLLTOOL
35559 # Command to associate shared and link libraries.
35560 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35565 # Flags to create an archive.
35566 AR_FLAGS=$lt_AR_FLAGS
35568 # How to feed a file listing to the archiver.
35569 archiver_list_spec=$lt_archiver_list_spec
35571 # A symbol stripping program.
35574 # Commands used to install an old-style archive.
35576 old_postinstall_cmds=$lt_old_postinstall_cmds
35577 old_postuninstall_cmds=$lt_old_postuninstall_cmds
35579 # Whether to use a lock for old archive extraction.
35580 lock_old_archive_extraction=$lock_old_archive_extraction
35585 # LTCC compiler flags.
35586 LTCFLAGS=$lt_CFLAGS
35588 # Take the output of nm and produce a listing of raw symbols and C names.
35589 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35591 # Transform the output of nm in a proper C declaration.
35592 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35594 # Transform the output of nm into a list of symbols to manually relocate.
35595 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
35597 # Transform the output of nm in a C name address pair.
35598 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35600 # Transform the output of nm in a C name address pair when lib prefix is needed.
35601 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35603 # The name lister interface.
35604 nm_interface=$lt_lt_cv_nm_interface
35606 # Specify filename containing input files for \$NM.
35607 nm_file_list_spec=$lt_nm_file_list_spec
35609 # The root where to search for dependent libraries,and where our libraries should be installed.
35610 lt_sysroot=$lt_sysroot
35612 # Command to truncate a binary pipe.
35613 lt_truncate_bin=$lt_lt_cv_truncate_bin
35615 # The name of the directory that contains temporary libtool files.
35618 # Used to examine libraries when file_magic_cmd begins with "file".
35619 MAGIC_CMD=$MAGIC_CMD
35621 # Must we lock files when doing compilation?
35622 need_locks=$lt_need_locks
35625 MANIFEST_TOOL=$lt_MANIFEST_TOOL
35627 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35628 DSYMUTIL=$lt_DSYMUTIL
35630 # Tool to change global to local symbols on Mac OS X.
35633 # Tool to manipulate fat objects and archives on Mac OS X.
35636 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35639 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35640 OTOOL64=$lt_OTOOL64
35642 # Old archive suffix (normally "a").
35645 # Shared library suffix (normally ".so").
35646 shrext_cmds=$lt_shrext_cmds
35648 # The commands to extract the exported symbol list from a shared archive.
35649 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35651 # Variables whose values should be saved in libtool wrapper scripts and
35652 # restored at link time.
35653 variables_saved_for_relink=$lt_variables_saved_for_relink
35655 # Do we need the "lib" prefix for modules?
35656 need_lib_prefix=$need_lib_prefix
35658 # Do we need a version for libraries?
35659 need_version=$need_version
35661 # Library versioning type.
35662 version_type=$version_type
35664 # Shared library runtime path variable.
35665 runpath_var=$runpath_var
35667 # Shared library path variable.
35668 shlibpath_var=$shlibpath_var
35670 # Is shlibpath searched before the hard-coded library search path?
35671 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35673 # Format of library name prefix.
35674 libname_spec=$lt_libname_spec
35676 # List of archive names. First name is the real one, the rest are links.
35677 # The last name is the one that the linker finds with -lNAME
35678 library_names_spec=$lt_library_names_spec
35680 # The coded name of the library, if different from the real name.
35681 soname_spec=$lt_soname_spec
35683 # Permission mode override for installation of shared libraries.
35684 install_override_mode=$lt_install_override_mode
35686 # Command to use after installation of a shared archive.
35687 postinstall_cmds=$lt_postinstall_cmds
35689 # Command to use after uninstallation of a shared archive.
35690 postuninstall_cmds=$lt_postuninstall_cmds
35692 # Commands used to finish a libtool library installation in a directory.
35693 finish_cmds=$lt_finish_cmds
35695 # As "finish_cmds", except a single script fragment to be evaled but
35697 finish_eval=$lt_finish_eval
35699 # Whether we should hardcode library paths into libraries.
35700 hardcode_into_libs=$hardcode_into_libs
35702 # Compile-time system search path for libraries.
35703 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35705 # Detected run-time system search path for libraries.
35706 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
35708 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
35709 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
35711 # Whether dlopen is supported.
35712 dlopen_support=$enable_dlopen
35714 # Whether dlopen of programs is supported.
35715 dlopen_self=$enable_dlopen_self
35717 # Whether dlopen of statically linked programs is supported.
35718 dlopen_self_static=$enable_dlopen_self_static
35720 # Commands to strip libraries.
35721 old_striplib=$lt_old_striplib
35722 striplib=$lt_striplib
35725 # The linker used to build libraries.
35728 # How to create reloadable object files.
35729 reload_flag=$lt_reload_flag
35730 reload_cmds=$lt_reload_cmds
35732 # Commands used to build an old-style archive.
35733 old_archive_cmds=$lt_old_archive_cmds
35735 # A language specific compiler.
35738 # Is the compiler the GNU compiler?
35741 # Compiler flag to turn off builtin functions.
35742 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35744 # Additional compiler flags for building library objects.
35745 pic_flag=$lt_lt_prog_compiler_pic
35747 # How to pass a linker flag through the compiler.
35748 wl=$lt_lt_prog_compiler_wl
35750 # Compiler flag to prevent dynamic linking.
35751 link_static_flag=$lt_lt_prog_compiler_static
35753 # Does compiler simultaneously support -c and -o options?
35754 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35756 # Whether or not to add -lc for building shared libraries.
35757 build_libtool_need_lc=$archive_cmds_need_lc
35759 # Whether or not to disallow shared libs when runtime libs are static.
35760 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35762 # Compiler flag to allow reflexive dlopens.
35763 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35765 # Compiler flag to generate shared objects directly from archives.
35766 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35768 # Whether the compiler copes with passing no objects directly.
35769 compiler_needs_object=$lt_compiler_needs_object
35771 # Create an old-style archive from a shared archive.
35772 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35774 # Create a temporary old-style archive to link instead of a shared archive.
35775 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35777 # Commands used to build a shared archive.
35778 archive_cmds=$lt_archive_cmds
35779 archive_expsym_cmds=$lt_archive_expsym_cmds
35781 # Commands used to build a loadable module if different from building
35782 # a shared archive.
35783 module_cmds=$lt_module_cmds
35784 module_expsym_cmds=$lt_module_expsym_cmds
35786 # Whether we are building with GNU ld or not.
35787 with_gnu_ld=$lt_with_gnu_ld
35789 # Flag that allows shared libraries with undefined symbols to be built.
35790 allow_undefined_flag=$lt_allow_undefined_flag
35792 # Flag that enforces no undefined symbols.
35793 no_undefined_flag=$lt_no_undefined_flag
35795 # Flag to hardcode \$libdir into a binary during linking.
35796 # This must work even if \$libdir does not exist
35797 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35799 # Whether we need a single "-rpath" flag with a separated argument.
35800 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35802 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35803 # DIR into the resulting binary.
35804 hardcode_direct=$hardcode_direct
35806 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35807 # DIR into the resulting binary and the resulting library dependency is
35808 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
35809 # library is relocated.
35810 hardcode_direct_absolute=$hardcode_direct_absolute
35812 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35813 # into the resulting binary.
35814 hardcode_minus_L=$hardcode_minus_L
35816 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35817 # into the resulting binary.
35818 hardcode_shlibpath_var=$hardcode_shlibpath_var
35820 # Set to "yes" if building a shared library automatically hardcodes DIR
35821 # into the library and all subsequent libraries and executables linked
35823 hardcode_automatic=$hardcode_automatic
35825 # Set to yes if linker adds runtime paths of dependent libraries
35826 # to runtime path list.
35827 inherit_rpath=$inherit_rpath
35829 # Whether libtool must link a program against all its dependency libraries.
35830 link_all_deplibs=$link_all_deplibs
35832 # Set to "yes" if exported symbols are required.
35833 always_export_symbols=$always_export_symbols
35835 # The commands to list exported symbols.
35836 export_symbols_cmds=$lt_export_symbols_cmds
35838 # Symbols that should not be listed in the preloaded symbols.
35839 exclude_expsyms=$lt_exclude_expsyms
35841 # Symbols that must always be exported.
35842 include_expsyms=$lt_include_expsyms
35844 # Commands necessary for linking programs (against libraries) with templates.
35845 prelink_cmds=$lt_prelink_cmds
35847 # Commands necessary for finishing linking programs.
35848 postlink_cmds=$lt_postlink_cmds
35850 # Specify filename containing input files.
35851 file_list_spec=$lt_file_list_spec
35853 # How to hardcode a shared library path into an executable.
35854 hardcode_action=$hardcode_action
35856 # ### END LIBTOOL CONFIG
35860 cat <<'_LT_EOF' >> "$cfgfile"
35862 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
35864 # func_munge_path_list VARIABLE PATH
35865 # -----------------------------------
35866 # VARIABLE is name of variable containing _space_ separated list of
35867 # directories to be munged by the contents of PATH, which is string
35870 # string "DIR[ DIR]" will be prepended to VARIABLE
35872 # string "DIR[ DIR]" will be appended to VARIABLE
35873 # "DIRP[:DIRP]::[DIRA:]DIRA"
35874 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
35875 # "DIRA[ DIRA]" will be appended to VARIABLE
35877 # VARIABLE will be replaced by "DIR[ DIR]"
35878 func_munge_path_list ()
35884 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
35887 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
35890 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
35891 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
35894 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
35900 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
35901 func_cc_basename ()
35903 for cc_temp in $*""; do
35905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35911 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
35915 # ### END FUNCTIONS SHARED WITH CONFIGURE
35921 cat <<\_LT_EOF >> "$cfgfile"
35922 # AIX sometimes has problems with the GCC collect2 program. For some
35923 # reason, if we set the COLLECT_NAMES environment variable, the problems
35924 # vanish in a puff of smoke.
35925 if test set != "${COLLECT_NAMES+set}"; then
35927 export COLLECT_NAMES
35934 ltmain=$ac_aux_dir/ltmain.sh
35937 # We use sed instead of cat because bash on DJGPP gets confused if
35938 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35939 # text mode, it properly converts lines to CR/LF. This bash problem
35940 # is reportedly fixed, but why not run on old versions too?
35941 sed '$q' "$ltmain" >> "$cfgfile" \
35942 || (rm -f "$cfgfile"; exit 1)
35944 mv -f "$cfgfile" "$ofile" ||
35945 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35949 "ntpd/complete.conf":F) sed -e '/^rlimit$/d' -e '/^$/d' < ntpd/complete.conf > ntpd/complete.conf.new && mv ntpd/complete.conf.new ntpd/complete.conf ;;
35950 "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
35951 "scripts/build/genAuthors":F) chmod +x scripts/build/genAuthors ;;
35952 "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
35953 "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
35954 "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
35955 "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
35956 "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
35957 "scripts/ntpver":F) chmod +x scripts/ntpver ;;
35958 "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
35959 "scripts/summary":F) chmod +x scripts/summary ;;
35960 "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;;
35968 ac_clean_files=$ac_clean_files_save
35970 test $ac_write_fail = 0 ||
35971 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35974 # configure is writing to config.log, and then calls config.status.
35975 # config.status does its own redirection, appending to config.log.
35976 # Unfortunately, on DOS this fails, as config.log is still kept open
35977 # by configure, so config.status won't be able to write to it; its
35978 # output is simply discarded. So we exec the FD to /dev/null,
35979 # effectively closing config.log, so it can be properly (re)opened and
35980 # appended to by config.status. When coming back to configure, we
35981 # need to make the FD available again.
35982 if test "$no_create" != yes; then
35984 ac_config_status_args=
35985 test "$silent" = yes &&
35986 ac_config_status_args="$ac_config_status_args --quiet"
35988 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35990 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35991 # would make configure fail if this is the last instruction.
35992 $ac_cs_success || as_fn_exit 1
35996 # CONFIG_SUBDIRS section.
35998 if test "$no_recursion" != yes; then
36000 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
36001 # so they do not pile up.
36002 ac_sub_configure_args=
36004 eval "set x $ac_configure_args"
36008 if test -n "$ac_prev"; then
36013 -cache-file | --cache-file | --cache-fil | --cache-fi \
36014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36015 ac_prev=cache_file ;;
36016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36020 --config-cache | -C)
36022 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36024 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36030 --disable-option-checking)
36034 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36036 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
36040 # Always prepend --prefix to ensure using the same prefix
36041 # in subdir configurations.
36042 ac_arg="--prefix=$prefix"
36044 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36046 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
36049 if test "$silent" = yes; then
36050 ac_sub_configure_args="--silent $ac_sub_configure_args"
36053 # Always prepend --disable-option-checking to silence warnings, since
36054 # different subdirs can have different --enable and --with options.
36055 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
36058 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36060 # Do not complain, so a configure script can configure whichever
36061 # parts of a large source tree are present.
36062 test -d "$srcdir/$ac_dir" || continue
36064 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36065 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
36066 $as_echo "$ac_msg" >&6
36067 as_dir="$ac_dir"; as_fn_mkdir_p
36071 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36073 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36074 # A ".." for each directory in $ac_dir_suffix.
36075 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36076 case $ac_top_builddir_sub in
36077 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36078 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36081 ac_abs_top_builddir=$ac_pwd
36082 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36083 # for backward compatibility:
36084 ac_top_builddir=$ac_top_build_prefix
36087 .) # We are building in place.
36089 ac_top_srcdir=$ac_top_builddir_sub
36090 ac_abs_top_srcdir=$ac_pwd ;;
36091 [\\/]* | ?:[\\/]* ) # Absolute name.
36092 ac_srcdir=$srcdir$ac_dir_suffix;
36093 ac_top_srcdir=$srcdir
36094 ac_abs_top_srcdir=$srcdir ;;
36095 *) # Relative name.
36096 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36097 ac_top_srcdir=$ac_top_build_prefix$srcdir
36098 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36100 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36105 # Check for guested configure; otherwise get Cygnus style configure.
36106 if test -f "$ac_srcdir/configure.gnu"; then
36107 ac_sub_configure=$ac_srcdir/configure.gnu
36108 elif test -f "$ac_srcdir/configure"; then
36109 ac_sub_configure=$ac_srcdir/configure
36110 elif test -f "$ac_srcdir/configure.in"; then
36111 # This should be Cygnus configure.
36112 ac_sub_configure=$ac_aux_dir/configure
36114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
36115 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36119 # The recursion is here.
36120 if test -n "$ac_sub_configure"; then
36121 # Make the cache file name correct relative to the subdirectory.
36122 case $cache_file in
36123 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36124 *) # Relative name.
36125 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36128 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36129 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36130 # The eval makes quoting arguments work.
36131 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36132 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36133 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
36139 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36141 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}