2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for ntp 4.2.8p17.
5 # Report bugs to <https://bugs.ntp.org/>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 *v*x* | *x*v* ) as_opts=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195 if (eval "$as_required") 2>/dev/null
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 *) as_dir=$as_dir/ ;;
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
242 CONFIG_SHELL=$SHELL as_have_required=yes
247 if test "x$CONFIG_SHELL" != x
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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: https://bugs.ntp.org/ about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Do nothing but, unlike ":", preserve the value of $?.
335 # Create "$as_dir" as a directory, including parents if necessary.
340 -*) as_dir=./$as_dir;;
342 test -d "$as_dir" || eval $as_mkdir_p || {
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
373 test -d "$as_dir" && break
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 eval 'as_fn_append ()
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
421 as_val=`expr "$@" || test $? -eq 1`
427 # Do nothing but, unlike ":", preserve the value of $?.
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
441 as_status=$1; test $as_status -eq 0 && as_status=1
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
527 # Exit status is that of the last command.
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
560 mkdir conf$$.dir 2>/dev/null
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 elif ln conf$$.file conf$$ 2>/dev/null; then
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
585 test -d ./-p && rmdir ./-p
590 as_executable_p=as_fn_executable_p
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598 SHELL=${CONFIG_SHELL-/bin/sh}
601 test -n "$DJDIR" || exec 7<&0 </dev/null
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
612 ac_default_prefix=/usr/local
614 ac_config_libobj_dir=.
621 # Identity of this package.
623 PACKAGE_TARNAME='ntp'
624 PACKAGE_VERSION='4.2.8p17'
625 PACKAGE_STRING='ntp 4.2.8p17'
626 PACKAGE_BUGREPORT='https://bugs.ntp.org/'
627 PACKAGE_URL='https://www.ntp.org/'
629 # Factoring default headers for most tests.
630 ac_includes_default="\
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
662 enable_option_checking=no
663 ac_subst_vars='am__EXEEXT_FALSE
669 BUILD_TEST_NTP_SIGND_FALSE
670 BUILD_TEST_NTP_SIGND_TRUE
671 BUILD_TEST_NTP_SCANNER_FALSE
672 BUILD_TEST_NTP_SCANNER_TRUE
673 BUILD_TEST_NTP_RESTRICT_FALSE
674 BUILD_TEST_NTP_RESTRICT_TRUE
675 UNITYBUILD_AVAILABLE_FALSE
676 UNITYBUILD_AVAILABLE_TRUE
678 HAVE_LEAPSMEARINTERVAL
679 SAVECONFIG_ENABLED_FALSE
680 SAVECONFIG_ENABLED_TRUE
716 LIBISC_PTHREADS_NOTHREADS
726 NTP_CROSSCOMPILE_FALSE
727 NTP_CROSSCOMPILE_TRUE
739 INSTALL_LIBOPTS_FALSE
742 GL_GENERATE_STDNORETURN_H_FALSE
743 GL_GENERATE_STDNORETURN_H_TRUE
766 INSTALL_UPDATE_LEAP_FALSE
767 INSTALL_UPDATE_LEAP_TRUE
808 INSTALL_NTPSWEEP_FALSE
809 INSTALL_NTPSWEEP_TRUE
851 WANT_CALC_TICKADJ_MS_FALSE
852 WANT_CALC_TICKADJ_MS_TRUE
907 INSTALL_STRIP_PROGRAM
950 program_transform_name
962 ac_subst_files='calc_tickadj_opts
969 enable_option_checking
971 enable_dependency_tracking
984 enable_libopts_install
986 enable_local_libevent
989 enable_thread_support
996 enable_trustedbsd_mac
1005 enable_ignore_dns_errors
1064 enable_openssl_random
1067 enable_accurate_adjtime
1076 enable_hourly_todr_sync
1077 enable_kernel_fll_bug
1082 enable_irig_sawtooth
1091 enable_dynamic_interleave
1092 enable_problem_tests
1094 ac_precious_vars='build_alias
1105 LT_SYS_LIBRARY_PATH'
1106 ac_subdirs_all='sntp'
1108 # Initialize some variables set by options.
1110 ac_init_version=false
1111 ac_unrecognized_opts=
1112 ac_unrecognized_sep=
1113 # The variables have the same names as the options, with
1114 # dashes changed to underlines.
1115 cache_file=/dev/null
1122 program_transform_name=s,x,x,
1130 # Installation directory options.
1131 # These are left unexpanded so users can "make install exec_prefix=/foo"
1132 # and all the variables that are supposed to be based on exec_prefix
1133 # by default will actually change.
1134 # Use braces instead of parens because sh, perl, etc. also accept them.
1135 # (The list follows the same order as the GNU Coding Standards.)
1136 bindir='${exec_prefix}/bin'
1137 sbindir='${exec_prefix}/sbin'
1138 libexecdir='${exec_prefix}/libexec'
1139 datarootdir='${prefix}/share'
1140 datadir='${datarootdir}'
1141 sysconfdir='${prefix}/etc'
1142 sharedstatedir='${prefix}/com'
1143 localstatedir='${prefix}/var'
1144 runstatedir='${localstatedir}/run'
1145 includedir='${prefix}/include'
1146 oldincludedir='/usr/include'
1147 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1148 infodir='${datarootdir}/info'
1153 libdir='${exec_prefix}/lib'
1154 localedir='${datarootdir}/locale'
1155 mandir='${datarootdir}/man'
1161 # If the previous option needs an argument, assign it.
1162 if test -n "$ac_prev"; then
1163 eval $ac_prev=\$ac_option
1169 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1174 case $ac_dashdash$ac_option in
1178 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1180 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1181 bindir=$ac_optarg ;;
1183 -build | --build | --buil | --bui | --bu)
1184 ac_prev=build_alias ;;
1185 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1186 build_alias=$ac_optarg ;;
1188 -cache-file | --cache-file | --cache-fil | --cache-fi \
1189 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1190 ac_prev=cache_file ;;
1191 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1192 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1193 cache_file=$ac_optarg ;;
1195 --config-cache | -C)
1196 cache_file=config.cache ;;
1198 -datadir | --datadir | --datadi | --datad)
1200 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1201 datadir=$ac_optarg ;;
1203 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1204 | --dataroo | --dataro | --datar)
1205 ac_prev=datarootdir ;;
1206 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1207 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1208 datarootdir=$ac_optarg ;;
1210 -disable-* | --disable-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1219 "enable_$ac_useropt"
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1224 eval enable_$ac_useropt=no ;;
1226 -docdir | --docdir | --docdi | --doc | --do)
1228 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1229 docdir=$ac_optarg ;;
1231 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1233 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1234 dvidir=$ac_optarg ;;
1236 -enable-* | --enable-*)
1237 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1245 "enable_$ac_useropt"
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1250 eval enable_$ac_useropt=\$ac_optarg ;;
1252 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1253 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1254 | --exec | --exe | --ex)
1255 ac_prev=exec_prefix ;;
1256 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1257 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1258 | --exec=* | --exe=* | --ex=*)
1259 exec_prefix=$ac_optarg ;;
1261 -gas | --gas | --ga | --g)
1262 # Obsolete; use --with-gas.
1265 -help | --help | --hel | --he | -h)
1266 ac_init_help=long ;;
1267 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1268 ac_init_help=recursive ;;
1269 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1270 ac_init_help=short ;;
1272 -host | --host | --hos | --ho)
1273 ac_prev=host_alias ;;
1274 -host=* | --host=* | --hos=* | --ho=*)
1275 host_alias=$ac_optarg ;;
1277 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1279 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1281 htmldir=$ac_optarg ;;
1283 -includedir | --includedir | --includedi | --included | --include \
1284 | --includ | --inclu | --incl | --inc)
1285 ac_prev=includedir ;;
1286 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1287 | --includ=* | --inclu=* | --incl=* | --inc=*)
1288 includedir=$ac_optarg ;;
1290 -infodir | --infodir | --infodi | --infod | --info | --inf)
1292 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1293 infodir=$ac_optarg ;;
1295 -libdir | --libdir | --libdi | --libd)
1297 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1298 libdir=$ac_optarg ;;
1300 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1301 | --libexe | --libex | --libe)
1302 ac_prev=libexecdir ;;
1303 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1304 | --libexe=* | --libex=* | --libe=*)
1305 libexecdir=$ac_optarg ;;
1307 -localedir | --localedir | --localedi | --localed | --locale)
1308 ac_prev=localedir ;;
1309 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1310 localedir=$ac_optarg ;;
1312 -localstatedir | --localstatedir | --localstatedi | --localstated \
1313 | --localstate | --localstat | --localsta | --localst | --locals)
1314 ac_prev=localstatedir ;;
1315 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1316 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1317 localstatedir=$ac_optarg ;;
1319 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1321 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1322 mandir=$ac_optarg ;;
1324 -nfp | --nfp | --nf)
1325 # Obsolete; use --without-fp.
1328 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1329 | --no-cr | --no-c | -n)
1332 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1333 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1336 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1337 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1338 | --oldin | --oldi | --old | --ol | --o)
1339 ac_prev=oldincludedir ;;
1340 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1341 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1342 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1343 oldincludedir=$ac_optarg ;;
1345 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1347 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1348 prefix=$ac_optarg ;;
1350 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1351 | --program-pre | --program-pr | --program-p)
1352 ac_prev=program_prefix ;;
1353 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1354 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1355 program_prefix=$ac_optarg ;;
1357 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1358 | --program-suf | --program-su | --program-s)
1359 ac_prev=program_suffix ;;
1360 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1361 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1362 program_suffix=$ac_optarg ;;
1364 -program-transform-name | --program-transform-name \
1365 | --program-transform-nam | --program-transform-na \
1366 | --program-transform-n | --program-transform- \
1367 | --program-transform | --program-transfor \
1368 | --program-transfo | --program-transf \
1369 | --program-trans | --program-tran \
1370 | --progr-tra | --program-tr | --program-t)
1371 ac_prev=program_transform_name ;;
1372 -program-transform-name=* | --program-transform-name=* \
1373 | --program-transform-nam=* | --program-transform-na=* \
1374 | --program-transform-n=* | --program-transform-=* \
1375 | --program-transform=* | --program-transfor=* \
1376 | --program-transfo=* | --program-transf=* \
1377 | --program-trans=* | --program-tran=* \
1378 | --progr-tra=* | --program-tr=* | --program-t=*)
1379 program_transform_name=$ac_optarg ;;
1381 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1383 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1384 pdfdir=$ac_optarg ;;
1386 -psdir | --psdir | --psdi | --psd | --ps)
1388 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1391 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1392 | -silent | --silent | --silen | --sile | --sil)
1395 -runstatedir | --runstatedir | --runstatedi | --runstated \
1396 | --runstate | --runstat | --runsta | --runst | --runs \
1397 | --run | --ru | --r)
1398 ac_prev=runstatedir ;;
1399 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1400 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1401 | --run=* | --ru=* | --r=*)
1402 runstatedir=$ac_optarg ;;
1404 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1406 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1408 sbindir=$ac_optarg ;;
1410 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1411 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1412 | --sharedst | --shareds | --shared | --share | --shar \
1414 ac_prev=sharedstatedir ;;
1415 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1416 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1417 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1419 sharedstatedir=$ac_optarg ;;
1421 -site | --site | --sit)
1423 -site=* | --site=* | --sit=*)
1426 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1428 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1429 srcdir=$ac_optarg ;;
1431 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1432 | --syscon | --sysco | --sysc | --sys | --sy)
1433 ac_prev=sysconfdir ;;
1434 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1435 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1436 sysconfdir=$ac_optarg ;;
1438 -target | --target | --targe | --targ | --tar | --ta | --t)
1439 ac_prev=target_alias ;;
1440 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1441 target_alias=$ac_optarg ;;
1443 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1446 -version | --version | --versio | --versi | --vers | -V)
1447 ac_init_version=: ;;
1450 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1451 # Reject names that are not valid shell variable names.
1452 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1453 as_fn_error $? "invalid package name: \`$ac_useropt'"
1454 ac_useropt_orig=$ac_useropt
1455 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1456 case $ac_user_opts in
1460 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1461 ac_unrecognized_sep=', ';;
1463 eval with_$ac_useropt=\$ac_optarg ;;
1465 -without-* | --without-*)
1466 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1467 # Reject names that are not valid shell variable names.
1468 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1469 as_fn_error $? "invalid package name: \`$ac_useropt'"
1470 ac_useropt_orig=$ac_useropt
1471 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1472 case $ac_user_opts in
1476 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1477 ac_unrecognized_sep=', ';;
1479 eval with_$ac_useropt=no ;;
1482 # Obsolete; use --with-x.
1485 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1486 | --x-incl | --x-inc | --x-in | --x-i)
1487 ac_prev=x_includes ;;
1488 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1489 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1490 x_includes=$ac_optarg ;;
1492 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1493 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1494 ac_prev=x_libraries ;;
1495 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1496 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1497 x_libraries=$ac_optarg ;;
1499 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1500 Try \`$0 --help' for more information"
1504 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1505 # Reject names that are not valid shell variable names.
1506 case $ac_envvar in #(
1507 '' | [0-9]* | *[!_$as_cr_alnum]* )
1508 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1510 eval $ac_envvar=\$ac_optarg
1511 export $ac_envvar ;;
1514 # FIXME: should be removed in autoconf 3.0.
1515 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1516 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1517 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1518 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1524 if test -n "$ac_prev"; then
1525 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1526 as_fn_error $? "missing argument to $ac_option"
1529 if test -n "$ac_unrecognized_opts"; then
1530 case $enable_option_checking in
1532 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1533 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1537 # Check all directory arguments for consistency.
1538 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1539 datadir sysconfdir sharedstatedir localstatedir includedir \
1540 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1541 libdir localedir mandir runstatedir
1543 eval ac_val=\$$ac_var
1544 # Remove trailing slashes.
1547 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1548 eval $ac_var=\$ac_val;;
1550 # Be sure to have absolute directory names.
1552 [\\/$]* | ?:[\\/]* ) continue;;
1553 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1555 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1558 # There might be people who depend on the old broken behavior: `$host'
1559 # used to hold the argument of --host etc.
1560 # FIXME: To remove some day.
1563 target=$target_alias
1565 # FIXME: To remove some day.
1566 if test "x$host_alias" != x; then
1567 if test "x$build_alias" = x; then
1568 cross_compiling=maybe
1569 elif test "x$build_alias" != "x$host_alias"; then
1575 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1577 test "$silent" = yes && exec 6>/dev/null
1580 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1581 ac_ls_di=`ls -di .` &&
1582 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1583 as_fn_error $? "working directory cannot be determined"
1584 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1585 as_fn_error $? "pwd does not report name of working directory"
1588 # Find the source files, if location was not specified.
1589 if test -z "$srcdir"; then
1590 ac_srcdir_defaulted=yes
1591 # Try the directory containing this script, then the parent directory.
1592 ac_confdir=`$as_dirname -- "$as_myself" ||
1593 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1594 X"$as_myself" : 'X\(//\)[^/]' \| \
1595 X"$as_myself" : 'X\(//\)$' \| \
1596 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1597 printf "%s\n" X"$as_myself" |
1598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1616 if test ! -r "$srcdir/$ac_unique_file"; then
1620 ac_srcdir_defaulted=no
1622 if test ! -r "$srcdir/$ac_unique_file"; then
1623 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1624 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1626 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1628 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1630 # When building in place, set srcdir=.
1631 if test "$ac_abs_confdir" = "$ac_pwd"; then
1634 # Remove unnecessary trailing slashes from srcdir.
1635 # Double slashes in file names in object file debugging info
1636 # mess up M-x gdb in Emacs.
1638 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1640 for ac_var in $ac_precious_vars; do
1641 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1642 eval ac_env_${ac_var}_value=\$${ac_var}
1643 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1644 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1648 # Report the --help message.
1650 if test "$ac_init_help" = "long"; then
1651 # Omit some internal or obsolete options to make the list less imposing.
1652 # This message is too long to be a string in the A/UX 3.1 sh.
1654 \`configure' configures ntp 4.2.8p17 to adapt to many kinds of systems.
1656 Usage: $0 [OPTION]... [VAR=VALUE]...
1658 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1659 VAR=VALUE. See below for descriptions of some of the useful variables.
1661 Defaults for the options are specified in brackets.
1664 -h, --help display this help and exit
1665 --help=short display options specific to this package
1666 --help=recursive display the short help of all the included packages
1667 -V, --version display version information and exit
1668 -q, --quiet, --silent do not print \`checking ...' messages
1669 --cache-file=FILE cache test results in FILE [disabled]
1670 -C, --config-cache alias for \`--cache-file=config.cache'
1671 -n, --no-create do not create output files
1672 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1674 Installation directories:
1675 --prefix=PREFIX install architecture-independent files in PREFIX
1676 [$ac_default_prefix]
1677 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1680 By default, \`make install' will install all the files in
1681 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1682 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1683 for instance \`--prefix=\$HOME'.
1685 For better control, use the options below.
1687 Fine tuning of the installation directories:
1688 --bindir=DIR user executables [EPREFIX/bin]
1689 --sbindir=DIR system admin executables [EPREFIX/sbin]
1690 --libexecdir=DIR program executables [EPREFIX/libexec]
1691 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1692 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1693 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1694 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1695 --libdir=DIR object code libraries [EPREFIX/lib]
1696 --includedir=DIR C header files [PREFIX/include]
1697 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1698 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1699 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1700 --infodir=DIR info documentation [DATAROOTDIR/info]
1701 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1702 --mandir=DIR man documentation [DATAROOTDIR/man]
1703 --docdir=DIR documentation root [DATAROOTDIR/doc/ntp]
1704 --htmldir=DIR html documentation [DOCDIR]
1705 --dvidir=DIR dvi documentation [DOCDIR]
1706 --pdfdir=DIR pdf documentation [DOCDIR]
1707 --psdir=DIR ps documentation [DOCDIR]
1713 --program-prefix=PREFIX prepend PREFIX to installed program names
1714 --program-suffix=SUFFIX append SUFFIX to installed program names
1715 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1718 --build=BUILD configure for building on BUILD [guessed]
1719 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1723 if test -n "$ac_init_help"; then
1724 case $ac_init_help in
1725 short | recursive ) echo "Configuration of ntp 4.2.8p17:";;
1729 Optional Features and Packages:
1730 --disable-option-checking ignore unrecognized --enable/--with options
1731 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1732 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1733 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1734 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1735 --enable-silent-rules less verbose build output (undo: "make V=1")
1736 --disable-silent-rules verbose build output (undo: "make V=0")
1737 --enable-dependency-tracking
1738 do not reject slow dependency extractors
1739 --disable-dependency-tracking
1740 speeds up one-time build
1741 --with-hardenfile=XXX os-specific or "/dev/null"
1742 --with-locfile=XXX os-specific or "legacy"
1743 --enable-shared[=PKGS] build shared libraries [default=no]
1744 --enable-static[=PKGS] build static libraries [default=yes]
1745 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1747 --enable-fast-install[=PKGS]
1748 optimize for fast installation [default=yes]
1749 --with-aix-soname=aix|svr4|both
1750 shared library versioning (aka "SONAME") variant to
1751 provide on AIX, [default=aix].
1752 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1753 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1754 compiler's sysroot if not specified).
1755 --disable-libtool-lock avoid locking (might break parallel builds)
1756 --disable-nls disable nls support in libopts
1757 --enable-local-libopts Use the supplied libopts tearoff code
1758 --enable-libopts-install
1759 Install libopts with client installation
1760 --with-autoopts-config specify the config-info script
1761 --enable-local-libevent Force using the supplied libevent tearoff code
1762 --with-lineeditlibs edit,editline (readline may be specified if desired)
1763 defaults: + yes, - no, s system-specific
1764 --enable-debugging + include ntpd debugging code
1765 --enable-thread-support s use threads (+ if available)
1766 --with-threads with threads [auto]
1767 --with-yielding-select with yielding select [auto]
1768 --enable-c99-snprintf s force replacement
1769 --enable-clockctl s Use /dev/clockctl for non-root clock control
1770 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1771 --enable-solarisprivs + Use Solaris privileges for non-root clock control
1772 --enable-trustedbsd-mac s Use TrustedBSD MAC policy for non-root clock
1774 --enable-signalled-io s Use signalled IO if we can
1775 --with-arlib - deprecated, arlib not distributed
1776 --with-net-snmp-config + =net-snmp-config
1777 --enable-libseccomp EXPERIMENTAL: enable support for libseccomp
1778 sandboxing (default is no)
1779 --with-stack-limit ? =50 (200 for openbsd) 4k pages
1780 --with-memlock ? =32 (-1 on linux) megabytes
1781 --enable-debug-timing - include processing time debugging code (costs
1783 --enable-dst-minutes =60 minutes per DST adjustment
1784 --enable-ignore-dns-errors
1785 - retry DNS queries on any error
1786 --enable-BANCOMM - Datum/Bancomm bc635/VME interface
1787 --enable-GPSVME - TrueTime GPS receiver/VME interface
1788 --enable-all-clocks + include all suitable non-PARSE clocks:
1789 --enable-ACTS s ACTS modem service
1790 --enable-ARBITER + Arbiter 1088A/B GPS receiver
1791 --enable-ARCRON-MSF + Arcron MSF receiver
1792 --enable-AS2201 + Austron 2200A/2201A GPS receiver
1793 --enable-ATOM s ATOM PPS interface
1794 --enable-CHRONOLOG + Chrono-log K-series WWVB receiver
1795 --enable-CHU + CHU modem/decoder
1796 --enable-AUDIO-CHU s CHU audio/decoder
1797 --enable-DATUM s Datum Programmable Time System
1798 --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock
1799 --enable-FG + Forum Graphic GPS
1800 --enable-HEATH s Heath GC-1000 WWV/WWVH receiver
1801 --enable-HOPFSERIAL + hopf serial clock device
1802 --enable-HOPFPCI + hopf 6039 PCI board
1803 --enable-HPGPS + HP 58503A GPS receiver
1804 --enable-IRIG s IRIG audio decoder
1805 --enable-JJY + JJY receiver
1806 --enable-JUPITER s Rockwell Jupiter GPS receiver
1807 --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver
1808 --enable-LOCAL-CLOCK + local clock reference
1809 --enable-MX4200 s Magnavox MX4200 GPS receiver
1810 --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver
1811 --enable-NMEA + NMEA GPS receiver
1812 --enable-GPSD + GPSD JSON receiver
1813 --enable-ONCORE s Motorola VP/UT Oncore GPS receiver
1814 --enable-PALISADE s Palisade clock
1815 --enable-PCF + Conrad parallel port radio clock
1816 --enable-PST + PST/Traconex 1020 WWV/WWVH receiver
1817 --enable-RIPENCC - RIPENCC specific Trimble driver
1818 --enable-SHM s SHM clock attached thru shared memory
1819 --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver
1820 --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface
1821 --enable-TRUETIME s Kinemetrics/TrueTime receivers
1822 --enable-TT560 - TrueTime 560 IRIG-B decoder
1823 --enable-ULINK + Ultralink WWVB receiver
1824 --enable-TSYNCPCI s Spectracom TSYNC timing board
1825 --enable-WWV s WWV Audio receiver
1826 --enable-ZYFER + Zyfer GPStarplus receiver
1827 --enable-parse-clocks - include all suitable PARSE clocks:
1828 --enable-COMPUTIME s Diem Computime Radio Clock
1829 --enable-DCF7000 s ELV/DCF7000 clock
1830 --enable-HOPF6021 s HOPF 6021 clock
1831 --enable-MEINBERG s Meinberg clocks
1832 --enable-RAWDCF s DCF77 raw time code
1833 --enable-RCC8000 s RCC 8000 clock
1834 --enable-SCHMID s Schmid DCF77 clock
1835 --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol
1836 --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol
1837 --enable-WHARTON s WHARTON 400A Series clock
1838 --enable-VARITEXT s VARITEXT clock
1839 --enable-SEL240X s SEL240X clock
1840 --with-crypto + =openssl,libcrypto
1842 --with-openssl-libdir + =/something/reasonable
1844 --with-openssl-incdir + =/something/reasonable
1846 --without-rpath s Disable auto-added -R linker paths
1848 --enable-openssl-random Use OpenSSL's crypto random number functions, if
1849 available (default is yes)
1850 --enable-autokey + support NTP Autokey protocol
1851 --enable-kmem s read /dev/kmem for tick and/or tickadj
1852 --enable-accurate-adjtime
1853 s the adjtime() call is accurate
1854 --enable-tick=VALUE s force a value for 'tick'
1855 --enable-tickadj=VALUE s force a value for 'tickadj'
1856 --enable-simulator - build/install the NTPD simulator?
1857 --without-sntp - disable building sntp and sntp/tests
1858 --with-ntpsnmpd s Build ntpsnmpd MIB agent?
1859 --enable-slew-always s always slew the time
1860 --enable-step-slew s step and slew the time
1861 --enable-ntpdate-step s if ntpdate should step the time
1862 --enable-hourly-todr-sync
1863 s if we should sync TODR hourly
1864 --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
1865 --enable-bug1243-fix + use unmodified autokey session keys
1866 --enable-bug3020-fix + Provide the explicit 127.0.0.0/8 martian filter
1867 --enable-bug3527-fix + provide correct mode7 fudgetime2 behavior
1868 --enable-bug3767-fix + Disable debug assertion on OOB KoD RATE value
1869 --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter
1870 --enable-nist - if we should enable the NIST lockclock scheme
1871 --enable-ntp-signd - Provide support for Samba's signing daemon,
1873 --enable-magicpps + try to auto-instantiate PPS devices on Linux
1874 --enable-ipv6 s use IPv6?
1876 --with-kame - =/usr/local/v6
1877 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]].
1878 --enable-saveconfig + saveconfig mechanism
1879 --enable-leap-smear - experimental leap smear code
1880 --enable-dynamic-interleave
1881 - dynamic interleave support
1882 --enable-problem-tests + enable tests with undiagnosed problems
1884 Some influential environment variables:
1885 CC C compiler command
1886 CFLAGS C compiler flags
1887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1888 nonstandard directory <lib dir>
1889 LIBS libraries to pass to the linker, e.g. -l<library>
1890 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1891 you have headers in a nonstandard directory <include dir>
1893 YACC The `Yet Another Compiler Compiler' implementation to use.
1894 Defaults to the first program found out of: `bison -y', `byacc',
1896 YFLAGS The list of arguments that will be passed by default to $YACC.
1897 This script will default YFLAGS to the empty string to avoid a
1898 default value of `-d' given by some make applications.
1900 User-defined run-time library search path.
1902 Use these variables to override the choices made by `configure' or to help
1903 it to find libraries and programs with nonstandard names/locations.
1905 Report bugs to <https://bugs.ntp.org/>.
1906 ntp home page: <https://www.ntp.org/>.
1911 if test "$ac_init_help" = "recursive"; then
1912 # If there are subdirs, report their specific --help.
1913 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1914 test -d "$ac_dir" ||
1915 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1920 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1922 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1923 # A ".." for each directory in $ac_dir_suffix.
1924 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1925 case $ac_top_builddir_sub in
1926 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1927 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1930 ac_abs_top_builddir=$ac_pwd
1931 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1932 # for backward compatibility:
1933 ac_top_builddir=$ac_top_build_prefix
1936 .) # We are building in place.
1938 ac_top_srcdir=$ac_top_builddir_sub
1939 ac_abs_top_srcdir=$ac_pwd ;;
1940 [\\/]* | ?:[\\/]* ) # Absolute name.
1941 ac_srcdir=$srcdir$ac_dir_suffix;
1942 ac_top_srcdir=$srcdir
1943 ac_abs_top_srcdir=$srcdir ;;
1945 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1946 ac_top_srcdir=$ac_top_build_prefix$srcdir
1947 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1949 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1951 cd "$ac_dir" || { ac_status=$?; continue; }
1952 # Check for configure.gnu first; this name is used for a wrapper for
1953 # Metaconfig's "Configure" on case-insensitive file systems.
1954 if test -f "$ac_srcdir/configure.gnu"; then
1956 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1957 elif test -f "$ac_srcdir/configure"; then
1959 $SHELL "$ac_srcdir/configure" --help=recursive
1961 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1963 cd "$ac_pwd" || { ac_status=$?; break; }
1967 test -n "$ac_init_help" && exit $ac_status
1968 if $ac_init_version; then
1970 ntp configure 4.2.8p17
1971 generated by GNU Autoconf 2.71
1973 Copyright (C) 2021 Free Software Foundation, Inc.
1974 This configure script is free software; the Free Software Foundation
1975 gives unlimited permission to copy, distribute and modify it.
1980 ## ------------------------ ##
1981 ## Autoconf initialization. ##
1982 ## ------------------------ ##
1984 # ac_fn_c_try_compile LINENO
1985 # --------------------------
1986 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1987 ac_fn_c_try_compile ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 rm -f conftest.$ac_objext conftest.beam
1991 if { { ac_try="$ac_compile"
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 printf "%s\n" "$ac_try_echo"; } >&5
1998 (eval "$ac_compile") 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 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; } && {
2007 test -z "$ac_c_werror_flag" ||
2008 test ! -s conftest.err
2009 } && test -s conftest.$ac_objext
2013 printf "%s\n" "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2019 as_fn_set_status $ac_retval
2021 } # ac_fn_c_try_compile
2023 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2024 # -------------------------------------------------------
2025 # Tests whether HEADER exists and can be compiled using the include files in
2026 # INCLUDES, setting the cache variable VAR accordingly.
2027 ac_fn_c_check_header_compile ()
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031 printf %s "checking for $2... " >&6; }
2032 if eval test \${$3+y}
2034 printf %s "(cached) " >&6
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2041 if ac_fn_c_try_compile "$LINENO"
2047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 printf "%s\n" "$ac_res" >&6; }
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054 } # ac_fn_c_check_header_compile
2056 # ac_fn_c_try_cpp LINENO
2057 # ----------------------
2058 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 if { { ac_try="$ac_cpp conftest.$ac_ext"
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 printf "%s\n" "$ac_try_echo"; } >&5
2069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2071 if test -s conftest.err; then
2072 grep -v '^ *+' conftest.err >conftest.er1
2073 cat conftest.er1 >&5
2074 mv -f conftest.er1 conftest.err
2076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077 test $ac_status = 0; } > conftest.i && {
2078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2079 test ! -s conftest.err
2084 printf "%s\n" "$as_me: failed program was:" >&5
2085 sed 's/^/| /' conftest.$ac_ext >&5
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 as_fn_set_status $ac_retval
2094 # ac_fn_c_try_link LINENO
2095 # -----------------------
2096 # Try to link conftest.$ac_ext, and return whether this succeeded.
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2101 if { { ac_try="$ac_link"
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107 printf "%s\n" "$ac_try_echo"; } >&5
2108 (eval "$ac_link") 2>conftest.err
2110 if test -s conftest.err; then
2111 grep -v '^ *+' conftest.err >conftest.er1
2112 cat conftest.er1 >&5
2113 mv -f conftest.er1 conftest.err
2115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116 test $ac_status = 0; } && {
2117 test -z "$ac_c_werror_flag" ||
2118 test ! -s conftest.err
2119 } && test -s conftest$ac_exeext && {
2120 test "$cross_compiling" = yes ||
2121 test -x conftest$ac_exeext
2126 printf "%s\n" "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2131 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2132 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2133 # interfere with the next link command; also delete a directory that is
2134 # left behind by Apple's compiler. We do this before executing the actions.
2135 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137 as_fn_set_status $ac_retval
2139 } # ac_fn_c_try_link
2141 # ac_fn_c_try_run LINENO
2142 # ----------------------
2143 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2144 # executables *can* be run.
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 if { { ac_try="$ac_link"
2150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151 *) ac_try_echo=$ac_try;;
2153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2154 printf "%s\n" "$ac_try_echo"; } >&5
2155 (eval "$ac_link") 2>&5
2157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2158 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2159 { { case "(($ac_try" in
2160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161 *) ac_try_echo=$ac_try;;
2163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2164 printf "%s\n" "$ac_try_echo"; } >&5
2165 (eval "$ac_try") 2>&5
2167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2168 test $ac_status = 0; }; }
2172 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2173 printf "%s\n" "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.$ac_ext >&5
2176 ac_retval=$ac_status
2178 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180 as_fn_set_status $ac_retval
2184 # ac_fn_c_check_func LINENO FUNC VAR
2185 # ----------------------------------
2186 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2187 ac_fn_c_check_func ()
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2191 printf %s "checking for $2... " >&6; }
2192 if eval test \${$3+y}
2194 printf %s "(cached) " >&6
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2198 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2200 #define $2 innocuous_$2
2202 /* System header to define __stub macros and hopefully few prototypes,
2203 which can conflict with char $2 (); below. */
2208 /* Override any GCC internal prototype to avoid an error.
2209 Use char because int might match the return type of a GCC
2210 builtin and then its argument prototype would still apply. */
2215 /* The GNU C library defines this for functions which it implements
2216 to always fail with ENOSYS. Some functions are actually named
2217 something starting with __ and the normal name is an alias. */
2218 #if defined __stub_$2 || defined __stub___$2
2230 if ac_fn_c_try_link "$LINENO"
2236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2237 conftest$ac_exeext conftest.$ac_ext
2240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241 printf "%s\n" "$ac_res" >&6; }
2242 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2244 } # ac_fn_c_check_func
2246 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2247 # -------------------------------------------
2248 # Tests whether TYPE exists after having included INCLUDES, setting cache
2249 # variable VAR accordingly.
2250 ac_fn_c_check_type ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254 printf %s "checking for $2... " >&6; }
2255 if eval test \${$3+y}
2257 printf %s "(cached) " >&6
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2272 if ac_fn_c_try_compile "$LINENO"
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2286 if ac_fn_c_try_compile "$LINENO"
2292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298 printf "%s\n" "$ac_res" >&6; }
2299 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2301 } # ac_fn_c_check_type
2303 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2304 # --------------------------------------------
2305 # Tries to find the compile-time value of EXPR in a program that includes
2306 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2308 ac_fn_c_compute_int ()
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 if test "$cross_compiling" = yes; then
2312 # Depending upon the size, compute the lo and hi bounds.
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2319 static int test_array [1 - 2 * !(($2) >= 0)];
2321 return test_array [0];
2327 if ac_fn_c_try_compile "$LINENO"
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2337 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2339 return test_array [0];
2345 if ac_fn_c_try_compile "$LINENO"
2347 ac_hi=$ac_mid; break
2349 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2350 if test $ac_lo -le $ac_mid; then
2354 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2365 static int test_array [1 - 2 * !(($2) < 0)];
2367 return test_array [0];
2373 if ac_fn_c_try_compile "$LINENO"
2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h. */
2383 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2385 return test_array [0];
2391 if ac_fn_c_try_compile "$LINENO"
2393 ac_lo=$ac_mid; break
2395 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2396 if test $ac_mid -le $ac_hi; then
2400 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2410 # Binary search between lo and hi bounds.
2411 while test "x$ac_lo" != "x$ac_hi"; do
2412 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2419 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2421 return test_array [0];
2427 if ac_fn_c_try_compile "$LINENO"
2431 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2436 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2441 /* end confdefs.h. */
2443 static long int longval (void) { return $2; }
2444 static unsigned long int ulongval (void) { return $2; }
2451 FILE *f = fopen ("conftest.val", "w");
2456 long int i = longval ();
2459 fprintf (f, "%ld", i);
2463 unsigned long int i = ulongval ();
2466 fprintf (f, "%lu", i);
2468 /* Do not output a trailing newline, as this causes \r\n confusion
2469 on some platforms. */
2470 return ferror (f) || fclose (f) != 0;
2476 if ac_fn_c_try_run "$LINENO"
2478 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2483 conftest.$ac_objext conftest.beam conftest.$ac_ext
2487 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2488 as_fn_set_status $ac_retval
2490 } # ac_fn_c_compute_int
2492 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2493 # ------------------------------------------------------------------
2494 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2495 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499 as_decl_name=`echo $2|sed 's/ *(.*//'`
2500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2501 printf %s "checking whether $as_decl_name is declared... " >&6; }
2502 if eval test \${$3+y}
2504 printf %s "(cached) " >&6
2506 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2507 eval ac_save_FLAGS=\$$6
2508 as_fn_append $6 " $5"
2509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510 /* end confdefs.h. */
2515 #ifndef $as_decl_name
2517 (void) $as_decl_use;
2519 (void) $as_decl_name;
2527 if ac_fn_c_try_compile "$LINENO"
2533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2534 eval $6=\$ac_save_FLAGS
2538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2539 printf "%s\n" "$ac_res" >&6; }
2540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2542 } # ac_fn_check_decl
2544 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2545 # ----------------------------------------------------
2546 # Tries to find if the field MEMBER exists in type AGGR, after including
2547 # INCLUDES, setting cache variable VAR accordingly.
2548 ac_fn_c_check_member ()
2550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2552 printf %s "checking for $2.$3... " >&6; }
2553 if eval test \${$4+y}
2555 printf %s "(cached) " >&6
2557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2558 /* end confdefs.h. */
2570 if ac_fn_c_try_compile "$LINENO"
2574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575 /* end confdefs.h. */
2581 if (sizeof ac_aggr.$3)
2587 if ac_fn_c_try_compile "$LINENO"
2593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2599 printf "%s\n" "$ac_res" >&6; }
2600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2602 } # ac_fn_c_check_member
2603 ac_configure_args_raw=
2608 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2610 as_fn_append ac_configure_args_raw " '$ac_arg'"
2613 case $ac_configure_args_raw in
2617 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2618 ac_unsafe_a="$ac_unsafe_z#~"
2619 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2620 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2623 cat >config.log <<_ACEOF
2624 This file contains any messages produced by compilers while
2625 running configure, to aid debugging if configure makes a mistake.
2627 It was created by ntp $as_me 4.2.8p17, which was
2628 generated by GNU Autoconf 2.71. Invocation command line was
2630 $ $0$ac_configure_args_raw
2640 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2641 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2642 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2643 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2644 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2646 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2647 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2649 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2650 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2651 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2652 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2653 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2654 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2655 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 case $as_dir in #(((
2666 *) as_dir=$as_dir/ ;;
2668 printf "%s\n" "PATH: $as_dir"
2684 # Keep a trace of the command line.
2685 # Strip out --no-create and --no-recursion so they do not pile up.
2686 # Strip out --silent because we don't want to record it for future runs.
2687 # Also quote any args containing shell meta-characters.
2688 # Make two passes to allow for proper duplicate-argument suppression.
2692 ac_must_keep_next=false
2698 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2699 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2700 | -silent | --silent | --silen | --sile | --sil)
2703 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2706 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2708 as_fn_append ac_configure_args1 " '$ac_arg'"
2709 if test $ac_must_keep_next = true; then
2710 ac_must_keep_next=false # Got value, back to normal.
2713 *=* | --config-cache | -C | -disable-* | --disable-* \
2714 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2715 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2716 | -with-* | --with-* | -without-* | --without-* | --x)
2717 case "$ac_configure_args0 " in
2718 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2721 -* ) ac_must_keep_next=true ;;
2724 as_fn_append ac_configure_args " '$ac_arg'"
2729 { ac_configure_args0=; unset ac_configure_args0;}
2730 { ac_configure_args1=; unset ac_configure_args1;}
2732 # When interrupted or exit'd, cleanup temporary files, and complete
2733 # config.log. We remove comments because anyway the quotes in there
2734 # would cause problems or look ugly.
2735 # WARNING: Use '\'' to represent an apostrophe within the trap.
2736 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2737 trap 'exit_status=$?
2740 # Save into config.log some information that might help in debugging.
2744 printf "%s\n" "## ---------------- ##
2745 ## Cache variables. ##
2746 ## ---------------- ##"
2748 # The following way of writing the cache mishandles newlines in values,
2750 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2751 eval ac_val=\$$ac_var
2755 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2756 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2759 _ | IFS | as_nl) ;; #(
2760 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2761 *) { eval $ac_var=; unset $ac_var;} ;;
2766 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2767 *${as_nl}ac_space=\ *)
2769 "s/'\''/'\''\\\\'\'''\''/g;
2770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2773 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2780 printf "%s\n" "## ----------------- ##
2781 ## Output variables. ##
2782 ## ----------------- ##"
2784 for ac_var in $ac_subst_vars
2786 eval ac_val=\$$ac_var
2788 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2790 printf "%s\n" "$ac_var='\''$ac_val'\''"
2794 if test -n "$ac_subst_files"; then
2795 printf "%s\n" "## ------------------- ##
2796 ## File substitutions. ##
2797 ## ------------------- ##"
2799 for ac_var in $ac_subst_files
2801 eval ac_val=\$$ac_var
2803 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2805 printf "%s\n" "$ac_var='\''$ac_val'\''"
2810 if test -s confdefs.h; then
2811 printf "%s\n" "## ----------- ##
2818 test "$ac_signal" != 0 &&
2819 printf "%s\n" "$as_me: caught signal $ac_signal"
2820 printf "%s\n" "$as_me: exit $exit_status"
2822 rm -f core *.core core.conftest.* &&
2823 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2826 for ac_signal in 1 2 13 15; do
2827 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2831 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2832 rm -f -r conftest* confdefs.h
2834 printf "%s\n" "/* confdefs.h */" > confdefs.h
2836 # Predefined preprocessor variables.
2838 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2840 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2842 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2844 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2846 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2848 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2851 # Let the site file select an alternate cache file if it wants to.
2852 # Prefer an explicitly selected file to automatically selected ones.
2853 if test -n "$CONFIG_SITE"; then
2854 ac_site_files="$CONFIG_SITE"
2855 elif test "x$prefix" != xNONE; then
2856 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2858 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2861 for ac_site_file in $ac_site_files
2863 case $ac_site_file in #(
2867 ac_site_file=./$ac_site_file ;;
2869 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2871 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2872 sed 's/^/| /' "$ac_site_file" >&5
2874 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2875 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2876 as_fn_error $? "failed to load site script $ac_site_file
2877 See \`config.log' for more details" "$LINENO" 5; }
2881 if test -r "$cache_file"; then
2882 # Some versions of bash will fail to source /dev/null (special files
2883 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2884 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2886 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2888 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2889 *) . "./$cache_file";;
2893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2894 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2898 # Test code for whether the C compiler supports C89 (global declarations)
2899 ac_c_conftest_c89_globals='
2900 /* Does the compiler advertise C89 conformance?
2901 Do not test the value of __STDC__, because some compilers set it to 0
2902 while being otherwise adequately conformant. */
2903 #if !defined __STDC__
2904 # error "Compiler does not advertise C89 conformance"
2910 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2911 struct buf { int x; };
2912 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2913 static char *e (p, i)
2919 static char *f (char * (*g) (char **, int), char **p, ...)
2924 s = g (p, va_arg (v,int));
2929 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2930 function prototypes and stuff, but not \xHH hex character constants.
2931 These do not provoke an error unfortunately, instead are silently treated
2932 as an "x". The following induces an error, until -std is added to get
2933 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2934 array size at least. It is necessary to write \x00 == 0 to get something
2935 that is true only with -std. */
2936 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2938 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2939 inside strings and character constants. */
2940 #define FOO(x) '\''x'\''
2941 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2943 int test (int i, double x);
2944 struct s1 {int (*f) (int a);};
2945 struct s2 {int (*f) (double a);};
2946 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2949 # Test code for whether the C compiler supports C89 (body of main).
2950 ac_c_conftest_c89_main='
2951 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2954 # Test code for whether the C compiler supports C99 (global declarations)
2955 ac_c_conftest_c99_globals='
2956 // Does the compiler advertise C99 conformance?
2957 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2958 # error "Compiler does not advertise C99 conformance"
2961 #include <stdbool.h>
2962 extern int puts (const char *);
2963 extern int printf (const char *, ...);
2964 extern int dprintf (int, const char *, ...);
2965 extern void *malloc (size_t);
2967 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2968 // dprintf is used instead of fprintf to avoid needing to declare
2970 #define debug(...) dprintf (2, __VA_ARGS__)
2971 #define showlist(...) puts (#__VA_ARGS__)
2972 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2974 test_varargs_macros (void)
2979 debug ("X = %d\n", x);
2980 showlist (The first, second, and third items.);
2981 report (x>y, "x is %d but y is %d", x, y);
2984 // Check long long types.
2985 #define BIG64 18446744073709551615ull
2986 #define BIG32 4294967295ul
2987 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2989 #error "your preprocessor is broken"
2993 #error "your preprocessor is broken"
2995 static long long int bignum = -9223372036854775807LL;
2996 static unsigned long long int ubignum = BIG64;
2998 struct incomplete_array
3006 const wchar_t *name;
3010 typedef const char *ccp;
3013 test_restrict (ccp restrict text)
3015 // See if C++-style comments work.
3016 // Iterate through items via the restricted pointer.
3017 // Also check for declarations in for loops.
3018 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3023 // Check varargs and va_copy.
3025 test_varargs (const char *format, ...)
3028 va_start (args, format);
3030 va_copy (args_copy, args);
3032 const char *str = "";
3040 case '\''s'\'': // string
3041 str = va_arg (args_copy, const char *);
3043 case '\''d'\'': // int
3044 number = va_arg (args_copy, int);
3046 case '\''f'\'': // float
3047 fnumber = va_arg (args_copy, double);
3056 return *str && number && fnumber;
3060 # Test code for whether the C compiler supports C99 (body of main).
3061 ac_c_conftest_c99_main='
3063 _Bool success = false;
3064 success |= (argc != 0);
3067 if (test_restrict ("String literal") == 0)
3069 char *restrict newvar = "Another string";
3072 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3073 test_varargs_macros ();
3075 // Check flexible array members.
3076 struct incomplete_array *ia =
3077 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3079 for (int i = 0; i < ia->datasize; ++i)
3080 ia->data[i] = i * 1.234;
3082 // Check named initializers.
3083 struct named_init ni = {
3085 .name = L"Test wide string",
3086 .average = 543.34343,
3091 int dynamic_array[ni.number];
3092 dynamic_array[0] = argv[0][0];
3093 dynamic_array[ni.number - 1] = 543;
3095 // work around unused variable warnings
3096 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3097 || dynamic_array[ni.number - 1] != 543);
3100 # Test code for whether the C compiler supports C11 (global declarations)
3101 ac_c_conftest_c11_globals='
3102 // Does the compiler advertise C11 conformance?
3103 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3104 # error "Compiler does not advertise C11 conformance"
3108 char _Alignas (double) aligned_as_double;
3109 char _Alignas (0) no_special_alignment;
3110 extern char aligned_as_int;
3111 char _Alignas (0) _Alignas (int) aligned_as_int;
3116 int_alignment = _Alignof (int),
3117 int_array_alignment = _Alignof (int[100]),
3118 char_alignment = _Alignof (char)
3120 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3123 int _Noreturn does_not_return (void) { for (;;) continue; }
3125 // Check _Static_assert.
3126 struct test_static_assert
3129 _Static_assert (sizeof (int) <= sizeof (long int),
3130 "_Static_assert does not work in struct");
3134 // Check UTF-8 literals.
3135 #define u8 syntax error!
3136 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3138 // Check duplicate typedefs.
3139 typedef long *long_ptr;
3140 typedef long int *long_ptr;
3141 typedef long_ptr long_ptr;
3143 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3147 struct { int i; int j; };
3148 struct { int k; long int l; } w;
3154 # Test code for whether the C compiler supports C11 (body of main).
3155 ac_c_conftest_c11_main='
3156 _Static_assert ((offsetof (struct anonymous, i)
3157 == offsetof (struct anonymous, w.k)),
3158 "Anonymous union alignment botch");
3164 # Test code for whether the C compiler supports C11 (complete).
3165 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3166 ${ac_c_conftest_c99_globals}
3167 ${ac_c_conftest_c11_globals}
3170 main (int argc, char **argv)
3173 ${ac_c_conftest_c89_main}
3174 ${ac_c_conftest_c99_main}
3175 ${ac_c_conftest_c11_main}
3180 # Test code for whether the C compiler supports C99 (complete).
3181 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3182 ${ac_c_conftest_c99_globals}
3185 main (int argc, char **argv)
3188 ${ac_c_conftest_c89_main}
3189 ${ac_c_conftest_c99_main}
3194 # Test code for whether the C compiler supports C89 (complete).
3195 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3198 main (int argc, char **argv)
3201 ${ac_c_conftest_c89_main}
3206 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3207 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3208 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3209 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3210 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3211 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3212 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3213 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3214 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3215 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3216 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3217 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3218 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
3219 as_fn_append ac_func_c_list " fork HAVE_FORK"
3220 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
3221 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3222 as_fn_append ac_header_c_list " stdarg.h stdarg_h HAVE_STDARG_H"
3224 # Auxiliary files required by this configure script.
3225 ac_aux_files="ltmain.sh ar-lib compile config.guess config.sub missing install-sh"
3227 # Locations in which to look for auxiliary files.
3228 ac_aux_dir_candidates="${srcdir}/sntp/libevent/build-aux"
3230 # Search for a directory containing all of the required auxiliary files,
3231 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3232 # If we don't find one directory that contains all the files we need,
3233 # we report the set of missing files from the *first* directory in
3234 # $ac_aux_dir_candidates and give up.
3235 ac_missing_aux_files=""
3236 ac_first_candidate=:
3237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $ac_aux_dir_candidates
3243 case $as_dir in #(((
3246 *) as_dir=$as_dir/ ;;
3250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3251 ac_aux_dir_found=yes
3253 for ac_aux in $ac_aux_files
3255 # As a special case, if "install-sh" is required, that requirement
3256 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3257 # and $ac_install_sh is set appropriately for whichever one is found.
3258 if test x"$ac_aux" = x"install-sh"
3260 if test -f "${as_dir}install-sh"; then
3261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3262 ac_install_sh="${as_dir}install-sh -c"
3263 elif test -f "${as_dir}install.sh"; then
3264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3265 ac_install_sh="${as_dir}install.sh -c"
3266 elif test -f "${as_dir}shtool"; then
3267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3268 ac_install_sh="${as_dir}shtool install -c"
3271 if $ac_first_candidate; then
3272 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3278 if test -f "${as_dir}${ac_aux}"; then
3279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3282 if $ac_first_candidate; then
3283 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3290 if test "$ac_aux_dir_found" = yes; then
3291 ac_aux_dir="$as_dir"
3294 ac_first_candidate=false
3303 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3307 # These three variables are undocumented and unsupported,
3308 # and are intended to be withdrawn in a future Autoconf release.
3309 # They can cause serious problems if a builder's source tree is in a directory
3310 # whose full name contains unusual characters.
3311 if test -f "${ac_aux_dir}config.guess"; then
3312 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3314 if test -f "${ac_aux_dir}config.sub"; then
3315 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3317 if test -f "$ac_aux_dir/configure"; then
3318 ac_configure="$SHELL ${ac_aux_dir}configure"
3321 # Check that the precious variables saved in the cache have kept the same
3323 ac_cache_corrupted=false
3324 for ac_var in $ac_precious_vars; do
3325 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3326 eval ac_new_set=\$ac_env_${ac_var}_set
3327 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3328 eval ac_new_val=\$ac_env_${ac_var}_value
3329 case $ac_old_set,$ac_new_set in
3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3332 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3333 ac_cache_corrupted=: ;;
3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3336 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3337 ac_cache_corrupted=: ;;
3340 if test "x$ac_old_val" != "x$ac_new_val"; then
3341 # differences in whitespace do not lead to failure.
3342 ac_old_val_w=`echo x $ac_old_val`
3343 ac_new_val_w=`echo x $ac_new_val`
3344 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3346 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3347 ac_cache_corrupted=:
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3350 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3351 eval $ac_var=\$ac_old_val
3353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3354 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3356 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3359 # Pass precious variables to config.status.
3360 if test "$ac_new_set" = set; then
3362 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3363 *) ac_arg=$ac_var=$ac_new_val ;;
3365 case " $ac_configure_args " in
3366 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3367 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3371 if $ac_cache_corrupted; then
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3375 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3376 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3377 and start over" "$LINENO" 5
3379 ## -------------------- ##
3380 ## Main body of script. ##
3381 ## -------------------- ##
3384 ac_cpp='$CPP $CPPFLAGS'
3385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403 # Bump ntp_configure_cache_version for each change to configure.ac or
3404 # .m4 files which invalidates cached values from previous configure
3407 # If the change affects cache variables used only by the main NTP
3408 # configure.ac, then only its version number should be bumped, while
3409 # the subdir configure.ac version numbers should be unchanged. The
3410 # same is true for a test/variable that is used only by one subdir
3411 # being changed incompatibly; only that subdir's cache version needs
3414 # If a change affects variables shared by all NTP configure scripts,
3415 # please bump the version numbers of each. If you are not sure, the
3416 # safe choice is to bump all on any cache-invalidating change.
3418 # In order to avoid the risk of version stamp collision between -stable
3419 # and -dev branches, do not simply increment the version, instead use
3420 # the date YYYYMMDD optionally with -HHMM if there is more than one
3423 ntp_configure_cache_version=20230326
3425 # When the cache version of config.cache and configure do not
3426 # match, NTP_CACHEVERSION will flush the cache.
3432 case "$ntp_cv_main_cache_version" in
3433 $ntp_configure_cache_version)
3434 # same version, good
3438 # No cache, predates ntp_cv_main_cache_version, or is empty.
3439 case "$cache_file" in
3444 case "$NTP_CACHEVERSION_PARENT" in
3446 # Do not clear the cache immediately after it is created
3447 # empty as it is noisy. Differentiate a newly-created
3448 # config.cache from one predating the cache version
3449 # mechanism by looking for the first cached variable set
3451 case "$ac_cv_path_install" in
3453 # empty config.cache file
3458 # Parent configure just created cache from empty,
3459 # flushing would be counterproductive.
3466 # configure cache version mismatches config.cache version
3470 case "$ntp_cache_flush" in
3472 c_version="${ntp_cv_main_cache_version:-(no version found)}"
3474 # Do we flush all variables or exclude others' version stamps?
3476 case "$NTP_CACHEVERSION_PARENT" in
3478 # Clear all *_cv_* variables including our child subdirs'
3479 # ntp_cv_*_cache_version variables. This prevents subdir
3480 # configure scripts from noticing a version mismatch just
3481 # after the top configure in the invocation cleared and
3482 # recreated the cache.
3484 c_varname_list=`set |
3485 sed -n -e 's/=.*$//' \
3490 # This is not the top configure this particular invocation.
3491 # Clear all *_cv_* variables sparing the version stamps
3492 # of other configure scripts, so we don't trigger
3493 # useless repeated clearings.
3495 c_varname_list=`set |
3496 sed -n -e 's/=.*$//' \
3497 -e '/ntp_cv_.*_cache_version/d' \
3502 for c_varname in $c_varname_list
3504 { eval $c_varname=; unset $c_varname;}
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
3508 printf "%s\n" "$as_me: $cache_file saved by another version, ignored." >&6;}
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: configure script cache version: $ntp_configure_cache_version" >&5
3510 printf "%s\n" "$as_me: configure script cache version: $ntp_configure_cache_version" >&6;}
3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
3512 printf "%s\n" "$as_me: $cache_file version: $c_version" >&6;}
3513 { c_varname=; unset c_varname;}
3514 { c_varname_list=; unset c_varname_list;}
3515 { c_version=; unset c_version;}
3518 { ntp_cache_flush=; unset ntp_cache_flush;}
3520 # save configure version in config.cache for next time
3521 ntp_cv_main_cache_version="$ntp_configure_cache_version"
3523 # let any subdir configure.ac NTP_CACHEVERSION invocations
3524 # know they are not the top level.
3525 NTP_CACHEVERSION_PARENT='main' ; export NTP_CACHEVERSION_PARENT
3528 am__api_version='1.16'
3532 # Find a good install program. We prefer a C program (faster),
3533 # so one script is as good as another. But avoid the broken or
3534 # incompatible versions:
3535 # SysV /etc/install, /usr/sbin/install
3536 # SunOS /usr/etc/install
3537 # IRIX /sbin/install
3539 # AmigaOS /C/install, which installs bootblocks on floppy discs
3540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3543 # OS/2's system install, which has a completely different semantic
3544 # ./install, which can be erroneously created by make from ./install.sh.
3545 # Reject install programs that cannot install multiple files.
3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3547 printf %s "checking for a BSD-compatible install... " >&6; }
3548 if test -z "$INSTALL"; then
3549 if test ${ac_cv_path_install+y}
3551 printf %s "(cached) " >&6
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 case $as_dir in #(((
3560 *) as_dir=$as_dir/ ;;
3562 # Account for fact that we put trailing slashes in our PATH walk.
3565 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3566 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3569 # OSF1 and SCO ODT 3.0 have their own names for install.
3570 # Don't use installbsd from OSF since it installs stuff as root
3572 for ac_prog in ginstall scoinst install; do
3573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3575 if test $ac_prog = install &&
3576 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3577 # AIX install. It has an incompatible calling convention.
3579 elif test $ac_prog = install &&
3580 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3581 # program-specific install script used by HP pwplus--don't use.
3584 rm -rf conftest.one conftest.two conftest.dir
3585 echo one > conftest.one
3586 echo two > conftest.two
3588 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3589 test -s conftest.one && test -s conftest.two &&
3590 test -s conftest.dir/conftest.one &&
3591 test -s conftest.dir/conftest.two
3593 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3606 rm -rf conftest.one conftest.two conftest.dir
3609 if test ${ac_cv_path_install+y}; then
3610 INSTALL=$ac_cv_path_install
3612 # As a last resort, use the slow shell script. Don't cache a
3613 # value for INSTALL within a source directory, because that will
3614 # break other packages using the cache if that directory is
3615 # removed, or if the value is a relative name.
3616 INSTALL=$ac_install_sh
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3620 printf "%s\n" "$INSTALL" >&6; }
3622 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3623 # It thinks the first close brace ends the variable substitution.
3624 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3626 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3628 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3631 printf %s "checking whether build environment is sane... " >&6; }
3632 # Reject unsafe characters in $srcdir or the absolute working directory
3633 # name. Accept space and tab only in the latter.
3637 *[\\\"\#\$\&\'\`$am_lf]*)
3638 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3641 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3642 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3645 # Do 'set' in a subshell so we don't clobber the current shell's
3646 # arguments. Must try -L first in case configure is actually a
3647 # symlink; some systems play weird games with the mod time of symlinks
3648 # (eg FreeBSD returns the mod time of the symlink's containing
3652 for am_try in 1 2; do
3653 echo "timestamp, slept: $am_has_slept" > conftest.file
3654 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3655 if test "$*" = "X"; then
3657 set X `ls -t "$srcdir/configure" conftest.file`
3659 if test "$*" != "X $srcdir/configure conftest.file" \
3660 && test "$*" != "X conftest.file $srcdir/configure"; then
3662 # If neither matched, then we have a broken ls. This can happen
3663 # if, for instance, CONFIG_SHELL is bash and it inherits a
3664 # broken ls alias from the environment. This has actually
3665 # happened. Such a system could not be considered "sane".
3666 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3667 alias in your environment" "$LINENO" 5
3669 if test "$2" = conftest.file || test $am_try -eq 2; then
3676 test "$2" = conftest.file
3682 as_fn_error $? "newly created file is older than distributed files!
3683 Check your system clock" "$LINENO" 5
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3686 printf "%s\n" "yes" >&6; }
3687 # If we didn't sleep, we still need to ensure time stamps of config.status and
3688 # generated files are strictly newer.
3690 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3697 test "$program_prefix" != NONE &&
3698 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3699 # Use a double $ so make ignores it.
3700 test "$program_suffix" != NONE &&
3701 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3702 # Double any \ or $.
3703 # By default was `s,x,x', remove it if useless.
3704 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3705 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3708 # Expand $ac_aux_dir to an absolute path.
3709 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3712 if test x"${MISSING+set}" != xset; then
3713 MISSING="\${SHELL} '$am_aux_dir/missing'"
3715 # Use eval to expand $SHELL
3716 if eval "$MISSING --is-lightweight"; then
3717 am_missing_run="$MISSING "
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3721 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3724 if test x"${install_sh+set}" != xset; then
3727 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3729 install_sh="\${SHELL} $am_aux_dir/install-sh"
3733 # Installed binaries are usually stripped using 'strip' when the user
3734 # run "make install-strip". However 'strip' might not be the right
3735 # tool to use in cross-compilation environments, therefore Automake
3736 # will honor the 'STRIP' environment variable to overrule this program.
3737 if test "$cross_compiling" != no; then
3738 if test -n "$ac_tool_prefix"; then
3739 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3740 set dummy ${ac_tool_prefix}strip; ac_word=$2
3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 printf %s "checking for $ac_word... " >&6; }
3743 if test ${ac_cv_prog_STRIP+y}
3745 printf %s "(cached) " >&6
3747 if test -n "$STRIP"; then
3748 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 case $as_dir in #(((
3757 *) as_dir=$as_dir/ ;;
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3761 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3771 STRIP=$ac_cv_prog_STRIP
3772 if test -n "$STRIP"; then
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3774 printf "%s\n" "$STRIP" >&6; }
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777 printf "%s\n" "no" >&6; }
3782 if test -z "$ac_cv_prog_STRIP"; then
3784 # Extract the first word of "strip", so it can be a program name with args.
3785 set dummy strip; ac_word=$2
3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787 printf %s "checking for $ac_word... " >&6; }
3788 if test ${ac_cv_prog_ac_ct_STRIP+y}
3790 printf %s "(cached) " >&6
3792 if test -n "$ac_ct_STRIP"; then
3793 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 case $as_dir in #(((
3802 *) as_dir=$as_dir/ ;;
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3806 ac_cv_prog_ac_ct_STRIP="strip"
3807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3816 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3817 if test -n "$ac_ct_STRIP"; then
3818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3819 printf "%s\n" "$ac_ct_STRIP" >&6; }
3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 printf "%s\n" "no" >&6; }
3825 if test "x$ac_ct_STRIP" = x; then
3828 case $cross_compiling:$ac_tool_warned in
3830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3831 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3832 ac_tool_warned=yes ;;
3837 STRIP="$ac_cv_prog_STRIP"
3841 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3845 printf %s "checking for a race-free mkdir -p... " >&6; }
3846 if test -z "$MKDIR_P"; then
3847 if test ${ac_cv_path_mkdir+y}
3849 printf %s "(cached) " >&6
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3855 case $as_dir in #(((
3858 *) as_dir=$as_dir/ ;;
3860 for ac_prog in mkdir gmkdir; do
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3863 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3864 'mkdir ('*'coreutils) '* | \
3866 'mkdir (fileutils) '4.1*)
3867 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3877 test -d ./--version && rmdir ./--version
3878 if test ${ac_cv_path_mkdir+y}; then
3879 MKDIR_P="$ac_cv_path_mkdir -p"
3881 # As a last resort, use the slow shell script. Don't cache a
3882 # value for MKDIR_P within a source directory, because that will
3883 # break other packages using the cache if that directory is
3884 # removed, or if the value is a relative name.
3885 MKDIR_P="$ac_install_sh -d"
3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3889 printf "%s\n" "$MKDIR_P" >&6; }
3891 for ac_prog in gawk mawk nawk awk
3893 # Extract the first word of "$ac_prog", so it can be a program name with args.
3894 set dummy $ac_prog; ac_word=$2
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 printf %s "checking for $ac_word... " >&6; }
3897 if test ${ac_cv_prog_AWK+y}
3899 printf %s "(cached) " >&6
3901 if test -n "$AWK"; then
3902 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 case $as_dir in #(((
3911 *) as_dir=$as_dir/ ;;
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3915 ac_cv_prog_AWK="$ac_prog"
3916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3926 if test -n "$AWK"; then
3927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3928 printf "%s\n" "$AWK" >&6; }
3930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 printf "%s\n" "no" >&6; }
3935 test -n "$AWK" && break
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3939 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3941 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3942 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3944 printf %s "(cached) " >&6
3946 cat >conftest.make <<\_ACEOF
3949 @echo '@@@%%%=$(MAKE)=@@@%%%'
3951 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3952 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3954 eval ac_cv_prog_make_${ac_make}_set=yes;;
3956 eval ac_cv_prog_make_${ac_make}_set=no;;
3960 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3962 printf "%s\n" "yes" >&6; }
3965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 printf "%s\n" "no" >&6; }
3967 SET_MAKE="MAKE=${MAKE-make}"
3970 rm -rf .tst 2>/dev/null
3971 mkdir .tst 2>/dev/null
3972 if test -d .tst; then
3977 rmdir .tst 2>/dev/null
3979 # Check whether --enable-silent-rules was given.
3980 if test ${enable_silent_rules+y}
3982 enableval=$enable_silent_rules;
3985 case $enable_silent_rules in # (((
3986 yes) AM_DEFAULT_VERBOSITY=0;;
3987 no) AM_DEFAULT_VERBOSITY=1;;
3988 *) AM_DEFAULT_VERBOSITY=1;;
3990 am_make=${MAKE-make}
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3992 printf %s "checking whether $am_make supports nested variables... " >&6; }
3993 if test ${am_cv_make_support_nested_variables+y}
3995 printf %s "(cached) " >&6
3997 if printf "%s\n" 'TRUE=$(BAR$(V))
4003 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4004 am_cv_make_support_nested_variables=yes
4006 am_cv_make_support_nested_variables=no
4009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4010 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4011 if test $am_cv_make_support_nested_variables = yes; then
4013 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4015 AM_V=$AM_DEFAULT_VERBOSITY
4016 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4020 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4021 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4022 # is not polluted with repeated "-I."
4023 am__isrc=' -I$(srcdir)'
4024 # test to see if srcdir already configured
4025 if test -f $srcdir/config.status; then
4026 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4030 # test whether we have cygpath
4031 if test -z "$CYGPATH_W"; then
4032 if (cygpath --version) >/dev/null 2>/dev/null; then
4033 CYGPATH_W='cygpath -w'
4040 # Define the identity of the package.
4045 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4048 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4050 # Some tools Automake needs.
4052 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4055 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4058 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4061 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4064 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4066 # For better backward compatibility. To be removed once Automake 1.9.x
4067 # dies out for good. For more background, see:
4068 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4069 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4070 mkdir_p='$(MKDIR_P)'
4072 # We need awk for the "check" target (and possibly the TAP driver). The
4073 # system "awk" is bad on some platforms.
4074 # Always define AMTAR for backward compatibility. Yes, it's still used
4075 # in the wild :-( We should find a proper way to deprecate it ...
4079 # We'll loop over all known methods to create a tar archive until one works.
4080 _am_tools='gnutar pax cpio none'
4082 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4088 # Variables for tags utilities; see am/tags.am
4089 if test -z "$CTAGS"; then
4093 if test -z "$ETAGS"; then
4097 if test -z "$CSCOPE"; then
4103 # POSIX will say in a future version that running "rm -f" with no argument
4104 # is OK; and we want to be able to make that assumption in our Makefile
4105 # recipes. So use an aggressive probe to check that the usage we want is
4106 # actually supported "in the wild" to an acceptable degree.
4107 # See automake bug#10828.
4108 # To make any issue more visible, cause the running configure to be aborted
4109 # by default if the 'rm' program in use doesn't match our expectations; the
4110 # user can still override this though.
4111 if rm -f && rm -fr && rm -rf; then : OK; else
4115 Your 'rm' program seems unable to run without file operands specified
4116 on the command line, even when the '-f' option is present. This is contrary
4117 to the behaviour of most rm programs out there, and not conforming with
4118 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4120 Please tell bug-automake@gnu.org about your system, including the value
4121 of your $PATH and any error possibly output before this message. This
4122 can help us improve future automake versions.
4125 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4126 echo 'Configuration will proceed anyway, since you have set the' >&2
4127 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4131 Aborting the configuration process, to ensure you take notice of the issue.
4133 You can download and install GNU coreutils to get an 'rm' implementation
4134 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4136 If you want to complete the configuration process using your problematic
4137 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4138 to "yes", and re-run configure.
4141 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4146 # Check whether --enable-silent-rules was given.
4147 if test ${enable_silent_rules+y}
4149 enableval=$enable_silent_rules;
4152 case $enable_silent_rules in # (((
4153 yes) AM_DEFAULT_VERBOSITY=0;;
4154 no) AM_DEFAULT_VERBOSITY=1;;
4155 *) AM_DEFAULT_VERBOSITY=0;;
4157 am_make=${MAKE-make}
4158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4159 printf %s "checking whether $am_make supports nested variables... " >&6; }
4160 if test ${am_cv_make_support_nested_variables+y}
4162 printf %s "(cached) " >&6
4164 if printf "%s\n" 'TRUE=$(BAR$(V))
4170 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4171 am_cv_make_support_nested_variables=yes
4173 am_cv_make_support_nested_variables=no
4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4177 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4178 if test $am_cv_make_support_nested_variables = yes; then
4180 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4182 AM_V=$AM_DEFAULT_VERBOSITY
4183 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4190 # Make sure we can run config.sub.
4191 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4192 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4195 printf %s "checking build system type... " >&6; }
4196 if test ${ac_cv_build+y}
4198 printf %s "(cached) " >&6
4200 ac_build_alias=$build_alias
4201 test "x$ac_build_alias" = x &&
4202 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4203 test "x$ac_build_alias" = x &&
4204 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4205 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4206 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4210 printf "%s\n" "$ac_cv_build" >&6; }
4211 case $ac_cv_build in
4213 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4216 ac_save_IFS=$IFS; IFS='-'
4222 # Remember, the first character of IFS is used to create $*,
4223 # except with old shells:
4226 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4230 printf %s "checking host system type... " >&6; }
4231 if test ${ac_cv_host+y}
4233 printf %s "(cached) " >&6
4235 if test "x$host_alias" = x; then
4236 ac_cv_host=$ac_cv_build
4238 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4239 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4244 printf "%s\n" "$ac_cv_host" >&6; }
4247 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4250 ac_save_IFS=$IFS; IFS='-'
4256 # Remember, the first character of IFS is used to create $*,
4257 # except with old shells:
4260 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4264 printf "%s\n" "#define STR_SYSTEM \"$host\"" >>confdefs.h
4266 ac_config_headers="$ac_config_headers config.h"
4269 ntp_atom_ok=${ntp_atom_ok=no}
4270 ntp_oncore_ok=${ntp_oncore_ok=no}
4271 ntp_parse_ok=${ntp_parse_ok=no}
4272 ntp_ripe_ncc_ok=${ntp_parse_ok=no}
4273 ntp_jupiter_ok=${ntp_jupiter_ok=no}
4284 DEPDIR="${am__leading_dot}deps"
4286 ac_config_commands="$ac_config_commands depfiles"
4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4289 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4290 cat > confinc.mk << 'END'
4292 @echo this is the am__doit target >confinc.out
4297 # BSD make does it like this.
4298 echo '.include "confinc.mk" # ignored' > confmf.BSD
4299 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4300 echo 'include confinc.mk # ignored' > confmf.GNU
4302 for s in GNU BSD; do
4303 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4304 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }
4308 case $?:`cat confinc.out 2>/dev/null` in #(
4309 '0:this is the am__doit target') :
4312 am__include='.include' am__quote='"' ;; #(
4314 am__include='include' am__quote='' ;;
4319 if test "$am__include" != "#"; then
4320 _am_result="yes ($s style)"
4324 rm -f confinc.* confmf.*
4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4326 printf "%s\n" "${_am_result}" >&6; }
4328 # Check whether --enable-dependency-tracking was given.
4329 if test ${enable_dependency_tracking+y}
4331 enableval=$enable_dependency_tracking;
4334 if test "x$enable_dependency_tracking" != xno; then
4335 am_depcomp="$ac_aux_dir/depcomp"
4339 if test "x$enable_dependency_tracking" != xno; then
4359 #AC_USE_SYSTEM_EXTENSIONS
4362 ac_cpp='$CPP $CPPFLAGS'
4363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4366 if test -n "$ac_tool_prefix"; then
4367 for ac_prog in $cclist
4369 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372 printf %s "checking for $ac_word... " >&6; }
4373 if test ${ac_cv_prog_CC+y}
4375 printf %s "(cached) " >&6
4377 if test -n "$CC"; then
4378 ac_cv_prog_CC="$CC" # Let the user override the test.
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 case $as_dir in #(((
4387 *) as_dir=$as_dir/ ;;
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4391 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4402 if test -n "$CC"; then
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4404 printf "%s\n" "$CC" >&6; }
4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 printf "%s\n" "no" >&6; }
4411 test -n "$CC" && break
4414 if test -z "$CC"; then
4416 for ac_prog in $cclist
4418 # Extract the first word of "$ac_prog", so it can be a program name with args.
4419 set dummy $ac_prog; ac_word=$2
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4421 printf %s "checking for $ac_word... " >&6; }
4422 if test ${ac_cv_prog_ac_ct_CC+y}
4424 printf %s "(cached) " >&6
4426 if test -n "$ac_ct_CC"; then
4427 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 case $as_dir in #(((
4436 *) as_dir=$as_dir/ ;;
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_ac_ct_CC="$ac_prog"
4441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4451 if test -n "$ac_ct_CC"; then
4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4453 printf "%s\n" "$ac_ct_CC" >&6; }
4455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456 printf "%s\n" "no" >&6; }
4460 test -n "$ac_ct_CC" && break
4463 if test "x$ac_ct_CC" = x; then
4466 case $cross_compiling:$ac_tool_warned in
4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4469 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4470 ac_tool_warned=yes ;;
4477 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4478 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4479 as_fn_error $? "no acceptable C compiler found in \$PATH
4480 See \`config.log' for more details" "$LINENO" 5; }
4482 # Provide some information about the compiler.
4483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4486 for ac_option in --version -v -V -qversion -version; do
4487 { { ac_try="$ac_compiler $ac_option >&5"
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493 printf "%s\n" "$ac_try_echo"; } >&5
4494 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4496 if test -s conftest.err; then
4498 ... rest of stderr output deleted ...
4499 10q' conftest.err >conftest.er1
4500 cat conftest.er1 >&5
4502 rm -f conftest.er1 conftest.err
4503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4518 ac_clean_files_save=$ac_clean_files
4519 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4520 # Try to create an executable without -o first, disregard a.out.
4521 # It will help us diagnose broken compilers, and finding out an intuition
4523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4524 printf %s "checking whether the C compiler works... " >&6; }
4525 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4527 # The possible output files:
4528 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4531 for ac_file in $ac_files
4534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4535 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4540 if { { ac_try="$ac_link_default"
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4546 printf "%s\n" "$ac_try_echo"; } >&5
4547 (eval "$ac_link_default") 2>&5
4549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550 test $ac_status = 0; }
4552 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4553 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4554 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4555 # so that the user can short-circuit this test for compilers unknown to
4557 for ac_file in $ac_files ''
4559 test -f "$ac_file" || continue
4561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4564 # We found the default executable, but exeext='' is most
4568 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4570 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4572 # We set ac_cv_exeext here because the later test for it is not
4573 # safe: cross compilers may not add the suffix if given an `-o'
4574 # argument, so we may need to know it at that point already.
4575 # Even if this section looks crufty: it has the advantage of
4582 test "$ac_cv_exeext" = no && ac_cv_exeext=
4587 if test -z "$ac_file"
4589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 printf "%s\n" "no" >&6; }
4591 printf "%s\n" "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4594 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4595 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4596 as_fn_error 77 "C compiler cannot create executables
4597 See \`config.log' for more details" "$LINENO" 5; }
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4600 printf "%s\n" "yes" >&6; }
4602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4603 printf %s "checking for C compiler default output file name... " >&6; }
4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4605 printf "%s\n" "$ac_file" >&6; }
4606 ac_exeext=$ac_cv_exeext
4608 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4609 ac_clean_files=$ac_clean_files_save
4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4611 printf %s "checking for suffix of executables... " >&6; }
4612 if { { ac_try="$ac_link"
4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4618 printf "%s\n" "$ac_try_echo"; } >&5
4619 (eval "$ac_link") 2>&5
4621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4622 test $ac_status = 0; }
4624 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4625 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4626 # work properly (i.e., refer to `conftest.exe'), while it won't with
4628 for ac_file in conftest.exe conftest conftest.*; do
4629 test -f "$ac_file" || continue
4631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4632 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4638 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4639 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4640 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4641 See \`config.log' for more details" "$LINENO" 5; }
4643 rm -f conftest conftest$ac_cv_exeext
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4645 printf "%s\n" "$ac_cv_exeext" >&6; }
4647 rm -f conftest.$ac_ext
4648 EXEEXT=$ac_cv_exeext
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4656 FILE *f = fopen ("conftest.out", "w");
4657 return ferror (f) || fclose (f) != 0;
4663 ac_clean_files="$ac_clean_files conftest.out"
4664 # Check that the compiler produces executables we can run. If not, either
4665 # the compiler is broken, or we cross compile.
4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4667 printf %s "checking whether we are cross compiling... " >&6; }
4668 if test "$cross_compiling" != yes; then
4669 { { ac_try="$ac_link"
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4675 printf "%s\n" "$ac_try_echo"; } >&5
4676 (eval "$ac_link") 2>&5
4678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4679 test $ac_status = 0; }
4680 if { ac_try='./conftest$ac_cv_exeext'
4681 { { case "(($ac_try" in
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4686 printf "%s\n" "$ac_try_echo"; } >&5
4687 (eval "$ac_try") 2>&5
4689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4690 test $ac_status = 0; }; }; then
4693 if test "$cross_compiling" = maybe; then
4696 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4697 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4698 as_fn_error 77 "cannot run C compiled programs.
4699 If you meant to cross compile, use \`--host'.
4700 See \`config.log' for more details" "$LINENO" 5; }
4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4705 printf "%s\n" "$cross_compiling" >&6; }
4707 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4708 ac_clean_files=$ac_clean_files_save
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4710 printf %s "checking for suffix of object files... " >&6; }
4711 if test ${ac_cv_objext+y}
4713 printf %s "(cached) " >&6
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4726 rm -f conftest.o conftest.obj
4727 if { { ac_try="$ac_compile"
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4733 printf "%s\n" "$ac_try_echo"; } >&5
4734 (eval "$ac_compile") 2>&5
4736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4737 test $ac_status = 0; }
4739 for ac_file in conftest.o conftest.obj conftest.*; do
4740 test -f "$ac_file" || continue;
4742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4743 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4748 printf "%s\n" "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4751 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4752 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4753 as_fn_error $? "cannot compute suffix of object files: cannot compile
4754 See \`config.log' for more details" "$LINENO" 5; }
4756 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4759 printf "%s\n" "$ac_cv_objext" >&6; }
4760 OBJEXT=$ac_cv_objext
4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4763 printf %s "checking whether the compiler supports GNU C... " >&6; }
4764 if test ${ac_cv_c_compiler_gnu+y}
4766 printf %s "(cached) " >&6
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4782 if ac_fn_c_try_compile "$LINENO"
4788 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4789 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4793 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4796 if test $ac_compiler_gnu = yes; then
4801 ac_test_CFLAGS=${CFLAGS+y}
4802 ac_save_CFLAGS=$CFLAGS
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4804 printf %s "checking whether $CC accepts -g... " >&6; }
4805 if test ${ac_cv_prog_cc_g+y}
4807 printf %s "(cached) " >&6
4809 ac_save_c_werror_flag=$ac_c_werror_flag
4810 ac_c_werror_flag=yes
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4824 if ac_fn_c_try_compile "$LINENO"
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4840 if ac_fn_c_try_compile "$LINENO"
4844 ac_c_werror_flag=$ac_save_c_werror_flag
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4857 if ac_fn_c_try_compile "$LINENO"
4861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4866 ac_c_werror_flag=$ac_save_c_werror_flag
4868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4869 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4870 if test $ac_test_CFLAGS; then
4871 CFLAGS=$ac_save_CFLAGS
4872 elif test $ac_cv_prog_cc_g = yes; then
4873 if test "$GCC" = yes; then
4879 if test "$GCC" = yes; then
4886 if test x$ac_prog_cc_stdc = xno
4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4889 printf %s "checking for $CC option to enable C11 features... " >&6; }
4890 if test ${ac_cv_prog_cc_c11+y}
4892 printf %s "(cached) " >&6
4894 ac_cv_prog_cc_c11=no
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4898 $ac_c_conftest_c11_program
4900 for ac_arg in '' -std=gnu11
4902 CC="$ac_save_CC $ac_arg"
4903 if ac_fn_c_try_compile "$LINENO"
4905 ac_cv_prog_cc_c11=$ac_arg
4907 rm -f core conftest.err conftest.$ac_objext conftest.beam
4908 test "x$ac_cv_prog_cc_c11" != "xno" && break
4910 rm -f conftest.$ac_ext
4914 if test "x$ac_cv_prog_cc_c11" = xno
4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4917 printf "%s\n" "unsupported" >&6; }
4919 if test "x$ac_cv_prog_cc_c11" = x
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4922 printf "%s\n" "none needed" >&6; }
4924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4925 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4926 CC="$CC $ac_cv_prog_cc_c11"
4928 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4932 if test x$ac_prog_cc_stdc = xno
4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4935 printf %s "checking for $CC option to enable C99 features... " >&6; }
4936 if test ${ac_cv_prog_cc_c99+y}
4938 printf %s "(cached) " >&6
4940 ac_cv_prog_cc_c99=no
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 $ac_c_conftest_c99_program
4946 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4948 CC="$ac_save_CC $ac_arg"
4949 if ac_fn_c_try_compile "$LINENO"
4951 ac_cv_prog_cc_c99=$ac_arg
4953 rm -f core conftest.err conftest.$ac_objext conftest.beam
4954 test "x$ac_cv_prog_cc_c99" != "xno" && break
4956 rm -f conftest.$ac_ext
4960 if test "x$ac_cv_prog_cc_c99" = xno
4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4963 printf "%s\n" "unsupported" >&6; }
4965 if test "x$ac_cv_prog_cc_c99" = x
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4968 printf "%s\n" "none needed" >&6; }
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4971 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4972 CC="$CC $ac_cv_prog_cc_c99"
4974 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4978 if test x$ac_prog_cc_stdc = xno
4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4981 printf %s "checking for $CC option to enable C89 features... " >&6; }
4982 if test ${ac_cv_prog_cc_c89+y}
4984 printf %s "(cached) " >&6
4986 ac_cv_prog_cc_c89=no
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990 $ac_c_conftest_c89_program
4992 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4994 CC="$ac_save_CC $ac_arg"
4995 if ac_fn_c_try_compile "$LINENO"
4997 ac_cv_prog_cc_c89=$ac_arg
4999 rm -f core conftest.err conftest.$ac_objext conftest.beam
5000 test "x$ac_cv_prog_cc_c89" != "xno" && break
5002 rm -f conftest.$ac_ext
5006 if test "x$ac_cv_prog_cc_c89" = xno
5008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5009 printf "%s\n" "unsupported" >&6; }
5011 if test "x$ac_cv_prog_cc_c89" = x
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5014 printf "%s\n" "none needed" >&6; }
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5017 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5018 CC="$CC $ac_cv_prog_cc_c89"
5020 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5026 ac_cpp='$CPP $CPPFLAGS'
5027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5033 ac_cpp='$CPP $CPPFLAGS'
5034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5038 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5039 if test ${am_cv_prog_cc_c_o+y}
5041 printf %s "(cached) " >&6
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5054 # Make sure it works both with $CC and with simple cc.
5055 # Following AC_PROG_CC_C_O, we do the test twice because some
5056 # compilers refuse to overwrite an existing .o file with -o,
5057 # though they will create one.
5058 am_cv_prog_cc_c_o=yes
5060 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5061 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } \
5065 && test -f conftest2.$ac_objext; then
5068 am_cv_prog_cc_c_o=no
5072 rm -f core conftest*
5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5076 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5077 if test "$am_cv_prog_cc_c_o" != yes; then
5078 # Losing compiler, so override with the script.
5079 # FIXME: It is wrong to rewrite CC.
5080 # But if we don't then we get into trouble of one sort or another.
5081 # A longer-term fix would be to have automake use am__CC in this case,
5082 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5083 CC="$am_aux_dir/compile $CC"
5086 ac_cpp='$CPP $CPPFLAGS'
5087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5092 depcc="$CC" am_compiler_list=
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5095 printf %s "checking dependency style of $depcc... " >&6; }
5096 if test ${am_cv_CC_dependencies_compiler_type+y}
5098 printf %s "(cached) " >&6
5100 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5101 # We make a subdir and do the tests there. Otherwise we can end up
5102 # making bogus files that we don't know about and never remove. For
5103 # instance it was reported that on HP-UX the gcc test will end up
5104 # making a dummy file named 'D' -- because '-MD' means "put the output
5108 # Copy depcomp to subdir because otherwise we won't find it if we're
5109 # using a relative directory.
5110 cp "$am_depcomp" conftest.dir
5112 # We will build objects and dependencies in a subdirectory because
5113 # it helps to detect inapplicable dependency modes. For instance
5114 # both Tru64's cc and ICC support -MD to output dependencies as a
5115 # side effect of compilation, but ICC will put the dependencies in
5116 # the current directory while Tru64 will put them in the object
5120 am_cv_CC_dependencies_compiler_type=none
5121 if test "$am_compiler_list" = ""; then
5122 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5125 case " $depcc " in #(
5126 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5129 for depmode in $am_compiler_list; do
5130 # Setup a source with many dependencies, because some compilers
5131 # like to wrap large dependency lists on column 80 (with \), and
5132 # we should not choose a depcomp mode which is confused by this.
5134 # We need to recreate these files for each test, as the compiler may
5135 # overwrite some of them when testing with obscure command lines.
5136 # This happens at least with the AIX C compiler.
5138 for i in 1 2 3 4 5 6; do
5139 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5140 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5141 # Solaris 10 /bin/sh.
5142 echo '/* dummy */' > sub/conftst$i.h
5144 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5146 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5147 # mode. It turns out that the SunPro C++ compiler does not properly
5148 # handle '-M -o', and we need to detect this. Also, some Intel
5149 # versions had trouble with output in subdirs.
5150 am__obj=sub/conftest.${OBJEXT-o}
5151 am__minus_obj="-o $am__obj"
5154 # This depmode causes a compiler race in universal mode.
5155 test "$am__universal" = false || continue
5158 # After this tag, mechanisms are not by side-effect, so they'll
5159 # only be used when explicitly requested.
5160 if test "x$enable_dependency_tracking" = xyes; then
5166 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5167 # This compiler won't grok '-c -o', but also, the minuso test has
5168 # not run yet. These depmodes are late enough in the game, and
5169 # so weak that their functioning should not be impacted.
5170 am__obj=conftest.${OBJEXT-o}
5175 if depmode=$depmode \
5176 source=sub/conftest.c object=$am__obj \
5177 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5178 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5179 >/dev/null 2>conftest.err &&
5180 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5181 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5182 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5183 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5184 # icc doesn't choke on unknown options, it will just issue warnings
5185 # or remarks (even with -Werror). So we grep stderr for any message
5186 # that says an option was ignored or not supported.
5187 # When given -MP, icc 7.0 and 7.1 complain thusly:
5188 # icc: Command line warning: ignoring option '-M'; no argument required
5189 # The diagnosis changed in icc 8.0:
5190 # icc: Command line remark: option '-MP' not supported
5191 if (grep 'ignoring option' conftest.err ||
5192 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5193 am_cv_CC_dependencies_compiler_type=$depmode
5202 am_cv_CC_dependencies_compiler_type=none
5206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5207 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5208 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5211 test "x$enable_dependency_tracking" != xno \
5212 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5214 am__fastdepCC_FALSE='#'
5216 am__fastdepCC_TRUE='#'
5217 am__fastdepCC_FALSE=
5224 ac_header= ac_cache=
5225 for ac_item in $ac_header_c_list
5227 if test $ac_cache; then
5228 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5229 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5230 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5232 ac_header= ac_cache=
5233 elif test $ac_header; then
5247 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5250 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5260 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5261 if test ${ac_cv_safe_to_define___extensions__+y}
5263 printf %s "(cached) " >&6
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5268 # define __EXTENSIONS__ 1
5269 $ac_includes_default
5278 if ac_fn_c_try_compile "$LINENO"
5280 ac_cv_safe_to_define___extensions__=yes
5282 ac_cv_safe_to_define___extensions__=no
5284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5287 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5290 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5291 if test ${ac_cv_should_define__xopen_source+y}
5293 printf %s "(cached) " >&6
5295 ac_cv_should_define__xopen_source=no
5296 if test $ac_cv_header_wchar_h = yes
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5311 if ac_fn_c_try_compile "$LINENO"
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5318 #define _XOPEN_SOURCE 500
5329 if ac_fn_c_try_compile "$LINENO"
5331 ac_cv_should_define__xopen_source=yes
5333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5339 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5341 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5343 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5345 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5347 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5349 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5351 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5353 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5355 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5357 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5359 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5361 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5363 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5365 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5367 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5369 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5371 if test $ac_cv_header_minix_config_h = yes
5374 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5376 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5378 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5383 if test $ac_cv_safe_to_define___extensions__ = yes
5385 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5388 if test $ac_cv_should_define__xopen_source = yes
5390 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5396 ac_cpp='$CPP $CPPFLAGS'
5397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5401 printf %s "checking how to run the C preprocessor... " >&6; }
5402 # On Suns, sometimes $CPP names a directory.
5403 if test -n "$CPP" && test -d "$CPP"; then
5406 if test -z "$CPP"; then
5407 if test ${ac_cv_prog_CPP+y}
5409 printf %s "(cached) " >&6
5411 # Double quotes because $CC needs to be expanded
5412 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5415 for ac_c_preproc_warn_flag in '' yes
5417 # Use a header file that comes with gcc, so configuring glibc
5418 # with a fresh cross-compiler works.
5419 # On the NeXT, cc -E runs the code through the compiler's parser,
5420 # not just through cpp. "Syntax error" is here to catch this case.
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5426 if ac_fn_c_try_cpp "$LINENO"
5430 # Broken: fails on valid input.
5433 rm -f conftest.err conftest.i conftest.$ac_ext
5435 # OK, works on sane cases. Now check whether nonexistent headers
5436 # can be detected and how.
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5439 #include <ac_nonexistent.h>
5441 if ac_fn_c_try_cpp "$LINENO"
5443 # Broken: success on invalid input.
5446 # Passes both tests.
5450 rm -f conftest.err conftest.i conftest.$ac_ext
5453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5454 rm -f conftest.i conftest.err conftest.$ac_ext
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5469 printf "%s\n" "$CPP" >&6; }
5471 for ac_c_preproc_warn_flag in '' yes
5473 # Use a header file that comes with gcc, so configuring glibc
5474 # with a fresh cross-compiler works.
5475 # On the NeXT, cc -E runs the code through the compiler's parser,
5476 # not just through cpp. "Syntax error" is here to catch this case.
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5482 if ac_fn_c_try_cpp "$LINENO"
5486 # Broken: fails on valid input.
5489 rm -f conftest.err conftest.i conftest.$ac_ext
5491 # OK, works on sane cases. Now check whether nonexistent headers
5492 # can be detected and how.
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5495 #include <ac_nonexistent.h>
5497 if ac_fn_c_try_cpp "$LINENO"
5499 # Broken: success on invalid input.
5502 # Passes both tests.
5506 rm -f conftest.err conftest.i conftest.$ac_ext
5509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5510 rm -f conftest.i conftest.err conftest.$ac_ext
5515 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5516 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5517 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5518 See \`config.log' for more details" "$LINENO" 5; }
5522 ac_cpp='$CPP $CPPFLAGS'
5523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5529 printf %s "checking for grep that handles long lines and -e... " >&6; }
5530 if test ${ac_cv_path_GREP+y}
5532 printf %s "(cached) " >&6
5534 if test -z "$GREP"; then
5535 ac_path_GREP_found=false
5536 # Loop through the user's path and test for each of PROGNAME-LIST
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5541 case $as_dir in #(((
5544 *) as_dir=$as_dir/ ;;
5546 for ac_prog in grep ggrep
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5550 as_fn_executable_p "$ac_path_GREP" || continue
5551 # Check for GNU ac_path_GREP and select it if it is found.
5552 # Check for GNU $ac_path_GREP
5553 case `"$ac_path_GREP" --version 2>&1` in
5555 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5558 printf %s 0123456789 >"conftest.in"
5561 cat "conftest.in" "conftest.in" >"conftest.tmp"
5562 mv "conftest.tmp" "conftest.in"
5563 cp "conftest.in" "conftest.nl"
5564 printf "%s\n" 'GREP' >> "conftest.nl"
5565 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5566 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5567 as_fn_arith $ac_count + 1 && ac_count=$as_val
5568 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5569 # Best one so far, save it but keep looking for a better one
5570 ac_cv_path_GREP="$ac_path_GREP"
5571 ac_path_GREP_max=$ac_count
5573 # 10*(2^10) chars as input seems more than enough
5574 test $ac_count -gt 10 && break
5576 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5579 $ac_path_GREP_found && break 3
5584 if test -z "$ac_cv_path_GREP"; then
5585 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5588 ac_cv_path_GREP=$GREP
5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5593 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5594 GREP="$ac_cv_path_GREP"
5597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5598 printf %s "checking for egrep... " >&6; }
5599 if test ${ac_cv_path_EGREP+y}
5601 printf %s "(cached) " >&6
5603 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5604 then ac_cv_path_EGREP="$GREP -E"
5606 if test -z "$EGREP"; then
5607 ac_path_EGREP_found=false
5608 # Loop through the user's path and test for each of PROGNAME-LIST
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5613 case $as_dir in #(((
5616 *) as_dir=$as_dir/ ;;
5618 for ac_prog in egrep
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5622 as_fn_executable_p "$ac_path_EGREP" || continue
5623 # Check for GNU ac_path_EGREP and select it if it is found.
5624 # Check for GNU $ac_path_EGREP
5625 case `"$ac_path_EGREP" --version 2>&1` in
5627 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5630 printf %s 0123456789 >"conftest.in"
5633 cat "conftest.in" "conftest.in" >"conftest.tmp"
5634 mv "conftest.tmp" "conftest.in"
5635 cp "conftest.in" "conftest.nl"
5636 printf "%s\n" 'EGREP' >> "conftest.nl"
5637 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5639 as_fn_arith $ac_count + 1 && ac_count=$as_val
5640 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5641 # Best one so far, save it but keep looking for a better one
5642 ac_cv_path_EGREP="$ac_path_EGREP"
5643 ac_path_EGREP_max=$ac_count
5645 # 10*(2^10) chars as input seems more than enough
5646 test $ac_count -gt 10 && break
5648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5651 $ac_path_EGREP_found && break 3
5656 if test -z "$ac_cv_path_EGREP"; then
5657 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5660 ac_cv_path_EGREP=$EGREP
5665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5666 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5667 EGREP="$ac_cv_path_EGREP"
5675 # Ralf Wildenhues: With per-target flags we need CC_C_O
5676 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
5678 if test $ac_cv_c_compiler_gnu = yes; then
5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5680 printf %s "checking whether $CC needs -traditional... " >&6; }
5681 if test ${ac_cv_prog_gcc_traditional+y}
5683 printf %s "(cached) " >&6
5685 ac_pattern="Autoconf.*'x'"
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5692 $EGREP "$ac_pattern" >/dev/null 2>&1
5694 ac_cv_prog_gcc_traditional=yes
5696 ac_cv_prog_gcc_traditional=no
5701 if test $ac_cv_prog_gcc_traditional = no; then
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5708 $EGREP "$ac_pattern" >/dev/null 2>&1
5710 ac_cv_prog_gcc_traditional=yes
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5717 printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
5718 if test $ac_cv_prog_gcc_traditional = yes; then
5719 CC="$CC -traditional"
5736 case "$ac_cv_prog_cc_c89" in
5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5739 version 4.2.5 and higher." >&5
5740 printf "%s\n" "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5741 version 4.2.5 and higher." >&2;}
5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
5746 printf %s "checking if $CC can handle #warning... " >&6; }
5747 if test ${ntp_cv_cpp_warning+y}
5749 printf %s "(cached) " >&6
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5762 if ac_fn_c_try_compile "$LINENO"
5764 ntp_cv_cpp_warning=yes
5766 ntp_cv_cpp_warning=no
5769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
5773 printf "%s\n" "$ntp_cv_cpp_warning" >&6; }
5774 case "$ntp_cv_cpp_warning" in
5777 printf "%s\n" "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
5781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
5782 printf %s "checking if $CC supports __attribute__((...))... " >&6; }
5783 if test ${ntp_cv_cc_attribute+y}
5785 printf %s "(cached) " >&6
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5793 void foo(void) __attribute__((__noreturn__));
5799 if ac_fn_c_try_compile "$LINENO"
5801 ntp_cv_cc_attribute=yes
5803 ntp_cv_cc_attribute=no
5806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
5810 printf "%s\n" "$ntp_cv_cc_attribute" >&6; }
5811 case "$ntp_cv_cc_attribute" in
5814 printf "%s\n" "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
5821 SAVED_CFLAGS="$CFLAGS"
5822 CFLAGS="$SAVED_CFLAGS -Wstrict-overflow"
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
5824 printf %s "checking if $CC can handle -Wstrict-overflow... " >&6; }
5825 if test ${ntp_cv_gcc_Wstrict_overflow+y}
5827 printf %s "(cached) " >&6
5829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h. */
5840 if ac_fn_c_try_compile "$LINENO"
5842 ntp_cv_gcc_Wstrict_overflow=yes
5844 ntp_cv_gcc_Wstrict_overflow=no
5847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
5851 printf "%s\n" "$ntp_cv_gcc_Wstrict_overflow" >&6; }
5853 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
5856 CFLAGS="$SAVED_CFLAGS -Winit-self"
5857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
5858 printf %s "checking if $CC can handle -Winit-self... " >&6; }
5859 if test ${ntp_cv_gcc_Winit_self+y}
5861 printf %s "(cached) " >&6
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5875 if ac_fn_c_try_compile "$LINENO"
5877 ntp_cv_gcc_Winit_self=yes
5879 ntp_cv_gcc_Winit_self=no
5882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
5887 printf "%s\n" "$ntp_cv_gcc_Winit_self" >&6; }
5889 # libopts specifically builds a string with embedded NULs.
5890 # This causes a bunch of distracting warnings due to -Wformat.
5891 # Let's see if we can figure out how to disable these.
5893 CFLAGS="$SAVED_CFLAGS -Wno-format"
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wno-format" >&5
5895 printf %s "checking if $CC can handle -Wno-format... " >&6; }
5896 if test ${ntp_cv_gcc_Wno_format+y}
5898 printf %s "(cached) " >&6
5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5912 if ac_fn_c_try_compile "$LINENO"
5914 ntp_cv_gcc_Wno_format=yes
5916 ntp_cv_gcc_Wno_format=no
5919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wno_format" >&5
5924 printf "%s\n" "$ntp_cv_gcc_Wno_format" >&6; }
5926 case "$ntp_cv_gcc_Wno_format" in
5928 CC_NOFORMAT="$CC_NOFORMAT -Wno-format"
5934 CFLAGS="$SAVED_CFLAGS"
5935 { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
5937 # $ntp_cv_gcc_Winit_self is tested later to add the
5938 # flag to CFLAGS_NTP.
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
5941 printf %s "checking if linker supports omitting unused code and data... " >&6; }
5942 if test ${ntp_cv_gc_sections_runs+y}
5944 printf %s "(cached) " >&6
5947 origCFLAGS="$CFLAGS"
5948 CFLAGS="$CFLAGS -Wl,--gc-sections"
5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h. */
5962 int read_success_once;
5964 fpC = fopen("conftest.c", "r");
5968 cch = fread(buf, sizeof(buf), 1, fpC);
5969 read_success_once |= (0 != cch);
5971 if (!read_success_once)
5975 if (0 != fclose(fpC))
5985 if ac_fn_c_try_link "$LINENO"
5988 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
5989 ntp_cv_gc_sections_runs=no
5991 ntp_cv_gc_sections_runs=no
5992 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
5996 ntp_cv_gc_sections_runs=no
5999 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6000 conftest$ac_exeext conftest.$ac_ext
6001 CFLAGS="$origCFLAGS"
6002 { origCFLAGS=; unset origCFLAGS;}
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
6007 printf "%s\n" "$ntp_cv_gc_sections_runs" >&6; }
6008 case "$ntp_cv_gc_sections_runs" in
6010 LDADD_LIBNTP="-Wl,--gc-sections"
6011 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
6017 CFLAGS_NTP="$CFLAGS_NTP -Wall"
6018 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
6019 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
6020 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
6021 # CFLAGS_NTP="$CFLAGS_NTP -Werror"
6022 # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
6023 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
6024 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
6025 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
6026 CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
6027 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
6028 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
6029 case "$ntp_cv_gcc_Winit_self" in
6031 CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
6033 case "$ntp_cv_gcc_Wstrict_overflow" in
6035 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
6037 # -W[no-]strict-prototypes might be added by NTP_OPENSSL
6041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
6042 printf %s "checking additional compiler flags... " >&6; }
6043 # allow ntp_os_cflags to be preset to skip this stuff
6044 case "${ntp_os_cflags+set}" in
6053 # turn on additional headers
6054 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
6057 # avoid circular dependencies in yp headers, and more
6058 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
6059 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
6062 # XXX Only verified thru AIX6.
6063 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
6064 # avoid circular dependencies in yp headers
6065 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
6066 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
6067 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
6068 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
6069 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
6072 ntp_os_cflags="-DSYS_AMIGA"
6074 darwin*|macosx*|rhapsody*)
6075 ntp_os_cflags="-D_P1003_1B_VISIBLE"
6077 hpux10.*) # at least for hppa2.0-hp-hpux10.20
6082 # use Ansi compiler on HPUX, and some -Wp magic
6083 ntp_os_cflags="-Ae -Wp,-H18816"
6086 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6093 # use Ansi compiler on HPUX
6096 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
6101 # do not use 64-bit compiler
6102 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
6106 ntp_os_cflags="-posix"
6108 solaris1*|solaris2.[0-5]|solaris2.5.*)
6110 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
6113 # turn on 64-bit file offset interface
6114 ntp_os_cflags="-D_LARGEFILE64_SOURCE"
6121 # Quick and dirty sanity check
6122 case "$VX_KERNEL" in
6124 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
6126 ntp_os_cflags="-DSYS_VXWORKS"
6131 case "$ntp_os_cflags" in
6133 ntp_os_cflags_msg="none needed"
6136 ntp_os_cflags_msg="$ntp_os_cflags"
6138 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
6140 printf "%s\n" "$ntp_os_cflags_msg" >&6; }
6141 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
6144 printf %s "checking additional linker flags... " >&6; }
6145 # HMS: The following might still need tweaking
6146 # allow ntp_os_ldflags to be preset to skip this stuff
6147 case "${ntp_os_ldflags+set}" in
6156 ntp_os_ldflags="-Wl,+allowdups"
6163 case "$ntp_os_ldflags" in
6165 ntp_os_ldflags_msg="none needed"
6168 ntp_os_ldflags_msg="$ntp_os_ldflags"
6170 LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
6172 printf "%s\n" "$ntp_os_ldflags_msg" >&6; }
6173 { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6177 printf %s "checking whether byte ordering is bigendian... " >&6; }
6178 if test ${ac_cv_c_bigendian+y}
6180 printf %s "(cached) " >&6
6182 ac_cv_c_bigendian=unknown
6183 # See if we're dealing with a universal compiler.
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6186 #ifndef __APPLE_CC__
6187 not a universal capable compiler
6192 if ac_fn_c_try_compile "$LINENO"
6195 # Check for potential -arch flags. It is not universal unless
6196 # there are at least two -arch flags with different values.
6199 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6200 if test -n "$ac_prev"; then
6202 i?86 | x86_64 | ppc | ppc64)
6203 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6206 ac_cv_c_bigendian=universal
6212 elif test "x$ac_word" = "x-arch"; then
6217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6218 if test $ac_cv_c_bigendian = unknown; then
6219 # See if sys/param.h defines the BYTE_ORDER macro.
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 #include <sys/types.h>
6223 #include <sys/param.h>
6228 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6229 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6238 if ac_fn_c_try_compile "$LINENO"
6240 # It does; now see whether it defined to BIG_ENDIAN or not.
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6243 #include <sys/types.h>
6244 #include <sys/param.h>
6249 #if BYTE_ORDER != BIG_ENDIAN
6257 if ac_fn_c_try_compile "$LINENO"
6259 ac_cv_c_bigendian=yes
6261 ac_cv_c_bigendian=no
6263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6267 if test $ac_cv_c_bigendian = unknown; then
6268 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6276 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6284 if ac_fn_c_try_compile "$LINENO"
6286 # It does; now see whether it defined to _BIG_ENDIAN or not.
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6302 if ac_fn_c_try_compile "$LINENO"
6304 ac_cv_c_bigendian=yes
6306 ac_cv_c_bigendian=no
6308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6312 if test $ac_cv_c_bigendian = unknown; then
6313 # Compile a test program.
6314 if test "$cross_compiling" = yes
6316 # Try to guess by grepping values from an object file.
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6319 unsigned short int ascii_mm[] =
6320 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6321 unsigned short int ascii_ii[] =
6322 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6323 int use_ascii (int i) {
6324 return ascii_mm[i] + ascii_ii[i];
6326 unsigned short int ebcdic_ii[] =
6327 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6328 unsigned short int ebcdic_mm[] =
6329 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6330 int use_ebcdic (int i) {
6331 return ebcdic_mm[i] + ebcdic_ii[i];
6338 return use_ascii (foo) == use_ebcdic (foo);
6343 if ac_fn_c_try_compile "$LINENO"
6345 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6346 ac_cv_c_bigendian=yes
6348 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6349 if test "$ac_cv_c_bigendian" = unknown; then
6350 ac_cv_c_bigendian=no
6352 # finding both strings is unlikely to happen, but who knows?
6353 ac_cv_c_bigendian=unknown
6357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6361 $ac_includes_default
6366 /* Are we little or big endian? From Harbison&Steele. */
6370 char c[sizeof (long int)];
6373 return u.c[sizeof (long int) - 1] == 1;
6379 if ac_fn_c_try_run "$LINENO"
6381 ac_cv_c_bigendian=no
6383 ac_cv_c_bigendian=yes
6385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6386 conftest.$ac_objext conftest.beam conftest.$ac_ext
6391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6392 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
6393 case $ac_cv_c_bigendian in #(
6395 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
6401 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6405 as_fn_error $? "unknown endianness
6406 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
6410 printf %s "checking for working volatile... " >&6; }
6411 if test ${ac_cv_c_volatile+y}
6413 printf %s "(cached) " >&6
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6423 int * volatile y = (int *) 0;
6429 if ac_fn_c_try_compile "$LINENO"
6431 ac_cv_c_volatile=yes
6435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
6438 printf "%s\n" "$ac_cv_c_volatile" >&6; }
6439 if test $ac_cv_c_volatile = no; then
6441 printf "%s\n" "#define volatile /**/" >>confdefs.h
6446 ac_cpp='$CPP $CPPFLAGS'
6447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6451 printf %s "checking how to run the C preprocessor... " >&6; }
6452 # On Suns, sometimes $CPP names a directory.
6453 if test -n "$CPP" && test -d "$CPP"; then
6456 if test -z "$CPP"; then
6457 if test ${ac_cv_prog_CPP+y}
6459 printf %s "(cached) " >&6
6461 # Double quotes because $CC needs to be expanded
6462 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6465 for ac_c_preproc_warn_flag in '' yes
6467 # Use a header file that comes with gcc, so configuring glibc
6468 # with a fresh cross-compiler works.
6469 # On the NeXT, cc -E runs the code through the compiler's parser,
6470 # not just through cpp. "Syntax error" is here to catch this case.
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6476 if ac_fn_c_try_cpp "$LINENO"
6480 # Broken: fails on valid input.
6483 rm -f conftest.err conftest.i conftest.$ac_ext
6485 # OK, works on sane cases. Now check whether nonexistent headers
6486 # can be detected and how.
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6489 #include <ac_nonexistent.h>
6491 if ac_fn_c_try_cpp "$LINENO"
6493 # Broken: success on invalid input.
6496 # Passes both tests.
6500 rm -f conftest.err conftest.i conftest.$ac_ext
6503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6504 rm -f conftest.i conftest.err conftest.$ac_ext
6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6519 printf "%s\n" "$CPP" >&6; }
6521 for ac_c_preproc_warn_flag in '' yes
6523 # Use a header file that comes with gcc, so configuring glibc
6524 # with a fresh cross-compiler works.
6525 # On the NeXT, cc -E runs the code through the compiler's parser,
6526 # not just through cpp. "Syntax error" is here to catch this case.
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6532 if ac_fn_c_try_cpp "$LINENO"
6536 # Broken: fails on valid input.
6539 rm -f conftest.err conftest.i conftest.$ac_ext
6541 # OK, works on sane cases. Now check whether nonexistent headers
6542 # can be detected and how.
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6545 #include <ac_nonexistent.h>
6547 if ac_fn_c_try_cpp "$LINENO"
6549 # Broken: success on invalid input.
6552 # Passes both tests.
6556 rm -f conftest.err conftest.i conftest.$ac_ext
6559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6560 rm -f conftest.i conftest.err conftest.$ac_ext
6565 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6566 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6567 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6568 See \`config.log' for more details" "$LINENO" 5; }
6572 ac_cpp='$CPP $CPPFLAGS'
6573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6580 for ac_prog in 'bison -y' byacc
6582 # Extract the first word of "$ac_prog", so it can be a program name with args.
6583 set dummy $ac_prog; ac_word=$2
6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6585 printf %s "checking for $ac_word... " >&6; }
6586 if test ${ac_cv_prog_YACC+y}
6588 printf %s "(cached) " >&6
6590 if test -n "$YACC"; then
6591 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 case $as_dir in #(((
6600 *) as_dir=$as_dir/ ;;
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6604 ac_cv_prog_YACC="$ac_prog"
6605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6614 YACC=$ac_cv_prog_YACC
6615 if test -n "$YACC"; then
6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6617 printf "%s\n" "$YACC" >&6; }
6619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 printf "%s\n" "no" >&6; }
6624 test -n "$YACC" && break
6626 test -n "$YACC" || YACC="yacc"
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports C99 structure initialization" >&5
6631 printf %s "checking whether the compiler supports C99 structure initialization... " >&6; }
6635 ac_cpp='$CPP $CPPFLAGS'
6636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6644 struct foo_s {int i1; int i2;};
6645 int main() { struct foo_s foo[] = { { .i1 = 1, .i2 = 1 }, { .i1 = 2, .i2 = 2 }, { .i1 = 0, .i2 = 0 } }; }
6648 if ac_fn_c_try_compile "$LINENO"
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6651 printf "%s\n" "yes" >&6; }
6653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 printf "%s\n" "no" >&6; }
6656 printf "%s\n" "#define MISSING_C99_STRUCT_INIT 1" >>confdefs.h
6659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6662 ac_cpp='$CPP $CPPFLAGS'
6663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
6672 printf %s "checking for compile/link hardening flags... " >&6; }
6675 # Check whether --with-hardenfile was given.
6676 if test ${with_hardenfile+y}
6678 withval=$with_hardenfile;
6686 SENTINEL_DIR="$PWD" && \
6687 cd $srcdir/sntp && \
6688 case "$with_hardenfile" in \
6690 scripts/genHardFlags -d "$SENTINEL_DIR" \
6693 scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_hardenfile" \
6696 ) > genHardFlags.i 2> genHardFlags.err
6699 case "$GENHARDFLAG" in
6701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
6702 printf "%s\n" "in file $GENHARDFLAGFILE" >&6; }
6703 rm genHardFlags.err genHardFlags.i
6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6707 printf "%s\n" "failed." >&6; }
6708 as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if we need ylwrap VPATH hack" >&5
6720 printf %s "checking to see if we need ylwrap VPATH hack... " >&6; }
6722 case "$srcdir::${force_ntp_vpath_hack-no}" in
6724 ;; # VPATH_HACK path is for VPATH builds only.
6726 ntp_vpath_hack="yes"
6729 case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
6731 ntp_vpath_hack="yes"
6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_vpath_hack" >&5
6735 printf "%s\n" "$ntp_vpath_hack" >&6; }
6736 if test x$ntp_vpath_hack = xyes; then
6738 VPATH_HACK_FALSE='#'
6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
6748 printf %s "checking for install dir and man conventions... " >&6; }
6751 # Check whether --with-locfile was given.
6752 if test ${with_locfile+y}
6754 withval=$with_locfile;
6762 SENTINEL_DIR="$PWD" && \
6763 cd $srcdir/sntp && \
6764 case "$with_locfile" in \
6766 scripts/genLocInfo -d "$SENTINEL_DIR" \
6769 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \
6772 ) > genLocInfo.i 2> genLocInfo.err
6775 case "$GENLOCINFO" in
6777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
6778 printf "%s\n" "in file $GENLOCINFOFILE" >&6; }
6779 rm genLocInfo.err genLocInfo.i
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6783 printf "%s\n" "failed." >&6; }
6784 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
6788 if test "$CALC_TICKADJ_MS" ; then
6789 WANT_CALC_TICKADJ_MS_TRUE=
6790 WANT_CALC_TICKADJ_MS_FALSE='#'
6792 WANT_CALC_TICKADJ_MS_TRUE='#'
6793 WANT_CALC_TICKADJ_MS_FALSE=
6838 if test -z "$NTPSWEEP_NI" ; then
6839 INSTALL_NTPSWEEP_TRUE=
6840 INSTALL_NTPSWEEP_FALSE='#'
6842 INSTALL_NTPSWEEP_TRUE='#'
6843 INSTALL_NTPSWEEP_FALSE=
6886 if test -z "$UPDATE_LEAP_NI" ; then
6887 INSTALL_UPDATE_LEAP_TRUE=
6888 INSTALL_UPDATE_LEAP_FALSE='#'
6890 INSTALL_UPDATE_LEAP_TRUE='#'
6891 INSTALL_UPDATE_LEAP_FALSE=
6897 if test -n "$ac_tool_prefix"; then
6898 for ac_prog in ar lib "link -lib"
6900 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6901 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 printf %s "checking for $ac_word... " >&6; }
6904 if test ${ac_cv_prog_AR+y}
6906 printf %s "(cached) " >&6
6908 if test -n "$AR"; then
6909 ac_cv_prog_AR="$AR" # Let the user override the test.
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 case $as_dir in #(((
6918 *) as_dir=$as_dir/ ;;
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6922 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6933 if test -n "$AR"; then
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6935 printf "%s\n" "$AR" >&6; }
6937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 printf "%s\n" "no" >&6; }
6942 test -n "$AR" && break
6945 if test -z "$AR"; then
6947 for ac_prog in ar lib "link -lib"
6949 # Extract the first word of "$ac_prog", so it can be a program name with args.
6950 set dummy $ac_prog; ac_word=$2
6951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 printf %s "checking for $ac_word... " >&6; }
6953 if test ${ac_cv_prog_ac_ct_AR+y}
6955 printf %s "(cached) " >&6
6957 if test -n "$ac_ct_AR"; then
6958 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 case $as_dir in #(((
6967 *) as_dir=$as_dir/ ;;
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6971 ac_cv_prog_ac_ct_AR="$ac_prog"
6972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6981 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6982 if test -n "$ac_ct_AR"; then
6983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6984 printf "%s\n" "$ac_ct_AR" >&6; }
6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6987 printf "%s\n" "no" >&6; }
6991 test -n "$ac_ct_AR" && break
6994 if test "x$ac_ct_AR" = x; then
6997 case $cross_compiling:$ac_tool_warned in
6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7000 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7001 ac_tool_warned=yes ;;
7009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7010 printf %s "checking the archiver ($AR) interface... " >&6; }
7011 if test ${am_cv_ar_interface+y}
7013 printf %s "(cached) " >&6
7016 ac_cpp='$CPP $CPPFLAGS'
7017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7021 am_cv_ar_interface=ar
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7024 int some_variable = 0;
7026 if ac_fn_c_try_compile "$LINENO"
7028 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7030 (eval $am_ar_try) 2>&5
7032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7033 test $ac_status = 0; }
7034 if test "$ac_status" -eq 0; then
7035 am_cv_ar_interface=ar
7037 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7039 (eval $am_ar_try) 2>&5
7041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7042 test $ac_status = 0; }
7043 if test "$ac_status" -eq 0; then
7044 am_cv_ar_interface=lib
7046 am_cv_ar_interface=unknown
7049 rm -f conftest.lib libconftest.a
7052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7054 ac_cpp='$CPP $CPPFLAGS'
7055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7061 printf "%s\n" "$am_cv_ar_interface" >&6; }
7063 case $am_cv_ar_interface in
7067 # Microsoft lib, so override with the ar-lib wrapper script.
7068 # FIXME: It is wrong to rewrite AR.
7069 # But if we don't then we get into trouble of one sort or another.
7070 # A longer-term fix would be to have automake use am__AR in this case,
7071 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7073 AR="$am_aux_dir/ar-lib $AR"
7076 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7081 # So far, the only shared library we might use is libopts.
7082 # It's a small library - we might as well use a static version of it.
7083 # Check whether --enable-shared was given.
7084 if test ${enable_shared+y}
7086 enableval=$enable_shared; p=${PACKAGE-default}
7088 yes) enable_shared=yes ;;
7089 no) enable_shared=no ;;
7092 # Look at the argument we got. We use all the common list separators.
7093 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7094 for pkg in $enableval; do
7096 if test "X$pkg" = "X$p"; then
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7118 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7123 macro_version='2.4.6'
7124 macro_revision='2.4.6'
7139 ltmain=$ac_aux_dir/ltmain.sh
7141 # Backslashify metacharacters that are still active within
7142 # double-quoted strings.
7143 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7145 # Same as above, but do not quote variable references.
7146 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7148 # Sed substitution to delay expansion of an escaped shell variable in a
7149 # double_quote_subst'ed string.
7150 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7152 # Sed substitution to delay expansion of an escaped single quote.
7153 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7155 # Sed substitution to avoid accidental globbing in evaled expressions
7156 no_glob_subst='s/\*/\\\*/g'
7158 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7159 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7160 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7163 printf %s "checking how to print strings... " >&6; }
7164 # Test print first, because it will be a builtin if present.
7165 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7166 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7168 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7171 # Use this function as a fallback that always works.
7172 func_fallback_echo ()
7174 eval 'cat <<_LTECHO_EOF
7178 ECHO='func_fallback_echo'
7181 # func_echo_all arg...
7182 # Invoke $ECHO with all args, space-separated.
7189 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7190 printf "%s\n" "printf" >&6; } ;;
7191 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7192 printf "%s\n" "print -r" >&6; } ;;
7193 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7194 printf "%s\n" "cat" >&6; } ;;
7210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7211 printf %s "checking for a sed that does not truncate output... " >&6; }
7212 if test ${ac_cv_path_SED+y}
7214 printf %s "(cached) " >&6
7216 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7217 for ac_i in 1 2 3 4 5 6 7; do
7218 ac_script="$ac_script$as_nl$ac_script"
7220 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7221 { ac_script=; unset ac_script;}
7222 if test -z "$SED"; then
7223 ac_path_SED_found=false
7224 # Loop through the user's path and test for each of PROGNAME-LIST
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 case $as_dir in #(((
7232 *) as_dir=$as_dir/ ;;
7234 for ac_prog in sed gsed
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7238 as_fn_executable_p "$ac_path_SED" || continue
7239 # Check for GNU ac_path_SED and select it if it is found.
7240 # Check for GNU $ac_path_SED
7241 case `"$ac_path_SED" --version 2>&1` in
7243 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7246 printf %s 0123456789 >"conftest.in"
7249 cat "conftest.in" "conftest.in" >"conftest.tmp"
7250 mv "conftest.tmp" "conftest.in"
7251 cp "conftest.in" "conftest.nl"
7252 printf "%s\n" '' >> "conftest.nl"
7253 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7255 as_fn_arith $ac_count + 1 && ac_count=$as_val
7256 if test $ac_count -gt ${ac_path_SED_max-0}; then
7257 # Best one so far, save it but keep looking for a better one
7258 ac_cv_path_SED="$ac_path_SED"
7259 ac_path_SED_max=$ac_count
7261 # 10*(2^10) chars as input seems more than enough
7262 test $ac_count -gt 10 && break
7264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7267 $ac_path_SED_found && break 3
7272 if test -z "$ac_cv_path_SED"; then
7273 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7281 printf "%s\n" "$ac_cv_path_SED" >&6; }
7282 SED="$ac_cv_path_SED"
7285 test -z "$SED" && SED=sed
7286 Xsed="$SED -e 1s/^X//"
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7299 printf %s "checking for fgrep... " >&6; }
7300 if test ${ac_cv_path_FGREP+y}
7302 printf %s "(cached) " >&6
7304 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7305 then ac_cv_path_FGREP="$GREP -F"
7307 if test -z "$FGREP"; then
7308 ac_path_FGREP_found=false
7309 # Loop through the user's path and test for each of PROGNAME-LIST
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7314 case $as_dir in #(((
7317 *) as_dir=$as_dir/ ;;
7319 for ac_prog in fgrep
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7323 as_fn_executable_p "$ac_path_FGREP" || continue
7324 # Check for GNU ac_path_FGREP and select it if it is found.
7325 # Check for GNU $ac_path_FGREP
7326 case `"$ac_path_FGREP" --version 2>&1` in
7328 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7331 printf %s 0123456789 >"conftest.in"
7334 cat "conftest.in" "conftest.in" >"conftest.tmp"
7335 mv "conftest.tmp" "conftest.in"
7336 cp "conftest.in" "conftest.nl"
7337 printf "%s\n" 'FGREP' >> "conftest.nl"
7338 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7339 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7340 as_fn_arith $ac_count + 1 && ac_count=$as_val
7341 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7342 # Best one so far, save it but keep looking for a better one
7343 ac_cv_path_FGREP="$ac_path_FGREP"
7344 ac_path_FGREP_max=$ac_count
7346 # 10*(2^10) chars as input seems more than enough
7347 test $ac_count -gt 10 && break
7349 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7352 $ac_path_FGREP_found && break 3
7357 if test -z "$ac_cv_path_FGREP"; then
7358 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7361 ac_cv_path_FGREP=$FGREP
7366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7367 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7368 FGREP="$ac_cv_path_FGREP"
7371 test -z "$GREP" && GREP=grep
7391 # Check whether --with-gnu-ld was given.
7392 if test ${with_gnu_ld+y}
7394 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7400 if test yes = "$GCC"; then
7401 # Check if gcc -print-prog-name=ld gives a path.
7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7403 printf %s "checking for ld used by $CC... " >&6; }
7406 # gcc leaves a trailing carriage return, which upsets mingw
7407 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7409 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7412 # Accept absolute paths.
7414 re_direlt='/[^/][^/]*/\.\./'
7415 # Canonicalize the pathname of ld
7416 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7417 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7418 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7420 test -z "$LD" && LD=$ac_prog
7423 # If it fails, then pretend we aren't using GCC.
7427 # If it is relative, then search for the first ld in PATH.
7431 elif test yes = "$with_gnu_ld"; then
7432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7433 printf %s "checking for GNU ld... " >&6; }
7435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7436 printf %s "checking for non-GNU ld... " >&6; }
7438 if test ${lt_cv_path_LD+y}
7440 printf %s "(cached) " >&6
7442 if test -z "$LD"; then
7443 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7444 for ac_dir in $PATH; do
7446 test -z "$ac_dir" && ac_dir=.
7447 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7448 lt_cv_path_LD=$ac_dir/$ac_prog
7449 # Check to see if the program is GNU ld. I'd rather use --version,
7450 # but apparently some variants of GNU ld only accept -v.
7451 # Break only if it was the GNU/non-GNU ld that we prefer.
7452 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7453 *GNU* | *'with BFD'*)
7454 test no != "$with_gnu_ld" && break
7457 test yes != "$with_gnu_ld" && break
7464 lt_cv_path_LD=$LD # Let the user override the test with a path.
7469 if test -n "$LD"; then
7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7471 printf "%s\n" "$LD" >&6; }
7473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 printf "%s\n" "no" >&6; }
7476 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7478 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7479 if test ${lt_cv_prog_gnu_ld+y}
7481 printf %s "(cached) " >&6
7483 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7484 case `$LD -v 2>&1 </dev/null` in
7485 *GNU* | *'with BFD'*)
7486 lt_cv_prog_gnu_ld=yes
7489 lt_cv_prog_gnu_ld=no
7493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7494 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7495 with_gnu_ld=$lt_cv_prog_gnu_ld
7505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7506 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7507 if test ${lt_cv_path_NM+y}
7509 printf %s "(cached) " >&6
7511 if test -n "$NM"; then
7512 # Let the user override the test.
7515 lt_nm_to_check=${ac_tool_prefix}nm
7516 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7517 lt_nm_to_check="$lt_nm_to_check nm"
7519 for lt_tmp_nm in $lt_nm_to_check; do
7520 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7521 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7523 test -z "$ac_dir" && ac_dir=.
7524 tmp_nm=$ac_dir/$lt_tmp_nm
7525 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7526 # Check to see if the nm accepts a BSD-compat flag.
7527 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7528 # nm: unknown option "B" ignored
7529 # Tru64's nm complains that /dev/null is an invalid object file
7530 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7532 mingw*) lt_bad_file=conftest.nm/nofile ;;
7533 *) lt_bad_file=/dev/null ;;
7535 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7536 *$lt_bad_file* | *'Invalid file or object type'*)
7537 lt_cv_path_NM="$tmp_nm -B"
7541 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7543 lt_cv_path_NM="$tmp_nm -p"
7547 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7548 continue # so that we can try to find one that supports BSD flags
7557 : ${lt_cv_path_NM=no}
7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7561 printf "%s\n" "$lt_cv_path_NM" >&6; }
7562 if test no != "$lt_cv_path_NM"; then
7565 # Didn't find any BSD compatible name lister, look for dumpbin.
7566 if test -n "$DUMPBIN"; then :
7567 # Let the user override the test.
7569 if test -n "$ac_tool_prefix"; then
7570 for ac_prog in dumpbin "link -dump"
7572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 printf %s "checking for $ac_word... " >&6; }
7576 if test ${ac_cv_prog_DUMPBIN+y}
7578 printf %s "(cached) " >&6
7580 if test -n "$DUMPBIN"; then
7581 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 case $as_dir in #(((
7590 *) as_dir=$as_dir/ ;;
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7604 DUMPBIN=$ac_cv_prog_DUMPBIN
7605 if test -n "$DUMPBIN"; then
7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7607 printf "%s\n" "$DUMPBIN" >&6; }
7609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 printf "%s\n" "no" >&6; }
7614 test -n "$DUMPBIN" && break
7617 if test -z "$DUMPBIN"; then
7618 ac_ct_DUMPBIN=$DUMPBIN
7619 for ac_prog in dumpbin "link -dump"
7621 # Extract the first word of "$ac_prog", so it can be a program name with args.
7622 set dummy $ac_prog; ac_word=$2
7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 printf %s "checking for $ac_word... " >&6; }
7625 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7627 printf %s "(cached) " >&6
7629 if test -n "$ac_ct_DUMPBIN"; then
7630 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 case $as_dir in #(((
7639 *) as_dir=$as_dir/ ;;
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7643 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7653 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7654 if test -n "$ac_ct_DUMPBIN"; then
7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7656 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 printf "%s\n" "no" >&6; }
7663 test -n "$ac_ct_DUMPBIN" && break
7666 if test "x$ac_ct_DUMPBIN" = x; then
7669 case $cross_compiling:$ac_tool_warned in
7671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7672 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7673 ac_tool_warned=yes ;;
7675 DUMPBIN=$ac_ct_DUMPBIN
7679 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7681 DUMPBIN="$DUMPBIN -symbols -headers"
7689 if test : != "$DUMPBIN"; then
7693 test -z "$NM" && NM=nm
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7701 printf %s "checking the name lister ($NM) interface... " >&6; }
7702 if test ${lt_cv_nm_interface+y}
7704 printf %s "(cached) " >&6
7706 lt_cv_nm_interface="BSD nm"
7707 echo "int some_variable = 0;" > conftest.$ac_ext
7708 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7709 (eval "$ac_compile" 2>conftest.err)
7710 cat conftest.err >&5
7711 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7712 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7713 cat conftest.err >&5
7714 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7715 cat conftest.out >&5
7716 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7717 lt_cv_nm_interface="MS dumpbin"
7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7722 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7725 printf %s "checking whether ln -s works... " >&6; }
7727 if test "$LN_S" = "ln -s"; then
7728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7729 printf "%s\n" "yes" >&6; }
7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7732 printf "%s\n" "no, using $LN_S" >&6; }
7735 # find the maximum length of command line arguments
7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7737 printf %s "checking the maximum length of command line arguments... " >&6; }
7738 if test ${lt_cv_sys_max_cmd_len+y}
7740 printf %s "(cached) " >&6
7747 # On DJGPP, this test can blow up pretty badly due to problems in libc
7748 # (any single argument exceeding 2000 bytes causes a buffer overrun
7749 # during glob expansion). Even if it were fixed, the result of this
7750 # check would be larger than it should be.
7751 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7755 # Under GNU Hurd, this test is not required because there is
7756 # no limit to the length of command line arguments.
7757 # Libtool will interpret -1 as no limit whatsoever
7758 lt_cv_sys_max_cmd_len=-1;
7761 cygwin* | mingw* | cegcc*)
7762 # On Win9x/ME, this test blows up -- it succeeds, but takes
7763 # about 5 minutes as the teststring grows exponentially.
7764 # Worse, since 9x/ME are not pre-emptively multitasking,
7765 # you end up with a "frozen" computer, even though with patience
7766 # the test eventually succeeds (with a max line length of 256k).
7767 # Instead, let's just punt: use the minimum linelength reported by
7768 # all of the supported platforms: 8192 (on NT/2K/XP).
7769 lt_cv_sys_max_cmd_len=8192;
7773 # On MiNT this can take a long time and run out of memory.
7774 lt_cv_sys_max_cmd_len=8192;
7778 # On AmigaOS with pdksh, this test takes hours, literally.
7779 # So we just punt and use a minimum line length of 8192.
7780 lt_cv_sys_max_cmd_len=8192;
7783 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7784 # This has been around since 386BSD, at least. Likely further.
7785 if test -x /sbin/sysctl; then
7786 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7787 elif test -x /usr/sbin/sysctl; then
7788 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7790 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7792 # And add a safety zone
7793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7798 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7799 lt_cv_sys_max_cmd_len=196608
7803 # The test takes a long time on OS/2.
7804 lt_cv_sys_max_cmd_len=8192
7808 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7809 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7810 # nice to cause kernel panics so lets avoid the loop below.
7811 # First set a reasonable default.
7812 lt_cv_sys_max_cmd_len=16384
7814 if test -x /sbin/sysconfig; then
7815 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7816 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7821 lt_cv_sys_max_cmd_len=102400
7823 sysv5* | sco5v6* | sysv4.2uw2*)
7824 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7825 if test -n "$kargmax"; then
7826 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7828 lt_cv_sys_max_cmd_len=32768
7832 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7833 if test -n "$lt_cv_sys_max_cmd_len" && \
7834 test undefined != "$lt_cv_sys_max_cmd_len"; then
7835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7838 # Make teststring a little bigger before we do anything with it.
7839 # a 1K string should be a reasonable start.
7840 for i in 1 2 3 4 5 6 7 8; do
7841 teststring=$teststring$teststring
7843 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7844 # If test is not a shell built-in, we'll probably end up computing a
7845 # maximum length that is only half of the actual maximum length, but
7847 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7848 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7849 test 17 != "$i" # 1/2 MB should be enough
7852 teststring=$teststring$teststring
7854 # Only check the string length outside the loop.
7855 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7857 # Add a significant safety factor because C++ compilers can tack on
7858 # massive amounts of additional arguments before passing them to the
7859 # linker. It appears as though 1/2 is a usable value.
7860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7867 if test -n "$lt_cv_sys_max_cmd_len"; then
7868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7869 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7872 printf "%s\n" "none" >&6; }
7874 max_cmd_len=$lt_cv_sys_max_cmd_len
7885 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7895 # test EBCDIC or ASCII
7896 case `echo X|tr X '\101'` in
7897 A) # ASCII based system
7898 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7899 lt_SP2NL='tr \040 \012'
7900 lt_NL2SP='tr \015\012 \040\040'
7902 *) # EBCDIC based system
7903 lt_SP2NL='tr \100 \n'
7904 lt_NL2SP='tr \r\n \100\100'
7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7917 printf %s "checking how to convert $build file names to $host format... " >&6; }
7918 if test ${lt_cv_to_host_file_cmd+y}
7920 printf %s "(cached) " >&6
7925 *-*-mingw* ) # actually msys
7926 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7929 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7931 * ) # otherwise, assume *nix
7932 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7938 *-*-mingw* ) # actually msys
7939 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7942 lt_cv_to_host_file_cmd=func_convert_file_noop
7944 * ) # otherwise, assume *nix
7945 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7949 * ) # unhandled hosts (and "normal" native builds)
7950 lt_cv_to_host_file_cmd=func_convert_file_noop
7956 to_host_file_cmd=$lt_cv_to_host_file_cmd
7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7958 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7965 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7966 if test ${lt_cv_to_tool_file_cmd+y}
7968 printf %s "(cached) " >&6
7970 #assume ordinary cross tools, or native build.
7971 lt_cv_to_tool_file_cmd=func_convert_file_noop
7975 *-*-mingw* ) # actually msys
7976 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7984 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7986 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7993 printf %s "checking for $LD option to reload object files... " >&6; }
7994 if test ${lt_cv_ld_reload_flag+y}
7996 printf %s "(cached) " >&6
7998 lt_cv_ld_reload_flag='-r'
8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8001 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8002 reload_flag=$lt_cv_ld_reload_flag
8003 case $reload_flag in
8005 *) reload_flag=" $reload_flag" ;;
8007 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8009 cygwin* | mingw* | pw32* | cegcc*)
8010 if test yes != "$GCC"; then
8015 if test yes = "$GCC"; then
8016 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8018 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8031 if test -n "$ac_tool_prefix"; then
8032 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8033 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 printf %s "checking for $ac_word... " >&6; }
8036 if test ${ac_cv_prog_OBJDUMP+y}
8038 printf %s "(cached) " >&6
8040 if test -n "$OBJDUMP"; then
8041 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 case $as_dir in #(((
8050 *) as_dir=$as_dir/ ;;
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8054 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8064 OBJDUMP=$ac_cv_prog_OBJDUMP
8065 if test -n "$OBJDUMP"; then
8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8067 printf "%s\n" "$OBJDUMP" >&6; }
8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 printf "%s\n" "no" >&6; }
8075 if test -z "$ac_cv_prog_OBJDUMP"; then
8076 ac_ct_OBJDUMP=$OBJDUMP
8077 # Extract the first word of "objdump", so it can be a program name with args.
8078 set dummy objdump; ac_word=$2
8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080 printf %s "checking for $ac_word... " >&6; }
8081 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8083 printf %s "(cached) " >&6
8085 if test -n "$ac_ct_OBJDUMP"; then
8086 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 case $as_dir in #(((
8095 *) as_dir=$as_dir/ ;;
8097 for ac_exec_ext in '' $ac_executable_extensions; do
8098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8099 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8109 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8110 if test -n "$ac_ct_OBJDUMP"; then
8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8112 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 printf "%s\n" "no" >&6; }
8118 if test "x$ac_ct_OBJDUMP" = x; then
8121 case $cross_compiling:$ac_tool_warned in
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8124 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8125 ac_tool_warned=yes ;;
8127 OBJDUMP=$ac_ct_OBJDUMP
8130 OBJDUMP="$ac_cv_prog_OBJDUMP"
8133 test -z "$OBJDUMP" && OBJDUMP=objdump
8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8144 printf %s "checking how to recognize dependent libraries... " >&6; }
8145 if test ${lt_cv_deplibs_check_method+y}
8147 printf %s "(cached) " >&6
8149 lt_cv_file_magic_cmd='$MAGIC_CMD'
8150 lt_cv_file_magic_test_file=
8151 lt_cv_deplibs_check_method='unknown'
8152 # Need to set the preceding variable on all platforms that support
8153 # interlibrary dependencies.
8154 # 'none' -- dependencies not supported.
8155 # 'unknown' -- same as none, but documents that we really don't know.
8156 # 'pass_all' -- all dependencies passed with no checks.
8157 # 'test_compile' -- check by making test program.
8158 # 'file_magic [[regex]]' -- check by looking for files in library path
8159 # that responds to the $file_magic_cmd with a given extended regex.
8160 # If you have 'file' or equivalent on your system and you're not sure
8161 # whether 'pass_all' will *always* work, you probably want this one.
8165 lt_cv_deplibs_check_method=pass_all
8169 lt_cv_deplibs_check_method=pass_all
8173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8174 lt_cv_file_magic_cmd='/usr/bin/file -L'
8175 lt_cv_file_magic_test_file=/shlib/libc.so
8179 # func_win32_libid is a shell function defined in ltmain.sh
8180 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8181 lt_cv_file_magic_cmd='func_win32_libid'
8185 # Base MSYS/MinGW do not provide the 'file' command needed by
8186 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8187 # unless we find 'file', for example because we are cross-compiling.
8188 if ( file / ) >/dev/null 2>&1; then
8189 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8190 lt_cv_file_magic_cmd='func_win32_libid'
8192 # Keep this pattern in sync with the one in func_win32_libid.
8193 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8194 lt_cv_file_magic_cmd='$OBJDUMP -f'
8199 # use the weaker test based on 'objdump'. See mingw*.
8200 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8201 lt_cv_file_magic_cmd='$OBJDUMP -f'
8204 darwin* | rhapsody*)
8205 lt_cv_deplibs_check_method=pass_all
8208 freebsd* | dragonfly*)
8209 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8212 # Not sure whether the presence of OpenBSD here was a mistake.
8213 # Let's accept both of them until this is cleared up.
8214 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8215 lt_cv_file_magic_cmd=/usr/bin/file
8216 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8220 lt_cv_deplibs_check_method=pass_all
8225 lt_cv_deplibs_check_method=pass_all
8228 hpux10.20* | hpux11*)
8229 lt_cv_file_magic_cmd=/usr/bin/file
8232 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8233 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8236 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]'
8237 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8240 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8241 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8247 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8248 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8251 irix5* | irix6* | nonstopux*)
8253 *-32|*"-32 ") libmagic=32-bit;;
8254 *-n32|*"-n32 ") libmagic=N32;;
8255 *-64|*"-64 ") libmagic=64-bit;;
8256 *) libmagic=never-match;;
8258 lt_cv_deplibs_check_method=pass_all
8261 # This must be glibc/ELF.
8262 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8263 lt_cv_deplibs_check_method=pass_all
8267 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8275 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8276 lt_cv_file_magic_cmd=/usr/bin/file
8277 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8281 lt_cv_deplibs_check_method=pass_all
8285 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8292 osf3* | osf4* | osf5*)
8293 lt_cv_deplibs_check_method=pass_all
8297 lt_cv_deplibs_check_method=pass_all
8301 lt_cv_deplibs_check_method=pass_all
8304 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8305 lt_cv_deplibs_check_method=pass_all
8309 case $host_vendor in
8311 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]'
8312 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8315 lt_cv_deplibs_check_method=pass_all
8318 lt_cv_file_magic_cmd='/bin/file'
8319 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8322 lt_cv_file_magic_cmd='/bin/file'
8323 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8324 lt_cv_file_magic_test_file=/lib/libc.so
8327 lt_cv_deplibs_check_method=pass_all
8330 lt_cv_deplibs_check_method=pass_all
8336 lt_cv_deplibs_check_method=pass_all
8339 lt_cv_deplibs_check_method=pass_all
8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8345 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8349 if test "$build" = "$host"; then
8352 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8355 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8361 file_magic_cmd=$lt_cv_file_magic_cmd
8362 deplibs_check_method=$lt_cv_deplibs_check_method
8363 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8386 if test -n "$ac_tool_prefix"; then
8387 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8388 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390 printf %s "checking for $ac_word... " >&6; }
8391 if test ${ac_cv_prog_DLLTOOL+y}
8393 printf %s "(cached) " >&6
8395 if test -n "$DLLTOOL"; then
8396 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 case $as_dir in #(((
8405 *) as_dir=$as_dir/ ;;
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8409 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8419 DLLTOOL=$ac_cv_prog_DLLTOOL
8420 if test -n "$DLLTOOL"; then
8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8422 printf "%s\n" "$DLLTOOL" >&6; }
8424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425 printf "%s\n" "no" >&6; }
8430 if test -z "$ac_cv_prog_DLLTOOL"; then
8431 ac_ct_DLLTOOL=$DLLTOOL
8432 # Extract the first word of "dlltool", so it can be a program name with args.
8433 set dummy dlltool; ac_word=$2
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8435 printf %s "checking for $ac_word... " >&6; }
8436 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8438 printf %s "(cached) " >&6
8440 if test -n "$ac_ct_DLLTOOL"; then
8441 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447 case $as_dir in #(((
8450 *) as_dir=$as_dir/ ;;
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8454 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8464 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8465 if test -n "$ac_ct_DLLTOOL"; then
8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8467 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 printf "%s\n" "no" >&6; }
8473 if test "x$ac_ct_DLLTOOL" = x; then
8476 case $cross_compiling:$ac_tool_warned in
8478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8479 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8480 ac_tool_warned=yes ;;
8482 DLLTOOL=$ac_ct_DLLTOOL
8485 DLLTOOL="$ac_cv_prog_DLLTOOL"
8488 test -z "$DLLTOOL" && DLLTOOL=dlltool
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8500 printf %s "checking how to associate runtime and link libraries... " >&6; }
8501 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8503 printf %s "(cached) " >&6
8505 lt_cv_sharedlib_from_linklib_cmd='unknown'
8508 cygwin* | mingw* | pw32* | cegcc*)
8509 # two different shell functions defined in ltmain.sh;
8510 # decide which one to use based on capabilities of $DLLTOOL
8511 case `$DLLTOOL --help 2>&1` in
8512 *--identify-strict*)
8513 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8516 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8521 # fallback: assume linklib IS sharedlib
8522 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8528 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8529 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8530 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8538 if test -n "$ac_tool_prefix"; then
8541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8544 printf %s "checking for $ac_word... " >&6; }
8545 if test ${ac_cv_prog_AR+y}
8547 printf %s "(cached) " >&6
8549 if test -n "$AR"; then
8550 ac_cv_prog_AR="$AR" # Let the user override the test.
8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556 case $as_dir in #(((
8559 *) as_dir=$as_dir/ ;;
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8563 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8574 if test -n "$AR"; then
8575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8576 printf "%s\n" "$AR" >&6; }
8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579 printf "%s\n" "no" >&6; }
8583 test -n "$AR" && break
8586 if test -z "$AR"; then
8590 # Extract the first word of "$ac_prog", so it can be a program name with args.
8591 set dummy $ac_prog; ac_word=$2
8592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593 printf %s "checking for $ac_word... " >&6; }
8594 if test ${ac_cv_prog_ac_ct_AR+y}
8596 printf %s "(cached) " >&6
8598 if test -n "$ac_ct_AR"; then
8599 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605 case $as_dir in #(((
8608 *) as_dir=$as_dir/ ;;
8610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8612 ac_cv_prog_ac_ct_AR="$ac_prog"
8613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8622 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8623 if test -n "$ac_ct_AR"; then
8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8625 printf "%s\n" "$ac_ct_AR" >&6; }
8627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 printf "%s\n" "no" >&6; }
8632 test -n "$ac_ct_AR" && break
8635 if test "x$ac_ct_AR" = x; then
8638 case $cross_compiling:$ac_tool_warned in
8640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8641 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8642 ac_tool_warned=yes ;;
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8662 printf %s "checking for archiver @FILE support... " >&6; }
8663 if test ${lt_cv_ar_at_file+y}
8665 printf %s "(cached) " >&6
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h. */
8679 if ac_fn_c_try_compile "$LINENO"
8681 echo conftest.$ac_objext > conftest.lst
8682 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8684 (eval $lt_ar_try) 2>&5
8686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8687 test $ac_status = 0; }
8688 if test 0 -eq "$ac_status"; then
8689 # Ensure the archiver fails upon bogus file names.
8690 rm -f conftest.$ac_objext libconftest.a
8691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8692 (eval $lt_ar_try) 2>&5
8694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8695 test $ac_status = 0; }
8696 if test 0 -ne "$ac_status"; then
8700 rm -f conftest.* libconftest.a
8703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8707 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8709 if test no = "$lt_cv_ar_at_file"; then
8712 archiver_list_spec=$lt_cv_ar_at_file
8721 if test -n "$ac_tool_prefix"; then
8722 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8723 set dummy ${ac_tool_prefix}strip; ac_word=$2
8724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725 printf %s "checking for $ac_word... " >&6; }
8726 if test ${ac_cv_prog_STRIP+y}
8728 printf %s "(cached) " >&6
8730 if test -n "$STRIP"; then
8731 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 case $as_dir in #(((
8740 *) as_dir=$as_dir/ ;;
8742 for ac_exec_ext in '' $ac_executable_extensions; do
8743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8744 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8754 STRIP=$ac_cv_prog_STRIP
8755 if test -n "$STRIP"; then
8756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8757 printf "%s\n" "$STRIP" >&6; }
8759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 printf "%s\n" "no" >&6; }
8765 if test -z "$ac_cv_prog_STRIP"; then
8767 # Extract the first word of "strip", so it can be a program name with args.
8768 set dummy strip; ac_word=$2
8769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8770 printf %s "checking for $ac_word... " >&6; }
8771 if test ${ac_cv_prog_ac_ct_STRIP+y}
8773 printf %s "(cached) " >&6
8775 if test -n "$ac_ct_STRIP"; then
8776 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782 case $as_dir in #(((
8785 *) as_dir=$as_dir/ ;;
8787 for ac_exec_ext in '' $ac_executable_extensions; do
8788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8789 ac_cv_prog_ac_ct_STRIP="strip"
8790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8799 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8800 if test -n "$ac_ct_STRIP"; then
8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8802 printf "%s\n" "$ac_ct_STRIP" >&6; }
8804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 printf "%s\n" "no" >&6; }
8808 if test "x$ac_ct_STRIP" = x; then
8811 case $cross_compiling:$ac_tool_warned in
8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8814 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8815 ac_tool_warned=yes ;;
8820 STRIP="$ac_cv_prog_STRIP"
8823 test -z "$STRIP" && STRIP=:
8830 if test -n "$ac_tool_prefix"; then
8831 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8832 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 printf %s "checking for $ac_word... " >&6; }
8835 if test ${ac_cv_prog_RANLIB+y}
8837 printf %s "(cached) " >&6
8839 if test -n "$RANLIB"; then
8840 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846 case $as_dir in #(((
8849 *) as_dir=$as_dir/ ;;
8851 for ac_exec_ext in '' $ac_executable_extensions; do
8852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8853 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8863 RANLIB=$ac_cv_prog_RANLIB
8864 if test -n "$RANLIB"; then
8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8866 printf "%s\n" "$RANLIB" >&6; }
8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869 printf "%s\n" "no" >&6; }
8874 if test -z "$ac_cv_prog_RANLIB"; then
8875 ac_ct_RANLIB=$RANLIB
8876 # Extract the first word of "ranlib", so it can be a program name with args.
8877 set dummy ranlib; ac_word=$2
8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879 printf %s "checking for $ac_word... " >&6; }
8880 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8882 printf %s "(cached) " >&6
8884 if test -n "$ac_ct_RANLIB"; then
8885 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891 case $as_dir in #(((
8894 *) as_dir=$as_dir/ ;;
8896 for ac_exec_ext in '' $ac_executable_extensions; do
8897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8898 ac_cv_prog_ac_ct_RANLIB="ranlib"
8899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8908 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8909 if test -n "$ac_ct_RANLIB"; then
8910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8911 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914 printf "%s\n" "no" >&6; }
8917 if test "x$ac_ct_RANLIB" = x; then
8920 case $cross_compiling:$ac_tool_warned in
8922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8923 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8924 ac_tool_warned=yes ;;
8926 RANLIB=$ac_ct_RANLIB
8929 RANLIB="$ac_cv_prog_RANLIB"
8932 test -z "$RANLIB" && RANLIB=:
8939 # Determine commands to create old-style static archives.
8940 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8941 old_postinstall_cmds='chmod 644 $oldlib'
8942 old_postuninstall_cmds=
8944 if test -n "$RANLIB"; then
8947 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8950 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8953 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8958 lock_old_archive_extraction=yes ;;
8960 lock_old_archive_extraction=no ;;
9001 # If no C compiler was specified, use CC.
9004 # If no C compiler flags were specified, use CFLAGS.
9005 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9007 # Allow CC to be a program name with arguments.
9011 # Check for command to grab the raw symbol name followed by C symbol from nm.
9012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9013 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9014 if test ${lt_cv_sys_global_symbol_pipe+y}
9016 printf %s "(cached) " >&6
9019 # These are sane defaults that work on at least a few old systems.
9020 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9022 # Character class describing NM global symbol codes.
9023 symcode='[BCDEGRST]'
9025 # Regexp to match symbols that can be accessed directly from C.
9026 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9028 # Define system-specific variables.
9033 cygwin* | mingw* | pw32* | cegcc*)
9034 symcode='[ABCDGISTW]'
9037 if test ia64 = "$host_cpu"; then
9038 symcode='[ABCDEGRST]'
9042 symcode='[BCDEGRST]'
9045 symcode='[BCDEGQRST]'
9056 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9064 # If we're using GNU nm, then use its standard symbol codes.
9065 case `$NM -V 2>&1` in
9066 *GNU* | *'with BFD'*)
9067 symcode='[ABCDGIRSTW]' ;;
9070 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9071 # Gets list of data symbols to import.
9072 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9073 # Adjust the below global symbol transforms to fixup imported variables.
9074 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9075 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9076 lt_c_name_lib_hook="\
9077 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9078 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9080 # Disable hooks by default.
9081 lt_cv_sys_global_symbol_to_import=
9087 # Transform an extracted symbol line into a proper C declaration.
9088 # Some systems (esp. on ia64) link data and code symbols differently,
9089 # so use this general approach.
9090 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9092 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9093 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9095 # Transform an extracted symbol line into symbol name and symbol address
9096 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9098 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9099 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9101 # Transform an extracted symbol line into symbol name with lib prefix and
9103 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9104 $lt_c_name_lib_hook\
9105 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9106 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9107 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9109 # Handle CRLF in mingw tool chain
9113 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9117 # Try without a prefix underscore, then with it.
9118 for ac_symprfx in "" "_"; do
9120 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9121 symxfrm="\\1 $ac_symprfx\\2 \\2"
9123 # Write the raw and C identifiers.
9124 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9125 # Fake it for dumpbin and say T for any non-static function,
9126 # D for any global variable and I for any imported variable.
9127 # Also find C++ and __fastcall symbols from MSVC++,
9128 # which start with @ or ?.
9129 lt_cv_sys_global_symbol_pipe="$AWK '"\
9130 " {last_section=section; section=\$ 3};"\
9131 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9132 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9133 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9134 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9135 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9136 " \$ 0!~/External *\|/{next};"\
9137 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9138 " {if(hide[section]) next};"\
9139 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9140 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9141 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9142 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9143 " ' prfx=^$ac_symprfx"
9145 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9147 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9149 # Check to see that the pipe works correctly.
9153 cat > conftest.$ac_ext <<_LT_EOF
9158 void nm_test_func(void);
9159 void nm_test_func(void){}
9163 int main(){nm_test_var='a';nm_test_func();return(0);}
9166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9167 (eval $ac_compile) 2>&5
9169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9170 test $ac_status = 0; }; then
9171 # Now try to grab the symbols.
9173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9174 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9177 test $ac_status = 0; } && test -s "$nlist"; then
9178 # Try sorting and uniquifying the output.
9179 if sort "$nlist" | uniq > "$nlist"T; then
9180 mv -f "$nlist"T "$nlist"
9185 # Make sure that we snagged all the symbols we need.
9186 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9187 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9188 cat <<_LT_EOF > conftest.$ac_ext
9189 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9190 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9191 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9192 relocations are performed -- see ld's documentation on pseudo-relocs. */
9193 # define LT_DLSYM_CONST
9194 #elif defined __osf__
9195 /* This system does not cope well with relocations in const data. */
9196 # define LT_DLSYM_CONST
9198 # define LT_DLSYM_CONST const
9206 # Now generate the symbol file.
9207 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9209 cat <<_LT_EOF >> conftest.$ac_ext
9211 /* The mapping between symbol names and symbols. */
9212 LT_DLSYM_CONST struct {
9216 lt__PROGRAM__LTX_preloaded_symbols[] =
9218 { "@PROGRAM@", (void *) 0 },
9220 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9221 cat <<\_LT_EOF >> conftest.$ac_ext
9225 /* This works around a problem in FreeBSD linker */
9226 #ifdef FREEBSD_WORKAROUND
9227 static const void *lt_preloaded_setup() {
9228 return lt__PROGRAM__LTX_preloaded_symbols;
9236 # Now try linking the two files.
9237 mv conftest.$ac_objext conftstm.$ac_objext
9238 lt_globsym_save_LIBS=$LIBS
9239 lt_globsym_save_CFLAGS=$CFLAGS
9240 LIBS=conftstm.$ac_objext
9241 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9243 (eval $ac_link) 2>&5
9245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9246 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9249 LIBS=$lt_globsym_save_LIBS
9250 CFLAGS=$lt_globsym_save_CFLAGS
9252 echo "cannot find nm_test_func in $nlist" >&5
9255 echo "cannot find nm_test_var in $nlist" >&5
9258 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9261 echo "$progname: failed program was:" >&5
9262 cat conftest.$ac_ext >&5
9264 rm -rf conftest* conftst*
9266 # Do not use the global_symbol_pipe unless it works.
9267 if test yes = "$pipe_works"; then
9270 lt_cv_sys_global_symbol_pipe=
9276 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9277 lt_cv_sys_global_symbol_to_cdecl=
9279 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9281 printf "%s\n" "failed" >&6; }
9283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9284 printf "%s\n" "ok" >&6; }
9287 # Response file support.
9288 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9289 nm_file_list_spec='@'
9290 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9291 nm_file_list_spec='@'
9330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9331 printf %s "checking for sysroot... " >&6; }
9333 # Check whether --with-sysroot was given.
9334 if test ${with_sysroot+y}
9336 withval=$with_sysroot;
9343 case $with_sysroot in #(
9345 if test yes = "$GCC"; then
9346 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9350 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9356 printf "%s\n" "$with_sysroot" >&6; }
9357 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9362 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9369 printf %s "checking for a working dd... " >&6; }
9370 if test ${ac_cv_path_lt_DD+y}
9372 printf %s "(cached) " >&6
9374 printf 0123456789abcdef0123456789abcdef >conftest.i
9375 cat conftest.i conftest.i >conftest2.i
9377 if test -z "$lt_DD"; then
9378 ac_path_lt_DD_found=false
9379 # Loop through the user's path and test for each of PROGNAME-LIST
9380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384 case $as_dir in #(((
9387 *) as_dir=$as_dir/ ;;
9391 for ac_exec_ext in '' $ac_executable_extensions; do
9392 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9393 as_fn_executable_p "$ac_path_lt_DD" || continue
9394 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9395 cmp -s conftest.i conftest.out \
9396 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9398 $ac_path_lt_DD_found && break 3
9403 if test -z "$ac_cv_path_lt_DD"; then
9407 ac_cv_path_lt_DD=$lt_DD
9410 rm -f conftest.i conftest2.i conftest.out
9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9413 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9417 printf %s "checking how to truncate binary pipes... " >&6; }
9418 if test ${lt_cv_truncate_bin+y}
9420 printf %s "(cached) " >&6
9422 printf 0123456789abcdef0123456789abcdef >conftest.i
9423 cat conftest.i conftest.i >conftest2.i
9425 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9426 cmp -s conftest.i conftest.out \
9427 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9429 rm -f conftest.i conftest2.i conftest.out
9430 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9433 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9441 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9444 for cc_temp in $*""; do
9446 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9447 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9452 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9455 # Check whether --enable-libtool-lock was given.
9456 if test ${enable_libtool_lock+y}
9458 enableval=$enable_libtool_lock;
9461 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9463 # Some flags need to be propagated to the compiler or linker for good
9467 # Find out what ABI is being produced by ac_compile, and set mode
9468 # options accordingly.
9469 echo 'int i;' > conftest.$ac_ext
9470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9471 (eval $ac_compile) 2>&5
9473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9474 test $ac_status = 0; }; then
9475 case `/usr/bin/file conftest.$ac_objext` in
9487 # Find out what ABI is being produced by ac_compile, and set linker
9488 # options accordingly.
9489 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9491 (eval $ac_compile) 2>&5
9493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9494 test $ac_status = 0; }; then
9495 if test yes = "$lt_cv_prog_gnu_ld"; then
9496 case `/usr/bin/file conftest.$ac_objext` in
9498 LD="${LD-ld} -melf32bsmip"
9501 LD="${LD-ld} -melf32bmipn32"
9504 LD="${LD-ld} -melf64bmip"
9508 case `/usr/bin/file conftest.$ac_objext` in
9525 # Find out what ABI is being produced by ac_compile, and set linker
9526 # options accordingly.
9527 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9529 (eval $ac_compile) 2>&5
9531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9532 test $ac_status = 0; }; then
9534 case `/usr/bin/file conftest.$ac_objext` in
9542 case `/usr/bin/file conftest.$ac_objext` in
9544 emul="${emul}btsmip"
9547 emul="${emul}ltsmip"
9550 case `/usr/bin/file conftest.$ac_objext` in
9555 LD="${LD-ld} -m $emul"
9560 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9561 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9562 # Find out what ABI is being produced by ac_compile, and set linker
9563 # options accordingly. Note that the listed cases only cover the
9564 # situations where additional linker options are needed (such as when
9565 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9566 # vice versa); the common cases where no linker options are needed do
9567 # not appear in the list.
9568 echo 'int i;' > conftest.$ac_ext
9569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9570 (eval $ac_compile) 2>&5
9572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9573 test $ac_status = 0; }; then
9574 case `/usr/bin/file conftest.o` in
9577 x86_64-*kfreebsd*-gnu)
9578 LD="${LD-ld} -m elf_i386_fbsd"
9581 case `/usr/bin/file conftest.o` in
9583 LD="${LD-ld} -m elf32_x86_64"
9586 LD="${LD-ld} -m elf_i386"
9590 powerpc64le-*linux*)
9591 LD="${LD-ld} -m elf32lppclinux"
9594 LD="${LD-ld} -m elf32ppclinux"
9597 LD="${LD-ld} -m elf_s390"
9600 LD="${LD-ld} -m elf32_sparc"
9606 x86_64-*kfreebsd*-gnu)
9607 LD="${LD-ld} -m elf_x86_64_fbsd"
9610 LD="${LD-ld} -m elf_x86_64"
9613 LD="${LD-ld} -m elf64lppc"
9616 LD="${LD-ld} -m elf64ppc"
9618 s390*-*linux*|s390*-*tpf*)
9619 LD="${LD-ld} -m elf64_s390"
9622 LD="${LD-ld} -m elf64_sparc"
9632 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9634 CFLAGS="$CFLAGS -belf"
9635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9636 printf %s "checking whether the C compiler needs -belf... " >&6; }
9637 if test ${lt_cv_cc_needs_belf+y}
9639 printf %s "(cached) " >&6
9642 ac_cpp='$CPP $CPPFLAGS'
9643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9648 /* end confdefs.h. */
9658 if ac_fn_c_try_link "$LINENO"
9660 lt_cv_cc_needs_belf=yes
9662 lt_cv_cc_needs_belf=no
9664 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9665 conftest$ac_exeext conftest.$ac_ext
9667 ac_cpp='$CPP $CPPFLAGS'
9668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9674 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9675 if test yes != "$lt_cv_cc_needs_belf"; then
9676 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9681 # Find out what ABI is being produced by ac_compile, and set linker
9682 # options accordingly.
9683 echo 'int i;' > conftest.$ac_ext
9684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9685 (eval $ac_compile) 2>&5
9687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9688 test $ac_status = 0; }; then
9689 case `/usr/bin/file conftest.o` in
9691 case $lt_cv_prog_gnu_ld in
9694 i?86-*-solaris*|x86_64-*-solaris*)
9695 LD="${LD-ld} -m elf_x86_64"
9698 LD="${LD-ld} -m elf64_sparc"
9701 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9702 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9707 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9719 need_locks=$enable_libtool_lock
9721 if test -n "$ac_tool_prefix"; then
9722 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9723 set dummy ${ac_tool_prefix}mt; ac_word=$2
9724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9725 printf %s "checking for $ac_word... " >&6; }
9726 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9728 printf %s "(cached) " >&6
9730 if test -n "$MANIFEST_TOOL"; then
9731 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9737 case $as_dir in #(((
9740 *) as_dir=$as_dir/ ;;
9742 for ac_exec_ext in '' $ac_executable_extensions; do
9743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9744 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9754 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9755 if test -n "$MANIFEST_TOOL"; then
9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9757 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9760 printf "%s\n" "no" >&6; }
9765 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9766 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9767 # Extract the first word of "mt", so it can be a program name with args.
9768 set dummy mt; ac_word=$2
9769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9770 printf %s "checking for $ac_word... " >&6; }
9771 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9773 printf %s "(cached) " >&6
9775 if test -n "$ac_ct_MANIFEST_TOOL"; then
9776 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782 case $as_dir in #(((
9785 *) as_dir=$as_dir/ ;;
9787 for ac_exec_ext in '' $ac_executable_extensions; do
9788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9789 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9799 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9800 if test -n "$ac_ct_MANIFEST_TOOL"; then
9801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9802 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9805 printf "%s\n" "no" >&6; }
9808 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9811 case $cross_compiling:$ac_tool_warned in
9813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9814 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9815 ac_tool_warned=yes ;;
9817 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9820 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9823 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9825 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9826 if test ${lt_cv_path_mainfest_tool+y}
9828 printf %s "(cached) " >&6
9830 lt_cv_path_mainfest_tool=no
9831 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9832 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9833 cat conftest.err >&5
9834 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9835 lt_cv_path_mainfest_tool=yes
9839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9840 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
9841 if test yes != "$lt_cv_path_mainfest_tool"; then
9851 rhapsody* | darwin*)
9852 if test -n "$ac_tool_prefix"; then
9853 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9854 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9856 printf %s "checking for $ac_word... " >&6; }
9857 if test ${ac_cv_prog_DSYMUTIL+y}
9859 printf %s "(cached) " >&6
9861 if test -n "$DSYMUTIL"; then
9862 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9868 case $as_dir in #(((
9871 *) as_dir=$as_dir/ ;;
9873 for ac_exec_ext in '' $ac_executable_extensions; do
9874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9875 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9885 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9886 if test -n "$DSYMUTIL"; then
9887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9888 printf "%s\n" "$DSYMUTIL" >&6; }
9890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9891 printf "%s\n" "no" >&6; }
9896 if test -z "$ac_cv_prog_DSYMUTIL"; then
9897 ac_ct_DSYMUTIL=$DSYMUTIL
9898 # Extract the first word of "dsymutil", so it can be a program name with args.
9899 set dummy dsymutil; ac_word=$2
9900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9901 printf %s "checking for $ac_word... " >&6; }
9902 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9904 printf %s "(cached) " >&6
9906 if test -n "$ac_ct_DSYMUTIL"; then
9907 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913 case $as_dir in #(((
9916 *) as_dir=$as_dir/ ;;
9918 for ac_exec_ext in '' $ac_executable_extensions; do
9919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9920 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9930 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9931 if test -n "$ac_ct_DSYMUTIL"; then
9932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9933 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9936 printf "%s\n" "no" >&6; }
9939 if test "x$ac_ct_DSYMUTIL" = x; then
9942 case $cross_compiling:$ac_tool_warned in
9944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9945 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9946 ac_tool_warned=yes ;;
9948 DSYMUTIL=$ac_ct_DSYMUTIL
9951 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9954 if test -n "$ac_tool_prefix"; then
9955 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9956 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9958 printf %s "checking for $ac_word... " >&6; }
9959 if test ${ac_cv_prog_NMEDIT+y}
9961 printf %s "(cached) " >&6
9963 if test -n "$NMEDIT"; then
9964 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9970 case $as_dir in #(((
9973 *) as_dir=$as_dir/ ;;
9975 for ac_exec_ext in '' $ac_executable_extensions; do
9976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9977 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9987 NMEDIT=$ac_cv_prog_NMEDIT
9988 if test -n "$NMEDIT"; then
9989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9990 printf "%s\n" "$NMEDIT" >&6; }
9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9993 printf "%s\n" "no" >&6; }
9998 if test -z "$ac_cv_prog_NMEDIT"; then
9999 ac_ct_NMEDIT=$NMEDIT
10000 # Extract the first word of "nmedit", so it can be a program name with args.
10001 set dummy nmedit; ac_word=$2
10002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10003 printf %s "checking for $ac_word... " >&6; }
10004 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10006 printf %s "(cached) " >&6
10008 if test -n "$ac_ct_NMEDIT"; then
10009 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10012 for as_dir in $PATH
10015 case $as_dir in #(((
10018 *) 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_ac_ct_NMEDIT="nmedit"
10023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10032 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10033 if test -n "$ac_ct_NMEDIT"; then
10034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10035 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038 printf "%s\n" "no" >&6; }
10041 if test "x$ac_ct_NMEDIT" = x; then
10044 case $cross_compiling:$ac_tool_warned in
10046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10047 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10048 ac_tool_warned=yes ;;
10050 NMEDIT=$ac_ct_NMEDIT
10053 NMEDIT="$ac_cv_prog_NMEDIT"
10056 if test -n "$ac_tool_prefix"; then
10057 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10058 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10060 printf %s "checking for $ac_word... " >&6; }
10061 if test ${ac_cv_prog_LIPO+y}
10063 printf %s "(cached) " >&6
10065 if test -n "$LIPO"; then
10066 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10069 for as_dir in $PATH
10072 case $as_dir in #(((
10075 *) as_dir=$as_dir/ ;;
10077 for ac_exec_ext in '' $ac_executable_extensions; do
10078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10079 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10089 LIPO=$ac_cv_prog_LIPO
10090 if test -n "$LIPO"; then
10091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10092 printf "%s\n" "$LIPO" >&6; }
10094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10095 printf "%s\n" "no" >&6; }
10100 if test -z "$ac_cv_prog_LIPO"; then
10102 # Extract the first word of "lipo", so it can be a program name with args.
10103 set dummy lipo; ac_word=$2
10104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10105 printf %s "checking for $ac_word... " >&6; }
10106 if test ${ac_cv_prog_ac_ct_LIPO+y}
10108 printf %s "(cached) " >&6
10110 if test -n "$ac_ct_LIPO"; then
10111 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10114 for as_dir in $PATH
10117 case $as_dir in #(((
10120 *) as_dir=$as_dir/ ;;
10122 for ac_exec_ext in '' $ac_executable_extensions; do
10123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10124 ac_cv_prog_ac_ct_LIPO="lipo"
10125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10134 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10135 if test -n "$ac_ct_LIPO"; then
10136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10137 printf "%s\n" "$ac_ct_LIPO" >&6; }
10139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140 printf "%s\n" "no" >&6; }
10143 if test "x$ac_ct_LIPO" = x; then
10146 case $cross_compiling:$ac_tool_warned in
10148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10149 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10150 ac_tool_warned=yes ;;
10155 LIPO="$ac_cv_prog_LIPO"
10158 if test -n "$ac_tool_prefix"; then
10159 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10160 set dummy ${ac_tool_prefix}otool; ac_word=$2
10161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10162 printf %s "checking for $ac_word... " >&6; }
10163 if test ${ac_cv_prog_OTOOL+y}
10165 printf %s "(cached) " >&6
10167 if test -n "$OTOOL"; then
10168 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10171 for as_dir in $PATH
10174 case $as_dir in #(((
10177 *) as_dir=$as_dir/ ;;
10179 for ac_exec_ext in '' $ac_executable_extensions; do
10180 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10181 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10191 OTOOL=$ac_cv_prog_OTOOL
10192 if test -n "$OTOOL"; then
10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10194 printf "%s\n" "$OTOOL" >&6; }
10196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197 printf "%s\n" "no" >&6; }
10202 if test -z "$ac_cv_prog_OTOOL"; then
10204 # Extract the first word of "otool", so it can be a program name with args.
10205 set dummy otool; ac_word=$2
10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10207 printf %s "checking for $ac_word... " >&6; }
10208 if test ${ac_cv_prog_ac_ct_OTOOL+y}
10210 printf %s "(cached) " >&6
10212 if test -n "$ac_ct_OTOOL"; then
10213 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216 for as_dir in $PATH
10219 case $as_dir in #(((
10222 *) as_dir=$as_dir/ ;;
10224 for ac_exec_ext in '' $ac_executable_extensions; do
10225 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10226 ac_cv_prog_ac_ct_OTOOL="otool"
10227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10236 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10237 if test -n "$ac_ct_OTOOL"; then
10238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10239 printf "%s\n" "$ac_ct_OTOOL" >&6; }
10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10242 printf "%s\n" "no" >&6; }
10245 if test "x$ac_ct_OTOOL" = x; then
10248 case $cross_compiling:$ac_tool_warned in
10250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10251 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10252 ac_tool_warned=yes ;;
10257 OTOOL="$ac_cv_prog_OTOOL"
10260 if test -n "$ac_tool_prefix"; then
10261 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10262 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10264 printf %s "checking for $ac_word... " >&6; }
10265 if test ${ac_cv_prog_OTOOL64+y}
10267 printf %s "(cached) " >&6
10269 if test -n "$OTOOL64"; then
10270 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10273 for as_dir in $PATH
10276 case $as_dir in #(((
10279 *) as_dir=$as_dir/ ;;
10281 for ac_exec_ext in '' $ac_executable_extensions; do
10282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10283 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10293 OTOOL64=$ac_cv_prog_OTOOL64
10294 if test -n "$OTOOL64"; then
10295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10296 printf "%s\n" "$OTOOL64" >&6; }
10298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299 printf "%s\n" "no" >&6; }
10304 if test -z "$ac_cv_prog_OTOOL64"; then
10305 ac_ct_OTOOL64=$OTOOL64
10306 # Extract the first word of "otool64", so it can be a program name with args.
10307 set dummy otool64; ac_word=$2
10308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10309 printf %s "checking for $ac_word... " >&6; }
10310 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10312 printf %s "(cached) " >&6
10314 if test -n "$ac_ct_OTOOL64"; then
10315 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in $PATH
10321 case $as_dir in #(((
10324 *) as_dir=$as_dir/ ;;
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10328 ac_cv_prog_ac_ct_OTOOL64="otool64"
10329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10338 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10339 if test -n "$ac_ct_OTOOL64"; then
10340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10341 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
10343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344 printf "%s\n" "no" >&6; }
10347 if test "x$ac_ct_OTOOL64" = x; then
10350 case $cross_compiling:$ac_tool_warned in
10352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10353 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10354 ac_tool_warned=yes ;;
10356 OTOOL64=$ac_ct_OTOOL64
10359 OTOOL64="$ac_cv_prog_OTOOL64"
10388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10389 printf %s "checking for -single_module linker flag... " >&6; }
10390 if test ${lt_cv_apple_cc_single_mod+y}
10392 printf %s "(cached) " >&6
10394 lt_cv_apple_cc_single_mod=no
10395 if test -z "$LT_MULTI_MODULE"; then
10396 # By default we will add the -single_module flag. You can override
10397 # by either setting the environment variable LT_MULTI_MODULE
10398 # non-empty at configure time, or by adding -multi_module to the
10400 rm -rf libconftest.dylib*
10401 echo "int foo(void){return 1;}" > conftest.c
10402 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10403 -dynamiclib -Wl,-single_module conftest.c" >&5
10404 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10405 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10407 # If there is a non-empty error log, and "single_module"
10408 # appears in it, assume the flag caused a linker warning
10409 if test -s conftest.err && $GREP single_module conftest.err; then
10410 cat conftest.err >&5
10411 # Otherwise, if the output was created with a 0 exit code from
10412 # the compiler, it worked.
10413 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10414 lt_cv_apple_cc_single_mod=yes
10416 cat conftest.err >&5
10418 rm -rf libconftest.dylib*
10422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10423 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10426 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10427 if test ${lt_cv_ld_exported_symbols_list+y}
10429 printf %s "(cached) " >&6
10431 lt_cv_ld_exported_symbols_list=no
10432 save_LDFLAGS=$LDFLAGS
10433 echo "_main" > conftest.sym
10434 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10446 if ac_fn_c_try_link "$LINENO"
10448 lt_cv_ld_exported_symbols_list=yes
10450 lt_cv_ld_exported_symbols_list=no
10452 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10453 conftest$ac_exeext conftest.$ac_ext
10454 LDFLAGS=$save_LDFLAGS
10457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10458 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10461 printf %s "checking for -force_load linker flag... " >&6; }
10462 if test ${lt_cv_ld_force_load+y}
10464 printf %s "(cached) " >&6
10466 lt_cv_ld_force_load=no
10467 cat > conftest.c << _LT_EOF
10468 int forced_loaded() { return 2;}
10470 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10471 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10472 echo "$AR cru libconftest.a conftest.o" >&5
10473 $AR cru libconftest.a conftest.o 2>&5
10474 echo "$RANLIB libconftest.a" >&5
10475 $RANLIB libconftest.a 2>&5
10476 cat > conftest.c << _LT_EOF
10477 int main() { return 0;}
10479 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10480 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10482 if test -s conftest.err && $GREP force_load conftest.err; then
10483 cat conftest.err >&5
10484 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10485 lt_cv_ld_force_load=yes
10487 cat conftest.err >&5
10489 rm -f conftest.err libconftest.a conftest conftest.c
10490 rm -rf conftest.dSYM
10493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10494 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10496 rhapsody* | darwin1.[012])
10497 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10499 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10500 darwin*) # darwin 5.x on
10501 # if running on 10.5 or later, the deployment target defaults
10502 # to the OS version, if on x86, and 10.4, the deployment
10503 # target defaults to 10.4. Don't you love it?
10504 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10505 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10506 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10508 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10510 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10514 if test yes = "$lt_cv_apple_cc_single_mod"; then
10515 _lt_dar_single_mod='$single_module'
10517 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10518 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10520 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10522 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10523 _lt_dsymutil='~$DSYMUTIL $lib || :'
10530 # func_munge_path_list VARIABLE PATH
10531 # -----------------------------------
10532 # VARIABLE is name of variable containing _space_ separated list of
10533 # directories to be munged by the contents of PATH, which is string
10536 # string "DIR[ DIR]" will be prepended to VARIABLE
10538 # string "DIR[ DIR]" will be appended to VARIABLE
10539 # "DIRP[:DIRP]::[DIRA:]DIRA"
10540 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10541 # "DIRA[ DIRA]" will be appended to VARIABLE
10543 # VARIABLE will be replaced by "DIR[ DIR]"
10544 func_munge_path_list ()
10550 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10553 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10556 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10557 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10560 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10565 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10567 if test "x$ac_cv_header_dlfcn_h" = xyes
10569 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10584 enable_win32_dll=no
10588 # Check whether --enable-static was given.
10589 if test ${enable_static+y}
10591 enableval=$enable_static; p=${PACKAGE-default}
10593 yes) enable_static=yes ;;
10594 no) enable_static=no ;;
10597 # Look at the argument we got. We use all the common list separators.
10598 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10599 for pkg in $enableval; do
10601 if test "X$pkg" = "X$p"; then
10621 # Check whether --with-pic was given.
10622 if test ${with_pic+y}
10624 withval=$with_pic; lt_p=${PACKAGE-default}
10626 yes|no) pic_mode=$withval ;;
10629 # Look at the argument we got. We use all the common list separators.
10630 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10631 for lt_pkg in $withval; do
10633 if test "X$lt_pkg" = "X$lt_p"; then
10651 # Check whether --enable-fast-install was given.
10652 if test ${enable_fast_install+y}
10654 enableval=$enable_fast_install; p=${PACKAGE-default}
10656 yes) enable_fast_install=yes ;;
10657 no) enable_fast_install=no ;;
10659 enable_fast_install=no
10660 # Look at the argument we got. We use all the common list separators.
10661 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10662 for pkg in $enableval; do
10664 if test "X$pkg" = "X$p"; then
10665 enable_fast_install=yes
10672 enable_fast_install=yes
10682 shared_archive_member_spec=
10683 case $host,$enable_shared in
10684 power*-*-aix[5-9]*,yes)
10685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10686 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10688 # Check whether --with-aix-soname was given.
10689 if test ${with_aix_soname+y}
10691 withval=$with_aix_soname; case $withval in
10695 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10698 lt_cv_with_aix_soname=$with_aix_soname
10700 if test ${lt_cv_with_aix_soname+y}
10702 printf %s "(cached) " >&6
10704 lt_cv_with_aix_soname=aix
10707 with_aix_soname=$lt_cv_with_aix_soname
10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10711 printf "%s\n" "$with_aix_soname" >&6; }
10712 if test aix != "$with_aix_soname"; then
10713 # For the AIX way of multilib, we name the shared archive member
10714 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10715 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10716 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10717 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10718 if test 64 = "${OBJECT_MODE-32}"; then
10719 shared_archive_member_spec=shr_64
10721 shared_archive_member_spec=shr
10726 with_aix_soname=aix
10739 # This can be used to rebuild libtool when needed
10740 LIBTOOL_DEPS=$ltmain
10742 # Always use our own libtool.
10743 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10774 test -z "$LN_S" && LN_S="ln -s"
10789 if test -n "${ZSH_VERSION+set}"; then
10790 setopt NO_GLOB_SUBST
10793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10794 printf %s "checking for objdir... " >&6; }
10795 if test ${lt_cv_objdir+y}
10797 printf %s "(cached) " >&6
10799 rm -f .libs 2>/dev/null
10800 mkdir .libs 2>/dev/null
10801 if test -d .libs; then
10804 # MS-DOS does not allow filenames that begin with a dot.
10807 rmdir .libs 2>/dev/null
10809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10810 printf "%s\n" "$lt_cv_objdir" >&6; }
10811 objdir=$lt_cv_objdir
10817 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10824 # AIX sometimes has problems with the GCC collect2 program. For some
10825 # reason, if we set the COLLECT_NAMES environment variable, the problems
10826 # vanish in a puff of smoke.
10827 if test set != "${COLLECT_NAMES+set}"; then
10829 export COLLECT_NAMES
10834 # Global variables:
10836 can_build_shared=yes
10838 # All known linkers require a '.a' archive for static linking (except MSVC,
10839 # which needs '.lib').
10842 with_gnu_ld=$lt_cv_prog_gnu_ld
10847 # Set sane defaults for various variables
10848 test -z "$CC" && CC=cc
10849 test -z "$LTCC" && LTCC=$CC
10850 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10851 test -z "$LD" && LD=ld
10852 test -z "$ac_objext" && ac_objext=o
10854 func_cc_basename $compiler
10855 cc_basename=$func_cc_basename_result
10858 # Only perform the check for file, if the check method requires it
10859 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10860 case $deplibs_check_method in
10862 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10864 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10865 if test ${lt_cv_path_MAGIC_CMD+y}
10867 printf %s "(cached) " >&6
10871 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10874 lt_save_MAGIC_CMD=$MAGIC_CMD
10875 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10876 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10877 for ac_dir in $ac_dummy; do
10879 test -z "$ac_dir" && ac_dir=.
10880 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10881 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10882 if test -n "$file_magic_test_file"; then
10883 case $deplibs_check_method in
10885 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10886 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10887 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10888 $EGREP "$file_magic_regex" > /dev/null; then
10893 *** Warning: the command libtool uses to detect shared libraries,
10894 *** $file_magic_cmd, produces output that libtool cannot recognize.
10895 *** The result is that libtool may fail to recognize shared libraries
10896 *** as such. This will affect the creation of libtool libraries that
10897 *** depend on shared libraries, but programs linked with such libtool
10898 *** libraries will work regardless of this problem. Nevertheless, you
10899 *** may want to report the problem to your system manager and/or to
10900 *** bug-libtool@gnu.org
10910 MAGIC_CMD=$lt_save_MAGIC_CMD
10915 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10916 if test -n "$MAGIC_CMD"; then
10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10918 printf "%s\n" "$MAGIC_CMD" >&6; }
10920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921 printf "%s\n" "no" >&6; }
10928 if test -z "$lt_cv_path_MAGIC_CMD"; then
10929 if test -n "$ac_tool_prefix"; then
10930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10931 printf %s "checking for file... " >&6; }
10932 if test ${lt_cv_path_MAGIC_CMD+y}
10934 printf %s "(cached) " >&6
10938 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10941 lt_save_MAGIC_CMD=$MAGIC_CMD
10942 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10943 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10944 for ac_dir in $ac_dummy; do
10946 test -z "$ac_dir" && ac_dir=.
10947 if test -f "$ac_dir/file"; then
10948 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10949 if test -n "$file_magic_test_file"; then
10950 case $deplibs_check_method in
10952 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10953 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10954 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10955 $EGREP "$file_magic_regex" > /dev/null; then
10960 *** Warning: the command libtool uses to detect shared libraries,
10961 *** $file_magic_cmd, produces output that libtool cannot recognize.
10962 *** The result is that libtool may fail to recognize shared libraries
10963 *** as such. This will affect the creation of libtool libraries that
10964 *** depend on shared libraries, but programs linked with such libtool
10965 *** libraries will work regardless of this problem. Nevertheless, you
10966 *** may want to report the problem to your system manager and/or to
10967 *** bug-libtool@gnu.org
10977 MAGIC_CMD=$lt_save_MAGIC_CMD
10982 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10983 if test -n "$MAGIC_CMD"; then
10984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10985 printf "%s\n" "$MAGIC_CMD" >&6; }
10987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10988 printf "%s\n" "no" >&6; }
11001 # Use C for the default configuration in the libtool script
11005 ac_cpp='$CPP $CPPFLAGS'
11006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11011 # Source file extension for C test sources.
11014 # Object file extension for compiled C test sources.
11018 # Code to be used in simple compile tests
11019 lt_simple_compile_test_code="int some_variable = 0;"
11021 # Code to be used in simple link tests
11022 lt_simple_link_test_code='int main(){return(0);}'
11030 # If no C compiler was specified, use CC.
11033 # If no C compiler flags were specified, use CFLAGS.
11034 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11036 # Allow CC to be a program name with arguments.
11039 # Save the default compiler, since it gets overwritten when the other
11040 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11041 compiler_DEFAULT=$CC
11043 # save warnings/boilerplate of simple test code
11044 ac_outfile=conftest.$ac_objext
11045 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11046 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11047 _lt_compiler_boilerplate=`cat conftest.err`
11050 ac_outfile=conftest.$ac_objext
11051 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11052 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11053 _lt_linker_boilerplate=`cat conftest.err`
11058 ## There is no encapsulation within the following macros, do not change
11059 ## the running order or otherwise move them around unless you know exactly
11060 ## what you are doing...
11061 if test -n "$compiler"; then
11063 lt_prog_compiler_no_builtin_flag=
11065 if test yes = "$GCC"; then
11066 case $cc_basename in
11068 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11070 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11074 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11075 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11077 printf %s "(cached) " >&6
11079 lt_cv_prog_compiler_rtti_exceptions=no
11080 ac_outfile=conftest.$ac_objext
11081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11082 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11083 # Insert the option either (1) after the last *FLAGS variable, or
11084 # (2) before a word containing "conftest.", or (3) at the end.
11085 # Note that $ac_compile itself does not contain backslashes and begins
11086 # with a dollar sign (not a hyphen), so the echo should work correctly.
11087 # The option is referenced via a variable to avoid confusing sed.
11088 lt_compile=`echo "$ac_compile" | $SED \
11089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11091 -e 's:$: $lt_compiler_flag:'`
11092 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11093 (eval "$lt_compile" 2>conftest.err)
11095 cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 if (exit $ac_status) && test -s "$ac_outfile"; then
11098 # The compiler can only warn and ignore the option if not recognized
11099 # So say no if there are warnings other than the usual output.
11100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11102 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11103 lt_cv_prog_compiler_rtti_exceptions=yes
11109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11110 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11112 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11113 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11125 lt_prog_compiler_wl=
11126 lt_prog_compiler_pic=
11127 lt_prog_compiler_static=
11130 if test yes = "$GCC"; then
11131 lt_prog_compiler_wl='-Wl,'
11132 lt_prog_compiler_static='-static'
11136 # All AIX code is PIC.
11137 if test ia64 = "$host_cpu"; then
11138 # AIX 5 now supports IA64 processor
11139 lt_prog_compiler_static='-Bstatic'
11141 lt_prog_compiler_pic='-fPIC'
11147 # see comment about AmigaOS4 .so support
11148 lt_prog_compiler_pic='-fPIC'
11151 # FIXME: we need at least 68020 code to build shared libraries, but
11152 # adding the '-m68020' flag to GCC prevents building anything better,
11154 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11159 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11160 # PIC is the default for these OSes.
11163 mingw* | cygwin* | pw32* | os2* | cegcc*)
11164 # This hack is so that the source file can tell whether it is being
11165 # built for inclusion in a dll (and should export symbols for example).
11166 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11167 # (--disable-auto-import) libraries
11168 lt_prog_compiler_pic='-DDLL_EXPORT'
11171 lt_prog_compiler_static='$wl-static'
11176 darwin* | rhapsody*)
11177 # PIC is the default on this platform
11178 # Common symbols not allowed in MH_DYLIB files
11179 lt_prog_compiler_pic='-fno-common'
11183 # PIC is the default for Haiku.
11184 # The "-static" flag exists, but is broken.
11185 lt_prog_compiler_static=
11189 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11190 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11191 # sets the default TLS model and affects inlining.
11197 lt_prog_compiler_pic='-fPIC'
11203 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11204 # Instead, we relocate shared libraries at runtime.
11208 # Just because we use GCC doesn't mean we suddenly get shared libraries
11209 # on systems that don't support them.
11210 lt_prog_compiler_can_build_shared=no
11215 # QNX uses GNU C++, but need to define -shared option too, otherwise
11216 # it will coredump.
11217 lt_prog_compiler_pic='-fPIC -shared'
11221 if test -d /usr/nec; then
11222 lt_prog_compiler_pic=-Kconform_pic
11227 lt_prog_compiler_pic='-fPIC'
11231 case $cc_basename in
11232 nvcc*) # Cuda Compiler Driver 2.2
11233 lt_prog_compiler_wl='-Xlinker '
11234 if test -n "$lt_prog_compiler_pic"; then
11235 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11240 # PORTME Check for flag to pass linker flags through the system compiler.
11243 lt_prog_compiler_wl='-Wl,'
11244 if test ia64 = "$host_cpu"; then
11245 # AIX 5 now supports IA64 processor
11246 lt_prog_compiler_static='-Bstatic'
11248 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11252 darwin* | rhapsody*)
11253 # PIC is the default on this platform
11254 # Common symbols not allowed in MH_DYLIB files
11255 lt_prog_compiler_pic='-fno-common'
11256 case $cc_basename in
11258 # NAG Fortran compiler
11259 lt_prog_compiler_wl='-Wl,-Wl,,'
11260 lt_prog_compiler_pic='-PIC'
11261 lt_prog_compiler_static='-Bstatic'
11266 mingw* | cygwin* | pw32* | os2* | cegcc*)
11267 # This hack is so that the source file can tell whether it is being
11268 # built for inclusion in a dll (and should export symbols for example).
11269 lt_prog_compiler_pic='-DDLL_EXPORT'
11272 lt_prog_compiler_static='$wl-static'
11277 hpux9* | hpux10* | hpux11*)
11278 lt_prog_compiler_wl='-Wl,'
11279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11280 # not for PA HP-UX.
11286 lt_prog_compiler_pic='+Z'
11289 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11290 lt_prog_compiler_static='$wl-a ${wl}archive'
11293 irix5* | irix6* | nonstopux*)
11294 lt_prog_compiler_wl='-Wl,'
11295 # PIC (with -KPIC) is the default.
11296 lt_prog_compiler_static='-non_shared'
11299 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11300 case $cc_basename in
11301 # old Intel for x86_64, which still supported -KPIC.
11303 lt_prog_compiler_wl='-Wl,'
11304 lt_prog_compiler_pic='-KPIC'
11305 lt_prog_compiler_static='-static'
11307 # icc used to be incompatible with GCC.
11308 # ICC 10 doesn't accept -KPIC any more.
11310 lt_prog_compiler_wl='-Wl,'
11311 lt_prog_compiler_pic='-fPIC'
11312 lt_prog_compiler_static='-static'
11314 # Lahey Fortran 8.1.
11316 lt_prog_compiler_wl='-Wl,'
11317 lt_prog_compiler_pic='--shared'
11318 lt_prog_compiler_static='--static'
11321 # NAG Fortran compiler
11322 lt_prog_compiler_wl='-Wl,-Wl,,'
11323 lt_prog_compiler_pic='-PIC'
11324 lt_prog_compiler_static='-Bstatic'
11327 # Fabrice Bellard et al's Tiny C Compiler
11328 lt_prog_compiler_wl='-Wl,'
11329 lt_prog_compiler_pic='-fPIC'
11330 lt_prog_compiler_static='-static'
11332 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11333 # Portland Group compilers (*not* the Pentium gcc compiler,
11334 # which looks to be a dead project)
11335 lt_prog_compiler_wl='-Wl,'
11336 lt_prog_compiler_pic='-fpic'
11337 lt_prog_compiler_static='-Bstatic'
11340 lt_prog_compiler_wl='-Wl,'
11341 # All Alpha code is PIC.
11342 lt_prog_compiler_static='-non_shared'
11344 xl* | bgxl* | bgf* | mpixl*)
11345 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11346 lt_prog_compiler_wl='-Wl,'
11347 lt_prog_compiler_pic='-qpic'
11348 lt_prog_compiler_static='-qstaticlink'
11351 case `$CC -V 2>&1 | sed 5q` in
11352 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11353 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11354 lt_prog_compiler_pic='-KPIC'
11355 lt_prog_compiler_static='-Bstatic'
11356 lt_prog_compiler_wl=''
11358 *Sun\ F* | *Sun*Fortran*)
11359 lt_prog_compiler_pic='-KPIC'
11360 lt_prog_compiler_static='-Bstatic'
11361 lt_prog_compiler_wl='-Qoption ld '
11365 lt_prog_compiler_pic='-KPIC'
11366 lt_prog_compiler_static='-Bstatic'
11367 lt_prog_compiler_wl='-Wl,'
11369 *Intel*\ [CF]*Compiler*)
11370 lt_prog_compiler_wl='-Wl,'
11371 lt_prog_compiler_pic='-fPIC'
11372 lt_prog_compiler_static='-static'
11375 lt_prog_compiler_wl='-Wl,'
11376 lt_prog_compiler_pic='-fpic'
11377 lt_prog_compiler_static='-Bstatic'
11385 lt_prog_compiler_pic='-KPIC'
11386 lt_prog_compiler_static='-Bstatic'
11390 # QNX uses GNU C++, but need to define -shared option too, otherwise
11391 # it will coredump.
11392 lt_prog_compiler_pic='-fPIC -shared'
11395 osf3* | osf4* | osf5*)
11396 lt_prog_compiler_wl='-Wl,'
11397 # All OSF/1 code is PIC.
11398 lt_prog_compiler_static='-non_shared'
11402 lt_prog_compiler_static='-non_shared'
11406 lt_prog_compiler_pic='-KPIC'
11407 lt_prog_compiler_static='-Bstatic'
11408 case $cc_basename in
11409 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11410 lt_prog_compiler_wl='-Qoption ld ';;
11412 lt_prog_compiler_wl='-Wl,';;
11417 lt_prog_compiler_wl='-Qoption ld '
11418 lt_prog_compiler_pic='-PIC'
11419 lt_prog_compiler_static='-Bstatic'
11422 sysv4 | sysv4.2uw2* | sysv4.3*)
11423 lt_prog_compiler_wl='-Wl,'
11424 lt_prog_compiler_pic='-KPIC'
11425 lt_prog_compiler_static='-Bstatic'
11429 if test -d /usr/nec; then
11430 lt_prog_compiler_pic='-Kconform_pic'
11431 lt_prog_compiler_static='-Bstatic'
11435 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11436 lt_prog_compiler_wl='-Wl,'
11437 lt_prog_compiler_pic='-KPIC'
11438 lt_prog_compiler_static='-Bstatic'
11442 lt_prog_compiler_wl='-Wl,'
11443 lt_prog_compiler_can_build_shared=no
11447 lt_prog_compiler_pic='-pic'
11448 lt_prog_compiler_static='-Bstatic'
11452 lt_prog_compiler_can_build_shared=no
11458 # For platforms that do not support PIC, -DPIC is meaningless:
11460 lt_prog_compiler_pic=
11463 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11468 printf %s "checking for $compiler option to produce PIC... " >&6; }
11469 if test ${lt_cv_prog_compiler_pic+y}
11471 printf %s "(cached) " >&6
11473 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11476 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11477 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11480 # Check to make sure the PIC flag actually works.
11482 if test -n "$lt_prog_compiler_pic"; then
11483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11484 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11485 if test ${lt_cv_prog_compiler_pic_works+y}
11487 printf %s "(cached) " >&6
11489 lt_cv_prog_compiler_pic_works=no
11490 ac_outfile=conftest.$ac_objext
11491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11492 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11493 # Insert the option either (1) after the last *FLAGS variable, or
11494 # (2) before a word containing "conftest.", or (3) at the end.
11495 # Note that $ac_compile itself does not contain backslashes and begins
11496 # with a dollar sign (not a hyphen), so the echo should work correctly.
11497 # The option is referenced via a variable to avoid confusing sed.
11498 lt_compile=`echo "$ac_compile" | $SED \
11499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11501 -e 's:$: $lt_compiler_flag:'`
11502 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11503 (eval "$lt_compile" 2>conftest.err)
11505 cat conftest.err >&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 if (exit $ac_status) && test -s "$ac_outfile"; then
11508 # The compiler can only warn and ignore the option if not recognized
11509 # So say no if there are warnings other than the usual output.
11510 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11512 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11513 lt_cv_prog_compiler_pic_works=yes
11519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11520 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11522 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11523 case $lt_prog_compiler_pic in
11525 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11528 lt_prog_compiler_pic=
11529 lt_prog_compiler_can_build_shared=no
11545 # Check to make sure the static flag actually works.
11547 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11549 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11550 if test ${lt_cv_prog_compiler_static_works+y}
11552 printf %s "(cached) " >&6
11554 lt_cv_prog_compiler_static_works=no
11555 save_LDFLAGS=$LDFLAGS
11556 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11557 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11558 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11559 # The linker can only warn and ignore the option if not recognized
11560 # So say no if there are warnings
11561 if test -s conftest.err; then
11562 # Append any errors to the config.log.
11563 cat conftest.err 1>&5
11564 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11565 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11566 if diff conftest.exp conftest.er2 >/dev/null; then
11567 lt_cv_prog_compiler_static_works=yes
11570 lt_cv_prog_compiler_static_works=yes
11574 LDFLAGS=$save_LDFLAGS
11577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11578 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11580 if test yes = "$lt_cv_prog_compiler_static_works"; then
11583 lt_prog_compiler_static=
11592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11593 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11594 if test ${lt_cv_prog_compiler_c_o+y}
11596 printf %s "(cached) " >&6
11598 lt_cv_prog_compiler_c_o=no
11599 $RM -r conftest 2>/dev/null
11603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11605 lt_compiler_flag="-o out/conftest2.$ac_objext"
11606 # Insert the option either (1) after the last *FLAGS variable, or
11607 # (2) before a word containing "conftest.", or (3) at the end.
11608 # Note that $ac_compile itself does not contain backslashes and begins
11609 # with a dollar sign (not a hyphen), so the echo should work correctly.
11610 lt_compile=`echo "$ac_compile" | $SED \
11611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11613 -e 's:$: $lt_compiler_flag:'`
11614 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11615 (eval "$lt_compile" 2>out/conftest.err)
11617 cat out/conftest.err >&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11621 # The compiler can only warn and ignore the option if not recognized
11622 # So say no if there are warnings
11623 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11624 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11625 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11626 lt_cv_prog_compiler_c_o=yes
11631 # SGI C++ compiler will create directory out/ii_files/ for
11632 # template instantiation
11633 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11634 $RM out/* && rmdir out
11640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11641 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11649 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11650 if test ${lt_cv_prog_compiler_c_o+y}
11652 printf %s "(cached) " >&6
11654 lt_cv_prog_compiler_c_o=no
11655 $RM -r conftest 2>/dev/null
11659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11661 lt_compiler_flag="-o out/conftest2.$ac_objext"
11662 # Insert the option either (1) after the last *FLAGS variable, or
11663 # (2) before a word containing "conftest.", or (3) at the end.
11664 # Note that $ac_compile itself does not contain backslashes and begins
11665 # with a dollar sign (not a hyphen), so the echo should work correctly.
11666 lt_compile=`echo "$ac_compile" | $SED \
11667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11669 -e 's:$: $lt_compiler_flag:'`
11670 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11671 (eval "$lt_compile" 2>out/conftest.err)
11673 cat out/conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11677 # The compiler can only warn and ignore the option if not recognized
11678 # So say no if there are warnings
11679 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11680 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11681 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11682 lt_cv_prog_compiler_c_o=yes
11687 # SGI C++ compiler will create directory out/ii_files/ for
11688 # template instantiation
11689 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11690 $RM out/* && rmdir out
11696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11697 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11702 hard_links=nottested
11703 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11704 # do not overwrite the value of need_locks provided by the user
11705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11706 printf %s "checking if we can lock with hard links... " >&6; }
11709 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11711 ln conftest.a conftest.b 2>&5 || hard_links=no
11712 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11714 printf "%s\n" "$hard_links" >&6; }
11715 if test no = "$hard_links"; then
11716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11717 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11730 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11733 allow_undefined_flag=
11734 always_export_symbols=no
11736 archive_expsym_cmds=
11737 compiler_needs_object=no
11738 enable_shared_with_static_runtimes=no
11739 export_dynamic_flag_spec=
11740 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11741 hardcode_automatic=no
11743 hardcode_direct_absolute=no
11744 hardcode_libdir_flag_spec=
11745 hardcode_libdir_separator=
11746 hardcode_minus_L=no
11747 hardcode_shlibpath_var=unsupported
11749 link_all_deplibs=unknown
11751 module_expsym_cmds=
11752 old_archive_from_new_cmds=
11753 old_archive_from_expsyms_cmds=
11754 thread_safe_flag_spec=
11755 whole_archive_flag_spec=
11756 # include_expsyms should be a list of space-separated symbols to be *always*
11757 # included in the symbol list
11759 # exclude_expsyms can be an extended regexp of symbols to exclude
11760 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11761 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11762 # as well as any symbol that contains 'd'.
11763 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11764 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11765 # platforms (ab)use it in PIC code, but their linkers get confused if
11766 # the symbol is explicitly referenced. Since portable code cannot
11767 # rely on this symbol name, it's probably fine to never include it in
11768 # preloaded symbol tables.
11769 # Exclude shared library initialization/finalization symbols.
11770 extract_expsyms_cmds=
11773 cygwin* | mingw* | pw32* | cegcc*)
11774 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11775 # When not using gcc, we currently assume that we are using
11776 # Microsoft Visual C++.
11777 if test yes != "$GCC"; then
11782 # we just hope/assume this is gcc and not c89 (= MSVC++)
11785 openbsd* | bitrig*)
11792 # On some targets, GNU ld is compatible enough with the native linker
11793 # that we're better off using the native interface for both.
11794 lt_use_gnu_ld_interface=no
11795 if test yes = "$with_gnu_ld"; then
11798 # The AIX port of GNU ld has always aspired to compatibility
11799 # with the native linker. However, as the warning in the GNU ld
11800 # block says, versions before 2.19.5* couldn't really create working
11801 # shared libraries, regardless of the interface used.
11802 case `$LD -v 2>&1` in
11803 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11804 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11805 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11807 lt_use_gnu_ld_interface=yes
11812 lt_use_gnu_ld_interface=yes
11817 if test yes = "$lt_use_gnu_ld_interface"; then
11818 # If archive_cmds runs LD, not CC, wlarc should be empty
11821 # Set some defaults for GNU ld with shared library support. These
11822 # are reset later if shared libraries are not supported. Putting them
11823 # here allows them to be overridden if necessary.
11824 runpath_var=LD_RUN_PATH
11825 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11826 export_dynamic_flag_spec='$wl--export-dynamic'
11827 # ancient GNU ld didn't support --whole-archive et. al.
11828 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11829 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11831 whole_archive_flag_spec=
11833 supports_anon_versioning=no
11834 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11835 *GNU\ gold*) supports_anon_versioning=yes ;;
11836 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11837 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11838 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11839 *\ 2.11.*) ;; # other 2.11 versions
11840 *) supports_anon_versioning=yes ;;
11843 # See if GNU ld supports shared libraries.
11846 # On AIX/PPC, the GNU linker is very broken
11847 if test ia64 != "$host_cpu"; then
11851 *** Warning: the GNU linker, at least up to release 2.19, is reported
11852 *** to be unable to reliably create shared libraries on AIX.
11853 *** Therefore, libtool is disabling shared libraries support. If you
11854 *** really care for shared libraries, you may want to install binutils
11855 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11856 *** You will then need to restart the configuration process.
11865 # see comment about AmigaOS4 .so support
11866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11867 archive_expsym_cmds=''
11870 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)'
11871 hardcode_libdir_flag_spec='-L$libdir'
11872 hardcode_minus_L=yes
11878 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11879 allow_undefined_flag=unsupported
11880 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11881 # support --undefined. This deserves some investigation. FIXME
11882 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11888 cygwin* | mingw* | pw32* | cegcc*)
11889 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11890 # as there is no search path for DLLs.
11891 hardcode_libdir_flag_spec='-L$libdir'
11892 export_dynamic_flag_spec='$wl--export-all-symbols'
11893 allow_undefined_flag=unsupported
11894 always_export_symbols=no
11895 enable_shared_with_static_runtimes=yes
11896 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'
11897 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11899 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11901 # If the export-symbols file already is a .def file, use it as
11902 # is; otherwise, prepend EXPORTS...
11903 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11904 cp $export_symbols $output_objdir/$soname.def;
11906 echo EXPORTS > $output_objdir/$soname.def;
11907 cat $export_symbols >> $output_objdir/$soname.def;
11909 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11917 link_all_deplibs=yes
11921 hardcode_libdir_flag_spec='-L$libdir'
11922 hardcode_minus_L=yes
11923 allow_undefined_flag=unsupported
11925 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11926 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11927 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11928 $ECHO EXPORTS >> $output_objdir/$libname.def~
11929 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11930 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11931 emximp -o $lib $output_objdir/$libname.def'
11932 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11933 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11934 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11935 $ECHO EXPORTS >> $output_objdir/$libname.def~
11936 prefix_cmds="$SED"~
11937 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11938 prefix_cmds="$prefix_cmds -e 1d";
11940 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11941 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11942 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11943 emximp -o $lib $output_objdir/$libname.def'
11944 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11945 enable_shared_with_static_runtimes=yes
11950 hardcode_shlibpath_var=no
11951 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11952 export_dynamic_flag_spec='$wl-E'
11953 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11954 # Instead, shared libraries are loaded at an image base (0x10000000 by
11955 # default) and relocated if they conflict, which is a slow very memory
11956 # consuming and fragmenting process. To avoid this, we pick a random,
11957 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11958 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11959 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11960 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'
11963 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11965 if test linux-dietlibc = "$host_os"; then
11966 case $cc_basename in
11967 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11970 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11971 && test no = "$tmp_diet"
11973 tmp_addflag=' $pic_flag'
11974 tmp_sharedflag='-shared'
11975 case $cc_basename,$host_cpu in
11976 pgcc*) # Portland Group C compiler
11977 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'
11978 tmp_addflag=' $pic_flag'
11980 pgf77* | pgf90* | pgf95* | pgfortran*)
11981 # Portland Group f77 and f90 compilers
11982 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'
11983 tmp_addflag=' $pic_flag -Mnomain' ;;
11984 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11985 tmp_addflag=' -i_dynamic' ;;
11986 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11987 tmp_addflag=' -i_dynamic -nofor_main' ;;
11988 ifc* | ifort*) # Intel Fortran compiler
11989 tmp_addflag=' -nofor_main' ;;
11990 lf95*) # Lahey Fortran 8.1
11991 whole_archive_flag_spec=
11992 tmp_sharedflag='--shared' ;;
11993 nagfor*) # NAGFOR 5.3
11994 tmp_sharedflag='-Wl,-shared' ;;
11995 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11996 tmp_sharedflag='-qmkshrobj'
11998 nvcc*) # Cuda Compiler Driver 2.2
11999 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'
12000 compiler_needs_object=yes
12003 case `$CC -V 2>&1 | sed 5q` in
12004 *Sun\ C*) # Sun C 5.9
12005 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'
12006 compiler_needs_object=yes
12007 tmp_sharedflag='-G' ;;
12008 *Sun\ F*) # Sun Fortran 8.3
12009 tmp_sharedflag='-G' ;;
12011 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12013 if test yes = "$supports_anon_versioning"; then
12014 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12015 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12016 echo "local: *; };" >> $output_objdir/$libname.ver~
12017 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12020 case $cc_basename in
12022 export_dynamic_flag_spec='-rdynamic'
12024 xlf* | bgf* | bgxlf* | mpixlf*)
12025 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12026 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12027 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12028 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12029 if test yes = "$supports_anon_versioning"; then
12030 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12031 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12032 echo "local: *; };" >> $output_objdir/$libname.ver~
12033 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12043 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12044 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12047 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12048 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12053 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12057 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12058 *** create shared libraries on Solaris systems. Therefore, libtool
12059 *** is disabling shared libraries support. We urge you to upgrade GNU
12060 *** binutils to release 2.9.1 or newer. Another option is to modify
12061 *** your PATH or compiler configuration so that the native linker is
12062 *** used, and then restart.
12065 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12066 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12067 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12074 case `$LD -v 2>&1` in
12075 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12079 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12080 *** reliably create shared libraries on SCO systems. Therefore, libtool
12081 *** is disabling shared libraries support. We urge you to upgrade GNU
12082 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12083 *** your PATH or compiler configuration so that the native linker is
12084 *** used, and then restart.
12089 # For security reasons, it is highly recommended that you always
12090 # use absolute paths for naming shared libraries, and exclude the
12091 # DT_RUNPATH tag from executables and libraries. But doing so
12092 # requires that you compile everything twice, which is a pain.
12093 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12094 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12096 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12105 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12107 hardcode_direct=yes
12108 hardcode_shlibpath_var=no
12112 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12113 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12114 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12121 if test no = "$ld_shlibs"; then
12123 hardcode_libdir_flag_spec=
12124 export_dynamic_flag_spec=
12125 whole_archive_flag_spec=
12128 # PORTME fill in a description of your system's linker (not GNU ld)
12131 allow_undefined_flag=unsupported
12132 always_export_symbols=yes
12133 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'
12134 # Note: this linker hardcodes the directories in LIBPATH if there
12135 # are no directories specified by -L.
12136 hardcode_minus_L=yes
12137 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12138 # Neither direct hardcoding nor static linking is supported with a
12140 hardcode_direct=unsupported
12145 if test ia64 = "$host_cpu"; then
12146 # On IA64, the linker does run time linking by default, so we don't
12147 # have to do anything special.
12148 aix_use_runtimelinking=no
12149 exp_sym_flag='-Bexport'
12152 # If we're using GNU nm, then we don't want the "-C" option.
12153 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12154 # Without the "-l" option, or with the "-B" option, AIX nm treats
12155 # weak defined symbols like other global defined symbols, whereas
12156 # GNU nm marks them as "W".
12157 # While the 'weak' keyword is ignored in the Export File, we need
12158 # it in the Import File for the 'aix-soname' feature, so we have
12159 # to replace the "-B" option with "-P" for AIX nm.
12160 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12161 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'
12163 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'
12165 aix_use_runtimelinking=no
12167 # Test if we are trying to use run time linking or normal
12168 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12169 # have runtime linking enabled, and use it for executables.
12170 # For shared libraries, we enable/disable runtime linking
12171 # depending on the kind of the shared library created -
12172 # when "with_aix_soname,aix_use_runtimelinking" is:
12173 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12174 # "aix,yes" lib.so shared, rtl:yes, for executables
12175 # lib.a static archive
12176 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12177 # lib.a(lib.so.V) shared, rtl:no, for executables
12178 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12179 # lib.a(lib.so.V) shared, rtl:no
12180 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12181 # lib.a static archive
12182 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12183 for ld_flag in $LDFLAGS; do
12184 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12185 aix_use_runtimelinking=yes
12189 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12190 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12191 # so we don't have lib.a shared libs to link our executables.
12192 # We have to force runtime linking in this case.
12193 aix_use_runtimelinking=yes
12194 LDFLAGS="$LDFLAGS -Wl,-brtl"
12199 exp_sym_flag='-bexport'
12200 no_entry_flag='-bnoentry'
12203 # When large executables or shared objects are built, AIX ld can
12204 # have problems creating the table of contents. If linking a library
12205 # or program results in "error TOC overflow" add -mminimal-toc to
12206 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12207 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12210 hardcode_direct=yes
12211 hardcode_direct_absolute=yes
12212 hardcode_libdir_separator=':'
12213 link_all_deplibs=yes
12214 file_list_spec='$wl-f,'
12215 case $with_aix_soname,$aix_use_runtimelinking in
12216 aix,*) ;; # traditional, no import file
12217 svr4,* | *,yes) # use import file
12218 # The Import File defines what to hardcode.
12220 hardcode_direct_absolute=no
12224 if test yes = "$GCC"; then
12225 case $host_os in aix4.[012]|aix4.[012].*)
12226 # We only want to do this on AIX 4.2 and lower, the check
12227 # below for broken collect2 doesn't work under 4.3+
12228 collect2name=`$CC -print-prog-name=collect2`
12229 if test -f "$collect2name" &&
12230 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12232 # We have reworked collect2
12235 # We have old collect2
12236 hardcode_direct=unsupported
12237 # It fails to find uninstalled libraries when the uninstalled
12238 # path is not listed in the libpath. Setting hardcode_minus_L
12239 # to unsupported forces relinking
12240 hardcode_minus_L=yes
12241 hardcode_libdir_flag_spec='-L$libdir'
12242 hardcode_libdir_separator=
12246 shared_flag='-shared'
12247 if test yes = "$aix_use_runtimelinking"; then
12248 shared_flag="$shared_flag "'$wl-G'
12250 # Need to ensure runtime linking is disabled for the traditional
12251 # shared library, or the linker may eventually find shared libraries
12252 # /with/ Import File - we do not want to mix them.
12253 shared_flag_aix='-shared'
12254 shared_flag_svr4='-shared $wl-G'
12257 if test ia64 = "$host_cpu"; then
12258 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12259 # chokes on -Wl,-G. The following line is correct:
12262 if test yes = "$aix_use_runtimelinking"; then
12263 shared_flag='$wl-G'
12265 shared_flag='$wl-bM:SRE'
12267 shared_flag_aix='$wl-bM:SRE'
12268 shared_flag_svr4='$wl-G'
12272 export_dynamic_flag_spec='$wl-bexpall'
12273 # It seems that -bexpall does not export symbols beginning with
12274 # underscore (_), so it is better to generate a list of symbols to export.
12275 always_export_symbols=yes
12276 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12277 # Warning - without using the other runtime loading flags (-brtl),
12278 # -berok will link without error, but may produce a broken library.
12279 allow_undefined_flag='-berok'
12280 # Determine the default libpath from the value encoded in an
12281 # empty executable.
12282 if test set = "${lt_cv_aix_libpath+set}"; then
12283 aix_libpath=$lt_cv_aix_libpath
12285 if test ${lt_cv_aix_libpath_+y}
12287 printf %s "(cached) " >&6
12289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290 /* end confdefs.h. */
12300 if ac_fn_c_try_link "$LINENO"
12303 lt_aix_libpath_sed='
12304 /Import File Strings/,/^$/ {
12306 s/^0 *\([^ ]*\) *$/\1/
12310 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12311 # Check for a 64-bit object if we didn't find anything.
12312 if test -z "$lt_cv_aix_libpath_"; then
12313 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12317 conftest$ac_exeext conftest.$ac_ext
12318 if test -z "$lt_cv_aix_libpath_"; then
12319 lt_cv_aix_libpath_=/usr/lib:/lib
12324 aix_libpath=$lt_cv_aix_libpath_
12327 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12328 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
12330 if test ia64 = "$host_cpu"; then
12331 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12332 allow_undefined_flag="-z nodefs"
12333 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"
12335 # Determine the default libpath from the value encoded in an
12336 # empty executable.
12337 if test set = "${lt_cv_aix_libpath+set}"; then
12338 aix_libpath=$lt_cv_aix_libpath
12340 if test ${lt_cv_aix_libpath_+y}
12342 printf %s "(cached) " >&6
12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h. */
12355 if ac_fn_c_try_link "$LINENO"
12358 lt_aix_libpath_sed='
12359 /Import File Strings/,/^$/ {
12361 s/^0 *\([^ ]*\) *$/\1/
12365 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12366 # Check for a 64-bit object if we didn't find anything.
12367 if test -z "$lt_cv_aix_libpath_"; then
12368 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12371 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12372 conftest$ac_exeext conftest.$ac_ext
12373 if test -z "$lt_cv_aix_libpath_"; then
12374 lt_cv_aix_libpath_=/usr/lib:/lib
12379 aix_libpath=$lt_cv_aix_libpath_
12382 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12383 # Warning - without using the other run time loading flags,
12384 # -berok will link without error, but may produce a broken library.
12385 no_undefined_flag=' $wl-bernotok'
12386 allow_undefined_flag=' $wl-berok'
12387 if test yes = "$with_gnu_ld"; then
12388 # We only use this code for GNU lds that support --whole-archive.
12389 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12391 # Exported symbols can be pulled into shared objects from archives
12392 whole_archive_flag_spec='$convenience'
12394 archive_cmds_need_lc=yes
12395 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12396 # -brtl affects multiple linker settings, -berok does not and is overridden later
12397 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12398 if test svr4 != "$with_aix_soname"; then
12399 # This is similar to how AIX traditionally builds its shared libraries.
12400 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'
12402 if test aix != "$with_aix_soname"; then
12403 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'
12405 # used by -dlpreopen to get the symbols
12406 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12408 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12416 # see comment about AmigaOS4 .so support
12417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12418 archive_expsym_cmds=''
12421 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)'
12422 hardcode_libdir_flag_spec='-L$libdir'
12423 hardcode_minus_L=yes
12429 export_dynamic_flag_spec=-rdynamic
12432 cygwin* | mingw* | pw32* | cegcc*)
12433 # When not using gcc, we currently assume that we are using
12434 # Microsoft Visual C++.
12435 # hardcode_libdir_flag_spec is actually meaningless, as there is
12436 # no search path for DLLs.
12437 case $cc_basename in
12440 hardcode_libdir_flag_spec=' '
12441 allow_undefined_flag=unsupported
12442 always_export_symbols=yes
12444 # Tell ltmain to make .lib files, not .a files.
12446 # Tell ltmain to make .dll files, not .so files.
12448 # FIXME: Setting linknames here is a bad hack.
12449 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12450 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12451 cp "$export_symbols" "$output_objdir/$soname.def";
12452 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12454 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12456 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12458 # The linker will not automatically build a static lib if we build a DLL.
12459 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12460 enable_shared_with_static_runtimes=yes
12461 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12462 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12464 old_postinstall_cmds='chmod 644 $oldlib'
12465 postlink_cmds='lt_outputfile="@OUTPUT@"~
12466 lt_tool_outputfile="@TOOL_OUTPUT@"~
12467 case $lt_outputfile in
12470 lt_outputfile=$lt_outputfile.exe
12471 lt_tool_outputfile=$lt_tool_outputfile.exe
12474 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12475 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12476 $RM "$lt_outputfile.manifest";
12480 # Assume MSVC wrapper
12481 hardcode_libdir_flag_spec=' '
12482 allow_undefined_flag=unsupported
12483 # Tell ltmain to make .lib files, not .a files.
12485 # Tell ltmain to make .dll files, not .so files.
12487 # FIXME: Setting linknames here is a bad hack.
12488 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12489 # The linker will automatically build a .lib file if we build a DLL.
12490 old_archive_from_new_cmds='true'
12491 # FIXME: Should let the user specify the lib program.
12492 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12493 enable_shared_with_static_runtimes=yes
12498 darwin* | rhapsody*)
12501 archive_cmds_need_lc=no
12503 hardcode_automatic=yes
12504 hardcode_shlibpath_var=unsupported
12505 if test yes = "$lt_cv_ld_force_load"; then
12506 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\"`'
12509 whole_archive_flag_spec=''
12511 link_all_deplibs=yes
12512 allow_undefined_flag=$_lt_dar_allow_undefined
12513 case $cc_basename in
12514 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12515 *) _lt_dar_can_shared=$GCC ;;
12517 if test yes = "$_lt_dar_can_shared"; then
12518 output_verbose_link_cmd=func_echo_all
12519 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12520 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12521 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"
12522 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"
12531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12532 hardcode_libdir_flag_spec='-L$libdir'
12533 hardcode_shlibpath_var=no
12536 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12537 # support. Future versions do this automatically, but an explicit c++rt0.o
12538 # does not break anything, and helps significantly (at the cost of a little
12541 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12542 hardcode_libdir_flag_spec='-R$libdir'
12543 hardcode_direct=yes
12544 hardcode_shlibpath_var=no
12547 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12550 hardcode_direct=yes
12551 hardcode_minus_L=yes
12552 hardcode_shlibpath_var=no
12555 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12556 freebsd* | dragonfly*)
12557 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12558 hardcode_libdir_flag_spec='-R$libdir'
12559 hardcode_direct=yes
12560 hardcode_shlibpath_var=no
12564 if test yes = "$GCC"; then
12565 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'
12567 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'
12569 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12570 hardcode_libdir_separator=:
12571 hardcode_direct=yes
12573 # hardcode_minus_L: Not really in the search PATH,
12574 # but as the default location of the library.
12575 hardcode_minus_L=yes
12576 export_dynamic_flag_spec='$wl-E'
12580 if test yes,no = "$GCC,$with_gnu_ld"; then
12581 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12583 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12585 if test no = "$with_gnu_ld"; then
12586 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12587 hardcode_libdir_separator=:
12588 hardcode_direct=yes
12589 hardcode_direct_absolute=yes
12590 export_dynamic_flag_spec='$wl-E'
12591 # hardcode_minus_L: Not really in the search PATH,
12592 # but as the default location of the library.
12593 hardcode_minus_L=yes
12598 if test yes,no = "$GCC,$with_gnu_ld"; then
12601 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12604 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12607 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12613 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12616 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12620 # Older versions of the 11.00 compiler do not understand -b yet
12621 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12623 printf %s "checking if $CC understands -b... " >&6; }
12624 if test ${lt_cv_prog_compiler__b+y}
12626 printf %s "(cached) " >&6
12628 lt_cv_prog_compiler__b=no
12629 save_LDFLAGS=$LDFLAGS
12630 LDFLAGS="$LDFLAGS -b"
12631 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12633 # The linker can only warn and ignore the option if not recognized
12634 # So say no if there are warnings
12635 if test -s conftest.err; then
12636 # Append any errors to the config.log.
12637 cat conftest.err 1>&5
12638 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12640 if diff conftest.exp conftest.er2 >/dev/null; then
12641 lt_cv_prog_compiler__b=yes
12644 lt_cv_prog_compiler__b=yes
12648 LDFLAGS=$save_LDFLAGS
12651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12652 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12654 if test yes = "$lt_cv_prog_compiler__b"; then
12655 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12657 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12663 if test no = "$with_gnu_ld"; then
12664 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12665 hardcode_libdir_separator=:
12670 hardcode_shlibpath_var=no
12673 hardcode_direct=yes
12674 hardcode_direct_absolute=yes
12675 export_dynamic_flag_spec='$wl-E'
12677 # hardcode_minus_L: Not really in the search PATH,
12678 # but as the default location of the library.
12679 hardcode_minus_L=yes
12685 irix5* | irix6* | nonstopux*)
12686 if test yes = "$GCC"; then
12687 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'
12688 # Try to use the -exported_symbol ld option, if it does not
12689 # work, assume that -exports_file does not work either and
12690 # implicitly export all symbols.
12691 # This should be the same for all languages, so no per-tag cache variable.
12692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12693 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12694 if test ${lt_cv_irix_exported_symbol+y}
12696 printf %s "(cached) " >&6
12698 save_LDFLAGS=$LDFLAGS
12699 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h. */
12702 int foo (void) { return 0; }
12704 if ac_fn_c_try_link "$LINENO"
12706 lt_cv_irix_exported_symbol=yes
12708 lt_cv_irix_exported_symbol=no
12710 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12711 conftest$ac_exeext conftest.$ac_ext
12712 LDFLAGS=$save_LDFLAGS
12714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12715 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12716 if test yes = "$lt_cv_irix_exported_symbol"; then
12717 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'
12720 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'
12721 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'
12723 archive_cmds_need_lc='no'
12724 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12725 hardcode_libdir_separator=:
12727 link_all_deplibs=yes
12731 case $cc_basename in
12733 # Fabrice Bellard et al's Tiny C Compiler
12735 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12742 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12744 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12746 hardcode_libdir_flag_spec='-R$libdir'
12747 hardcode_direct=yes
12748 hardcode_shlibpath_var=no
12752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12753 hardcode_direct=yes
12754 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12755 hardcode_libdir_separator=:
12756 hardcode_shlibpath_var=no
12762 openbsd* | bitrig*)
12763 if test -f /usr/libexec/ld.so; then
12764 hardcode_direct=yes
12765 hardcode_shlibpath_var=no
12766 hardcode_direct_absolute=yes
12767 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12768 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12769 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12770 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12771 export_dynamic_flag_spec='$wl-E'
12773 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12774 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12782 hardcode_libdir_flag_spec='-L$libdir'
12783 hardcode_minus_L=yes
12784 allow_undefined_flag=unsupported
12786 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12787 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12788 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12789 $ECHO EXPORTS >> $output_objdir/$libname.def~
12790 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12791 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12792 emximp -o $lib $output_objdir/$libname.def'
12793 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12794 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12795 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12796 $ECHO EXPORTS >> $output_objdir/$libname.def~
12797 prefix_cmds="$SED"~
12798 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12799 prefix_cmds="$prefix_cmds -e 1d";
12801 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12802 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12803 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12804 emximp -o $lib $output_objdir/$libname.def'
12805 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12806 enable_shared_with_static_runtimes=yes
12810 if test yes = "$GCC"; then
12811 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12812 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'
12814 allow_undefined_flag=' -expect_unresolved \*'
12815 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'
12817 archive_cmds_need_lc='no'
12818 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12819 hardcode_libdir_separator=:
12822 osf4* | osf5*) # as osf3* with the addition of -msym flag
12823 if test yes = "$GCC"; then
12824 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12825 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'
12826 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12828 allow_undefined_flag=' -expect_unresolved \*'
12829 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'
12830 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~
12831 $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'
12833 # Both c and cxx compiler support -rpath directly
12834 hardcode_libdir_flag_spec='-rpath $libdir'
12836 archive_cmds_need_lc='no'
12837 hardcode_libdir_separator=:
12841 no_undefined_flag=' -z defs'
12842 if test yes = "$GCC"; then
12844 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12845 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12846 $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'
12848 case `$CC -V 2>&1` in
12851 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12852 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12853 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12857 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12858 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12859 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12863 hardcode_libdir_flag_spec='-R$libdir'
12864 hardcode_shlibpath_var=no
12866 solaris2.[0-5] | solaris2.[0-5].*) ;;
12868 # The compiler driver will combine and reorder linker options,
12869 # but understands '-z linker_flag'. GCC discards it without '$wl',
12870 # but is careful enough not to reorder.
12871 # Supported since Solaris 2.6 (maybe 2.5.1?)
12872 if test yes = "$GCC"; then
12873 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12875 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12879 link_all_deplibs=yes
12883 if test sequent = "$host_vendor"; then
12884 # Use $CC to link under sequent, because it throws in some extra .o
12885 # files that make .init and .fini sections work.
12886 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12888 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12890 hardcode_libdir_flag_spec='-L$libdir'
12891 hardcode_direct=yes
12892 hardcode_minus_L=yes
12893 hardcode_shlibpath_var=no
12897 case $host_vendor in
12899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12900 hardcode_direct=yes # is this really true???
12903 ## LD is ld it makes a PLAMLIB
12904 ## CC just makes a GrossModule.
12905 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12906 reload_cmds='$CC -r -o $output$reload_objs'
12910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12911 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12914 runpath_var='LD_RUN_PATH'
12915 hardcode_shlibpath_var=no
12919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12920 hardcode_shlibpath_var=no
12921 export_dynamic_flag_spec='-Bexport'
12925 if test -d /usr/nec; then
12926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12927 hardcode_shlibpath_var=no
12928 runpath_var=LD_RUN_PATH
12929 hardcode_runpath_var=yes
12934 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12935 no_undefined_flag='$wl-z,text'
12936 archive_cmds_need_lc=no
12937 hardcode_shlibpath_var=no
12938 runpath_var='LD_RUN_PATH'
12940 if test yes = "$GCC"; then
12941 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12942 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12944 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12945 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12949 sysv5* | sco3.2v5* | sco5v6*)
12950 # Note: We CANNOT use -z defs as we might desire, because we do not
12951 # link with -lc, and that would cause any symbols used from libc to
12952 # always be unresolved, which means just about no library would
12953 # ever link correctly. If we're not using GNU ld we use -z text
12954 # though, which does catch some bad symbols but isn't as heavy-handed
12956 no_undefined_flag='$wl-z,text'
12957 allow_undefined_flag='$wl-z,nodefs'
12958 archive_cmds_need_lc=no
12959 hardcode_shlibpath_var=no
12960 hardcode_libdir_flag_spec='$wl-R,$libdir'
12961 hardcode_libdir_separator=':'
12962 link_all_deplibs=yes
12963 export_dynamic_flag_spec='$wl-Bexport'
12964 runpath_var='LD_RUN_PATH'
12966 if test yes = "$GCC"; then
12967 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12968 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12970 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12971 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12977 hardcode_libdir_flag_spec='-L$libdir'
12978 hardcode_shlibpath_var=no
12986 if test sni = "$host_vendor"; then
12988 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12989 export_dynamic_flag_spec='$wl-Blargedynsym'
12995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12996 printf "%s\n" "$ld_shlibs" >&6; }
12997 test no = "$ld_shlibs" && can_build_shared=no
12999 with_gnu_ld=$with_gnu_ld
13016 # Do we need to explicitly link libc?
13018 case "x$archive_cmds_need_lc" in
13020 # Assume -lc should be added
13021 archive_cmds_need_lc=yes
13023 if test yes,yes = "$GCC,$enable_shared"; then
13024 case $archive_cmds in
13026 # FIXME: we may have to deal with multi-command sequences.
13029 # Test whether the compiler implicitly links with -lc since on some
13030 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13031 # to ld, don't add -lc before -lgcc.
13032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13033 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13034 if test ${lt_cv_archive_cmds_need_lc+y}
13036 printf %s "(cached) " >&6
13039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13042 (eval $ac_compile) 2>&5
13044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13045 test $ac_status = 0; } 2>conftest.err; then
13048 libobjs=conftest.$ac_objext
13050 wl=$lt_prog_compiler_wl
13051 pic_flag=$lt_prog_compiler_pic
13057 lt_save_allow_undefined_flag=$allow_undefined_flag
13058 allow_undefined_flag=
13059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13060 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13063 test $ac_status = 0; }
13065 lt_cv_archive_cmds_need_lc=no
13067 lt_cv_archive_cmds_need_lc=yes
13069 allow_undefined_flag=$lt_save_allow_undefined_flag
13071 cat conftest.err 1>&5
13076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13077 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13078 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13237 printf %s "checking dynamic linker characteristics... " >&6; }
13239 if test yes = "$GCC"; then
13241 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13242 *) lt_awk_arg='/^libraries:/' ;;
13245 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13246 *) lt_sed_strip_eq='s|=/|/|g' ;;
13248 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13249 case $lt_search_path_spec in
13251 # if the path contains ";" then we assume it to be the separator
13252 # otherwise default to the standard path separator (i.e. ":") - it is
13253 # assumed that no part of a normal pathname contains ";" but that should
13254 # okay in the real world where ";" in dirpaths is itself problematic.
13255 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13258 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13261 # Ok, now we have the path, separated by spaces, we can step through it
13262 # and add multilib dir if necessary...
13263 lt_tmp_lt_search_path_spec=
13264 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13265 # ...but if some path component already ends with the multilib dir we assume
13266 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13267 case "$lt_multi_os_dir; $lt_search_path_spec " in
13268 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13272 for lt_sys_path in $lt_search_path_spec; do
13273 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13274 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13275 elif test -n "$lt_multi_os_dir"; then
13276 test -d "$lt_sys_path" && \
13277 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13280 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13281 BEGIN {RS = " "; FS = "/|\n";} {
13284 for (lt_i = NF; lt_i > 0; lt_i--) {
13285 if ($lt_i != "" && $lt_i != ".") {
13286 if ($lt_i == "..") {
13289 if (lt_count == 0) {
13290 lt_foo = "/" $lt_i lt_foo;
13297 if (lt_foo != "") { lt_freq[lt_foo]++; }
13298 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13300 # AWK program above erroneously prepends '/' to C:/dos/paths
13303 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13304 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13306 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13308 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13310 library_names_spec=
13311 libname_spec='lib$name'
13315 postuninstall_cmds=
13319 shlibpath_overrides_runpath=unknown
13321 dynamic_linker="$host_os ld.so"
13322 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13323 need_lib_prefix=unknown
13324 hardcode_into_libs=no
13326 # when you set need_version to no, make sure it does not cause -set_version
13327 # flags to be left without arguments
13328 need_version=unknown
13334 version_type=linux # correct to gnu/linux during the next big refactor
13335 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13336 shlibpath_var=LIBPATH
13338 # AIX 3 has no versioning support, so we append a major version to the name.
13339 soname_spec='$libname$release$shared_ext$major'
13343 version_type=linux # correct to gnu/linux during the next big refactor
13346 hardcode_into_libs=yes
13347 if test ia64 = "$host_cpu"; then
13348 # AIX 5 supports IA64
13349 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13350 shlibpath_var=LD_LIBRARY_PATH
13352 # With GCC up to 2.95.x, collect2 would create an import file
13353 # for dependence libraries. The import file would start with
13354 # the line '#! .'. This would cause the generated library to
13355 # depend on '.', always an invalid library. This was fixed in
13356 # development snapshots of GCC prior to 3.0.
13358 aix4 | aix4.[01] | aix4.[01].*)
13359 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13361 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13364 can_build_shared=no
13368 # Using Import Files as archive members, it is possible to support
13369 # filename-based versioning of shared library archives on AIX. While
13370 # this would work for both with and without runtime linking, it will
13371 # prevent static linking of such archives. So we do filename-based
13372 # shared library versioning with .so extension only, which is used
13373 # when both runtime linking and shared linking is enabled.
13374 # Unfortunately, runtime linking may impact performance, so we do
13375 # not want this to be the default eventually. Also, we use the
13376 # versioned .so libs for executables only if there is the -brtl
13377 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13378 # To allow for filename-based versioning support, we need to create
13379 # libNAME.so.V as an archive file, containing:
13380 # *) an Import File, referring to the versioned filename of the
13381 # archive as well as the shared archive member, telling the
13382 # bitwidth (32 or 64) of that shared object, and providing the
13383 # list of exported symbols of that shared object, eventually
13384 # decorated with the 'weak' keyword
13385 # *) the shared object with the F_LOADONLY flag set, to really avoid
13386 # it being seen by the linker.
13387 # At run time we better use the real file rather than another symlink,
13388 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13390 case $with_aix_soname,$aix_use_runtimelinking in
13391 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13392 # soname into executable. Probably we can add versioning support to
13393 # collect2, so additional links can be useful in future.
13394 aix,yes) # traditional libtool
13395 dynamic_linker='AIX unversionable lib.so'
13396 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13397 # instead of lib<name>.a to let people know that these are not
13398 # typical AIX shared libraries.
13399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13401 aix,no) # traditional AIX only
13402 dynamic_linker='AIX lib.a(lib.so.V)'
13403 # We preserve .a as extension for shared libraries through AIX4.2
13404 # and later when we are not doing run time linking.
13405 library_names_spec='$libname$release.a $libname.a'
13406 soname_spec='$libname$release$shared_ext$major'
13408 svr4,*) # full svr4 only
13409 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13410 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13411 # We do not specify a path in Import Files, so LIBPATH fires.
13412 shlibpath_overrides_runpath=yes
13414 *,yes) # both, prefer svr4
13415 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13416 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13417 # unpreferred sharedlib libNAME.a needs extra handling
13418 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"'
13419 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"'
13420 # We do not specify a path in Import Files, so LIBPATH fires.
13421 shlibpath_overrides_runpath=yes
13423 *,no) # both, prefer aix
13424 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13425 library_names_spec='$libname$release.a $libname.a'
13426 soname_spec='$libname$release$shared_ext$major'
13427 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13428 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)'
13429 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"'
13432 shlibpath_var=LIBPATH
13439 # Since July 2007 AmigaOS4 officially supports .so libraries.
13440 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13444 library_names_spec='$libname.ixlibrary $libname.a'
13445 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13446 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'
13452 library_names_spec='$libname$shared_ext'
13453 dynamic_linker="$host_os ld.so"
13454 shlibpath_var=LIBRARY_PATH
13458 version_type=linux # correct to gnu/linux during the next big refactor
13460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13461 soname_spec='$libname$release$shared_ext$major'
13462 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13463 shlibpath_var=LD_LIBRARY_PATH
13464 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13465 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13466 # the default ld.so.conf also contains /usr/contrib/lib and
13467 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13468 # libtool to hard-code these into programs
13471 cygwin* | mingw* | pw32* | cegcc*)
13472 version_type=windows
13477 case $GCC,$cc_basename in
13480 library_names_spec='$libname.dll.a'
13481 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13482 postinstall_cmds='base_file=`basename \$file`~
13483 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13484 dldir=$destdir/`dirname \$dlpath`~
13485 test -d \$dldir || mkdir -p \$dldir~
13486 $install_prog $dir/$dlname \$dldir/$dlname~
13487 chmod a+x \$dldir/$dlname~
13488 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13489 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13491 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13492 dlpath=$dir/\$dldll~
13494 shlibpath_overrides_runpath=yes
13498 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13499 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13501 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13504 # MinGW DLLs use traditional 'lib' prefix
13505 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13508 # pw32 DLLs use 'pw' prefix rather than 'lib'
13509 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13512 dynamic_linker='Win32 ld.exe'
13517 libname_spec='$name'
13518 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13519 library_names_spec='$libname.dll.lib'
13523 sys_lib_search_path_spec=
13526 for lt_path in $LIB
13529 # Let DOS variable expansion print the short 8.3 style file name.
13530 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13531 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13534 # Convert to MSYS style.
13535 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13538 # Convert to unix form, then to dos form, then back to unix form
13539 # but this time dos style (no spaces!) so that the unix form looks
13540 # like /cygdrive/c/PROGRA~1:/cygdr...
13541 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13542 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13543 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13546 sys_lib_search_path_spec=$LIB
13547 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13548 # It is most probably a Windows format PATH.
13549 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13551 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13553 # FIXME: find the short name or the path components, as spaces are
13554 # common. (e.g. "Program Files" -> "PROGRA~1")
13558 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13559 postinstall_cmds='base_file=`basename \$file`~
13560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13561 dldir=$destdir/`dirname \$dlpath`~
13562 test -d \$dldir || mkdir -p \$dldir~
13563 $install_prog $dir/$dlname \$dldir/$dlname'
13564 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13565 dlpath=$dir/\$dldll~
13567 shlibpath_overrides_runpath=yes
13568 dynamic_linker='Win32 link.exe'
13572 # Assume MSVC wrapper
13573 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13574 dynamic_linker='Win32 ld.exe'
13577 # FIXME: first we should search . and the directory the executable is in
13581 darwin* | rhapsody*)
13582 dynamic_linker="$host_os dyld"
13583 version_type=darwin
13586 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13587 soname_spec='$libname$release$major$shared_ext'
13588 shlibpath_overrides_runpath=yes
13589 shlibpath_var=DYLD_LIBRARY_PATH
13590 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13592 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13593 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13597 version_type=linux # correct to gnu/linux during the next big refactor
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
13605 freebsd* | dragonfly*)
13606 # DragonFly does not have aout. When/if they implement a new
13607 # versioning mechanism, adjust this.
13608 if test -x /usr/bin/objformat; then
13609 objformat=`/usr/bin/objformat`
13612 freebsd[23].*) objformat=aout ;;
13613 *) objformat=elf ;;
13616 version_type=freebsd-$objformat
13617 case $version_type in
13619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13620 soname_spec='$libname$release$shared_ext$major'
13625 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13629 shlibpath_var=LD_LIBRARY_PATH
13632 shlibpath_overrides_runpath=yes
13634 freebsd3.[01]* | freebsdelf3.[01]*)
13635 shlibpath_overrides_runpath=yes
13636 hardcode_into_libs=yes
13638 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13639 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13640 shlibpath_overrides_runpath=no
13641 hardcode_into_libs=yes
13643 *) # from 4.6 on, and DragonFly
13644 shlibpath_overrides_runpath=yes
13645 hardcode_into_libs=yes
13651 version_type=linux # correct to gnu/linux during the next big refactor
13654 dynamic_linker="$host_os runtime_loader"
13655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13656 soname_spec='$libname$release$shared_ext$major'
13657 shlibpath_var=LIBRARY_PATH
13658 shlibpath_overrides_runpath=no
13659 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13660 hardcode_into_libs=yes
13663 hpux9* | hpux10* | hpux11*)
13664 # Give a soname corresponding to the major version so that dld.sl refuses to
13665 # link against other versions.
13672 hardcode_into_libs=yes
13673 dynamic_linker="$host_os dld.so"
13674 shlibpath_var=LD_LIBRARY_PATH
13675 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13677 soname_spec='$libname$release$shared_ext$major'
13678 if test 32 = "$HPUX_IA64_MODE"; then
13679 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13680 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13682 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13683 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13688 hardcode_into_libs=yes
13689 dynamic_linker="$host_os dld.sl"
13690 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13693 soname_spec='$libname$release$shared_ext$major'
13694 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13695 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13699 dynamic_linker="$host_os dld.sl"
13700 shlibpath_var=SHLIB_PATH
13701 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13703 soname_spec='$libname$release$shared_ext$major'
13706 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13707 postinstall_cmds='chmod 555 $lib'
13708 # or fails outright, so override atomically:
13709 install_override_mode=555
13713 version_type=linux # correct to gnu/linux during the next big refactor
13716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13717 soname_spec='$libname$release$shared_ext$major'
13718 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13719 shlibpath_var=LD_LIBRARY_PATH
13720 shlibpath_overrides_runpath=no
13721 hardcode_into_libs=yes
13724 irix5* | irix6* | nonstopux*)
13726 nonstopux*) version_type=nonstopux ;;
13728 if test yes = "$lt_cv_prog_gnu_ld"; then
13729 version_type=linux # correct to gnu/linux during the next big refactor
13736 soname_spec='$libname$release$shared_ext$major'
13737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13739 irix5* | nonstopux*)
13740 libsuff= shlibsuff=
13743 case $LD in # libtool.m4 will add one of these switches to LD
13744 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13745 libsuff= shlibsuff= libmagic=32-bit;;
13746 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13747 libsuff=32 shlibsuff=N32 libmagic=N32;;
13748 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13749 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13750 *) libsuff= shlibsuff= libmagic=never-match;;
13754 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13755 shlibpath_overrides_runpath=no
13756 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13757 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13758 hardcode_into_libs=yes
13761 # No shared lib support for Linux oldld, aout, or coff.
13762 linux*oldld* | linux*aout* | linux*coff*)
13767 version_type=none # Android doesn't support versioned libraries.
13770 library_names_spec='$libname$release$shared_ext'
13771 soname_spec='$libname$release$shared_ext'
13773 shlibpath_var=LD_LIBRARY_PATH
13774 shlibpath_overrides_runpath=yes
13776 # This implies no fast_install, which is unacceptable.
13777 # Some rework will be needed to allow for fast_install
13778 # before this can be enabled.
13779 hardcode_into_libs=yes
13781 dynamic_linker='Android linker'
13782 # Don't embed -rpath directories since the linker doesn't support them.
13783 hardcode_libdir_flag_spec='-L$libdir'
13786 # This must be glibc/ELF.
13787 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13788 version_type=linux # correct to gnu/linux during the next big refactor
13791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13792 soname_spec='$libname$release$shared_ext$major'
13793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13794 shlibpath_var=LD_LIBRARY_PATH
13795 shlibpath_overrides_runpath=no
13797 # Some binutils ld are patched to set DT_RUNPATH
13798 if test ${lt_cv_shlibpath_overrides_runpath+y}
13800 printf %s "(cached) " >&6
13802 lt_cv_shlibpath_overrides_runpath=no
13803 save_LDFLAGS=$LDFLAGS
13804 save_libdir=$libdir
13805 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13806 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h. */
13818 if ac_fn_c_try_link "$LINENO"
13820 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13822 lt_cv_shlibpath_overrides_runpath=yes
13825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13826 conftest$ac_exeext conftest.$ac_ext
13827 LDFLAGS=$save_LDFLAGS
13828 libdir=$save_libdir
13832 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13834 # This implies no fast_install, which is unacceptable.
13835 # Some rework will be needed to allow for fast_install
13836 # before this can be enabled.
13837 hardcode_into_libs=yes
13839 # Ideally, we could use ldconfig to report *all* directores which are
13840 # searched for libraries, however this is still not possible. Aside from not
13841 # being certain /sbin/ldconfig is available, command
13842 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13843 # even though it is searched at run-time. Try to do the best guess by
13844 # appending ld.so.conf contents (and includes) to the search path.
13845 if test -f /etc/ld.so.conf; then
13846 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' ' '`
13847 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13850 # We used to test for /lib/ld.so.1 and disable shared libraries on
13851 # powerpc, because MkLinux only supported shared libraries with the
13852 # GNU dynamic linker. Since this was broken with cross compilers,
13853 # most powerpc-linux boxes support dynamic linking these days and
13854 # people can always --disable-shared, the test was removed, and we
13855 # assume the GNU/Linux dynamic linker is in use.
13856 dynamic_linker='GNU/Linux ld.so'
13863 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13864 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13866 dynamic_linker='NetBSD (a.out) ld.so'
13868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13869 soname_spec='$libname$release$shared_ext$major'
13870 dynamic_linker='NetBSD ld.elf_so'
13872 shlibpath_var=LD_LIBRARY_PATH
13873 shlibpath_overrides_runpath=yes
13874 hardcode_into_libs=yes
13878 version_type=linux # correct to gnu/linux during the next big refactor
13879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13880 shlibpath_var=LD_LIBRARY_PATH
13881 shlibpath_overrides_runpath=yes
13888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13889 soname_spec='$libname$release$shared_ext$major'
13890 shlibpath_var=LD_LIBRARY_PATH
13891 shlibpath_overrides_runpath=no
13892 hardcode_into_libs=yes
13893 dynamic_linker='ldqnx.so'
13896 openbsd* | bitrig*)
13898 sys_lib_dlsearch_path_spec=/usr/lib
13900 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13905 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13907 shlibpath_var=LD_LIBRARY_PATH
13908 shlibpath_overrides_runpath=yes
13912 libname_spec='$name'
13913 version_type=windows
13917 # OS/2 can only load a DLL with a base name of 8 characters or less.
13918 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13919 v=$($ECHO $release$versuffix | tr -d .-);
13920 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13921 $ECHO $n$v`$shared_ext'
13922 library_names_spec='${libname}_dll.$libext'
13923 dynamic_linker='OS/2 ld.exe'
13924 shlibpath_var=BEGINLIBPATH
13925 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13926 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13927 postinstall_cmds='base_file=`basename \$file`~
13928 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13929 dldir=$destdir/`dirname \$dlpath`~
13930 test -d \$dldir || mkdir -p \$dldir~
13931 $install_prog $dir/$dlname \$dldir/$dlname~
13932 chmod a+x \$dldir/$dlname~
13933 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13934 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13936 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13937 dlpath=$dir/\$dldll~
13941 osf3* | osf4* | osf5*)
13945 soname_spec='$libname$release$shared_ext$major'
13946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13947 shlibpath_var=LD_LIBRARY_PATH
13948 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13949 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13957 version_type=linux # correct to gnu/linux during the next big refactor
13960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13961 soname_spec='$libname$release$shared_ext$major'
13962 shlibpath_var=LD_LIBRARY_PATH
13963 shlibpath_overrides_runpath=yes
13964 hardcode_into_libs=yes
13965 # ldd complains unless libraries are executable
13966 postinstall_cmds='chmod +x $lib'
13971 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13972 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13973 shlibpath_var=LD_LIBRARY_PATH
13974 shlibpath_overrides_runpath=yes
13975 if test yes = "$with_gnu_ld"; then
13982 version_type=linux # correct to gnu/linux during the next big refactor
13983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13984 soname_spec='$libname$release$shared_ext$major'
13985 shlibpath_var=LD_LIBRARY_PATH
13986 case $host_vendor in
13988 shlibpath_overrides_runpath=no
13990 runpath_var=LD_RUN_PATH
13998 shlibpath_overrides_runpath=no
13999 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14005 if test -d /usr/nec; then
14006 version_type=linux # correct to gnu/linux during the next big refactor
14007 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14008 soname_spec='$libname$shared_ext.$major'
14009 shlibpath_var=LD_LIBRARY_PATH
14013 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14018 soname_spec='$libname$release$shared_ext$major'
14019 shlibpath_var=LD_LIBRARY_PATH
14020 shlibpath_overrides_runpath=yes
14021 hardcode_into_libs=yes
14022 if test yes = "$with_gnu_ld"; then
14023 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14025 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14028 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14032 sys_lib_dlsearch_path_spec='/usr/lib'
14036 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14037 version_type=linux # correct to gnu/linux during the next big refactor
14040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14041 shlibpath_var=LD_LIBRARY_PATH
14042 shlibpath_overrides_runpath=no
14043 hardcode_into_libs=yes
14047 version_type=linux # correct to gnu/linux during the next big refactor
14048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14049 soname_spec='$libname$release$shared_ext$major'
14050 shlibpath_var=LD_LIBRARY_PATH
14057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14058 printf "%s\n" "$dynamic_linker" >&6; }
14059 test no = "$dynamic_linker" && can_build_shared=no
14061 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14062 if test yes = "$GCC"; then
14063 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14066 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14067 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14070 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14071 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14074 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14075 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14077 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14078 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14080 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14081 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14180 printf %s "checking how to hardcode library paths into programs... " >&6; }
14182 if test -n "$hardcode_libdir_flag_spec" ||
14183 test -n "$runpath_var" ||
14184 test yes = "$hardcode_automatic"; then
14186 # We can hardcode non-existent directories.
14187 if test no != "$hardcode_direct" &&
14188 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14189 # have to relink, otherwise we might link with an installed library
14190 # when we should be linking with a yet-to-be-installed one
14191 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14192 test no != "$hardcode_minus_L"; then
14193 # Linking always hardcodes the temporary library directory.
14194 hardcode_action=relink
14196 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14197 hardcode_action=immediate
14200 # We cannot hardcode anything, or else we can only hardcode existing
14202 hardcode_action=unsupported
14204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14205 printf "%s\n" "$hardcode_action" >&6; }
14207 if test relink = "$hardcode_action" ||
14208 test yes = "$inherit_rpath"; then
14209 # Fast installation is not supported
14210 enable_fast_install=no
14211 elif test yes = "$shlibpath_overrides_runpath" ||
14212 test no = "$enable_shared"; then
14213 # Fast installation is not necessary
14214 enable_fast_install=needless
14222 if test yes != "$enable_dlopen"; then
14223 enable_dlopen=unknown
14224 enable_dlopen_self=unknown
14225 enable_dlopen_self_static=unknown
14232 lt_cv_dlopen=load_add_on
14234 lt_cv_dlopen_self=yes
14237 mingw* | pw32* | cegcc*)
14238 lt_cv_dlopen=LoadLibrary
14243 lt_cv_dlopen=dlopen
14248 # if libdl is installed we need to link against it
14249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14250 printf %s "checking for dlopen in -ldl... " >&6; }
14251 if test ${ac_cv_lib_dl_dlopen+y}
14253 printf %s "(cached) " >&6
14255 ac_check_lib_save_LIBS=$LIBS
14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14260 /* Override any GCC internal prototype to avoid an error.
14261 Use char because int might match the return type of a GCC
14262 builtin and then its argument prototype would still apply. */
14272 if ac_fn_c_try_link "$LINENO"
14274 ac_cv_lib_dl_dlopen=yes
14276 ac_cv_lib_dl_dlopen=no
14278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14279 conftest$ac_exeext conftest.$ac_ext
14280 LIBS=$ac_check_lib_save_LIBS
14282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14283 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14284 if test "x$ac_cv_lib_dl_dlopen" = xyes
14286 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14291 lt_cv_dlopen_self=yes
14298 # Don't try to run any link tests for TPF. We know it's impossible
14299 # because TPF is a cross-compiler, and we know how we open DSOs.
14300 lt_cv_dlopen=dlopen
14302 lt_cv_dlopen_self=no
14306 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14307 if test "x$ac_cv_func_shl_load" = xyes
14309 lt_cv_dlopen=shl_load
14311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14312 printf %s "checking for shl_load in -ldld... " >&6; }
14313 if test ${ac_cv_lib_dld_shl_load+y}
14315 printf %s "(cached) " >&6
14317 ac_check_lib_save_LIBS=$LIBS
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14322 /* Override any GCC internal prototype to avoid an error.
14323 Use char because int might match the return type of a GCC
14324 builtin and then its argument prototype would still apply. */
14329 return shl_load ();
14334 if ac_fn_c_try_link "$LINENO"
14336 ac_cv_lib_dld_shl_load=yes
14338 ac_cv_lib_dld_shl_load=no
14340 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14341 conftest$ac_exeext conftest.$ac_ext
14342 LIBS=$ac_check_lib_save_LIBS
14344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14345 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14346 if test "x$ac_cv_lib_dld_shl_load" = xyes
14348 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14350 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14351 if test "x$ac_cv_func_dlopen" = xyes
14353 lt_cv_dlopen=dlopen
14355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14356 printf %s "checking for dlopen in -ldl... " >&6; }
14357 if test ${ac_cv_lib_dl_dlopen+y}
14359 printf %s "(cached) " >&6
14361 ac_check_lib_save_LIBS=$LIBS
14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364 /* end confdefs.h. */
14366 /* Override any GCC internal prototype to avoid an error.
14367 Use char because int might match the return type of a GCC
14368 builtin and then its argument prototype would still apply. */
14378 if ac_fn_c_try_link "$LINENO"
14380 ac_cv_lib_dl_dlopen=yes
14382 ac_cv_lib_dl_dlopen=no
14384 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14385 conftest$ac_exeext conftest.$ac_ext
14386 LIBS=$ac_check_lib_save_LIBS
14388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14389 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14390 if test "x$ac_cv_lib_dl_dlopen" = xyes
14392 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14395 printf %s "checking for dlopen in -lsvld... " >&6; }
14396 if test ${ac_cv_lib_svld_dlopen+y}
14398 printf %s "(cached) " >&6
14400 ac_check_lib_save_LIBS=$LIBS
14401 LIBS="-lsvld $LIBS"
14402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403 /* end confdefs.h. */
14405 /* Override any GCC internal prototype to avoid an error.
14406 Use char because int might match the return type of a GCC
14407 builtin and then its argument prototype would still apply. */
14417 if ac_fn_c_try_link "$LINENO"
14419 ac_cv_lib_svld_dlopen=yes
14421 ac_cv_lib_svld_dlopen=no
14423 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14424 conftest$ac_exeext conftest.$ac_ext
14425 LIBS=$ac_check_lib_save_LIBS
14427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14428 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14429 if test "x$ac_cv_lib_svld_dlopen" = xyes
14431 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14434 printf %s "checking for dld_link in -ldld... " >&6; }
14435 if test ${ac_cv_lib_dld_dld_link+y}
14437 printf %s "(cached) " >&6
14439 ac_check_lib_save_LIBS=$LIBS
14441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442 /* end confdefs.h. */
14444 /* Override any GCC internal prototype to avoid an error.
14445 Use char because int might match the return type of a GCC
14446 builtin and then its argument prototype would still apply. */
14451 return dld_link ();
14456 if ac_fn_c_try_link "$LINENO"
14458 ac_cv_lib_dld_dld_link=yes
14460 ac_cv_lib_dld_dld_link=no
14462 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14463 conftest$ac_exeext conftest.$ac_ext
14464 LIBS=$ac_check_lib_save_LIBS
14466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14467 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14468 if test "x$ac_cv_lib_dld_dld_link" = xyes
14470 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14491 if test no = "$lt_cv_dlopen"; then
14497 case $lt_cv_dlopen in
14499 save_CPPFLAGS=$CPPFLAGS
14500 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14502 save_LDFLAGS=$LDFLAGS
14503 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14506 LIBS="$lt_cv_dlopen_libs $LIBS"
14508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14509 printf %s "checking whether a program can dlopen itself... " >&6; }
14510 if test ${lt_cv_dlopen_self+y}
14512 printf %s "(cached) " >&6
14514 if test yes = "$cross_compiling"; then :
14515 lt_cv_dlopen_self=cross
14517 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14518 lt_status=$lt_dlunknown
14519 cat > conftest.$ac_ext <<_LT_EOF
14520 #line $LINENO "configure"
14521 #include "confdefs.h"
14530 # define LT_DLGLOBAL RTLD_GLOBAL
14533 # define LT_DLGLOBAL DL_GLOBAL
14535 # define LT_DLGLOBAL 0
14539 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14540 find out it does not work in some platform. */
14541 #ifndef LT_DLLAZY_OR_NOW
14543 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14546 # define LT_DLLAZY_OR_NOW DL_LAZY
14549 # define LT_DLLAZY_OR_NOW RTLD_NOW
14552 # define LT_DLLAZY_OR_NOW DL_NOW
14554 # define LT_DLLAZY_OR_NOW 0
14561 /* When -fvisibility=hidden is used, assume the code has been annotated
14562 correspondingly for the symbols needed. */
14563 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14564 int fnord () __attribute__((visibility("default")));
14567 int fnord () { return 42; }
14570 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14571 int status = $lt_dlunknown;
14575 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14578 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14579 else puts (dlerror ());
14581 /* dlclose (self); */
14589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14590 (eval $ac_link) 2>&5
14592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14593 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14594 (./conftest; exit; ) >&5 2>/dev/null
14596 case x$lt_status in
14597 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14598 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14599 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14602 # compilation failed
14603 lt_cv_dlopen_self=no
14610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14611 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14613 if test yes = "$lt_cv_dlopen_self"; then
14614 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14616 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14617 if test ${lt_cv_dlopen_self_static+y}
14619 printf %s "(cached) " >&6
14621 if test yes = "$cross_compiling"; then :
14622 lt_cv_dlopen_self_static=cross
14624 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14625 lt_status=$lt_dlunknown
14626 cat > conftest.$ac_ext <<_LT_EOF
14627 #line $LINENO "configure"
14628 #include "confdefs.h"
14637 # define LT_DLGLOBAL RTLD_GLOBAL
14640 # define LT_DLGLOBAL DL_GLOBAL
14642 # define LT_DLGLOBAL 0
14646 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14647 find out it does not work in some platform. */
14648 #ifndef LT_DLLAZY_OR_NOW
14650 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14653 # define LT_DLLAZY_OR_NOW DL_LAZY
14656 # define LT_DLLAZY_OR_NOW RTLD_NOW
14659 # define LT_DLLAZY_OR_NOW DL_NOW
14661 # define LT_DLLAZY_OR_NOW 0
14668 /* When -fvisibility=hidden is used, assume the code has been annotated
14669 correspondingly for the symbols needed. */
14670 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14671 int fnord () __attribute__((visibility("default")));
14674 int fnord () { return 42; }
14677 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14678 int status = $lt_dlunknown;
14682 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14685 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14686 else puts (dlerror ());
14688 /* dlclose (self); */
14696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14697 (eval $ac_link) 2>&5
14699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14700 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14701 (./conftest; exit; ) >&5 2>/dev/null
14703 case x$lt_status in
14704 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14705 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14706 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14709 # compilation failed
14710 lt_cv_dlopen_self_static=no
14717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14718 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14721 CPPFLAGS=$save_CPPFLAGS
14722 LDFLAGS=$save_LDFLAGS
14727 case $lt_cv_dlopen_self in
14728 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14729 *) enable_dlopen_self=unknown ;;
14732 case $lt_cv_dlopen_self_static in
14733 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14734 *) enable_dlopen_self_static=unknown ;;
14756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14757 printf %s "checking whether stripping libraries is possible... " >&6; }
14758 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14759 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14760 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14762 printf "%s\n" "yes" >&6; }
14764 # FIXME - insert some real tests, host_os isn't really good enough
14767 if test -n "$STRIP"; then
14768 striplib="$STRIP -x"
14769 old_striplib="$STRIP -S"
14770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14771 printf "%s\n" "yes" >&6; }
14773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14774 printf "%s\n" "no" >&6; }
14778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14779 printf "%s\n" "no" >&6; }
14795 # Report what library types will actually be built
14796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14797 printf %s "checking if libtool supports shared libraries... " >&6; }
14798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14799 printf "%s\n" "$can_build_shared" >&6; }
14801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14802 printf %s "checking whether to build shared libraries... " >&6; }
14803 test no = "$can_build_shared" && enable_shared=no
14805 # On AIX, shared libraries and static libraries use the same namespace, and
14806 # are all built from PIC.
14809 test yes = "$enable_shared" && enable_static=no
14810 if test -n "$RANLIB"; then
14811 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14812 postinstall_cmds='$RANLIB $lib'
14817 if test ia64 != "$host_cpu"; then
14818 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14819 yes,aix,yes) ;; # shared object as lib.so file only
14820 yes,svr4,*) ;; # shared object as lib.so archive member only
14821 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14827 printf "%s\n" "$enable_shared" >&6; }
14829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14830 printf %s "checking whether to build static libraries... " >&6; }
14831 # Make sure either enable_shared or enable_static is yes.
14832 test yes = "$enable_shared" || enable_static=yes
14833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14834 printf "%s\n" "$enable_static" >&6; }
14841 ac_cpp='$CPP $CPPFLAGS'
14842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14862 ac_config_commands="$ac_config_commands libtool"
14867 # Only expand once:
14872 # NTP has (so far) been relying on leading-edge autogen, which
14873 # means we need the appropriate corresponding libopts as well.
14874 # Therefore, by default:
14875 # - use the version of libopts we ship with
14876 # - do not install it
14877 # - build a static copy (AC_DISABLE_SHARED - done earlier)
14878 case "${enable_local_libopts+set}" in
14880 *) enable_local_libopts=yes ;;
14882 case "${enable_libopts_install+set}" in
14884 *) enable_libopts_install=no ;;
14887 # Autoupdate added the next two lines to ensure that your configure
14888 # script's behavior did not change. They are probably safe to remove.
14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
14891 printf %s "checking for egrep... " >&6; }
14892 if test ${ac_cv_path_EGREP+y}
14894 printf %s "(cached) " >&6
14896 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
14897 then ac_cv_path_EGREP="$GREP -E"
14899 if test -z "$EGREP"; then
14900 ac_path_EGREP_found=false
14901 # Loop through the user's path and test for each of PROGNAME-LIST
14902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14903 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
14906 case $as_dir in #(((
14909 *) as_dir=$as_dir/ ;;
14911 for ac_prog in egrep
14913 for ac_exec_ext in '' $ac_executable_extensions; do
14914 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
14915 as_fn_executable_p "$ac_path_EGREP" || continue
14916 # Check for GNU ac_path_EGREP and select it if it is found.
14917 # Check for GNU $ac_path_EGREP
14918 case `"$ac_path_EGREP" --version 2>&1` in
14920 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
14923 printf %s 0123456789 >"conftest.in"
14926 cat "conftest.in" "conftest.in" >"conftest.tmp"
14927 mv "conftest.tmp" "conftest.in"
14928 cp "conftest.in" "conftest.nl"
14929 printf "%s\n" 'EGREP' >> "conftest.nl"
14930 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
14931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14932 as_fn_arith $ac_count + 1 && ac_count=$as_val
14933 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
14934 # Best one so far, save it but keep looking for a better one
14935 ac_cv_path_EGREP="$ac_path_EGREP"
14936 ac_path_EGREP_max=$ac_count
14938 # 10*(2^10) chars as input seems more than enough
14939 test $ac_count -gt 10 && break
14941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14944 $ac_path_EGREP_found && break 3
14949 if test -z "$ac_cv_path_EGREP"; then
14950 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14953 ac_cv_path_EGREP=$EGREP
14958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
14959 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
14960 EGREP="$ac_cv_path_EGREP"
14965 for ac_item in $ac_func_c_list
14967 if test $ac_func; then
14968 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
14969 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
14970 echo "#define $ac_item 1" >> confdefs.h
14978 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
14980 if test "x$ac_cv_type_pid_t" = xyes
14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985 /* end confdefs.h. */
14987 #if defined _WIN64 && !defined __CYGWIN__
15000 if ac_fn_c_try_compile "$LINENO"
15004 ac_pid_type='__int64'
15006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15008 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
15019 ac_header_dirent=no
15020 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15021 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15023 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15024 if eval test \${$as_ac_Header+y}
15026 printf %s "(cached) " >&6
15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h. */
15030 #include <sys/types.h>
15042 if ac_fn_c_try_compile "$LINENO"
15044 eval "$as_ac_Header=yes"
15046 eval "$as_ac_Header=no"
15048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15050 eval ac_res=\$$as_ac_Header
15051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15052 printf "%s\n" "$ac_res" >&6; }
15053 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15055 cat >>confdefs.h <<_ACEOF
15056 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
15059 ac_header_dirent=$ac_hdr; break
15063 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15064 if test $ac_header_dirent = dirent.h; then
15065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15066 printf %s "checking for library containing opendir... " >&6; }
15067 if test ${ac_cv_search_opendir+y}
15069 printf %s "(cached) " >&6
15071 ac_func_search_save_LIBS=$LIBS
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15075 /* Override any GCC internal prototype to avoid an error.
15076 Use char because int might match the return type of a GCC
15077 builtin and then its argument prototype would still apply. */
15087 for ac_lib in '' dir
15089 if test -z "$ac_lib"; then
15090 ac_res="none required"
15093 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15095 if ac_fn_c_try_link "$LINENO"
15097 ac_cv_search_opendir=$ac_res
15099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15101 if test ${ac_cv_search_opendir+y}
15106 if test ${ac_cv_search_opendir+y}
15110 ac_cv_search_opendir=no
15112 rm conftest.$ac_ext
15113 LIBS=$ac_func_search_save_LIBS
15115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15116 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15117 ac_res=$ac_cv_search_opendir
15118 if test "$ac_res" != no
15120 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15126 printf %s "checking for library containing opendir... " >&6; }
15127 if test ${ac_cv_search_opendir+y}
15129 printf %s "(cached) " >&6
15131 ac_func_search_save_LIBS=$LIBS
15132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133 /* end confdefs.h. */
15135 /* Override any GCC internal prototype to avoid an error.
15136 Use char because int might match the return type of a GCC
15137 builtin and then its argument prototype would still apply. */
15149 if test -z "$ac_lib"; then
15150 ac_res="none required"
15153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15155 if ac_fn_c_try_link "$LINENO"
15157 ac_cv_search_opendir=$ac_res
15159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15161 if test ${ac_cv_search_opendir+y}
15166 if test ${ac_cv_search_opendir+y}
15170 ac_cv_search_opendir=no
15172 rm conftest.$ac_ext
15173 LIBS=$ac_func_search_save_LIBS
15175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15176 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15177 ac_res=$ac_cv_search_opendir
15178 if test "$ac_res" != no
15180 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15187 # =================
15189 # =================
15190 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15191 if test "x$ac_cv_header_sys_mman_h" = xyes
15193 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
15196 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15197 if test "x$ac_cv_header_sys_param_h" = xyes
15199 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15202 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
15203 if test "x$ac_cv_header_sys_poll_h" = xyes
15205 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
15208 ac_fn_c_check_header_compile "$LINENO" "sys/procset.h" "ac_cv_header_sys_procset_h" "$ac_includes_default"
15209 if test "x$ac_cv_header_sys_procset_h" = xyes
15211 printf "%s\n" "#define HAVE_SYS_PROCSET_H 1" >>confdefs.h
15214 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
15215 if test "x$ac_cv_header_sys_select_h" = xyes
15217 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
15220 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
15221 if test "x$ac_cv_header_sys_socket_h" = xyes
15223 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
15226 ac_fn_c_check_header_compile "$LINENO" "sys/stropts.h" "ac_cv_header_sys_stropts_h" "$ac_includes_default"
15227 if test "x$ac_cv_header_sys_stropts_h" = xyes
15229 printf "%s\n" "#define HAVE_SYS_STROPTS_H 1" >>confdefs.h
15232 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
15233 if test "x$ac_cv_header_sys_time_h" = xyes
15235 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
15238 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
15239 if test "x$ac_cv_header_sys_un_h" = xyes
15241 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
15244 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
15245 if test "x$ac_cv_header_sys_wait_h" = xyes
15247 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15250 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
15251 if test "x$ac_cv_header_dlfcn_h" = xyes
15253 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15256 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
15257 if test "x$ac_cv_header_errno_h" = xyes
15259 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
15262 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
15263 if test "x$ac_cv_header_fcntl_h" = xyes
15265 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
15268 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
15269 if test "x$ac_cv_header_libgen_h" = xyes
15271 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
15274 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
15275 if test "x$ac_cv_header_libintl_h" = xyes
15277 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
15280 ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
15281 if test "x$ac_cv_header_memory_h" = xyes
15283 printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
15286 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15287 if test "x$ac_cv_header_netinet_in_h" = xyes
15289 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
15292 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
15293 if test "x$ac_cv_header_setjmp_h" = xyes
15295 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
15298 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
15299 if test "x$ac_cv_header_stdbool_h" = xyes
15301 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
15304 ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
15305 if test "x$ac_cv_header_sysexits_h" = xyes
15307 printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h
15310 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15311 if test "x$ac_cv_header_unistd_h" = xyes
15313 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
15316 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
15317 if test "x$ac_cv_header_utime_h" = xyes
15319 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
15324 for ac_header in stdarg.h varargs.h
15326 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
15327 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15328 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15330 cat >>confdefs.h <<_ACEOF
15331 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
15333 lo_have_arg_hdr=true;break
15335 lo_have_arg_hdr=false
15340 for ac_header in string.h strings.h
15342 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
15343 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15344 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15346 cat >>confdefs.h <<_ACEOF
15347 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
15349 lo_have_str_hdr=true;break
15351 lo_have_str_hdr=false
15356 for ac_header in limits.h sys/limits.h values.h
15358 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
15359 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15360 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15362 cat >>confdefs.h <<_ACEOF
15363 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
15365 lo_have_lim_hdr=true;break
15367 lo_have_lim_hdr=false
15372 for ac_header in inttypes.h stdint.h
15374 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
15375 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15376 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15378 cat >>confdefs.h <<_ACEOF
15379 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
15381 lo_have_typ_hdr=true;break
15383 lo_have_typ_hdr=false
15391 STDNORETURN_H='stdnoreturn.h'
15394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
15395 printf %s "checking for working stdnoreturn.h... " >&6; }
15396 if test ${gl_cv_header_working_stdnoreturn_h+y}
15398 printf %s "(cached) " >&6
15400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401 /* end confdefs.h. */
15402 #include <stdlib.h>
15403 #include <stdnoreturn.h>
15404 /* Do not check for 'noreturn' after the return type.
15405 C11 allows it, but it's rarely done that way
15406 and circa-2012 bleeding-edge GCC rejects it when given
15407 -Werror=old-style-declaration. */
15408 noreturn void foo1 (void) { exit (0); }
15409 _Noreturn void foo2 (void) { exit (0); }
15410 int testit (int argc, char **argv)
15414 (argv[0][0] ? foo1 : foo2) ();
15425 if ac_fn_c_try_compile "$LINENO"
15427 gl_cv_header_working_stdnoreturn_h=yes
15429 gl_cv_header_working_stdnoreturn_h=no
15431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
15434 printf "%s\n" "$gl_cv_header_working_stdnoreturn_h" >&6; }
15435 if test $gl_cv_header_working_stdnoreturn_h = yes; then
15438 STDNORETURN_H='stdnoreturn.h'
15443 if test -n "$STDNORETURN_H"; then
15444 GL_GENERATE_STDNORETURN_H_TRUE=
15445 GL_GENERATE_STDNORETURN_H_FALSE='#'
15447 GL_GENERATE_STDNORETURN_H_TRUE='#'
15448 GL_GENERATE_STDNORETURN_H_FALSE=
15453 # ----------------------------------------------------------------------
15454 # check for various programs used during the build.
15455 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
15456 # ----------------------------------------------------------------------
15457 ac_fn_c_check_header_compile "$LINENO" "runetype.h" "ac_cv_header_runetype_h" "
15458 $ac_includes_default
15459 #if HAVE_RUNETYPE_H
15460 # include <runetype.h>
15464 if test "x$ac_cv_header_runetype_h" = xyes
15466 printf "%s\n" "#define HAVE_RUNETYPE_H 1" >>confdefs.h
15469 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "
15470 $ac_includes_default
15471 #if HAVE_RUNETYPE_H
15472 # include <runetype.h>
15476 if test "x$ac_cv_header_wchar_h" = xyes
15478 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
15483 # Check whether --enable-nls was given.
15484 if test ${enable_nls+y}
15486 enableval=$enable_nls;
15489 if test "x$enable_nls" != "xno" && \
15490 test "X${ac_cv_header_libintl_h}" = Xyes
15494 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
15498 # --------------------------------------------
15499 # Verify certain entries from AC_CHECK_HEADERS
15500 # --------------------------------------------
15501 ${lo_have_arg_hdr} || \
15502 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
15504 ${lo_have_str_hdr} || \
15505 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
15507 ${lo_have_lim_hdr} || \
15508 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
15510 ${lo_have_typ_hdr} || \
15511 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
15513 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
15514 do eval as_ac_var=\${ac_cv_header_${f}_h}
15515 test "X${as_ac_var}" = Xyes || {
15516 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
15519 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
15520 echo '#include <stdint.h>' > inttypes.h
15522 # ----------------------------------------------------------------------
15523 # Checks for typedefs
15524 # ----------------------------------------------------------------------
15525 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
15526 if test "x$ac_cv_type_wchar_t" = xyes
15529 printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
15534 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
15535 $ac_includes_default
15536 #if HAVE_RUNETYPE_H
15537 # include <runetype.h>
15540 # include <wchar.h>
15544 if test "x$ac_cv_type_wint_t" = xyes
15547 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
15552 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
15553 if test "x$ac_cv_type_int8_t" = xyes
15556 printf "%s\n" "#define HAVE_INT8_T 1" >>confdefs.h
15560 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
15561 if test "x$ac_cv_type_uint8_t" = xyes
15564 printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h
15568 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
15569 if test "x$ac_cv_type_int16_t" = xyes
15572 printf "%s\n" "#define HAVE_INT16_T 1" >>confdefs.h
15576 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
15577 if test "x$ac_cv_type_uint16_t" = xyes
15580 printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h
15584 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
15585 if test "x$ac_cv_type_int32_t" = xyes
15588 printf "%s\n" "#define HAVE_INT32_T 1" >>confdefs.h
15592 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
15593 if test "x$ac_cv_type_uint32_t" = xyes
15596 printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h
15600 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15601 if test "x$ac_cv_type_intptr_t" = xyes
15604 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
15608 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15609 if test "x$ac_cv_type_uintptr_t" = xyes
15612 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
15616 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
15617 if test "x$ac_cv_type_uint_t" = xyes
15620 printf "%s\n" "#define HAVE_UINT_T 1" >>confdefs.h
15624 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15625 if test "x$ac_cv_type_pid_t" = xyes
15628 printf "%s\n" "#define HAVE_PID_T 1" >>confdefs.h
15632 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15633 if test "x$ac_cv_type_size_t" = xyes
15636 printf "%s\n" "#define HAVE_SIZE_T 1" >>confdefs.h
15640 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15641 if test "x$ac_cv_type_ptrdiff_t" = xyes
15644 printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
15649 # The cast to long int works around a bug in the HP C Compiler
15650 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15651 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15652 # This bug is HP SR number 8606223364.
15653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
15654 printf %s "checking size of char *... " >&6; }
15655 if test ${ac_cv_sizeof_char_p+y}
15657 printf %s "(cached) " >&6
15659 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"
15663 if test "$ac_cv_type_char_p" = yes; then
15664 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15665 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15666 as_fn_error 77 "cannot compute sizeof (char *)
15667 See \`config.log' for more details" "$LINENO" 5; }
15669 ac_cv_sizeof_char_p=0
15674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
15675 printf "%s\n" "$ac_cv_sizeof_char_p" >&6; }
15679 printf "%s\n" "#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p" >>confdefs.h
15682 # The cast to long int works around a bug in the HP C Compiler
15683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15685 # This bug is HP SR number 8606223364.
15686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15687 printf %s "checking size of int... " >&6; }
15688 if test ${ac_cv_sizeof_int+y}
15690 printf %s "(cached) " >&6
15692 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
15696 if test "$ac_cv_type_int" = yes; then
15697 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15698 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15699 as_fn_error 77 "cannot compute sizeof (int)
15700 See \`config.log' for more details" "$LINENO" 5; }
15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15708 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
15712 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
15715 # The cast to long int works around a bug in the HP C Compiler
15716 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15717 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15718 # This bug is HP SR number 8606223364.
15719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15720 printf %s "checking size of long... " >&6; }
15721 if test ${ac_cv_sizeof_long+y}
15723 printf %s "(cached) " >&6
15725 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
15729 if test "$ac_cv_type_long" = yes; then
15730 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15731 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15732 as_fn_error 77 "cannot compute sizeof (long)
15733 See \`config.log' for more details" "$LINENO" 5; }
15735 ac_cv_sizeof_long=0
15740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15741 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
15745 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
15748 # The cast to long int works around a bug in the HP C Compiler
15749 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15750 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15751 # This bug is HP SR number 8606223364.
15752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15753 printf %s "checking size of short... " >&6; }
15754 if test ${ac_cv_sizeof_short+y}
15756 printf %s "(cached) " >&6
15758 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
15762 if test "$ac_cv_type_short" = yes; then
15763 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15764 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15765 as_fn_error 77 "cannot compute sizeof (short)
15766 See \`config.log' for more details" "$LINENO" 5; }
15768 ac_cv_sizeof_short=0
15773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15774 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
15778 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
15785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
15786 printf %s "checking for pathfind in -lgen... " >&6; }
15787 if test ${ac_cv_lib_gen_pathfind+y}
15789 printf %s "(cached) " >&6
15791 ac_check_lib_save_LIBS=$LIBS
15793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15794 /* end confdefs.h. */
15796 /* Override any GCC internal prototype to avoid an error.
15797 Use char because int might match the return type of a GCC
15798 builtin and then its argument prototype would still apply. */
15803 return pathfind ();
15808 if ac_fn_c_try_link "$LINENO"
15810 ac_cv_lib_gen_pathfind=yes
15812 ac_cv_lib_gen_pathfind=no
15814 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15815 conftest$ac_exeext conftest.$ac_ext
15816 LIBS=$ac_check_lib_save_LIBS
15818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
15819 printf "%s\n" "$ac_cv_lib_gen_pathfind" >&6; }
15820 if test "x$ac_cv_lib_gen_pathfind" = xyes
15822 printf "%s\n" "#define HAVE_LIBGEN 1" >>confdefs.h
15828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
15829 printf %s "checking for gettext in -lintl... " >&6; }
15830 if test ${ac_cv_lib_intl_gettext+y}
15832 printf %s "(cached) " >&6
15834 ac_check_lib_save_LIBS=$LIBS
15835 LIBS="-lintl $LIBS"
15836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837 /* end confdefs.h. */
15839 /* Override any GCC internal prototype to avoid an error.
15840 Use char because int might match the return type of a GCC
15841 builtin and then its argument prototype would still apply. */
15851 if ac_fn_c_try_link "$LINENO"
15853 ac_cv_lib_intl_gettext=yes
15855 ac_cv_lib_intl_gettext=no
15857 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15858 conftest$ac_exeext conftest.$ac_ext
15859 LIBS=$ac_check_lib_save_LIBS
15861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
15862 printf "%s\n" "$ac_cv_lib_intl_gettext" >&6; }
15863 if test "x$ac_cv_lib_intl_gettext" = xyes
15865 printf "%s\n" "#define HAVE_LIBINTL 1" >>confdefs.h
15867 LIBS="-lintl $LIBS"
15872 if test "x$ac_cv_func_vprintf" = xno
15874 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
15875 if test "x$ac_cv_func__doprnt" = xyes
15878 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
15885 if test "x$ac_cv_func_fork" = xyes; then
15886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15887 printf %s "checking for working fork... " >&6; }
15888 if test ${ac_cv_func_fork_works+y}
15890 printf %s "(cached) " >&6
15892 if test "$cross_compiling" = yes
15894 ac_cv_func_fork_works=cross
15896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897 /* end confdefs.h. */
15898 $ac_includes_default
15903 /* By Ruediger Kuhlmann. */
15904 return fork () < 0;
15910 if ac_fn_c_try_run "$LINENO"
15912 ac_cv_func_fork_works=yes
15914 ac_cv_func_fork_works=no
15916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15917 conftest.$ac_objext conftest.beam conftest.$ac_ext
15921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15922 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
15925 ac_cv_func_fork_works=$ac_cv_func_fork
15927 if test "x$ac_cv_func_fork_works" = xcross; then
15929 *-*-amigaos* | *-*-msdosdjgpp*)
15930 # Override, as these systems have only a dummy fork() stub
15931 ac_cv_func_fork_works=no
15934 ac_cv_func_fork_works=yes
15937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15938 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15940 ac_cv_func_vfork_works=$ac_cv_func_vfork
15941 if test "x$ac_cv_func_vfork" = xyes; then
15942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15943 printf %s "checking for working vfork... " >&6; }
15944 if test ${ac_cv_func_vfork_works+y}
15946 printf %s "(cached) " >&6
15948 if test "$cross_compiling" = yes
15950 ac_cv_func_vfork_works=cross
15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h. */
15954 /* Thanks to Paul Eggert for this test. */
15955 $ac_includes_default
15956 #include <signal.h>
15957 #include <sys/wait.h>
15958 #ifdef HAVE_VFORK_H
15959 # include <vfork.h>
15963 do_nothing (int sig)
15968 /* On some sparc systems, changes by the child to local and incoming
15969 argument registers are propagated back to the parent. The compiler
15970 is told about this with #include <vfork.h>, but some compilers
15971 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15972 static variable whose address is put into a register that is
15973 clobbered by the vfork. */
15975 sparc_address_test (int arg)
15977 static pid_t child;
15995 pid_t parent = getpid ();
15998 sparc_address_test (0);
16000 /* On Solaris 2.4, changes by the child to the signal handler
16001 also munge signal handlers in the parent. To detect this,
16002 start by putting the parent's handler in a known state. */
16003 signal (SIGTERM, SIG_DFL);
16008 /* Here is another test for sparc vfork register problems. This
16009 test uses lots of local variables, at least as many local
16010 variables as main has allocated so far including compiler
16011 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16012 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16013 reuse the register of parent for one of the local variables,
16014 since it will think that parent can't possibly be used any more
16015 in this routine. Assigning to the local variable will thus
16016 munge parent in the parent process. */
16018 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16019 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16020 /* Convince the compiler that p..p7 are live; otherwise, it might
16021 use the same hardware register for all 8 local variables. */
16022 if (p != p1 || p != p2 || p != p3 || p != p4
16023 || p != p5 || p != p6 || p != p7)
16026 /* Alter the child's signal handler. */
16027 if (signal (SIGTERM, do_nothing) != SIG_DFL)
16030 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16031 from child file descriptors. If the child closes a descriptor
16032 before it execs or exits, this munges the parent's descriptor
16033 as well. Test for this by closing stdout in the child. */
16034 _exit(close(fileno(stdout)) != 0);
16039 while (wait(&status) != child)
16042 /* Was there some problem with vforking? */
16045 /* Did the child munge the parent's signal handler? */
16046 || signal (SIGTERM, SIG_DFL) != SIG_DFL
16048 /* Did the child fail? (This shouldn't happen.) */
16051 /* Did the vfork/compiler bug occur? */
16052 || parent != getpid()
16054 /* Did the file descriptor bug occur? */
16055 || fstat(fileno(stdout), &st) != 0
16060 if ac_fn_c_try_run "$LINENO"
16062 ac_cv_func_vfork_works=yes
16064 ac_cv_func_vfork_works=no
16066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16067 conftest.$ac_objext conftest.beam conftest.$ac_ext
16071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16072 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
16075 if test "x$ac_cv_func_fork_works" = xcross; then
16076 ac_cv_func_vfork_works=$ac_cv_func_vfork
16077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16078 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16081 if test "x$ac_cv_func_vfork_works" = xyes; then
16083 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16087 printf "%s\n" "#define vfork fork" >>confdefs.h
16090 if test "x$ac_cv_func_fork_works" = xyes; then
16092 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
16096 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16097 if test "x$ac_cv_func_mmap" = xyes
16099 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
16102 ac_fn_c_check_func "$LINENO" "canonicalize_file_name" "ac_cv_func_canonicalize_file_name"
16103 if test "x$ac_cv_func_canonicalize_file_name" = xyes
16105 printf "%s\n" "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
16108 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16109 if test "x$ac_cv_func_snprintf" = xyes
16111 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
16114 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
16115 if test "x$ac_cv_func_strdup" = xyes
16117 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
16120 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
16121 if test "x$ac_cv_func_strchr" = xyes
16123 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
16126 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
16127 if test "x$ac_cv_func_strrchr" = xyes
16129 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
16132 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
16133 if test "x$ac_cv_func_strsignal" = xyes
16135 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
16138 ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
16139 if test "x$ac_cv_func_fchmod" = xyes
16141 printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
16144 ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat"
16145 if test "x$ac_cv_func_fstat" = xyes
16147 printf "%s\n" "#define HAVE_FSTAT 1" >>confdefs.h
16150 ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod"
16151 if test "x$ac_cv_func_chmod" = xyes
16153 printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h
16157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
16158 printf %s "checking for a sed that does not truncate output... " >&6; }
16159 if test ${ac_cv_path_SED+y}
16161 printf %s "(cached) " >&6
16163 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
16164 for ac_i in 1 2 3 4 5 6 7; do
16165 ac_script="$ac_script$as_nl$ac_script"
16167 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
16168 { ac_script=; unset ac_script;}
16169 if test -z "$SED"; then
16170 ac_path_SED_found=false
16171 # Loop through the user's path and test for each of PROGNAME-LIST
16172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16173 for as_dir in $PATH
16176 case $as_dir in #(((
16179 *) as_dir=$as_dir/ ;;
16181 for ac_prog in sed gsed
16183 for ac_exec_ext in '' $ac_executable_extensions; do
16184 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
16185 as_fn_executable_p "$ac_path_SED" || continue
16186 # Check for GNU ac_path_SED and select it if it is found.
16187 # Check for GNU $ac_path_SED
16188 case `"$ac_path_SED" --version 2>&1` in
16190 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
16193 printf %s 0123456789 >"conftest.in"
16196 cat "conftest.in" "conftest.in" >"conftest.tmp"
16197 mv "conftest.tmp" "conftest.in"
16198 cp "conftest.in" "conftest.nl"
16199 printf "%s\n" '' >> "conftest.nl"
16200 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
16201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16202 as_fn_arith $ac_count + 1 && ac_count=$as_val
16203 if test $ac_count -gt ${ac_path_SED_max-0}; then
16204 # Best one so far, save it but keep looking for a better one
16205 ac_cv_path_SED="$ac_path_SED"
16206 ac_path_SED_max=$ac_count
16208 # 10*(2^10) chars as input seems more than enough
16209 test $ac_count -gt 10 && break
16211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16214 $ac_path_SED_found && break 3
16219 if test -z "$ac_cv_path_SED"; then
16220 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
16223 ac_cv_path_SED=$SED
16227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
16228 printf "%s\n" "$ac_cv_path_SED" >&6; }
16229 SED="$ac_cv_path_SED"
16234 test -x "$POSIX_SHELL" && break
16235 POSIX_SHELL=`which bash`
16236 test -x "$POSIX_SHELL" && break
16237 POSIX_SHELL=`which dash`
16238 test -x "$POSIX_SHELL" && break
16239 POSIX_SHELL=/usr/xpg4/bin/sh
16240 test -x "$POSIX_SHELL" && break
16241 POSIX_SHELL=`/bin/sh -c '
16243 if ! true ; then exit 1 ; fi
16245 test -x "$POSIX_SHELL" && break
16246 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
16249 printf "%s\n" "#define POSIX_SHELL \"${POSIX_SHELL}\"" >>confdefs.h
16255 LIBOPTS_BUILD_BLOCKED=true
16258 NEED_LIBOPTS_DIR=''
16260 # Check whether --enable-local-libopts was given.
16261 if test ${enable_local_libopts+y}
16263 enableval=$enable_local_libopts;
16264 if test x$enableval = xyes ; then
16265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
16266 printf "%s\n" "$as_me: Using supplied libopts tearoff" >&6;}
16267 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
16268 NEED_LIBOPTS_DIR=true
16269 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
16274 # Check whether --enable-libopts-install was given.
16275 if test ${enable_libopts_install+y}
16277 enableval=$enable_libopts_install;
16280 if test "X${enable_libopts_install}" = Xyes; then
16281 INSTALL_LIBOPTS_TRUE=
16282 INSTALL_LIBOPTS_FALSE='#'
16284 INSTALL_LIBOPTS_TRUE='#'
16285 INSTALL_LIBOPTS_FALSE=
16289 if test -z "${NEED_LIBOPTS_DIR}" ; then
16290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
16291 printf %s "checking whether autoopts-config can be found... " >&6; }
16293 # Check whether --with-autoopts-config was given.
16294 if test ${with_autoopts_config+y}
16296 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
16298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
16299 printf %s "checking whether autoopts-config is specified... " >&6; }
16300 if test ${lo_cv_with_autoopts_config+y}
16302 printf %s "(cached) " >&6
16304 if autoopts-config --help 2>/dev/null 1>&2
16305 then lo_cv_with_autoopts_config=autoopts-config
16306 elif libopts-config --help 2>/dev/null 1>&2
16307 then lo_cv_with_autoopts_config=libopts-config
16308 else lo_cv_with_autoopts_config=no ; fi
16310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
16311 printf "%s\n" "$lo_cv_with_autoopts_config" >&6; }
16314 # end of AC_ARG_WITH
16316 if test ${lo_cv_test_autoopts+y}
16318 printf %s "(cached) " >&6
16321 if test -z "${lo_cv_with_autoopts_config}" \
16322 -o X"${lo_cv_with_autoopts_config}" = Xno
16324 if autoopts-config --help 2>/dev/null 1>&2
16325 then lo_cv_with_autoopts_config=autoopts-config
16326 elif libopts-config --help 2>/dev/null 1>&2
16327 then lo_cv_with_autoopts_config=libopts-config
16328 else lo_cv_with_autoopts_config=false ; fi
16330 lo_cv_test_autoopts=`
16331 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
16332 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
16333 then lo_cv_test_autoopts=no ; fi
16337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
16338 printf "%s\n" "${lo_cv_test_autoopts}" >&6; }
16340 if test "X${lo_cv_test_autoopts}" != Xno
16342 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
16343 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
16345 LIBOPTS_LDADD='$(top_builddir)/sntp/libopts/libopts.la'
16346 LIBOPTS_CFLAGS='-I$(top_srcdir)/sntp/libopts'
16347 NEED_LIBOPTS_DIR=true
16349 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
16350 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
16351 NEED_LIBOPTS_DIR=''
16353 if test -n "${NEED_LIBOPTS_DIR}"; then
16355 NEED_LIBOPTS_FALSE='#'
16357 NEED_LIBOPTS_TRUE='#'
16358 NEED_LIBOPTS_FALSE=
16363 LIBOPTS_DIR=sntp/libopts
16366 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
16368 # end of AC_DEFUN of LIBOPTS_CHECK_NOBUILD
16373 ntp_pkgconfig_min_version='0.15.0'
16374 if test -n "$ac_tool_prefix"; then
16375 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16376 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16378 printf %s "checking for $ac_word... " >&6; }
16379 if test ${ac_cv_path_PKG_CONFIG+y}
16381 printf %s "(cached) " >&6
16383 case $PKG_CONFIG in
16385 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16389 for as_dir in $PATH
16392 case $as_dir in #(((
16395 *) as_dir=$as_dir/ ;;
16397 for ac_exec_ext in '' $ac_executable_extensions; do
16398 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16399 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
16400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16410 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16411 if test -n "$PKG_CONFIG"; then
16412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16413 printf "%s\n" "$PKG_CONFIG" >&6; }
16415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16416 printf "%s\n" "no" >&6; }
16421 if test -z "$ac_cv_path_PKG_CONFIG"; then
16422 ac_pt_PKG_CONFIG=$PKG_CONFIG
16423 # Extract the first word of "pkg-config", so it can be a program name with args.
16424 set dummy pkg-config; ac_word=$2
16425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16426 printf %s "checking for $ac_word... " >&6; }
16427 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
16429 printf %s "(cached) " >&6
16431 case $ac_pt_PKG_CONFIG in
16433 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16437 for as_dir in $PATH
16440 case $as_dir in #(((
16443 *) as_dir=$as_dir/ ;;
16445 for ac_exec_ext in '' $ac_executable_extensions; do
16446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16447 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
16448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16458 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16459 if test -n "$ac_pt_PKG_CONFIG"; then
16460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16461 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
16463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16464 printf "%s\n" "no" >&6; }
16467 if test "x$ac_pt_PKG_CONFIG" = x; then
16470 case $cross_compiling:$ac_tool_warned in
16472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16473 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16474 ac_tool_warned=yes ;;
16476 PKG_CONFIG=$ac_pt_PKG_CONFIG
16479 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16482 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
16483 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
16485 case "$PKG_CONFIG" in
16487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
16488 printf %s "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
16489 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
16490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16491 printf "%s\n" "yes" >&6; }
16493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16494 printf "%s\n" "no" >&6; }
16503 # Check whether --enable-local-libevent was given.
16504 if test ${enable_local_libevent+y}
16506 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
16508 ntp_use_local_libevent=${ntp_use_local_libevent-detect}
16516 ntp_libevent_min_version=2
16517 ntp_libevent_tearoff=sntp/libevent
16523 case "$ntp_use_local_libevent" in
16526 *) # If we have (a good enough) pkg-config, see if it can find libevent
16527 case "$PKG_CONFIG" in
16529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
16530 printf %s "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
16531 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
16533 ntp_use_local_libevent=no
16534 ntp_libevent_version="`$PKG_CONFIG --modversion libevent`"
16535 case "$ntp_libevent_version" in
16537 *) ntp_libevent_version='(unknown)' ;;
16539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_libevent_version" >&5
16540 printf "%s\n" "yes, version $ntp_libevent_version" >&6; }
16541 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
16542 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
16543 # HMS: I hope the following is accurate.
16544 # We don't need -levent, we only need -levent_core.
16545 # While we could grab only the -L stuff, there *might* be
16546 # other flags there we want. Originally we just removed -levent
16547 # but then somebody decided to install -levent-2.0
16548 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
16549 # So now we dance...
16551 for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
16556 *) case "$LDADD_LIBEVENT" in
16557 '') LDADD_LIBEVENT="$i" ;;
16558 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
16563 case "$LIBISC_PTHREADS_NOTHREADS" in
16565 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
16567 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
16569 ntp_use_local_libevent=yes
16570 # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
16572 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
16573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16574 printf "%s\n" "no" >&6; }
16578 ntp_use_local_libevent=yes
16584 case "$ntp_use_local_libevent" in
16586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
16587 printf "%s\n" "$as_me: Using libevent tearoff" >&6;}
16588 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
16589 case "$LIBISC_PTHREADS_NOTHREADS" in
16591 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
16594 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
16599 if test "x$ntp_use_local_libevent" = "xyes"; then
16600 BUILD_LIBEVENT_TRUE=
16601 BUILD_LIBEVENT_FALSE='#'
16603 BUILD_LIBEVENT_TRUE='#'
16604 BUILD_LIBEVENT_FALSE=
16612 # Expose a cross-compilation indicator to makefiles
16613 if test $build != $host; then
16614 NTP_CROSSCOMPILE_TRUE=
16615 NTP_CROSSCOMPILE_FALSE='#'
16617 NTP_CROSSCOMPILE_TRUE='#'
16618 NTP_CROSSCOMPILE_FALSE=
16623 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16624 if test "x$ac_cv_type_size_t" = xyes
16629 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
16633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
16634 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
16635 if test ${ac_cv_c_undeclared_builtin_options+y}
16637 printf %s "(cached) " >&6
16639 ac_save_CFLAGS=$CFLAGS
16640 ac_cv_c_undeclared_builtin_options='cannot detect'
16641 for ac_arg in '' -fno-builtin; do
16642 CFLAGS="$ac_save_CFLAGS $ac_arg"
16643 # This test program should *not* compile successfully.
16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645 /* end confdefs.h. */
16655 if ac_fn_c_try_compile "$LINENO"
16659 # This test program should compile successfully.
16660 # No library function is consistently available on
16661 # freestanding implementations, so test against a dummy
16662 # declaration. Include always-available headers on the
16663 # off chance that they somehow elicit warnings.
16664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665 /* end confdefs.h. */
16667 #include <limits.h>
16668 #include <stdarg.h>
16669 #include <stddef.h>
16670 extern void ac_decl (int, char *);
16675 (void) ac_decl (0, (char *) 0);
16682 if ac_fn_c_try_compile "$LINENO"
16684 if test x"$ac_arg" = x
16686 ac_cv_c_undeclared_builtin_options='none needed'
16688 ac_cv_c_undeclared_builtin_options=$ac_arg
16692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16696 CFLAGS=$ac_save_CFLAGS
16699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
16700 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
16701 case $ac_cv_c_undeclared_builtin_options in #(
16703 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16704 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16705 as_fn_error $? "cannot make $CC report undeclared builtins
16706 See \`config.log' for more details" "$LINENO" 5; } ;; #(
16708 ac_c_undeclared_builtin_options='' ;; #(
16710 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
16713 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
16714 if test "x$ac_cv_have_decl_strerror_r" = xyes
16720 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
16724 # Check whether --enable-c99-snprintf was given.
16725 if test ${enable_c99_snprintf+y}
16727 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
16729 force_c99_snprintf=no
16733 case "$force_c99_snprintf" in
16735 hw_force_rpl_snprintf=yes
16736 hw_force_rpl_vsnprintf=yes
16746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16747 printf %s "checking for unsigned long long int... " >&6; }
16748 if test ${ac_cv_type_unsigned_long_long_int+y}
16750 printf %s "(cached) " >&6
16752 ac_cv_type_unsigned_long_long_int=yes
16753 case $ac_prog_cc_stdc in
16756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757 /* end confdefs.h. */
16759 /* For now, do not test the preprocessor; as of 2007 there are too many
16760 implementations with broken preprocessors. Perhaps this can
16761 be revisited in 2012. In the meantime, code should not expect
16762 #if to work with literals wider than 32 bits. */
16763 /* Test literals. */
16764 long long int ll = 9223372036854775807ll;
16765 long long int nll = -9223372036854775807LL;
16766 unsigned long long int ull = 18446744073709551615ULL;
16767 /* Test constant expressions. */
16768 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16770 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16776 /* Test availability of runtime routines for shift and division. */
16777 long long int llmax = 9223372036854775807ll;
16778 unsigned long long int ullmax = 18446744073709551615ull;
16779 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16780 | (llmax / ll) | (llmax % ll)
16781 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16782 | (ullmax / ull) | (ullmax % ull));
16788 if ac_fn_c_try_link "$LINENO"
16792 ac_cv_type_unsigned_long_long_int=no
16794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16795 conftest$ac_exeext conftest.$ac_ext;;
16798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16799 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
16800 if test $ac_cv_type_unsigned_long_long_int = yes; then
16802 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16807 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
16808 if test "x$ac_cv_func_vsnprintf" = xyes
16810 hw_cv_func_vsnprintf=yes
16812 hw_cv_func_vsnprintf=no
16815 if test "$hw_cv_func_vsnprintf" = yes
16817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
16818 printf %s "checking whether vsnprintf is C99 compliant... " >&6; }
16819 if test ${hw_cv_func_vsnprintf_c99+y}
16821 printf %s "(cached) " >&6
16823 if test "$cross_compiling" = yes
16825 hw_cv_func_vsnprintf_c99=no
16827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16828 /* end confdefs.h. */
16830 #include <stdarg.h>
16833 static int testprintf(char *buf, size_t size, const char *format, ...)
16837 va_start(ap, format);
16838 result = vsnprintf(buf, size, format, ap);
16846 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
16847 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
16848 buf[0] != 'T' || buf[3] != '\0')
16854 if ac_fn_c_try_run "$LINENO"
16856 hw_cv_func_vsnprintf_c99=yes
16858 hw_cv_func_vsnprintf_c99=no
16860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16861 conftest.$ac_objext conftest.beam conftest.$ac_ext
16865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
16866 printf "%s\n" "$hw_cv_func_vsnprintf_c99" >&6; }
16868 hw_cv_func_vsnprintf_c99=no
16871 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
16873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
16874 printf %s "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
16875 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no
16877 hw_use_rpl_vsnprintf=yes
16879 hw_use_rpl_vsnprintf=no
16881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
16882 printf "%s\n" "$hw_use_rpl_vsnprintf" >&6; }
16883 if test "$hw_use_rpl_vsnprintf" = yes
16886 printf "%s\n" "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
16888 if test ${hw_nodef_vsnprintf=no} = no
16891 printf "%s\n" "#define vsnprintf rpl_vsnprintf" >>confdefs.h
16894 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
16895 if test "x$ac_cv_header_inttypes_h" = xyes
16897 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
16900 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
16901 if test "x$ac_cv_header_locale_h" = xyes
16903 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
16906 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
16907 if test "x$ac_cv_header_stddef_h" = xyes
16909 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
16912 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
16913 if test "x$ac_cv_header_stdint_h" = xyes
16915 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
16919 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
16921 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes
16924 printf "%s\n" "#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1" >>confdefs.h
16928 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
16930 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes
16933 printf "%s\n" "#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1" >>confdefs.h
16939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
16940 printf %s "checking for long double... " >&6; }
16941 if test ${ac_cv_type_long_double+y}
16943 printf %s "(cached) " >&6
16945 if test "$GCC" = yes; then
16946 ac_cv_type_long_double=yes
16948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16949 /* end confdefs.h. */
16950 /* The Stardent Vistra knows sizeof (long double), but does
16952 long double foo = 0.0L;
16956 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
16957 sizeof (double) <= sizeof (long double))];
16958 test_array [0] = 0;
16959 return test_array [0];
16965 if ac_fn_c_try_compile "$LINENO"
16967 ac_cv_type_long_double=yes
16969 ac_cv_type_long_double=no
16971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
16975 printf "%s\n" "$ac_cv_type_long_double" >&6; }
16976 if test $ac_cv_type_long_double = yes; then
16978 printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
16984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16985 printf %s "checking for long long int... " >&6; }
16986 if test ${ac_cv_type_long_long_int+y}
16988 printf %s "(cached) " >&6
16990 ac_cv_type_long_long_int=yes
16991 case $ac_prog_cc_stdc in
16994 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16995 if test $ac_cv_type_long_long_int = yes; then
16996 if test "$cross_compiling" = yes
17000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17001 /* end confdefs.h. */
17002 #include <limits.h>
17005 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17006 # define LLONG_MAX (HALF - 1 + HALF)
17011 long long int n = 1;
17015 long long int m = n << i;
17018 if (LLONG_MAX / 2 < m)
17026 if ac_fn_c_try_run "$LINENO"
17030 ac_cv_type_long_long_int=no
17032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17033 conftest.$ac_objext conftest.beam conftest.$ac_ext
17039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17040 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
17041 if test $ac_cv_type_long_long_int = yes; then
17043 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17049 printf %s "checking for unsigned long long int... " >&6; }
17050 if test ${ac_cv_type_unsigned_long_long_int+y}
17052 printf %s "(cached) " >&6
17054 ac_cv_type_unsigned_long_long_int=yes
17055 case $ac_prog_cc_stdc in
17058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17059 /* end confdefs.h. */
17061 /* For now, do not test the preprocessor; as of 2007 there are too many
17062 implementations with broken preprocessors. Perhaps this can
17063 be revisited in 2012. In the meantime, code should not expect
17064 #if to work with literals wider than 32 bits. */
17065 /* Test literals. */
17066 long long int ll = 9223372036854775807ll;
17067 long long int nll = -9223372036854775807LL;
17068 unsigned long long int ull = 18446744073709551615ULL;
17069 /* Test constant expressions. */
17070 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17072 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17078 /* Test availability of runtime routines for shift and division. */
17079 long long int llmax = 9223372036854775807ll;
17080 unsigned long long int ullmax = 18446744073709551615ull;
17081 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17082 | (llmax / ll) | (llmax % ll)
17083 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17084 | (ullmax / ull) | (ullmax % ull));
17090 if ac_fn_c_try_link "$LINENO"
17094 ac_cv_type_unsigned_long_long_int=no
17096 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17097 conftest$ac_exeext conftest.$ac_ext;;
17100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17101 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
17102 if test $ac_cv_type_unsigned_long_long_int = yes; then
17104 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17108 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17109 if test "x$ac_cv_type_size_t" = xyes
17114 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
17120 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
17121 if test "x$ac_cv_type_intmax_t" = xyes
17124 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
17127 test $ac_cv_type_long_long_int = yes \
17128 && ac_type='long long int' \
17129 || ac_type='long int'
17131 printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
17138 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
17139 if test "x$ac_cv_type_uintmax_t" = xyes
17142 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
17145 test $ac_cv_type_unsigned_long_long_int = yes \
17146 && ac_type='unsigned long long int' \
17147 || ac_type='unsigned long int'
17149 printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
17155 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
17156 if test "x$ac_cv_type_uintptr_t" = xyes
17159 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
17162 for ac_type in 'unsigned int' 'unsigned long int' \
17163 'unsigned long long int'; do
17164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17165 /* end confdefs.h. */
17166 $ac_includes_default
17170 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17171 test_array [0] = 0;
17172 return test_array [0];
17178 if ac_fn_c_try_compile "$LINENO"
17181 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
17185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17186 test -z "$ac_type" && break
17191 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17192 if test "x$ac_cv_type_ptrdiff_t" = xyes
17195 printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
17200 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
17201 if test "x$ac_cv_func_localeconv" = xyes
17203 printf "%s\n" "#define HAVE_LOCALECONV 1" >>confdefs.h
17208 if test "x$_hw_cv_func_xprintf_replace_done" != xyes
17210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17211 printf %s "checking for an ANSI C-conforming const... " >&6; }
17212 if test ${ac_cv_c_const+y}
17214 printf %s "(cached) " >&6
17216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17217 /* end confdefs.h. */
17223 #ifndef __cplusplus
17224 /* Ultrix mips cc rejects this sort of thing. */
17225 typedef int charset[2];
17226 const charset cs = { 0, 0 };
17227 /* SunOS 4.1.1 cc rejects this. */
17228 char const *const *pcpcc;
17230 /* NEC SVR4.0.2 mips cc rejects this. */
17231 struct point {int x, y;};
17232 static struct point const zero = {0,0};
17233 /* IBM XL C 1.02.0.0 rejects this.
17234 It does not let you subtract one const X* pointer from another in
17235 an arm of an if-expression whose if-part is not a constant
17237 const char *g = "string";
17238 pcpcc = &g + (g ? g-g : 0);
17239 /* HPUX 7.0 cc rejects these. */
17241 ppc = (char**) pcpcc;
17242 pcpcc = (char const *const *) ppc;
17243 { /* SCO 3.2v4 cc rejects this sort of thing. */
17246 char const *s = 0 ? (char *) 0 : (char const *) 0;
17251 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17252 int x[] = {25, 17};
17253 const int *foo = &x[0];
17256 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17257 typedef const int *iptr;
17261 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
17262 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17263 struct s { int j; const int *ap[3]; } bx;
17264 struct s *b = &bx; b->j = 5;
17266 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17267 const int foo = 10;
17268 if (!foo) return 0;
17270 return !cs[0] && !zero.x;
17277 if ac_fn_c_try_compile "$LINENO"
17283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17286 printf "%s\n" "$ac_cv_c_const" >&6; }
17287 if test $ac_cv_c_const = no; then
17289 printf "%s\n" "#define const /**/" >>confdefs.h
17296 case " $LIBOBJS " in
17297 *" snprintf.$ac_objext "* ) ;;
17298 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17302 _hw_cv_func_xprintf_replace_done=yes
17308 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17309 if test "x$ac_cv_func_snprintf" = xyes
17311 hw_cv_func_snprintf=yes
17313 hw_cv_func_snprintf=no
17316 if test "$hw_cv_func_snprintf" = yes
17318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
17319 printf %s "checking whether snprintf is C99 compliant... " >&6; }
17320 if test ${hw_cv_func_snprintf_c99+y}
17322 printf %s "(cached) " >&6
17324 if test "$cross_compiling" = yes
17326 hw_cv_func_snprintf_c99=no
17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17329 /* end confdefs.h. */
17335 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
17336 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
17337 buf[0] != 'T' || buf[3] != '\0')
17343 if ac_fn_c_try_run "$LINENO"
17345 hw_cv_func_snprintf_c99=yes
17347 hw_cv_func_snprintf_c99=no
17349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17350 conftest.$ac_objext conftest.beam conftest.$ac_ext
17354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
17355 printf "%s\n" "$hw_cv_func_snprintf_c99" >&6; }
17357 hw_cv_func_snprintf_c99=no
17360 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
17362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
17363 printf %s "checking if C99-snprintf replacement snprintf will be used... " >&6; }
17364 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no
17366 hw_use_rpl_snprintf=yes
17368 hw_use_rpl_snprintf=no
17370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
17371 printf "%s\n" "$hw_use_rpl_snprintf" >&6; }
17372 if test "$hw_use_rpl_snprintf" = yes
17375 printf "%s\n" "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
17377 if test ${hw_nodef_snprintf=no} = no
17380 printf "%s\n" "#define snprintf rpl_snprintf" >>confdefs.h
17384 if test "x$_hw_cv_func_xprintf_replace_done" != xyes
17386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17387 printf %s "checking for an ANSI C-conforming const... " >&6; }
17388 if test ${ac_cv_c_const+y}
17390 printf %s "(cached) " >&6
17392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17393 /* end confdefs.h. */
17399 #ifndef __cplusplus
17400 /* Ultrix mips cc rejects this sort of thing. */
17401 typedef int charset[2];
17402 const charset cs = { 0, 0 };
17403 /* SunOS 4.1.1 cc rejects this. */
17404 char const *const *pcpcc;
17406 /* NEC SVR4.0.2 mips cc rejects this. */
17407 struct point {int x, y;};
17408 static struct point const zero = {0,0};
17409 /* IBM XL C 1.02.0.0 rejects this.
17410 It does not let you subtract one const X* pointer from another in
17411 an arm of an if-expression whose if-part is not a constant
17413 const char *g = "string";
17414 pcpcc = &g + (g ? g-g : 0);
17415 /* HPUX 7.0 cc rejects these. */
17417 ppc = (char**) pcpcc;
17418 pcpcc = (char const *const *) ppc;
17419 { /* SCO 3.2v4 cc rejects this sort of thing. */
17422 char const *s = 0 ? (char *) 0 : (char const *) 0;
17427 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17428 int x[] = {25, 17};
17429 const int *foo = &x[0];
17432 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17433 typedef const int *iptr;
17437 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
17438 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17439 struct s { int j; const int *ap[3]; } bx;
17440 struct s *b = &bx; b->j = 5;
17442 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17443 const int foo = 10;
17444 if (!foo) return 0;
17446 return !cs[0] && !zero.x;
17453 if ac_fn_c_try_compile "$LINENO"
17459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17462 printf "%s\n" "$ac_cv_c_const" >&6; }
17463 if test $ac_cv_c_const = no; then
17465 printf "%s\n" "#define const /**/" >>confdefs.h
17472 case " $LIBOBJS " in
17473 *" snprintf.$ac_objext "* ) ;;
17474 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
17478 _hw_cv_func_xprintf_replace_done=yes
17487 # HMS: Save $LIBS and empty it.
17488 # any LIBS we add here should go in to LDADD_LIBNTP
17495 # [Bug 2332] because we need to know if we are using GNU ld...
17498 # Check whether --with-gnu-ld was given.
17499 if test ${with_gnu_ld+y}
17501 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
17507 if test yes = "$GCC"; then
17508 # Check if gcc -print-prog-name=ld gives a path.
17509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17510 printf %s "checking for ld used by $CC... " >&6; }
17513 # gcc leaves a trailing carriage return, which upsets mingw
17514 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17516 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17519 # Accept absolute paths.
17521 re_direlt='/[^/][^/]*/\.\./'
17522 # Canonicalize the pathname of ld
17523 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17524 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17525 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17527 test -z "$LD" && LD=$ac_prog
17530 # If it fails, then pretend we aren't using GCC.
17534 # If it is relative, then search for the first ld in PATH.
17535 with_gnu_ld=unknown
17538 elif test yes = "$with_gnu_ld"; then
17539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17540 printf %s "checking for GNU ld... " >&6; }
17542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17543 printf %s "checking for non-GNU ld... " >&6; }
17545 if test ${lt_cv_path_LD+y}
17547 printf %s "(cached) " >&6
17549 if test -z "$LD"; then
17550 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
17551 for ac_dir in $PATH; do
17553 test -z "$ac_dir" && ac_dir=.
17554 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17555 lt_cv_path_LD=$ac_dir/$ac_prog
17556 # Check to see if the program is GNU ld. I'd rather use --version,
17557 # but apparently some variants of GNU ld only accept -v.
17558 # Break only if it was the GNU/non-GNU ld that we prefer.
17559 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17560 *GNU* | *'with BFD'*)
17561 test no != "$with_gnu_ld" && break
17564 test yes != "$with_gnu_ld" && break
17571 lt_cv_path_LD=$LD # Let the user override the test with a path.
17576 if test -n "$LD"; then
17577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17578 printf "%s\n" "$LD" >&6; }
17580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17581 printf "%s\n" "no" >&6; }
17583 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17585 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
17586 if test ${lt_cv_prog_gnu_ld+y}
17588 printf %s "(cached) " >&6
17590 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17591 case `$LD -v 2>&1 </dev/null` in
17592 *GNU* | *'with BFD'*)
17593 lt_cv_prog_gnu_ld=yes
17596 lt_cv_prog_gnu_ld=no
17600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17601 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
17602 with_gnu_ld=$lt_cv_prog_gnu_ld
17611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
17612 printf %s "checking for directory path separator... " >&6; }
17613 if test ${ntp_cv_dir_sep+y}
17615 printf %s "(cached) " >&6
17618 case "$ntp_cv_dir_sep" in
17621 *djgpp | *mingw32* | *emx*)
17622 ntp_cv_dir_sep="'\\'"
17625 ntp_cv_dir_sep="'/'"
17632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
17633 printf "%s\n" "$ntp_cv_dir_sep" >&6; }
17635 printf "%s\n" "#define DIR_SEP $ntp_cv_dir_sep" >>confdefs.h
17639 NTP_ORIG_LIBS="$LIBS"
17641 # Check whether --with-lineeditlibs was given.
17642 if test ${with_lineeditlibs+y}
17644 withval=$with_lineeditlibs; use_lineeditlibs="$withval"
17646 use_lineeditlibs="edit,editline"
17650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
17651 printf %s "checking line editing libraries... " >&6; }
17652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
17653 printf "%s\n" "$use_lineeditlibs" >&6; }
17654 case "$use_lineeditlibs" in
17656 ntp_lib_lineedit=no
17659 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
17660 for term_lib in "" termcap curses ncurses; do
17661 case "$term_lib" in
17663 TRY_LIB="-l$lineedit_lib"
17666 TRY_LIB="-l$lineedit_lib -l$term_lib"
17669 LIBS="$NTP_ORIG_LIBS $TRY_LIB"
17670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
17671 printf %s "checking for readline() with $TRY_LIB... " >&6; }
17672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17673 /* end confdefs.h. */
17675 /* Override any GCC internal prototype to avoid an error.
17676 Use char because int might match the return type of a GCC
17677 builtin and then its argument prototype would still apply. */
17682 return readline ();
17687 if ac_fn_c_try_link "$LINENO"
17689 ntp_lib_lineedit="$TRY_LIB"
17691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17692 conftest$ac_exeext conftest.$ac_ext
17693 case "$ntp_lib_lineedit" in
17695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17696 printf "%s\n" "no" >&6; }
17700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17701 printf "%s\n" "yes" >&6; }
17704 case "$term_lib" in
17706 # do not try el_gets without a terminal library
17709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
17710 printf %s "checking for el_gets() with $TRY_LIB... " >&6; }
17711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17712 /* end confdefs.h. */
17714 /* Override any GCC internal prototype to avoid an error.
17715 Use char because int might match the return type of a GCC
17716 builtin and then its argument prototype would still apply. */
17726 if ac_fn_c_try_link "$LINENO"
17728 ntp_lib_lineedit="$TRY_LIB"
17730 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17731 conftest$ac_exeext conftest.$ac_ext
17732 case "$ntp_lib_lineedit" in
17734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17735 printf "%s\n" "no" >&6; }
17738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17739 printf "%s\n" "yes" >&6; }
17742 esac # $ntp_lib_lineedit
17745 case "$ntp_lib_lineedit" in
17753 LIBS="$NTP_ORIG_LIBS"
17755 esac # $use_lineeditlibs
17757 case "$ntp_lib_lineedit" in
17759 ntp_lib_lineedit="no"
17764 EDITLINE_LIBS="$ntp_lib_lineedit"
17767 esac # $ntp_lib_lineedit
17769 case "$ntp_lib_lineedit" in
17773 ac_fn_c_check_header_compile "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
17774 if test "x$ac_cv_header_readline_h" = xyes
17776 printf "%s\n" "#define HAVE_READLINE_H 1" >>confdefs.h
17779 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
17780 if test "x$ac_cv_header_readline_readline_h" = xyes
17782 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
17785 ac_fn_c_check_header_compile "$LINENO" "histedit.h" "ac_cv_header_histedit_h" "$ac_includes_default"
17786 if test "x$ac_cv_header_histedit_h" = xyes
17788 printf "%s\n" "#define HAVE_HISTEDIT_H 1" >>confdefs.h
17792 ac_fn_c_check_header_compile "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
17793 if test "x$ac_cv_header_history_h" = xyes
17795 printf "%s\n" "#define HAVE_HISTORY_H 1" >>confdefs.h
17798 ac_fn_c_check_header_compile "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
17799 if test "x$ac_cv_header_readline_history_h" = xyes
17801 printf "%s\n" "#define HAVE_READLINE_HISTORY_H 1" >>confdefs.h
17806 case "$ac_cv_header_histedit_h" in
17808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
17809 printf %s "checking number of arguments to el_init()... " >&6; }
17810 if test ${ntp_cv_el_init_args+y}
17812 printf %s "(cached) " >&6
17814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17815 /* end confdefs.h. */
17818 #include <histedit.h>
17824 el_init("conftest", stdin, stdout, stderr);
17831 if ac_fn_c_try_compile "$LINENO"
17833 ntp_cv_el_init_args=4
17835 ntp_cv_el_init_args=3
17838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
17842 printf "%s\n" "$ntp_cv_el_init_args" >&6; }
17844 printf "%s\n" "#define EL_INIT_ARGS $ntp_cv_el_init_args" >>confdefs.h
17848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
17849 printf %s "checking whether readline supports history... " >&6; }
17851 ntp_lib_lineedit_history="no"
17853 LIBS="$ORIG_LIBS $ntp_lib_lineedit"
17854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17855 /* end confdefs.h. */
17857 /* Override any GCC internal prototype to avoid an error.
17858 Use char because int might match the return type of a GCC
17859 builtin and then its argument prototype would still apply. */
17860 char add_history ();
17864 return add_history ();
17869 if ac_fn_c_try_link "$LINENO"
17871 ntp_lib_lineedit_history="yes"
17873 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17874 conftest$ac_exeext conftest.$ac_ext
17877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
17878 printf "%s\n" "$ntp_lib_lineedit_history" >&6; }
17880 case "$ntp_lib_lineedit_history" in
17883 printf "%s\n" "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
17886 esac # $ntp_lib_lineedit
17887 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
17888 { ORIG_LIBS=; unset ORIG_LIBS;}
17889 { TRY_LIB=; unset TRY_LIB;}
17890 { use_lineeditlibs=; unset use_lineeditlibs;}
17899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
17900 printf %s "checking for library containing cos... " >&6; }
17901 if test ${ac_cv_search_cos+y}
17903 printf %s "(cached) " >&6
17905 ac_func_search_save_LIBS=$LIBS
17906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17907 /* end confdefs.h. */
17909 /* Override any GCC internal prototype to avoid an error.
17910 Use char because int might match the return type of a GCC
17911 builtin and then its argument prototype would still apply. */
17923 if test -z "$ac_lib"; then
17924 ac_res="none required"
17927 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17929 if ac_fn_c_try_link "$LINENO"
17931 ac_cv_search_cos=$ac_res
17933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17935 if test ${ac_cv_search_cos+y}
17940 if test ${ac_cv_search_cos+y}
17944 ac_cv_search_cos=no
17946 rm conftest.$ac_ext
17947 LIBS=$ac_func_search_save_LIBS
17949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
17950 printf "%s\n" "$ac_cv_search_cos" >&6; }
17951 ac_res=$ac_cv_search_cos
17952 if test "$ac_res" != no
17954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17962 { _libs=; unset _libs;}
17967 if test "x$ac_cv_func_fork" = xyes; then
17968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
17969 printf %s "checking for working fork... " >&6; }
17970 if test ${ac_cv_func_fork_works+y}
17972 printf %s "(cached) " >&6
17974 if test "$cross_compiling" = yes
17976 ac_cv_func_fork_works=cross
17978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17979 /* end confdefs.h. */
17980 $ac_includes_default
17985 /* By Ruediger Kuhlmann. */
17986 return fork () < 0;
17992 if ac_fn_c_try_run "$LINENO"
17994 ac_cv_func_fork_works=yes
17996 ac_cv_func_fork_works=no
17998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17999 conftest.$ac_objext conftest.beam conftest.$ac_ext
18003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18004 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
18007 ac_cv_func_fork_works=$ac_cv_func_fork
18009 if test "x$ac_cv_func_fork_works" = xcross; then
18011 *-*-amigaos* | *-*-msdosdjgpp*)
18012 # Override, as these systems have only a dummy fork() stub
18013 ac_cv_func_fork_works=no
18016 ac_cv_func_fork_works=yes
18019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18020 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18022 ac_cv_func_vfork_works=$ac_cv_func_vfork
18023 if test "x$ac_cv_func_vfork" = xyes; then
18024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18025 printf %s "checking for working vfork... " >&6; }
18026 if test ${ac_cv_func_vfork_works+y}
18028 printf %s "(cached) " >&6
18030 if test "$cross_compiling" = yes
18032 ac_cv_func_vfork_works=cross
18034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18035 /* end confdefs.h. */
18036 /* Thanks to Paul Eggert for this test. */
18037 $ac_includes_default
18038 #include <signal.h>
18039 #include <sys/wait.h>
18040 #ifdef HAVE_VFORK_H
18041 # include <vfork.h>
18045 do_nothing (int sig)
18050 /* On some sparc systems, changes by the child to local and incoming
18051 argument registers are propagated back to the parent. The compiler
18052 is told about this with #include <vfork.h>, but some compilers
18053 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18054 static variable whose address is put into a register that is
18055 clobbered by the vfork. */
18057 sparc_address_test (int arg)
18059 static pid_t child;
18077 pid_t parent = getpid ();
18080 sparc_address_test (0);
18082 /* On Solaris 2.4, changes by the child to the signal handler
18083 also munge signal handlers in the parent. To detect this,
18084 start by putting the parent's handler in a known state. */
18085 signal (SIGTERM, SIG_DFL);
18090 /* Here is another test for sparc vfork register problems. This
18091 test uses lots of local variables, at least as many local
18092 variables as main has allocated so far including compiler
18093 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18094 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18095 reuse the register of parent for one of the local variables,
18096 since it will think that parent can't possibly be used any more
18097 in this routine. Assigning to the local variable will thus
18098 munge parent in the parent process. */
18100 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18101 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18102 /* Convince the compiler that p..p7 are live; otherwise, it might
18103 use the same hardware register for all 8 local variables. */
18104 if (p != p1 || p != p2 || p != p3 || p != p4
18105 || p != p5 || p != p6 || p != p7)
18108 /* Alter the child's signal handler. */
18109 if (signal (SIGTERM, do_nothing) != SIG_DFL)
18112 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18113 from child file descriptors. If the child closes a descriptor
18114 before it execs or exits, this munges the parent's descriptor
18115 as well. Test for this by closing stdout in the child. */
18116 _exit(close(fileno(stdout)) != 0);
18121 while (wait(&status) != child)
18124 /* Was there some problem with vforking? */
18127 /* Did the child munge the parent's signal handler? */
18128 || signal (SIGTERM, SIG_DFL) != SIG_DFL
18130 /* Did the child fail? (This shouldn't happen.) */
18133 /* Did the vfork/compiler bug occur? */
18134 || parent != getpid()
18136 /* Did the file descriptor bug occur? */
18137 || fstat(fileno(stdout), &st) != 0
18142 if ac_fn_c_try_run "$LINENO"
18144 ac_cv_func_vfork_works=yes
18146 ac_cv_func_vfork_works=no
18148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18149 conftest.$ac_objext conftest.beam conftest.$ac_ext
18153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
18154 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
18157 if test "x$ac_cv_func_fork_works" = xcross; then
18158 ac_cv_func_vfork_works=$ac_cv_func_vfork
18159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18160 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18163 if test "x$ac_cv_func_vfork_works" = xyes; then
18165 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
18169 printf "%s\n" "#define vfork fork" >>confdefs.h
18172 if test "x$ac_cv_func_fork_works" = xyes; then
18174 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
18178 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18179 # for constant arguments. Useless!
18180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18181 printf %s "checking for working alloca.h... " >&6; }
18182 if test ${ac_cv_working_alloca_h+y}
18184 printf %s "(cached) " >&6
18186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18187 /* end confdefs.h. */
18188 #include <alloca.h>
18192 char *p = (char *) alloca (2 * sizeof (int));
18198 if ac_fn_c_try_link "$LINENO"
18200 ac_cv_working_alloca_h=yes
18202 ac_cv_working_alloca_h=no
18204 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18205 conftest$ac_exeext conftest.$ac_ext
18207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18208 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
18209 if test $ac_cv_working_alloca_h = yes; then
18211 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
18215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18216 printf %s "checking for alloca... " >&6; }
18217 if test ${ac_cv_func_alloca_works+y}
18219 printf %s "(cached) " >&6
18221 if test $ac_cv_working_alloca_h = yes; then
18222 ac_cv_func_alloca_works=yes
18224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18225 /* end confdefs.h. */
18226 #include <stdlib.h>
18227 #include <stddef.h>
18230 # define alloca __builtin_alloca
18231 # elif defined _MSC_VER
18232 # include <malloc.h>
18233 # define alloca _alloca
18235 # ifdef __cplusplus
18238 void *alloca (size_t);
18245 char *p = (char *) alloca (1);
18251 if ac_fn_c_try_link "$LINENO"
18253 ac_cv_func_alloca_works=yes
18255 ac_cv_func_alloca_works=no
18257 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18258 conftest$ac_exeext conftest.$ac_ext
18260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18261 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
18264 if test $ac_cv_func_alloca_works = yes; then
18266 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
18269 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18270 # that cause trouble. Some versions do not even contain alloca or
18271 # contain a buggy version. If you still want to use their alloca,
18272 # use ar to extract alloca.o from them instead of compiling alloca.c.
18274 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18276 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
18279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18280 printf %s "checking stack direction for C alloca... " >&6; }
18281 if test ${ac_cv_c_stack_direction+y}
18283 printf %s "(cached) " >&6
18285 if test "$cross_compiling" = yes
18287 ac_cv_c_stack_direction=0
18289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18290 /* end confdefs.h. */
18291 $ac_includes_default
18293 find_stack_direction (int *addr, int depth)
18295 int dir, dummy = 0;
18298 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
18299 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
18300 return dir + dummy;
18304 main (int argc, char **argv)
18306 return find_stack_direction (0, argc + !argv + 20) < 0;
18309 if ac_fn_c_try_run "$LINENO"
18311 ac_cv_c_stack_direction=1
18313 ac_cv_c_stack_direction=-1
18315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18316 conftest.$ac_objext conftest.beam conftest.$ac_ext
18320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18321 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
18322 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
18328 if test $ac_cv_have_decl_strerror_r = yes; then
18329 # For backward compatibility's sake, define HAVE_STRERROR_R.
18330 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
18331 # as AC_CHECK_DECLS_ONCE.)
18333 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
18337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
18338 printf %s "checking whether strerror_r returns char *... " >&6; }
18339 if test ${ac_cv_func_strerror_r_char_p+y}
18341 printf %s "(cached) " >&6
18344 ac_cv_func_strerror_r_char_p=no
18345 if test $ac_cv_have_decl_strerror_r = yes; then
18346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18347 /* end confdefs.h. */
18348 #include <string.h>
18354 char x = *strerror_r (0, buf, sizeof buf);
18355 char *p = strerror_r (0, buf, sizeof buf);
18362 if ac_fn_c_try_compile "$LINENO"
18364 ac_cv_func_strerror_r_char_p=yes
18366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
18372 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
18373 if test $ac_cv_func_strerror_r_char_p = yes; then
18375 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
18380 ac_busted_vpath_in_make=no
18382 *-*-irix6.1*) # 64 bit only
18385 *-*-irix6*) # 6.2 (and later?)
18386 ac_busted_vpath_in_make=yes
18389 ac_busted_vpath_in_make=yes
18392 ac_busted_vpath_in_make=yes
18396 case "$ac_busted_vpath_in_make$srcdir" in
18399 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
18401 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
18409 # Was *-*-aix[[4-9]]*
18410 # XXX only verified thru AIX6. But...
18411 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
18412 # that this support would be in 5.3, removed in 6, and added back.
18414 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
18415 # (returning ENOSYS). I didn't check 4.2. If, in the future,
18416 # IBM pulls its thumbs out long enough to implement clock_settime,
18417 # this conditional will need to change. Maybe use AC_TRY_RUN
18418 # instead to try to set the time to itself and check errno.
18421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
18422 printf %s "checking for library containing clock_gettime... " >&6; }
18423 if test ${ac_cv_search_clock_gettime+y}
18425 printf %s "(cached) " >&6
18427 ac_func_search_save_LIBS=$LIBS
18428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429 /* end confdefs.h. */
18431 /* Override any GCC internal prototype to avoid an error.
18432 Use char because int might match the return type of a GCC
18433 builtin and then its argument prototype would still apply. */
18434 char clock_gettime ();
18438 return clock_gettime ();
18443 for ac_lib in '' rt
18445 if test -z "$ac_lib"; then
18446 ac_res="none required"
18449 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18451 if ac_fn_c_try_link "$LINENO"
18453 ac_cv_search_clock_gettime=$ac_res
18455 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18457 if test ${ac_cv_search_clock_gettime+y}
18462 if test ${ac_cv_search_clock_gettime+y}
18466 ac_cv_search_clock_gettime=no
18468 rm conftest.$ac_ext
18469 LIBS=$ac_func_search_save_LIBS
18471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
18472 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
18473 ac_res=$ac_cv_search_clock_gettime
18474 if test "$ac_res" != no
18476 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18477 case "$ac_cv_search_clock_gettime" in
18478 'none required') ;;
18480 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
18485 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres"
18486 if test "x$ac_cv_func_clock_getres" = xyes
18488 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
18491 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
18492 if test "x$ac_cv_func_clock_gettime" = xyes
18494 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
18497 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
18498 if test "x$ac_cv_func_clock_settime" = xyes
18500 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
18507 ac_fn_c_check_func "$LINENO" "getclock" "ac_cv_func_getclock"
18508 if test "x$ac_cv_func_getclock" = xyes
18510 printf "%s\n" "#define HAVE_GETCLOCK 1" >>confdefs.h
18513 ac_fn_c_check_func "$LINENO" "stime" "ac_cv_func_stime"
18514 if test "x$ac_cv_func_stime" = xyes
18516 printf "%s\n" "#define HAVE_STIME 1" >>confdefs.h
18519 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
18520 if test "x$ac_cv_func_timegm" = xyes
18522 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
18525 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18526 if test "x$ac_cv_func_strlcpy" = xyes
18528 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
18531 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
18532 if test "x$ac_cv_func_strlcat" = xyes
18534 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
18542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
18543 printf %s "checking for library containing snprintb... " >&6; }
18544 if test ${ac_cv_search_snprintb+y}
18546 printf %s "(cached) " >&6
18548 ac_func_search_save_LIBS=$LIBS
18549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18550 /* end confdefs.h. */
18552 /* Override any GCC internal prototype to avoid an error.
18553 Use char because int might match the return type of a GCC
18554 builtin and then its argument prototype would still apply. */
18559 return snprintb ();
18564 for ac_lib in '' util
18566 if test -z "$ac_lib"; then
18567 ac_res="none required"
18570 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18572 if ac_fn_c_try_link "$LINENO"
18574 ac_cv_search_snprintb=$ac_res
18576 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18578 if test ${ac_cv_search_snprintb+y}
18583 if test ${ac_cv_search_snprintb+y}
18587 ac_cv_search_snprintb=no
18589 rm conftest.$ac_ext
18590 LIBS=$ac_func_search_save_LIBS
18592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
18593 printf "%s\n" "$ac_cv_search_snprintb" >&6; }
18594 ac_res=$ac_cv_search_snprintb
18595 if test "$ac_res" != no
18597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18598 case "$ac_cv_search_snprintb" in
18599 'none required') ;;
18601 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
18604 printf "%s\n" "#define USE_SNPRINTB 1" >>confdefs.h
18610 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
18611 if test "x$ac_cv_header_errno_h" = xyes
18613 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
18616 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
18617 if test "x$ac_cv_header_sys_socket_h" = xyes
18619 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
18622 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
18623 if test "x$ac_cv_header_sys_types_h" = xyes
18625 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
18628 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
18629 if test "x$ac_cv_header_time_h" = xyes
18631 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
18635 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
18636 #ifdef HAVE_SYS_SOCKET_H
18637 # include <sys/socket.h>
18641 if test "x$ac_cv_header_net_if_h" = xyes
18643 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
18649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
18650 printf %s "checking if net/if.h requires mpinfou predeclaration... " >&6; }
18651 if test ${ntp_cv_predecl_mpinfou+y}
18653 printf %s "(cached) " >&6
18656 np_cv_predecl_mpinfou=no
18657 case "$ac_cv_header_net_if_h" in
18659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18660 /* end confdefs.h. */
18662 typedef union mpinfou {
18663 struct pdk_mpinfo *pdkptr;
18664 struct mpinfo *pikptr;
18666 #ifdef HAVE_SYS_SOCKET_H
18667 # include <sys/socket.h>
18669 #include <net/if.h>
18681 if ac_fn_c_try_compile "$LINENO"
18684 ntp_cv_predecl_mpinfou=yes
18685 ac_cv_header_net_if_h=yes
18689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
18695 printf "%s\n" "$ntp_cv_predecl_mpinfou" >&6; }
18696 case "$ntp_cv_predecl_mpinfou" in
18698 cat >>confdefs.h <<_ACEOF
18699 #ifndef MPINFOU_PREDECLARED
18700 # define MPINFOU_PREDECLARED
18701 typedef union mpinfou {
18702 struct pdk_mpinfo *pdkptr;
18703 struct mpinfo *pikptr;
18713 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
18714 #ifdef HAVE_SYS_SOCKET_H
18715 # include <sys/socket.h>
18719 if test "x$ac_cv_header_linux_if_addr_h" = xyes
18721 printf "%s\n" "#define HAVE_LINUX_IF_ADDR_H 1" >>confdefs.h
18726 printf "%s\n" "#define NEED_EARLY_FORK 1" >>confdefs.h
18730 ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
18731 if test "x$ac_cv_header_arpa_nameser_h" = xyes
18733 printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h
18736 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
18737 if test "x$ac_cv_header_sys_param_h" = xyes
18739 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
18742 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
18743 if test "x$ac_cv_header_sys_time_h" = xyes
18745 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
18748 ac_fn_c_check_header_compile "$LINENO" "sys/timers.h" "ac_cv_header_sys_timers_h" "$ac_includes_default"
18749 if test "x$ac_cv_header_sys_timers_h" = xyes
18751 printf "%s\n" "#define HAVE_SYS_TIMERS_H 1" >>confdefs.h
18755 # sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
18756 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
18757 #if defined HAVE_SYS_PARAM_H
18758 # include <sys/param.h>
18762 if test "x$ac_cv_header_sys_sysctl_h" = xyes
18764 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
18768 ac_fn_c_check_header_compile "$LINENO" "netinet/in_system.h" "ac_cv_header_netinet_in_system_h" "$ac_includes_default"
18769 if test "x$ac_cv_header_netinet_in_system_h" = xyes
18771 printf "%s\n" "#define HAVE_NETINET_IN_SYSTEM_H 1" >>confdefs.h
18774 ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default"
18775 if test "x$ac_cv_header_netinet_in_systm_h" = xyes
18777 printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h
18780 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
18781 if test "x$ac_cv_header_netinet_in_h" = xyes
18783 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
18788 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
18789 #ifdef HAVE_SYS_TYPES_H
18790 # include <sys/types.h>
18792 #ifdef HAVE_NETINET_IN_H
18793 # include <netinet/in.h>
18795 #ifdef HAVE_ARPA_NAMESER_H
18796 # include <arpa/nameser.h>
18800 if test "x$ac_cv_header_resolv_h" = xyes
18802 printf "%s\n" "#define HAVE_RESOLV_H 1" >>confdefs.h
18807 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
18808 #if HAVE_SYS_TYPES_H
18809 # include <sys/types.h>
18811 #ifdef HAVE_SYS_SOCKET_H
18812 # include <sys/socket.h>
18814 #ifdef HAVE_NETINET_IN_H
18815 # include <netinet/in.h>
18817 #ifdef HAVE_NET_IF_H
18818 # include <net/if.h>
18822 if test "x$ac_cv_header_net_if_var_h" = xyes
18824 printf "%s\n" "#define HAVE_NET_IF_VAR_H 1" >>confdefs.h
18829 ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "
18830 #ifdef HAVE_SYS_TYPES_H
18831 # include <sys/types.h>
18833 #ifdef HAVE_SYS_SOCKET_H
18834 # include <sys/socket.h>
18836 #ifdef HAVE_NET_IF_H
18837 # include <net/if.h>
18839 #ifdef HAVE_NETINET_IN_H
18840 # include <netinet/in.h>
18842 #ifdef HAVE_NET_IF_VAR_H
18843 # include <net/if_var.h>
18845 #ifdef HAVE_NETINET_IN_SYSTM_H
18846 # include <netinet/in_systm.h>
18850 if test "x$ac_cv_header_netinet_ip_h" = xyes
18852 printf "%s\n" "#define HAVE_NETINET_IP_H 1" >>confdefs.h
18855 ac_fn_c_check_header_compile "$LINENO" "netinet/in_var.h" "ac_cv_header_netinet_in_var_h" "
18856 #ifdef HAVE_SYS_TYPES_H
18857 # include <sys/types.h>
18859 #ifdef HAVE_SYS_SOCKET_H
18860 # include <sys/socket.h>
18862 #ifdef HAVE_NET_IF_H
18863 # include <net/if.h>
18865 #ifdef HAVE_NETINET_IN_H
18866 # include <netinet/in.h>
18868 #ifdef HAVE_NET_IF_VAR_H
18869 # include <net/if_var.h>
18871 #ifdef HAVE_NETINET_IN_SYSTM_H
18872 # include <netinet/in_systm.h>
18876 if test "x$ac_cv_header_netinet_in_var_h" = xyes
18878 printf "%s\n" "#define HAVE_NETINET_IN_VAR_H 1" >>confdefs.h
18883 # HMS: Do we need to check for -lsocket before or after these tests?
18884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
18885 printf %s "checking for library containing inet_pton... " >&6; }
18886 if test ${ac_cv_search_inet_pton+y}
18888 printf %s "(cached) " >&6
18890 ac_func_search_save_LIBS=$LIBS
18891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18892 /* end confdefs.h. */
18894 /* Override any GCC internal prototype to avoid an error.
18895 Use char because int might match the return type of a GCC
18896 builtin and then its argument prototype would still apply. */
18901 return inet_pton ();
18906 for ac_lib in '' nsl
18908 if test -z "$ac_lib"; then
18909 ac_res="none required"
18912 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18914 if ac_fn_c_try_link "$LINENO"
18916 ac_cv_search_inet_pton=$ac_res
18918 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18920 if test ${ac_cv_search_inet_pton+y}
18925 if test ${ac_cv_search_inet_pton+y}
18929 ac_cv_search_inet_pton=no
18931 rm conftest.$ac_ext
18932 LIBS=$ac_func_search_save_LIBS
18934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
18935 printf "%s\n" "$ac_cv_search_inet_pton" >&6; }
18936 ac_res=$ac_cv_search_inet_pton
18937 if test "$ac_res" != no
18939 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18940 case "$ac_cv_search_inet_pton" in
18941 'none required') ;;
18943 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
18948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
18949 printf %s "checking for library containing inet_ntop... " >&6; }
18950 if test ${ac_cv_search_inet_ntop+y}
18952 printf %s "(cached) " >&6
18954 ac_func_search_save_LIBS=$LIBS
18955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18956 /* end confdefs.h. */
18958 /* Override any GCC internal prototype to avoid an error.
18959 Use char because int might match the return type of a GCC
18960 builtin and then its argument prototype would still apply. */
18965 return inet_ntop ();
18970 for ac_lib in '' resolv
18972 if test -z "$ac_lib"; then
18973 ac_res="none required"
18976 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
18978 if ac_fn_c_try_link "$LINENO"
18980 ac_cv_search_inet_ntop=$ac_res
18982 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18984 if test ${ac_cv_search_inet_ntop+y}
18989 if test ${ac_cv_search_inet_ntop+y}
18993 ac_cv_search_inet_ntop=no
18995 rm conftest.$ac_ext
18996 LIBS=$ac_func_search_save_LIBS
18998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
18999 printf "%s\n" "$ac_cv_search_inet_ntop" >&6; }
19000 ac_res=$ac_cv_search_inet_ntop
19001 if test "$ac_res" != no
19003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19004 case "$ac_cv_search_inet_ntop" in
19005 'none required') ;;
19007 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
19013 # [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to
19014 # avoid keying on the OS name: If we find socket functions in
19015 # libsocket, next try for them in libxnet without libsocket, if found,
19016 # list both. If we simply tested libxnet first, we would find the
19017 # functions there and never add libsocket. See also [Bug 660]
19018 # http://bugs.ntp.org/show_bug.cgi?id=660#c9
19020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
19021 printf %s "checking for library containing setsockopt... " >&6; }
19022 if test ${ac_cv_search_setsockopt+y}
19024 printf %s "(cached) " >&6
19026 ac_func_search_save_LIBS=$LIBS
19027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19028 /* end confdefs.h. */
19030 /* Override any GCC internal prototype to avoid an error.
19031 Use char because int might match the return type of a GCC
19032 builtin and then its argument prototype would still apply. */
19033 char setsockopt ();
19037 return setsockopt ();
19042 for ac_lib in '' socket
19044 if test -z "$ac_lib"; then
19045 ac_res="none required"
19048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19050 if ac_fn_c_try_link "$LINENO"
19052 ac_cv_search_setsockopt=$ac_res
19054 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19056 if test ${ac_cv_search_setsockopt+y}
19061 if test ${ac_cv_search_setsockopt+y}
19065 ac_cv_search_setsockopt=no
19067 rm conftest.$ac_ext
19068 LIBS=$ac_func_search_save_LIBS
19070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
19071 printf "%s\n" "$ac_cv_search_setsockopt" >&6; }
19072 ac_res=$ac_cv_search_setsockopt
19073 if test "$ac_res" != no
19075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19076 case "$ac_cv_search_setsockopt" in
19077 'none required') ;;
19079 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
19084 case "$ac_cv_search_setsockopt" in
19087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
19088 printf %s "checking for library containing getsockopt... " >&6; }
19089 if test ${ac_cv_search_getsockopt+y}
19091 printf %s "(cached) " >&6
19093 ac_func_search_save_LIBS=$LIBS
19094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19095 /* end confdefs.h. */
19097 /* Override any GCC internal prototype to avoid an error.
19098 Use char because int might match the return type of a GCC
19099 builtin and then its argument prototype would still apply. */
19100 char getsockopt ();
19104 return getsockopt ();
19109 for ac_lib in '' xnet
19111 if test -z "$ac_lib"; then
19112 ac_res="none required"
19115 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19117 if ac_fn_c_try_link "$LINENO"
19119 ac_cv_search_getsockopt=$ac_res
19121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19123 if test ${ac_cv_search_getsockopt+y}
19128 if test ${ac_cv_search_getsockopt+y}
19132 ac_cv_search_getsockopt=no
19134 rm conftest.$ac_ext
19135 LIBS=$ac_func_search_save_LIBS
19137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
19138 printf "%s\n" "$ac_cv_search_getsockopt" >&6; }
19139 ac_res=$ac_cv_search_getsockopt
19140 if test "$ac_res" != no
19142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19143 case "$ac_cv_search_getsockopt" in
19144 'none required') ;;
19146 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
19151 # XXX Possible trouble here - reading the comments above and looking at the
19152 # code below I wonder if we'll add -lxnet when we don't need it.
19153 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
19154 # there when it is not needed?
19155 case "$ac_cv_search_getsockopt" in
19157 LIBS="-lxnet -lsocket $saved_LIBS"
19159 *) LIBS="-lsocket $saved_LIBS"
19164 { saved_LIBS=; unset saved_LIBS;}
19166 # Bug 2427 - look for recvmsg here.
19167 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
19168 if test "x$ac_cv_func_recvmsg" = xyes
19170 printf "%s\n" "#define HAVE_RECVMSG 1" >>confdefs.h
19175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19176 printf %s "checking for inline... " >&6; }
19177 if test ${ac_cv_c_inline+y}
19179 printf %s "(cached) " >&6
19182 for ac_kw in inline __inline__ __inline; do
19183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19184 /* end confdefs.h. */
19185 #ifndef __cplusplus
19187 static $ac_kw foo_t static_foo (void) {return 0; }
19188 $ac_kw foo_t foo (void) {return 0; }
19192 if ac_fn_c_try_compile "$LINENO"
19194 ac_cv_c_inline=$ac_kw
19196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19197 test "$ac_cv_c_inline" != no && break
19201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19202 printf "%s\n" "$ac_cv_c_inline" >&6; }
19204 case $ac_cv_c_inline in
19207 case $ac_cv_c_inline in
19209 *) ac_val=$ac_cv_c_inline;;
19211 cat >>confdefs.h <<_ACEOF
19212 #ifndef __cplusplus
19213 #define inline $ac_val
19220 case "$ac_cv_c_inline" in
19225 printf "%s\n" "#define HAVE_INLINE 1" >>confdefs.h
19231 # Obsolete code to be removed.
19232 if test $ac_cv_header_sys_time_h = yes; then
19234 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19237 # End of obsolete code.
19239 # The cast to long int works around a bug in the HP C Compiler
19240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19241 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19242 # This bug is HP SR number 8606223364.
19243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
19244 printf %s "checking size of time_t... " >&6; }
19245 if test ${ac_cv_sizeof_time_t+y}
19247 printf %s "(cached) " >&6
19249 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"
19253 if test "$ac_cv_type_time_t" = yes; then
19254 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19255 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19256 as_fn_error 77 "cannot compute sizeof (time_t)
19257 See \`config.log' for more details" "$LINENO" 5; }
19259 ac_cv_sizeof_time_t=0
19264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
19265 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
19269 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
19272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
19273 printf %s "checking whether char is unsigned... " >&6; }
19274 if test ${ac_cv_c_char_unsigned+y}
19276 printf %s "(cached) " >&6
19278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19279 /* end confdefs.h. */
19280 $ac_includes_default
19284 static int test_array [1 - 2 * !(((char) -1) < 0)];
19285 test_array [0] = 0;
19286 return test_array [0];
19292 if ac_fn_c_try_compile "$LINENO"
19294 ac_cv_c_char_unsigned=no
19296 ac_cv_c_char_unsigned=yes
19298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
19301 printf "%s\n" "$ac_cv_c_char_unsigned" >&6; }
19302 if test $ac_cv_c_char_unsigned = yes; then
19303 printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
19306 # The cast to long int works around a bug in the HP C Compiler
19307 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19308 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19309 # This bug is HP SR number 8606223364.
19310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
19311 printf %s "checking size of signed char... " >&6; }
19312 if test ${ac_cv_sizeof_signed_char+y}
19314 printf %s "(cached) " >&6
19316 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"
19320 if test "$ac_cv_type_signed_char" = yes; then
19321 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19322 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19323 as_fn_error 77 "cannot compute sizeof (signed char)
19324 See \`config.log' for more details" "$LINENO" 5; }
19326 ac_cv_sizeof_signed_char=0
19331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
19332 printf "%s\n" "$ac_cv_sizeof_signed_char" >&6; }
19336 printf "%s\n" "#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char" >>confdefs.h
19339 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
19340 if test "x$ac_cv_type_s_char" = xyes
19343 printf "%s\n" "#define HAVE_S_CHAR 1" >>confdefs.h
19347 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
19348 if test "x$ac_cv_type_long_long" = xyes
19351 printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
19356 # The cast to long int works around a bug in the HP C Compiler
19357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19359 # This bug is HP SR number 8606223364.
19360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
19361 printf %s "checking size of short... " >&6; }
19362 if test ${ac_cv_sizeof_short+y}
19364 printf %s "(cached) " >&6
19366 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
19370 if test "$ac_cv_type_short" = yes; then
19371 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19372 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19373 as_fn_error 77 "cannot compute sizeof (short)
19374 See \`config.log' for more details" "$LINENO" 5; }
19376 ac_cv_sizeof_short=0
19381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
19382 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
19386 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
19389 # The cast to long int works around a bug in the HP C Compiler
19390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19392 # This bug is HP SR number 8606223364.
19393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
19394 printf %s "checking size of int... " >&6; }
19395 if test ${ac_cv_sizeof_int+y}
19397 printf %s "(cached) " >&6
19399 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
19403 if test "$ac_cv_type_int" = yes; then
19404 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19405 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19406 as_fn_error 77 "cannot compute sizeof (int)
19407 See \`config.log' for more details" "$LINENO" 5; }
19414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
19415 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
19419 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
19422 # The cast to long int works around a bug in the HP C Compiler
19423 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19424 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19425 # This bug is HP SR number 8606223364.
19426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
19427 printf %s "checking size of long... " >&6; }
19428 if test ${ac_cv_sizeof_long+y}
19430 printf %s "(cached) " >&6
19432 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
19436 if test "$ac_cv_type_long" = yes; then
19437 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19438 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19439 as_fn_error 77 "cannot compute sizeof (long)
19440 See \`config.log' for more details" "$LINENO" 5; }
19442 ac_cv_sizeof_long=0
19447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
19448 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
19452 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
19456 case "$ac_cv_type_long_long" in
19460 # The cast to long int works around a bug in the HP C Compiler
19461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19463 # This bug is HP SR number 8606223364.
19464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
19465 printf %s "checking size of long long... " >&6; }
19466 if test ${ac_cv_sizeof_long_long+y}
19468 printf %s "(cached) " >&6
19470 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
19474 if test "$ac_cv_type_long_long" = yes; then
19475 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19476 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19477 as_fn_error 77 "cannot compute sizeof (long long)
19478 See \`config.log' for more details" "$LINENO" 5; }
19480 ac_cv_sizeof_long_long=0
19485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
19486 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
19490 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
19496 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
19498 # We have a typedef for s_char. Might as well believe it...
19501 # We have signed chars, can't say 'signed char', no s_char typedef.
19503 printf "%s\n" "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
19507 # We have signed chars, can say 'signed char', no s_char typedef.
19509 printf "%s\n" "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
19513 # We have unsigned chars, can't say 'signed char', no s_char typedef.
19514 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
19517 # We have unsigned chars, can say 'signed char', no s_char typedef.
19519 printf "%s\n" "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
19524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19525 printf %s "checking for uid_t in sys/types.h... " >&6; }
19526 if test ${ac_cv_type_uid_t+y}
19528 printf %s "(cached) " >&6
19530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19531 /* end confdefs.h. */
19532 #include <sys/types.h>
19535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19536 $EGREP "uid_t" >/dev/null 2>&1
19538 ac_cv_type_uid_t=yes
19540 ac_cv_type_uid_t=no
19545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19546 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
19547 if test $ac_cv_type_uid_t = no; then
19549 printf "%s\n" "#define uid_t int" >>confdefs.h
19552 printf "%s\n" "#define gid_t int" >>confdefs.h
19561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
19562 printf %s "checking if we're including debugging code... " >&6; }
19563 # Check whether --enable-debugging was given.
19564 if test ${enable_debugging+y}
19566 enableval=$enable_debugging; ntp_ok=$enableval
19575 printf "%s\n" "#define DEBUG 1" >>confdefs.h
19578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
19579 printf "%s\n" "$ntp_ok" >&6; }
19583 # check if we can compile with pthreads
19584 ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
19585 if test "x$ac_cv_header_semaphore_h" = xyes
19587 printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
19591 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
19592 if test "x$ac_cv_func_socketpair" = xyes
19594 printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
19598 # Check whether --enable-thread-support was given.
19599 if test ${enable_thread_support+y}
19601 enableval=$enable_thread_support;
19603 enable_thread_support=yes
19608 case "$enable_thread_support" in
19611 ol_found_pthreads=no
19616 ac_cpp='$CPP $CPPFLAGS'
19617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19621 # OpenLDAP --with-threads
19623 # Check whether --with-threads was given.
19624 if test ${with_threads+y}
19626 withval=$with_threads;
19628 for ol_val in auto nt posix mach pth lwp yes no manual ; do
19629 if test "$withval" = "$ol_val" ; then
19633 if test "$ol_arg" = "invalid" ; then
19634 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
19636 ol_with_threads="$ol_arg"
19639 ol_with_threads="auto"
19641 # end --with-threads
19644 case "$ol_with_threads$host" in
19645 auto*-*-solaris2.[0-6])
19653 *-*-aix*) if test -z "$CC" ; then
19654 case "$ol_with_threads" in
19655 auto | yes | posix) ol_aix_threads=yes ;;
19661 if test $ol_aix_threads = yes ; then
19662 if test -z "${CC}" ; then
19663 for ac_prog in cc_r xlc_r cc
19665 # Extract the first word of "$ac_prog", so it can be a program name with args.
19666 set dummy $ac_prog; ac_word=$2
19667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19668 printf %s "checking for $ac_word... " >&6; }
19669 if test ${ac_cv_prog_CC+y}
19671 printf %s "(cached) " >&6
19673 if test -n "$CC"; then
19674 ac_cv_prog_CC="$CC" # Let the user override the test.
19676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19677 for as_dir in $PATH
19680 case $as_dir in #(((
19683 *) as_dir=$as_dir/ ;;
19685 for ac_exec_ext in '' $ac_executable_extensions; do
19686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19687 ac_cv_prog_CC="$ac_prog"
19688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19698 if test -n "$CC"; then
19699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
19700 printf "%s\n" "$CC" >&6; }
19702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19703 printf "%s\n" "no" >&6; }
19707 test -n "$CC" && break
19711 if test "$CC" = cc ; then
19712 if test $ol_with_threads != auto ; then
19713 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
19715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
19716 printf "%s\n" "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
19722 case ${CC} in cc_r | xlc_r)
19723 ol_with_threads=posix
19724 ol_cv_pthread_create=yes
19730 # OpenLDAP --with-yielding_select
19732 # Check whether --with-yielding_select was given.
19733 if test ${with_yielding_select+y}
19735 withval=$with_yielding_select;
19737 for ol_val in auto yes no manual ; do
19738 if test "$withval" = "$ol_val" ; then
19742 if test "$ol_arg" = "invalid" ; then
19743 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
19745 ol_with_yielding_select="$ol_arg"
19748 ol_with_yielding_select="auto"
19750 # end --with-yielding_select
19753 case $ol_with_threads in auto | yes | nt)
19756 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
19757 if test "x$ac_cv_func__beginthread" = xyes
19763 if test $ac_cv_func__beginthread = yes ; then
19765 printf "%s\n" "#define HAVE_NT_THREADS 1" >>confdefs.h
19767 ol_cv_nt_threads=yes
19771 if test "$ol_cv_nt_threads" = yes ; then
19773 ol_with_threads=found
19774 ol_with_yielding_select=yes
19777 printf "%s\n" "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
19780 printf "%s\n" "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
19784 if test $ol_with_threads = nt ; then
19785 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
19790 case $ol_with_threads in auto | yes | posix)
19792 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
19793 if test "x$ac_cv_header_pthread_h" = xyes
19795 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
19800 if test $ac_cv_header_pthread_h = yes ; then
19801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
19802 printf %s "checking POSIX thread version... " >&6; }
19803 if test ${ol_cv_pthread_version+y}
19805 printf %s "(cached) " >&6
19808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19809 /* end confdefs.h. */
19811 # include <pthread.h>
19817 int i = PTHREAD_CREATE_JOINABLE;
19823 if ac_fn_c_try_compile "$LINENO"
19826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19827 /* end confdefs.h. */
19828 #include <pthread.h>
19831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19832 $EGREP "pthread_detach" >/dev/null 2>&1
19834 ol_cv_pthread_version=10
19836 ol_cv_pthread_version=8
19842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19843 /* end confdefs.h. */
19845 # include <pthread.h>
19846 # ifdef PTHREAD_CREATE_UNDETACHED
19851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19852 $EGREP "draft7" >/dev/null 2>&1
19854 ol_cv_pthread_version=7
19857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19858 /* end confdefs.h. */
19859 #include <pthread.h>
19862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19863 $EGREP "pthread_attr_init" >/dev/null 2>&1
19865 ol_cv_pthread_version=6
19868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19869 /* end confdefs.h. */
19871 # include <pthread.h>
19872 #ifdef PTHREAD_MUTEX_INITIALIZER
19877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19878 $EGREP "draft5" >/dev/null 2>&1
19880 ol_cv_pthread_version=5
19882 ol_cv_pthread_version=4
19893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
19897 printf "%s\n" "$ol_cv_pthread_version" >&6; }
19900 if test $ol_cv_pthread_version != 0 ; then
19902 printf "%s\n" "#define HAVE_PTHREADS $ol_cv_pthread_version" >>confdefs.h
19905 as_fn_error $? "unknown pthread version" "$LINENO" 5
19908 # consider threads found
19909 ol_with_threads=found
19912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
19913 printf %s "checking for LinuxThreads pthread.h... " >&6; }
19914 if test ${ol_cv_header_linux_threads+y}
19916 printf %s "(cached) " >&6
19918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919 /* end confdefs.h. */
19920 #include <pthread.h>
19922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19923 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1
19925 ol_cv_header_linux_threads=yes
19927 ol_cv_header_linux_threads=no
19933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
19934 printf "%s\n" "$ol_cv_header_linux_threads" >&6; }
19935 if test $ol_cv_header_linux_threads = yes; then
19937 printf "%s\n" "#define HAVE_LINUX_THREADS 1" >>confdefs.h
19942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
19943 printf %s "checking for GNU Pth pthread.h... " >&6; }
19944 if test ${ol_cv_header_gnu_pth_pthread_h+y}
19946 printf %s "(cached) " >&6
19948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19949 /* end confdefs.h. */
19950 #include <pthread.h>
19951 #ifdef _POSIX_THREAD_IS_GNU_PTH
19956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19957 $EGREP "__gnu_pth__" >/dev/null 2>&1
19959 ol_cv_header_gnu_pth_pthread_h=yes
19961 ol_cv_header_gnu_pth_pthread_h=no
19967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19968 printf "%s\n" "$ol_cv_header_gnu_pth_pthread_h" >&6; }
19971 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19972 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19973 if test "x$ac_cv_header_sched_h" = xyes
19975 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
19982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
19983 printf %s "checking for pthread_create in default libraries... " >&6; }
19984 if test ${ol_cv_pthread_create+y}
19986 printf %s "(cached) " >&6
19989 if test "$cross_compiling" = yes
19991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19992 /* end confdefs.h. */
19994 /* pthread test headers */
19995 #include <pthread.h>
19996 #if HAVE_PTHREADS < 7
20000 #define NULL (void*)0
20003 static void *task(p)
20006 return (void *) (p == NULL);
20013 /* pthread test function */
20014 #ifndef PTHREAD_CREATE_DETACHED
20015 #define PTHREAD_CREATE_DETACHED 1
20019 int detach = PTHREAD_CREATE_DETACHED;
20021 #if HAVE_PTHREADS > 4
20022 /* Final pthreads */
20023 pthread_attr_t attr;
20025 status = pthread_attr_init(&attr);
20026 if( status ) return status;
20028 #if HAVE_PTHREADS < 7
20029 status = pthread_attr_setdetachstate(&attr, &detach);
20030 if( status < 0 ) status = errno;
20032 status = pthread_attr_setdetachstate(&attr, detach);
20034 if( status ) return status;
20035 status = pthread_create( &t, &attr, task, NULL );
20036 #if HAVE_PTHREADS < 7
20037 if( status < 0 ) status = errno;
20039 if( status ) return status;
20041 /* Draft 4 pthreads */
20042 status = pthread_create( &t, pthread_attr_default, task, NULL );
20043 if( status ) return errno;
20045 /* give thread a chance to complete */
20046 /* it should remain joinable and hence detachable */
20049 status = pthread_detach( &t );
20050 if( status ) return errno;
20053 #ifdef HAVE_LINUX_THREADS
20054 pthread_kill_other_threads_np();
20063 if ac_fn_c_try_link "$LINENO"
20065 ol_cv_pthread_create=yes
20067 ol_cv_pthread_create=no
20069 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20070 conftest$ac_exeext conftest.$ac_ext
20072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20073 /* end confdefs.h. */
20076 /* pthread test headers */
20077 #include <pthread.h>
20078 #if HAVE_PTHREADS < 7
20082 #define NULL (void*)0
20085 static void *task(p)
20088 return (void *) (p == NULL);
20092 int main(argc, argv)
20097 /* pthread test function */
20098 #ifndef PTHREAD_CREATE_DETACHED
20099 #define PTHREAD_CREATE_DETACHED 1
20103 int detach = PTHREAD_CREATE_DETACHED;
20105 #if HAVE_PTHREADS > 4
20106 /* Final pthreads */
20107 pthread_attr_t attr;
20109 status = pthread_attr_init(&attr);
20110 if( status ) return status;
20112 #if HAVE_PTHREADS < 7
20113 status = pthread_attr_setdetachstate(&attr, &detach);
20114 if( status < 0 ) status = errno;
20116 status = pthread_attr_setdetachstate(&attr, detach);
20118 if( status ) return status;
20119 status = pthread_create( &t, &attr, task, NULL );
20120 #if HAVE_PTHREADS < 7
20121 if( status < 0 ) status = errno;
20123 if( status ) return status;
20125 /* Draft 4 pthreads */
20126 status = pthread_create( &t, pthread_attr_default, task, NULL );
20127 if( status ) return errno;
20129 /* give thread a chance to complete */
20130 /* it should remain joinable and hence detachable */
20133 status = pthread_detach( &t );
20134 if( status ) return errno;
20137 #ifdef HAVE_LINUX_THREADS
20138 pthread_kill_other_threads_np();
20146 if ac_fn_c_try_run "$LINENO"
20148 ol_cv_pthread_create=yes
20150 ol_cv_pthread_create=no
20152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20153 conftest.$ac_objext conftest.beam conftest.$ac_ext
20157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
20158 printf "%s\n" "$ol_cv_pthread_create" >&6; }
20160 if test $ol_cv_pthread_create != no ; then
20161 ol_link_threads=posix
20162 ol_link_pthreads=""
20165 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20166 if test "$ol_link_threads" = no ; then
20168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
20169 printf %s "checking for pthread link with -kthread... " >&6; }
20170 if test ${ol_cv_pthread_kthread+y}
20172 printf %s "(cached) " >&6
20177 LIBS="-kthread $LIBS"
20179 if test "$cross_compiling" = yes
20181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20182 /* end confdefs.h. */
20184 /* pthread test headers */
20185 #include <pthread.h>
20186 #if HAVE_PTHREADS < 7
20190 #define NULL (void*)0
20193 static void *task(p)
20196 return (void *) (p == NULL);
20203 /* pthread test function */
20204 #ifndef PTHREAD_CREATE_DETACHED
20205 #define PTHREAD_CREATE_DETACHED 1
20209 int detach = PTHREAD_CREATE_DETACHED;
20211 #if HAVE_PTHREADS > 4
20212 /* Final pthreads */
20213 pthread_attr_t attr;
20215 status = pthread_attr_init(&attr);
20216 if( status ) return status;
20218 #if HAVE_PTHREADS < 7
20219 status = pthread_attr_setdetachstate(&attr, &detach);
20220 if( status < 0 ) status = errno;
20222 status = pthread_attr_setdetachstate(&attr, detach);
20224 if( status ) return status;
20225 status = pthread_create( &t, &attr, task, NULL );
20226 #if HAVE_PTHREADS < 7
20227 if( status < 0 ) status = errno;
20229 if( status ) return status;
20231 /* Draft 4 pthreads */
20232 status = pthread_create( &t, pthread_attr_default, task, NULL );
20233 if( status ) return errno;
20235 /* give thread a chance to complete */
20236 /* it should remain joinable and hence detachable */
20239 status = pthread_detach( &t );
20240 if( status ) return errno;
20243 #ifdef HAVE_LINUX_THREADS
20244 pthread_kill_other_threads_np();
20253 if ac_fn_c_try_link "$LINENO"
20255 ol_cv_pthread_kthread=yes
20257 ol_cv_pthread_kthread=no
20259 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20260 conftest$ac_exeext conftest.$ac_ext
20262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20263 /* end confdefs.h. */
20266 /* pthread test headers */
20267 #include <pthread.h>
20268 #if HAVE_PTHREADS < 7
20272 #define NULL (void*)0
20275 static void *task(p)
20278 return (void *) (p == NULL);
20282 int main(argc, argv)
20287 /* pthread test function */
20288 #ifndef PTHREAD_CREATE_DETACHED
20289 #define PTHREAD_CREATE_DETACHED 1
20293 int detach = PTHREAD_CREATE_DETACHED;
20295 #if HAVE_PTHREADS > 4
20296 /* Final pthreads */
20297 pthread_attr_t attr;
20299 status = pthread_attr_init(&attr);
20300 if( status ) return status;
20302 #if HAVE_PTHREADS < 7
20303 status = pthread_attr_setdetachstate(&attr, &detach);
20304 if( status < 0 ) status = errno;
20306 status = pthread_attr_setdetachstate(&attr, detach);
20308 if( status ) return status;
20309 status = pthread_create( &t, &attr, task, NULL );
20310 #if HAVE_PTHREADS < 7
20311 if( status < 0 ) status = errno;
20313 if( status ) return status;
20315 /* Draft 4 pthreads */
20316 status = pthread_create( &t, pthread_attr_default, task, NULL );
20317 if( status ) return errno;
20319 /* give thread a chance to complete */
20320 /* it should remain joinable and hence detachable */
20323 status = pthread_detach( &t );
20324 if( status ) return errno;
20327 #ifdef HAVE_LINUX_THREADS
20328 pthread_kill_other_threads_np();
20336 if ac_fn_c_try_run "$LINENO"
20338 ol_cv_pthread_kthread=yes
20340 ol_cv_pthread_kthread=no
20342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20343 conftest.$ac_objext conftest.beam conftest.$ac_ext
20351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
20352 printf "%s\n" "$ol_cv_pthread_kthread" >&6; }
20354 if test $ol_cv_pthread_kthread = yes ; then
20355 ol_link_pthreads="-kthread"
20356 ol_link_threads=posix
20360 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20361 if test "$ol_link_threads" = no ; then
20363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
20364 printf %s "checking for pthread link with -pthread... " >&6; }
20365 if test ${ol_cv_pthread_pthread+y}
20367 printf %s "(cached) " >&6
20372 LIBS="-pthread $LIBS"
20374 if test "$cross_compiling" = yes
20376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20377 /* end confdefs.h. */
20379 /* pthread test headers */
20380 #include <pthread.h>
20381 #if HAVE_PTHREADS < 7
20385 #define NULL (void*)0
20388 static void *task(p)
20391 return (void *) (p == NULL);
20398 /* pthread test function */
20399 #ifndef PTHREAD_CREATE_DETACHED
20400 #define PTHREAD_CREATE_DETACHED 1
20404 int detach = PTHREAD_CREATE_DETACHED;
20406 #if HAVE_PTHREADS > 4
20407 /* Final pthreads */
20408 pthread_attr_t attr;
20410 status = pthread_attr_init(&attr);
20411 if( status ) return status;
20413 #if HAVE_PTHREADS < 7
20414 status = pthread_attr_setdetachstate(&attr, &detach);
20415 if( status < 0 ) status = errno;
20417 status = pthread_attr_setdetachstate(&attr, detach);
20419 if( status ) return status;
20420 status = pthread_create( &t, &attr, task, NULL );
20421 #if HAVE_PTHREADS < 7
20422 if( status < 0 ) status = errno;
20424 if( status ) return status;
20426 /* Draft 4 pthreads */
20427 status = pthread_create( &t, pthread_attr_default, task, NULL );
20428 if( status ) return errno;
20430 /* give thread a chance to complete */
20431 /* it should remain joinable and hence detachable */
20434 status = pthread_detach( &t );
20435 if( status ) return errno;
20438 #ifdef HAVE_LINUX_THREADS
20439 pthread_kill_other_threads_np();
20448 if ac_fn_c_try_link "$LINENO"
20450 ol_cv_pthread_pthread=yes
20452 ol_cv_pthread_pthread=no
20454 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20455 conftest$ac_exeext conftest.$ac_ext
20457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20458 /* end confdefs.h. */
20461 /* pthread test headers */
20462 #include <pthread.h>
20463 #if HAVE_PTHREADS < 7
20467 #define NULL (void*)0
20470 static void *task(p)
20473 return (void *) (p == NULL);
20477 int main(argc, argv)
20482 /* pthread test function */
20483 #ifndef PTHREAD_CREATE_DETACHED
20484 #define PTHREAD_CREATE_DETACHED 1
20488 int detach = PTHREAD_CREATE_DETACHED;
20490 #if HAVE_PTHREADS > 4
20491 /* Final pthreads */
20492 pthread_attr_t attr;
20494 status = pthread_attr_init(&attr);
20495 if( status ) return status;
20497 #if HAVE_PTHREADS < 7
20498 status = pthread_attr_setdetachstate(&attr, &detach);
20499 if( status < 0 ) status = errno;
20501 status = pthread_attr_setdetachstate(&attr, detach);
20503 if( status ) return status;
20504 status = pthread_create( &t, &attr, task, NULL );
20505 #if HAVE_PTHREADS < 7
20506 if( status < 0 ) status = errno;
20508 if( status ) return status;
20510 /* Draft 4 pthreads */
20511 status = pthread_create( &t, pthread_attr_default, task, NULL );
20512 if( status ) return errno;
20514 /* give thread a chance to complete */
20515 /* it should remain joinable and hence detachable */
20518 status = pthread_detach( &t );
20519 if( status ) return errno;
20522 #ifdef HAVE_LINUX_THREADS
20523 pthread_kill_other_threads_np();
20531 if ac_fn_c_try_run "$LINENO"
20533 ol_cv_pthread_pthread=yes
20535 ol_cv_pthread_pthread=no
20537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20538 conftest.$ac_objext conftest.beam conftest.$ac_ext
20546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
20547 printf "%s\n" "$ol_cv_pthread_pthread" >&6; }
20549 if test $ol_cv_pthread_pthread = yes ; then
20550 ol_link_pthreads="-pthread"
20551 ol_link_threads=posix
20555 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20556 if test "$ol_link_threads" = no ; then
20558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
20559 printf %s "checking for pthread link with -pthreads... " >&6; }
20560 if test ${ol_cv_pthread_pthreads+y}
20562 printf %s "(cached) " >&6
20567 LIBS="-pthreads $LIBS"
20569 if test "$cross_compiling" = yes
20571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20572 /* end confdefs.h. */
20574 /* pthread test headers */
20575 #include <pthread.h>
20576 #if HAVE_PTHREADS < 7
20580 #define NULL (void*)0
20583 static void *task(p)
20586 return (void *) (p == NULL);
20593 /* pthread test function */
20594 #ifndef PTHREAD_CREATE_DETACHED
20595 #define PTHREAD_CREATE_DETACHED 1
20599 int detach = PTHREAD_CREATE_DETACHED;
20601 #if HAVE_PTHREADS > 4
20602 /* Final pthreads */
20603 pthread_attr_t attr;
20605 status = pthread_attr_init(&attr);
20606 if( status ) return status;
20608 #if HAVE_PTHREADS < 7
20609 status = pthread_attr_setdetachstate(&attr, &detach);
20610 if( status < 0 ) status = errno;
20612 status = pthread_attr_setdetachstate(&attr, detach);
20614 if( status ) return status;
20615 status = pthread_create( &t, &attr, task, NULL );
20616 #if HAVE_PTHREADS < 7
20617 if( status < 0 ) status = errno;
20619 if( status ) return status;
20621 /* Draft 4 pthreads */
20622 status = pthread_create( &t, pthread_attr_default, task, NULL );
20623 if( status ) return errno;
20625 /* give thread a chance to complete */
20626 /* it should remain joinable and hence detachable */
20629 status = pthread_detach( &t );
20630 if( status ) return errno;
20633 #ifdef HAVE_LINUX_THREADS
20634 pthread_kill_other_threads_np();
20643 if ac_fn_c_try_link "$LINENO"
20645 ol_cv_pthread_pthreads=yes
20647 ol_cv_pthread_pthreads=no
20649 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20650 conftest$ac_exeext conftest.$ac_ext
20652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20653 /* end confdefs.h. */
20656 /* pthread test headers */
20657 #include <pthread.h>
20658 #if HAVE_PTHREADS < 7
20662 #define NULL (void*)0
20665 static void *task(p)
20668 return (void *) (p == NULL);
20672 int main(argc, argv)
20677 /* pthread test function */
20678 #ifndef PTHREAD_CREATE_DETACHED
20679 #define PTHREAD_CREATE_DETACHED 1
20683 int detach = PTHREAD_CREATE_DETACHED;
20685 #if HAVE_PTHREADS > 4
20686 /* Final pthreads */
20687 pthread_attr_t attr;
20689 status = pthread_attr_init(&attr);
20690 if( status ) return status;
20692 #if HAVE_PTHREADS < 7
20693 status = pthread_attr_setdetachstate(&attr, &detach);
20694 if( status < 0 ) status = errno;
20696 status = pthread_attr_setdetachstate(&attr, detach);
20698 if( status ) return status;
20699 status = pthread_create( &t, &attr, task, NULL );
20700 #if HAVE_PTHREADS < 7
20701 if( status < 0 ) status = errno;
20703 if( status ) return status;
20705 /* Draft 4 pthreads */
20706 status = pthread_create( &t, pthread_attr_default, task, NULL );
20707 if( status ) return errno;
20709 /* give thread a chance to complete */
20710 /* it should remain joinable and hence detachable */
20713 status = pthread_detach( &t );
20714 if( status ) return errno;
20717 #ifdef HAVE_LINUX_THREADS
20718 pthread_kill_other_threads_np();
20726 if ac_fn_c_try_run "$LINENO"
20728 ol_cv_pthread_pthreads=yes
20730 ol_cv_pthread_pthreads=no
20732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20733 conftest.$ac_objext conftest.beam conftest.$ac_ext
20741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
20742 printf "%s\n" "$ol_cv_pthread_pthreads" >&6; }
20744 if test $ol_cv_pthread_pthreads = yes ; then
20745 ol_link_pthreads="-pthreads"
20746 ol_link_threads=posix
20750 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20751 if test "$ol_link_threads" = no ; then
20753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
20754 printf %s "checking for pthread link with -mthreads... " >&6; }
20755 if test ${ol_cv_pthread_mthreads+y}
20757 printf %s "(cached) " >&6
20762 LIBS="-mthreads $LIBS"
20764 if test "$cross_compiling" = yes
20766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767 /* end confdefs.h. */
20769 /* pthread test headers */
20770 #include <pthread.h>
20771 #if HAVE_PTHREADS < 7
20775 #define NULL (void*)0
20778 static void *task(p)
20781 return (void *) (p == NULL);
20788 /* pthread test function */
20789 #ifndef PTHREAD_CREATE_DETACHED
20790 #define PTHREAD_CREATE_DETACHED 1
20794 int detach = PTHREAD_CREATE_DETACHED;
20796 #if HAVE_PTHREADS > 4
20797 /* Final pthreads */
20798 pthread_attr_t attr;
20800 status = pthread_attr_init(&attr);
20801 if( status ) return status;
20803 #if HAVE_PTHREADS < 7
20804 status = pthread_attr_setdetachstate(&attr, &detach);
20805 if( status < 0 ) status = errno;
20807 status = pthread_attr_setdetachstate(&attr, detach);
20809 if( status ) return status;
20810 status = pthread_create( &t, &attr, task, NULL );
20811 #if HAVE_PTHREADS < 7
20812 if( status < 0 ) status = errno;
20814 if( status ) return status;
20816 /* Draft 4 pthreads */
20817 status = pthread_create( &t, pthread_attr_default, task, NULL );
20818 if( status ) return errno;
20820 /* give thread a chance to complete */
20821 /* it should remain joinable and hence detachable */
20824 status = pthread_detach( &t );
20825 if( status ) return errno;
20828 #ifdef HAVE_LINUX_THREADS
20829 pthread_kill_other_threads_np();
20838 if ac_fn_c_try_link "$LINENO"
20840 ol_cv_pthread_mthreads=yes
20842 ol_cv_pthread_mthreads=no
20844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20845 conftest$ac_exeext conftest.$ac_ext
20847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20848 /* end confdefs.h. */
20851 /* pthread test headers */
20852 #include <pthread.h>
20853 #if HAVE_PTHREADS < 7
20857 #define NULL (void*)0
20860 static void *task(p)
20863 return (void *) (p == NULL);
20867 int main(argc, argv)
20872 /* pthread test function */
20873 #ifndef PTHREAD_CREATE_DETACHED
20874 #define PTHREAD_CREATE_DETACHED 1
20878 int detach = PTHREAD_CREATE_DETACHED;
20880 #if HAVE_PTHREADS > 4
20881 /* Final pthreads */
20882 pthread_attr_t attr;
20884 status = pthread_attr_init(&attr);
20885 if( status ) return status;
20887 #if HAVE_PTHREADS < 7
20888 status = pthread_attr_setdetachstate(&attr, &detach);
20889 if( status < 0 ) status = errno;
20891 status = pthread_attr_setdetachstate(&attr, detach);
20893 if( status ) return status;
20894 status = pthread_create( &t, &attr, task, NULL );
20895 #if HAVE_PTHREADS < 7
20896 if( status < 0 ) status = errno;
20898 if( status ) return status;
20900 /* Draft 4 pthreads */
20901 status = pthread_create( &t, pthread_attr_default, task, NULL );
20902 if( status ) return errno;
20904 /* give thread a chance to complete */
20905 /* it should remain joinable and hence detachable */
20908 status = pthread_detach( &t );
20909 if( status ) return errno;
20912 #ifdef HAVE_LINUX_THREADS
20913 pthread_kill_other_threads_np();
20921 if ac_fn_c_try_run "$LINENO"
20923 ol_cv_pthread_mthreads=yes
20925 ol_cv_pthread_mthreads=no
20927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20928 conftest.$ac_objext conftest.beam conftest.$ac_ext
20936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
20937 printf "%s\n" "$ol_cv_pthread_mthreads" >&6; }
20939 if test $ol_cv_pthread_mthreads = yes ; then
20940 ol_link_pthreads="-mthreads"
20941 ol_link_threads=posix
20945 # Pthread try link: -thread (ol_cv_pthread_thread)
20946 if test "$ol_link_threads" = no ; then
20948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
20949 printf %s "checking for pthread link with -thread... " >&6; }
20950 if test ${ol_cv_pthread_thread+y}
20952 printf %s "(cached) " >&6
20957 LIBS="-thread $LIBS"
20959 if test "$cross_compiling" = yes
20961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20962 /* end confdefs.h. */
20964 /* pthread test headers */
20965 #include <pthread.h>
20966 #if HAVE_PTHREADS < 7
20970 #define NULL (void*)0
20973 static void *task(p)
20976 return (void *) (p == NULL);
20983 /* pthread test function */
20984 #ifndef PTHREAD_CREATE_DETACHED
20985 #define PTHREAD_CREATE_DETACHED 1
20989 int detach = PTHREAD_CREATE_DETACHED;
20991 #if HAVE_PTHREADS > 4
20992 /* Final pthreads */
20993 pthread_attr_t attr;
20995 status = pthread_attr_init(&attr);
20996 if( status ) return status;
20998 #if HAVE_PTHREADS < 7
20999 status = pthread_attr_setdetachstate(&attr, &detach);
21000 if( status < 0 ) status = errno;
21002 status = pthread_attr_setdetachstate(&attr, detach);
21004 if( status ) return status;
21005 status = pthread_create( &t, &attr, task, NULL );
21006 #if HAVE_PTHREADS < 7
21007 if( status < 0 ) status = errno;
21009 if( status ) return status;
21011 /* Draft 4 pthreads */
21012 status = pthread_create( &t, pthread_attr_default, task, NULL );
21013 if( status ) return errno;
21015 /* give thread a chance to complete */
21016 /* it should remain joinable and hence detachable */
21019 status = pthread_detach( &t );
21020 if( status ) return errno;
21023 #ifdef HAVE_LINUX_THREADS
21024 pthread_kill_other_threads_np();
21033 if ac_fn_c_try_link "$LINENO"
21035 ol_cv_pthread_thread=yes
21037 ol_cv_pthread_thread=no
21039 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21040 conftest$ac_exeext conftest.$ac_ext
21042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21043 /* end confdefs.h. */
21046 /* pthread test headers */
21047 #include <pthread.h>
21048 #if HAVE_PTHREADS < 7
21052 #define NULL (void*)0
21055 static void *task(p)
21058 return (void *) (p == NULL);
21062 int main(argc, argv)
21067 /* pthread test function */
21068 #ifndef PTHREAD_CREATE_DETACHED
21069 #define PTHREAD_CREATE_DETACHED 1
21073 int detach = PTHREAD_CREATE_DETACHED;
21075 #if HAVE_PTHREADS > 4
21076 /* Final pthreads */
21077 pthread_attr_t attr;
21079 status = pthread_attr_init(&attr);
21080 if( status ) return status;
21082 #if HAVE_PTHREADS < 7
21083 status = pthread_attr_setdetachstate(&attr, &detach);
21084 if( status < 0 ) status = errno;
21086 status = pthread_attr_setdetachstate(&attr, detach);
21088 if( status ) return status;
21089 status = pthread_create( &t, &attr, task, NULL );
21090 #if HAVE_PTHREADS < 7
21091 if( status < 0 ) status = errno;
21093 if( status ) return status;
21095 /* Draft 4 pthreads */
21096 status = pthread_create( &t, pthread_attr_default, task, NULL );
21097 if( status ) return errno;
21099 /* give thread a chance to complete */
21100 /* it should remain joinable and hence detachable */
21103 status = pthread_detach( &t );
21104 if( status ) return errno;
21107 #ifdef HAVE_LINUX_THREADS
21108 pthread_kill_other_threads_np();
21116 if ac_fn_c_try_run "$LINENO"
21118 ol_cv_pthread_thread=yes
21120 ol_cv_pthread_thread=no
21122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21123 conftest.$ac_objext conftest.beam conftest.$ac_ext
21131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
21132 printf "%s\n" "$ol_cv_pthread_thread" >&6; }
21134 if test $ol_cv_pthread_thread = yes ; then
21135 ol_link_pthreads="-thread"
21136 ol_link_threads=posix
21141 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21142 if test "$ol_link_threads" = no ; then
21143 # try -lpthread -lmach -lexc -lc_r
21144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21145 printf %s "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
21146 if test ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+y}
21148 printf %s "(cached) " >&6
21153 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21155 if test "$cross_compiling" = yes
21157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21158 /* end confdefs.h. */
21160 /* pthread test headers */
21161 #include <pthread.h>
21162 #if HAVE_PTHREADS < 7
21166 #define NULL (void*)0
21169 static void *task(p)
21172 return (void *) (p == NULL);
21179 /* pthread test function */
21180 #ifndef PTHREAD_CREATE_DETACHED
21181 #define PTHREAD_CREATE_DETACHED 1
21185 int detach = PTHREAD_CREATE_DETACHED;
21187 #if HAVE_PTHREADS > 4
21188 /* Final pthreads */
21189 pthread_attr_t attr;
21191 status = pthread_attr_init(&attr);
21192 if( status ) return status;
21194 #if HAVE_PTHREADS < 7
21195 status = pthread_attr_setdetachstate(&attr, &detach);
21196 if( status < 0 ) status = errno;
21198 status = pthread_attr_setdetachstate(&attr, detach);
21200 if( status ) return status;
21201 status = pthread_create( &t, &attr, task, NULL );
21202 #if HAVE_PTHREADS < 7
21203 if( status < 0 ) status = errno;
21205 if( status ) return status;
21207 /* Draft 4 pthreads */
21208 status = pthread_create( &t, pthread_attr_default, task, NULL );
21209 if( status ) return errno;
21211 /* give thread a chance to complete */
21212 /* it should remain joinable and hence detachable */
21215 status = pthread_detach( &t );
21216 if( status ) return errno;
21219 #ifdef HAVE_LINUX_THREADS
21220 pthread_kill_other_threads_np();
21229 if ac_fn_c_try_link "$LINENO"
21231 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21233 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21236 conftest$ac_exeext conftest.$ac_ext
21238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21239 /* end confdefs.h. */
21242 /* pthread test headers */
21243 #include <pthread.h>
21244 #if HAVE_PTHREADS < 7
21248 #define NULL (void*)0
21251 static void *task(p)
21254 return (void *) (p == NULL);
21258 int main(argc, argv)
21263 /* pthread test function */
21264 #ifndef PTHREAD_CREATE_DETACHED
21265 #define PTHREAD_CREATE_DETACHED 1
21269 int detach = PTHREAD_CREATE_DETACHED;
21271 #if HAVE_PTHREADS > 4
21272 /* Final pthreads */
21273 pthread_attr_t attr;
21275 status = pthread_attr_init(&attr);
21276 if( status ) return status;
21278 #if HAVE_PTHREADS < 7
21279 status = pthread_attr_setdetachstate(&attr, &detach);
21280 if( status < 0 ) status = errno;
21282 status = pthread_attr_setdetachstate(&attr, detach);
21284 if( status ) return status;
21285 status = pthread_create( &t, &attr, task, NULL );
21286 #if HAVE_PTHREADS < 7
21287 if( status < 0 ) status = errno;
21289 if( status ) return status;
21291 /* Draft 4 pthreads */
21292 status = pthread_create( &t, pthread_attr_default, task, NULL );
21293 if( status ) return errno;
21295 /* give thread a chance to complete */
21296 /* it should remain joinable and hence detachable */
21299 status = pthread_detach( &t );
21300 if( status ) return errno;
21303 #ifdef HAVE_LINUX_THREADS
21304 pthread_kill_other_threads_np();
21312 if ac_fn_c_try_run "$LINENO"
21314 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21316 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21319 conftest.$ac_objext conftest.beam conftest.$ac_ext
21327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21328 printf "%s\n" "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
21330 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21331 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21332 ol_link_threads=posix
21336 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21337 if test "$ol_link_threads" = no ; then
21338 # try -lpthread -lmach -lexc
21339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
21340 printf %s "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
21341 if test ${ol_cv_pthread_lpthread_lmach_lexc+y}
21343 printf %s "(cached) " >&6
21348 LIBS="-lpthread -lmach -lexc $LIBS"
21350 if test "$cross_compiling" = yes
21352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21353 /* end confdefs.h. */
21355 /* pthread test headers */
21356 #include <pthread.h>
21357 #if HAVE_PTHREADS < 7
21361 #define NULL (void*)0
21364 static void *task(p)
21367 return (void *) (p == NULL);
21374 /* pthread test function */
21375 #ifndef PTHREAD_CREATE_DETACHED
21376 #define PTHREAD_CREATE_DETACHED 1
21380 int detach = PTHREAD_CREATE_DETACHED;
21382 #if HAVE_PTHREADS > 4
21383 /* Final pthreads */
21384 pthread_attr_t attr;
21386 status = pthread_attr_init(&attr);
21387 if( status ) return status;
21389 #if HAVE_PTHREADS < 7
21390 status = pthread_attr_setdetachstate(&attr, &detach);
21391 if( status < 0 ) status = errno;
21393 status = pthread_attr_setdetachstate(&attr, detach);
21395 if( status ) return status;
21396 status = pthread_create( &t, &attr, task, NULL );
21397 #if HAVE_PTHREADS < 7
21398 if( status < 0 ) status = errno;
21400 if( status ) return status;
21402 /* Draft 4 pthreads */
21403 status = pthread_create( &t, pthread_attr_default, task, NULL );
21404 if( status ) return errno;
21406 /* give thread a chance to complete */
21407 /* it should remain joinable and hence detachable */
21410 status = pthread_detach( &t );
21411 if( status ) return errno;
21414 #ifdef HAVE_LINUX_THREADS
21415 pthread_kill_other_threads_np();
21424 if ac_fn_c_try_link "$LINENO"
21426 ol_cv_pthread_lpthread_lmach_lexc=yes
21428 ol_cv_pthread_lpthread_lmach_lexc=no
21430 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21431 conftest$ac_exeext conftest.$ac_ext
21433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21434 /* end confdefs.h. */
21437 /* pthread test headers */
21438 #include <pthread.h>
21439 #if HAVE_PTHREADS < 7
21443 #define NULL (void*)0
21446 static void *task(p)
21449 return (void *) (p == NULL);
21453 int main(argc, argv)
21458 /* pthread test function */
21459 #ifndef PTHREAD_CREATE_DETACHED
21460 #define PTHREAD_CREATE_DETACHED 1
21464 int detach = PTHREAD_CREATE_DETACHED;
21466 #if HAVE_PTHREADS > 4
21467 /* Final pthreads */
21468 pthread_attr_t attr;
21470 status = pthread_attr_init(&attr);
21471 if( status ) return status;
21473 #if HAVE_PTHREADS < 7
21474 status = pthread_attr_setdetachstate(&attr, &detach);
21475 if( status < 0 ) status = errno;
21477 status = pthread_attr_setdetachstate(&attr, detach);
21479 if( status ) return status;
21480 status = pthread_create( &t, &attr, task, NULL );
21481 #if HAVE_PTHREADS < 7
21482 if( status < 0 ) status = errno;
21484 if( status ) return status;
21486 /* Draft 4 pthreads */
21487 status = pthread_create( &t, pthread_attr_default, task, NULL );
21488 if( status ) return errno;
21490 /* give thread a chance to complete */
21491 /* it should remain joinable and hence detachable */
21494 status = pthread_detach( &t );
21495 if( status ) return errno;
21498 #ifdef HAVE_LINUX_THREADS
21499 pthread_kill_other_threads_np();
21507 if ac_fn_c_try_run "$LINENO"
21509 ol_cv_pthread_lpthread_lmach_lexc=yes
21511 ol_cv_pthread_lpthread_lmach_lexc=no
21513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21514 conftest.$ac_objext conftest.beam conftest.$ac_ext
21522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
21523 printf "%s\n" "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
21525 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
21526 ol_link_pthreads="-lpthread -lmach -lexc"
21527 ol_link_threads=posix
21532 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
21533 if test "$ol_link_threads" = no ; then
21534 # try -lpthread -Wl,-woff,85
21535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
21536 printf %s "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
21537 if test ${ol_cv_pthread_lib_lpthread_woff+y}
21539 printf %s "(cached) " >&6
21544 LIBS="-lpthread -Wl,-woff,85 $LIBS"
21546 if test "$cross_compiling" = yes
21548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21549 /* end confdefs.h. */
21551 /* pthread test headers */
21552 #include <pthread.h>
21553 #if HAVE_PTHREADS < 7
21557 #define NULL (void*)0
21560 static void *task(p)
21563 return (void *) (p == NULL);
21570 /* pthread test function */
21571 #ifndef PTHREAD_CREATE_DETACHED
21572 #define PTHREAD_CREATE_DETACHED 1
21576 int detach = PTHREAD_CREATE_DETACHED;
21578 #if HAVE_PTHREADS > 4
21579 /* Final pthreads */
21580 pthread_attr_t attr;
21582 status = pthread_attr_init(&attr);
21583 if( status ) return status;
21585 #if HAVE_PTHREADS < 7
21586 status = pthread_attr_setdetachstate(&attr, &detach);
21587 if( status < 0 ) status = errno;
21589 status = pthread_attr_setdetachstate(&attr, detach);
21591 if( status ) return status;
21592 status = pthread_create( &t, &attr, task, NULL );
21593 #if HAVE_PTHREADS < 7
21594 if( status < 0 ) status = errno;
21596 if( status ) return status;
21598 /* Draft 4 pthreads */
21599 status = pthread_create( &t, pthread_attr_default, task, NULL );
21600 if( status ) return errno;
21602 /* give thread a chance to complete */
21603 /* it should remain joinable and hence detachable */
21606 status = pthread_detach( &t );
21607 if( status ) return errno;
21610 #ifdef HAVE_LINUX_THREADS
21611 pthread_kill_other_threads_np();
21620 if ac_fn_c_try_link "$LINENO"
21622 ol_cv_pthread_lib_lpthread_woff=yes
21624 ol_cv_pthread_lib_lpthread_woff=no
21626 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21627 conftest$ac_exeext conftest.$ac_ext
21629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21630 /* end confdefs.h. */
21633 /* pthread test headers */
21634 #include <pthread.h>
21635 #if HAVE_PTHREADS < 7
21639 #define NULL (void*)0
21642 static void *task(p)
21645 return (void *) (p == NULL);
21649 int main(argc, argv)
21654 /* pthread test function */
21655 #ifndef PTHREAD_CREATE_DETACHED
21656 #define PTHREAD_CREATE_DETACHED 1
21660 int detach = PTHREAD_CREATE_DETACHED;
21662 #if HAVE_PTHREADS > 4
21663 /* Final pthreads */
21664 pthread_attr_t attr;
21666 status = pthread_attr_init(&attr);
21667 if( status ) return status;
21669 #if HAVE_PTHREADS < 7
21670 status = pthread_attr_setdetachstate(&attr, &detach);
21671 if( status < 0 ) status = errno;
21673 status = pthread_attr_setdetachstate(&attr, detach);
21675 if( status ) return status;
21676 status = pthread_create( &t, &attr, task, NULL );
21677 #if HAVE_PTHREADS < 7
21678 if( status < 0 ) status = errno;
21680 if( status ) return status;
21682 /* Draft 4 pthreads */
21683 status = pthread_create( &t, pthread_attr_default, task, NULL );
21684 if( status ) return errno;
21686 /* give thread a chance to complete */
21687 /* it should remain joinable and hence detachable */
21690 status = pthread_detach( &t );
21691 if( status ) return errno;
21694 #ifdef HAVE_LINUX_THREADS
21695 pthread_kill_other_threads_np();
21703 if ac_fn_c_try_run "$LINENO"
21705 ol_cv_pthread_lib_lpthread_woff=yes
21707 ol_cv_pthread_lib_lpthread_woff=no
21709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21710 conftest.$ac_objext conftest.beam conftest.$ac_ext
21718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21719 printf "%s\n" "$ol_cv_pthread_lib_lpthread_woff" >&6; }
21721 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21722 ol_link_pthreads="-lpthread -Wl,-woff,85"
21723 ol_link_threads=posix
21728 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21729 if test "$ol_link_threads" = no ; then
21731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
21732 printf %s "checking for pthread link with -lpthread... " >&6; }
21733 if test ${ol_cv_pthread_lpthread+y}
21735 printf %s "(cached) " >&6
21740 LIBS="-lpthread $LIBS"
21742 if test "$cross_compiling" = yes
21744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21745 /* end confdefs.h. */
21747 /* pthread test headers */
21748 #include <pthread.h>
21749 #if HAVE_PTHREADS < 7
21753 #define NULL (void*)0
21756 static void *task(p)
21759 return (void *) (p == NULL);
21766 /* pthread test function */
21767 #ifndef PTHREAD_CREATE_DETACHED
21768 #define PTHREAD_CREATE_DETACHED 1
21772 int detach = PTHREAD_CREATE_DETACHED;
21774 #if HAVE_PTHREADS > 4
21775 /* Final pthreads */
21776 pthread_attr_t attr;
21778 status = pthread_attr_init(&attr);
21779 if( status ) return status;
21781 #if HAVE_PTHREADS < 7
21782 status = pthread_attr_setdetachstate(&attr, &detach);
21783 if( status < 0 ) status = errno;
21785 status = pthread_attr_setdetachstate(&attr, detach);
21787 if( status ) return status;
21788 status = pthread_create( &t, &attr, task, NULL );
21789 #if HAVE_PTHREADS < 7
21790 if( status < 0 ) status = errno;
21792 if( status ) return status;
21794 /* Draft 4 pthreads */
21795 status = pthread_create( &t, pthread_attr_default, task, NULL );
21796 if( status ) return errno;
21798 /* give thread a chance to complete */
21799 /* it should remain joinable and hence detachable */
21802 status = pthread_detach( &t );
21803 if( status ) return errno;
21806 #ifdef HAVE_LINUX_THREADS
21807 pthread_kill_other_threads_np();
21816 if ac_fn_c_try_link "$LINENO"
21818 ol_cv_pthread_lpthread=yes
21820 ol_cv_pthread_lpthread=no
21822 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21823 conftest$ac_exeext conftest.$ac_ext
21825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21826 /* end confdefs.h. */
21829 /* pthread test headers */
21830 #include <pthread.h>
21831 #if HAVE_PTHREADS < 7
21835 #define NULL (void*)0
21838 static void *task(p)
21841 return (void *) (p == NULL);
21845 int main(argc, argv)
21850 /* pthread test function */
21851 #ifndef PTHREAD_CREATE_DETACHED
21852 #define PTHREAD_CREATE_DETACHED 1
21856 int detach = PTHREAD_CREATE_DETACHED;
21858 #if HAVE_PTHREADS > 4
21859 /* Final pthreads */
21860 pthread_attr_t attr;
21862 status = pthread_attr_init(&attr);
21863 if( status ) return status;
21865 #if HAVE_PTHREADS < 7
21866 status = pthread_attr_setdetachstate(&attr, &detach);
21867 if( status < 0 ) status = errno;
21869 status = pthread_attr_setdetachstate(&attr, detach);
21871 if( status ) return status;
21872 status = pthread_create( &t, &attr, task, NULL );
21873 #if HAVE_PTHREADS < 7
21874 if( status < 0 ) status = errno;
21876 if( status ) return status;
21878 /* Draft 4 pthreads */
21879 status = pthread_create( &t, pthread_attr_default, task, NULL );
21880 if( status ) return errno;
21882 /* give thread a chance to complete */
21883 /* it should remain joinable and hence detachable */
21886 status = pthread_detach( &t );
21887 if( status ) return errno;
21890 #ifdef HAVE_LINUX_THREADS
21891 pthread_kill_other_threads_np();
21899 if ac_fn_c_try_run "$LINENO"
21901 ol_cv_pthread_lpthread=yes
21903 ol_cv_pthread_lpthread=no
21905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21906 conftest.$ac_objext conftest.beam conftest.$ac_ext
21914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
21915 printf "%s\n" "$ol_cv_pthread_lpthread" >&6; }
21917 if test $ol_cv_pthread_lpthread = yes ; then
21918 ol_link_pthreads="-lpthread"
21919 ol_link_threads=posix
21923 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
21924 if test "$ol_link_threads" = no ; then
21926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
21927 printf %s "checking for pthread link with -lc_r... " >&6; }
21928 if test ${ol_cv_pthread_lc_r+y}
21930 printf %s "(cached) " >&6
21937 if test "$cross_compiling" = yes
21939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21940 /* end confdefs.h. */
21942 /* pthread test headers */
21943 #include <pthread.h>
21944 #if HAVE_PTHREADS < 7
21948 #define NULL (void*)0
21951 static void *task(p)
21954 return (void *) (p == NULL);
21961 /* pthread test function */
21962 #ifndef PTHREAD_CREATE_DETACHED
21963 #define PTHREAD_CREATE_DETACHED 1
21967 int detach = PTHREAD_CREATE_DETACHED;
21969 #if HAVE_PTHREADS > 4
21970 /* Final pthreads */
21971 pthread_attr_t attr;
21973 status = pthread_attr_init(&attr);
21974 if( status ) return status;
21976 #if HAVE_PTHREADS < 7
21977 status = pthread_attr_setdetachstate(&attr, &detach);
21978 if( status < 0 ) status = errno;
21980 status = pthread_attr_setdetachstate(&attr, detach);
21982 if( status ) return status;
21983 status = pthread_create( &t, &attr, task, NULL );
21984 #if HAVE_PTHREADS < 7
21985 if( status < 0 ) status = errno;
21987 if( status ) return status;
21989 /* Draft 4 pthreads */
21990 status = pthread_create( &t, pthread_attr_default, task, NULL );
21991 if( status ) return errno;
21993 /* give thread a chance to complete */
21994 /* it should remain joinable and hence detachable */
21997 status = pthread_detach( &t );
21998 if( status ) return errno;
22001 #ifdef HAVE_LINUX_THREADS
22002 pthread_kill_other_threads_np();
22011 if ac_fn_c_try_link "$LINENO"
22013 ol_cv_pthread_lc_r=yes
22015 ol_cv_pthread_lc_r=no
22017 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22018 conftest$ac_exeext conftest.$ac_ext
22020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22021 /* end confdefs.h. */
22024 /* pthread test headers */
22025 #include <pthread.h>
22026 #if HAVE_PTHREADS < 7
22030 #define NULL (void*)0
22033 static void *task(p)
22036 return (void *) (p == NULL);
22040 int main(argc, argv)
22045 /* pthread test function */
22046 #ifndef PTHREAD_CREATE_DETACHED
22047 #define PTHREAD_CREATE_DETACHED 1
22051 int detach = PTHREAD_CREATE_DETACHED;
22053 #if HAVE_PTHREADS > 4
22054 /* Final pthreads */
22055 pthread_attr_t attr;
22057 status = pthread_attr_init(&attr);
22058 if( status ) return status;
22060 #if HAVE_PTHREADS < 7
22061 status = pthread_attr_setdetachstate(&attr, &detach);
22062 if( status < 0 ) status = errno;
22064 status = pthread_attr_setdetachstate(&attr, detach);
22066 if( status ) return status;
22067 status = pthread_create( &t, &attr, task, NULL );
22068 #if HAVE_PTHREADS < 7
22069 if( status < 0 ) status = errno;
22071 if( status ) return status;
22073 /* Draft 4 pthreads */
22074 status = pthread_create( &t, pthread_attr_default, task, NULL );
22075 if( status ) return errno;
22077 /* give thread a chance to complete */
22078 /* it should remain joinable and hence detachable */
22081 status = pthread_detach( &t );
22082 if( status ) return errno;
22085 #ifdef HAVE_LINUX_THREADS
22086 pthread_kill_other_threads_np();
22094 if ac_fn_c_try_run "$LINENO"
22096 ol_cv_pthread_lc_r=yes
22098 ol_cv_pthread_lc_r=no
22100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22101 conftest.$ac_objext conftest.beam conftest.$ac_ext
22109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
22110 printf "%s\n" "$ol_cv_pthread_lc_r" >&6; }
22112 if test $ol_cv_pthread_lc_r = yes ; then
22113 ol_link_pthreads="-lc_r"
22114 ol_link_threads=posix
22119 # Pthread try link: -threads (ol_cv_pthread_threads)
22120 if test "$ol_link_threads" = no ; then
22122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
22123 printf %s "checking for pthread link with -threads... " >&6; }
22124 if test ${ol_cv_pthread_threads+y}
22126 printf %s "(cached) " >&6
22131 LIBS="-threads $LIBS"
22133 if test "$cross_compiling" = yes
22135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22136 /* end confdefs.h. */
22138 /* pthread test headers */
22139 #include <pthread.h>
22140 #if HAVE_PTHREADS < 7
22144 #define NULL (void*)0
22147 static void *task(p)
22150 return (void *) (p == NULL);
22157 /* pthread test function */
22158 #ifndef PTHREAD_CREATE_DETACHED
22159 #define PTHREAD_CREATE_DETACHED 1
22163 int detach = PTHREAD_CREATE_DETACHED;
22165 #if HAVE_PTHREADS > 4
22166 /* Final pthreads */
22167 pthread_attr_t attr;
22169 status = pthread_attr_init(&attr);
22170 if( status ) return status;
22172 #if HAVE_PTHREADS < 7
22173 status = pthread_attr_setdetachstate(&attr, &detach);
22174 if( status < 0 ) status = errno;
22176 status = pthread_attr_setdetachstate(&attr, detach);
22178 if( status ) return status;
22179 status = pthread_create( &t, &attr, task, NULL );
22180 #if HAVE_PTHREADS < 7
22181 if( status < 0 ) status = errno;
22183 if( status ) return status;
22185 /* Draft 4 pthreads */
22186 status = pthread_create( &t, pthread_attr_default, task, NULL );
22187 if( status ) return errno;
22189 /* give thread a chance to complete */
22190 /* it should remain joinable and hence detachable */
22193 status = pthread_detach( &t );
22194 if( status ) return errno;
22197 #ifdef HAVE_LINUX_THREADS
22198 pthread_kill_other_threads_np();
22207 if ac_fn_c_try_link "$LINENO"
22209 ol_cv_pthread_threads=yes
22211 ol_cv_pthread_threads=no
22213 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22214 conftest$ac_exeext conftest.$ac_ext
22216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22217 /* end confdefs.h. */
22220 /* pthread test headers */
22221 #include <pthread.h>
22222 #if HAVE_PTHREADS < 7
22226 #define NULL (void*)0
22229 static void *task(p)
22232 return (void *) (p == NULL);
22236 int main(argc, argv)
22241 /* pthread test function */
22242 #ifndef PTHREAD_CREATE_DETACHED
22243 #define PTHREAD_CREATE_DETACHED 1
22247 int detach = PTHREAD_CREATE_DETACHED;
22249 #if HAVE_PTHREADS > 4
22250 /* Final pthreads */
22251 pthread_attr_t attr;
22253 status = pthread_attr_init(&attr);
22254 if( status ) return status;
22256 #if HAVE_PTHREADS < 7
22257 status = pthread_attr_setdetachstate(&attr, &detach);
22258 if( status < 0 ) status = errno;
22260 status = pthread_attr_setdetachstate(&attr, detach);
22262 if( status ) return status;
22263 status = pthread_create( &t, &attr, task, NULL );
22264 #if HAVE_PTHREADS < 7
22265 if( status < 0 ) status = errno;
22267 if( status ) return status;
22269 /* Draft 4 pthreads */
22270 status = pthread_create( &t, pthread_attr_default, task, NULL );
22271 if( status ) return errno;
22273 /* give thread a chance to complete */
22274 /* it should remain joinable and hence detachable */
22277 status = pthread_detach( &t );
22278 if( status ) return errno;
22281 #ifdef HAVE_LINUX_THREADS
22282 pthread_kill_other_threads_np();
22290 if ac_fn_c_try_run "$LINENO"
22292 ol_cv_pthread_threads=yes
22294 ol_cv_pthread_threads=no
22296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22297 conftest.$ac_objext conftest.beam conftest.$ac_ext
22305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
22306 printf "%s\n" "$ol_cv_pthread_threads" >&6; }
22308 if test $ol_cv_pthread_threads = yes ; then
22309 ol_link_pthreads="-threads"
22310 ol_link_threads=posix
22315 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
22316 if test "$ol_link_threads" = no ; then
22317 # try -lpthreads -lmach -lexc -lc_r
22318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
22319 printf %s "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
22320 if test ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+y}
22322 printf %s "(cached) " >&6
22327 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
22329 if test "$cross_compiling" = yes
22331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22332 /* end confdefs.h. */
22334 /* pthread test headers */
22335 #include <pthread.h>
22336 #if HAVE_PTHREADS < 7
22340 #define NULL (void*)0
22343 static void *task(p)
22346 return (void *) (p == NULL);
22353 /* pthread test function */
22354 #ifndef PTHREAD_CREATE_DETACHED
22355 #define PTHREAD_CREATE_DETACHED 1
22359 int detach = PTHREAD_CREATE_DETACHED;
22361 #if HAVE_PTHREADS > 4
22362 /* Final pthreads */
22363 pthread_attr_t attr;
22365 status = pthread_attr_init(&attr);
22366 if( status ) return status;
22368 #if HAVE_PTHREADS < 7
22369 status = pthread_attr_setdetachstate(&attr, &detach);
22370 if( status < 0 ) status = errno;
22372 status = pthread_attr_setdetachstate(&attr, detach);
22374 if( status ) return status;
22375 status = pthread_create( &t, &attr, task, NULL );
22376 #if HAVE_PTHREADS < 7
22377 if( status < 0 ) status = errno;
22379 if( status ) return status;
22381 /* Draft 4 pthreads */
22382 status = pthread_create( &t, pthread_attr_default, task, NULL );
22383 if( status ) return errno;
22385 /* give thread a chance to complete */
22386 /* it should remain joinable and hence detachable */
22389 status = pthread_detach( &t );
22390 if( status ) return errno;
22393 #ifdef HAVE_LINUX_THREADS
22394 pthread_kill_other_threads_np();
22403 if ac_fn_c_try_link "$LINENO"
22405 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22407 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22410 conftest$ac_exeext conftest.$ac_ext
22412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22413 /* end confdefs.h. */
22416 /* pthread test headers */
22417 #include <pthread.h>
22418 #if HAVE_PTHREADS < 7
22422 #define NULL (void*)0
22425 static void *task(p)
22428 return (void *) (p == NULL);
22432 int main(argc, argv)
22437 /* pthread test function */
22438 #ifndef PTHREAD_CREATE_DETACHED
22439 #define PTHREAD_CREATE_DETACHED 1
22443 int detach = PTHREAD_CREATE_DETACHED;
22445 #if HAVE_PTHREADS > 4
22446 /* Final pthreads */
22447 pthread_attr_t attr;
22449 status = pthread_attr_init(&attr);
22450 if( status ) return status;
22452 #if HAVE_PTHREADS < 7
22453 status = pthread_attr_setdetachstate(&attr, &detach);
22454 if( status < 0 ) status = errno;
22456 status = pthread_attr_setdetachstate(&attr, detach);
22458 if( status ) return status;
22459 status = pthread_create( &t, &attr, task, NULL );
22460 #if HAVE_PTHREADS < 7
22461 if( status < 0 ) status = errno;
22463 if( status ) return status;
22465 /* Draft 4 pthreads */
22466 status = pthread_create( &t, pthread_attr_default, task, NULL );
22467 if( status ) return errno;
22469 /* give thread a chance to complete */
22470 /* it should remain joinable and hence detachable */
22473 status = pthread_detach( &t );
22474 if( status ) return errno;
22477 #ifdef HAVE_LINUX_THREADS
22478 pthread_kill_other_threads_np();
22486 if ac_fn_c_try_run "$LINENO"
22488 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22490 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22493 conftest.$ac_objext conftest.beam conftest.$ac_ext
22501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
22502 printf "%s\n" "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
22504 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
22505 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
22506 ol_link_threads=posix
22510 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
22511 if test "$ol_link_threads" = no ; then
22512 # try -lpthreads -lmach -lexc
22513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
22514 printf %s "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
22515 if test ${ol_cv_pthread_lpthreads_lmach_lexc+y}
22517 printf %s "(cached) " >&6
22522 LIBS="-lpthreads -lmach -lexc $LIBS"
22524 if test "$cross_compiling" = yes
22526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22527 /* end confdefs.h. */
22529 /* pthread test headers */
22530 #include <pthread.h>
22531 #if HAVE_PTHREADS < 7
22535 #define NULL (void*)0
22538 static void *task(p)
22541 return (void *) (p == NULL);
22548 /* pthread test function */
22549 #ifndef PTHREAD_CREATE_DETACHED
22550 #define PTHREAD_CREATE_DETACHED 1
22554 int detach = PTHREAD_CREATE_DETACHED;
22556 #if HAVE_PTHREADS > 4
22557 /* Final pthreads */
22558 pthread_attr_t attr;
22560 status = pthread_attr_init(&attr);
22561 if( status ) return status;
22563 #if HAVE_PTHREADS < 7
22564 status = pthread_attr_setdetachstate(&attr, &detach);
22565 if( status < 0 ) status = errno;
22567 status = pthread_attr_setdetachstate(&attr, detach);
22569 if( status ) return status;
22570 status = pthread_create( &t, &attr, task, NULL );
22571 #if HAVE_PTHREADS < 7
22572 if( status < 0 ) status = errno;
22574 if( status ) return status;
22576 /* Draft 4 pthreads */
22577 status = pthread_create( &t, pthread_attr_default, task, NULL );
22578 if( status ) return errno;
22580 /* give thread a chance to complete */
22581 /* it should remain joinable and hence detachable */
22584 status = pthread_detach( &t );
22585 if( status ) return errno;
22588 #ifdef HAVE_LINUX_THREADS
22589 pthread_kill_other_threads_np();
22598 if ac_fn_c_try_link "$LINENO"
22600 ol_cv_pthread_lpthreads_lmach_lexc=yes
22602 ol_cv_pthread_lpthreads_lmach_lexc=no
22604 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22605 conftest$ac_exeext conftest.$ac_ext
22607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22608 /* end confdefs.h. */
22611 /* pthread test headers */
22612 #include <pthread.h>
22613 #if HAVE_PTHREADS < 7
22617 #define NULL (void*)0
22620 static void *task(p)
22623 return (void *) (p == NULL);
22627 int main(argc, argv)
22632 /* pthread test function */
22633 #ifndef PTHREAD_CREATE_DETACHED
22634 #define PTHREAD_CREATE_DETACHED 1
22638 int detach = PTHREAD_CREATE_DETACHED;
22640 #if HAVE_PTHREADS > 4
22641 /* Final pthreads */
22642 pthread_attr_t attr;
22644 status = pthread_attr_init(&attr);
22645 if( status ) return status;
22647 #if HAVE_PTHREADS < 7
22648 status = pthread_attr_setdetachstate(&attr, &detach);
22649 if( status < 0 ) status = errno;
22651 status = pthread_attr_setdetachstate(&attr, detach);
22653 if( status ) return status;
22654 status = pthread_create( &t, &attr, task, NULL );
22655 #if HAVE_PTHREADS < 7
22656 if( status < 0 ) status = errno;
22658 if( status ) return status;
22660 /* Draft 4 pthreads */
22661 status = pthread_create( &t, pthread_attr_default, task, NULL );
22662 if( status ) return errno;
22664 /* give thread a chance to complete */
22665 /* it should remain joinable and hence detachable */
22668 status = pthread_detach( &t );
22669 if( status ) return errno;
22672 #ifdef HAVE_LINUX_THREADS
22673 pthread_kill_other_threads_np();
22681 if ac_fn_c_try_run "$LINENO"
22683 ol_cv_pthread_lpthreads_lmach_lexc=yes
22685 ol_cv_pthread_lpthreads_lmach_lexc=no
22687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22688 conftest.$ac_objext conftest.beam conftest.$ac_ext
22696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
22697 printf "%s\n" "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
22699 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
22700 ol_link_pthreads="-lpthreads -lmach -lexc"
22701 ol_link_threads=posix
22705 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
22706 if test "$ol_link_threads" = no ; then
22707 # try -lpthreads -lexc
22708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
22709 printf %s "checking for pthread link with -lpthreads -lexc... " >&6; }
22710 if test ${ol_cv_pthread_lpthreads_lexc+y}
22712 printf %s "(cached) " >&6
22717 LIBS="-lpthreads -lexc $LIBS"
22719 if test "$cross_compiling" = yes
22721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22722 /* end confdefs.h. */
22724 /* pthread test headers */
22725 #include <pthread.h>
22726 #if HAVE_PTHREADS < 7
22730 #define NULL (void*)0
22733 static void *task(p)
22736 return (void *) (p == NULL);
22743 /* pthread test function */
22744 #ifndef PTHREAD_CREATE_DETACHED
22745 #define PTHREAD_CREATE_DETACHED 1
22749 int detach = PTHREAD_CREATE_DETACHED;
22751 #if HAVE_PTHREADS > 4
22752 /* Final pthreads */
22753 pthread_attr_t attr;
22755 status = pthread_attr_init(&attr);
22756 if( status ) return status;
22758 #if HAVE_PTHREADS < 7
22759 status = pthread_attr_setdetachstate(&attr, &detach);
22760 if( status < 0 ) status = errno;
22762 status = pthread_attr_setdetachstate(&attr, detach);
22764 if( status ) return status;
22765 status = pthread_create( &t, &attr, task, NULL );
22766 #if HAVE_PTHREADS < 7
22767 if( status < 0 ) status = errno;
22769 if( status ) return status;
22771 /* Draft 4 pthreads */
22772 status = pthread_create( &t, pthread_attr_default, task, NULL );
22773 if( status ) return errno;
22775 /* give thread a chance to complete */
22776 /* it should remain joinable and hence detachable */
22779 status = pthread_detach( &t );
22780 if( status ) return errno;
22783 #ifdef HAVE_LINUX_THREADS
22784 pthread_kill_other_threads_np();
22793 if ac_fn_c_try_link "$LINENO"
22795 ol_cv_pthread_lpthreads_lexc=yes
22797 ol_cv_pthread_lpthreads_lexc=no
22799 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22800 conftest$ac_exeext conftest.$ac_ext
22802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22803 /* end confdefs.h. */
22806 /* pthread test headers */
22807 #include <pthread.h>
22808 #if HAVE_PTHREADS < 7
22812 #define NULL (void*)0
22815 static void *task(p)
22818 return (void *) (p == NULL);
22822 int main(argc, argv)
22827 /* pthread test function */
22828 #ifndef PTHREAD_CREATE_DETACHED
22829 #define PTHREAD_CREATE_DETACHED 1
22833 int detach = PTHREAD_CREATE_DETACHED;
22835 #if HAVE_PTHREADS > 4
22836 /* Final pthreads */
22837 pthread_attr_t attr;
22839 status = pthread_attr_init(&attr);
22840 if( status ) return status;
22842 #if HAVE_PTHREADS < 7
22843 status = pthread_attr_setdetachstate(&attr, &detach);
22844 if( status < 0 ) status = errno;
22846 status = pthread_attr_setdetachstate(&attr, detach);
22848 if( status ) return status;
22849 status = pthread_create( &t, &attr, task, NULL );
22850 #if HAVE_PTHREADS < 7
22851 if( status < 0 ) status = errno;
22853 if( status ) return status;
22855 /* Draft 4 pthreads */
22856 status = pthread_create( &t, pthread_attr_default, task, NULL );
22857 if( status ) return errno;
22859 /* give thread a chance to complete */
22860 /* it should remain joinable and hence detachable */
22863 status = pthread_detach( &t );
22864 if( status ) return errno;
22867 #ifdef HAVE_LINUX_THREADS
22868 pthread_kill_other_threads_np();
22876 if ac_fn_c_try_run "$LINENO"
22878 ol_cv_pthread_lpthreads_lexc=yes
22880 ol_cv_pthread_lpthreads_lexc=no
22882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22883 conftest.$ac_objext conftest.beam conftest.$ac_ext
22891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
22892 printf "%s\n" "$ol_cv_pthread_lpthreads_lexc" >&6; }
22894 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
22895 ol_link_pthreads="-lpthreads -lexc"
22896 ol_link_threads=posix
22901 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
22902 if test "$ol_link_threads" = no ; then
22904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
22905 printf %s "checking for pthread link with -lpthreads... " >&6; }
22906 if test ${ol_cv_pthread_lib_lpthreads+y}
22908 printf %s "(cached) " >&6
22913 LIBS="-lpthreads $LIBS"
22915 if test "$cross_compiling" = yes
22917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22918 /* end confdefs.h. */
22920 /* pthread test headers */
22921 #include <pthread.h>
22922 #if HAVE_PTHREADS < 7
22926 #define NULL (void*)0
22929 static void *task(p)
22932 return (void *) (p == NULL);
22939 /* pthread test function */
22940 #ifndef PTHREAD_CREATE_DETACHED
22941 #define PTHREAD_CREATE_DETACHED 1
22945 int detach = PTHREAD_CREATE_DETACHED;
22947 #if HAVE_PTHREADS > 4
22948 /* Final pthreads */
22949 pthread_attr_t attr;
22951 status = pthread_attr_init(&attr);
22952 if( status ) return status;
22954 #if HAVE_PTHREADS < 7
22955 status = pthread_attr_setdetachstate(&attr, &detach);
22956 if( status < 0 ) status = errno;
22958 status = pthread_attr_setdetachstate(&attr, detach);
22960 if( status ) return status;
22961 status = pthread_create( &t, &attr, task, NULL );
22962 #if HAVE_PTHREADS < 7
22963 if( status < 0 ) status = errno;
22965 if( status ) return status;
22967 /* Draft 4 pthreads */
22968 status = pthread_create( &t, pthread_attr_default, task, NULL );
22969 if( status ) return errno;
22971 /* give thread a chance to complete */
22972 /* it should remain joinable and hence detachable */
22975 status = pthread_detach( &t );
22976 if( status ) return errno;
22979 #ifdef HAVE_LINUX_THREADS
22980 pthread_kill_other_threads_np();
22989 if ac_fn_c_try_link "$LINENO"
22991 ol_cv_pthread_lib_lpthreads=yes
22993 ol_cv_pthread_lib_lpthreads=no
22995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22996 conftest$ac_exeext conftest.$ac_ext
22998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22999 /* end confdefs.h. */
23002 /* pthread test headers */
23003 #include <pthread.h>
23004 #if HAVE_PTHREADS < 7
23008 #define NULL (void*)0
23011 static void *task(p)
23014 return (void *) (p == NULL);
23018 int main(argc, argv)
23023 /* pthread test function */
23024 #ifndef PTHREAD_CREATE_DETACHED
23025 #define PTHREAD_CREATE_DETACHED 1
23029 int detach = PTHREAD_CREATE_DETACHED;
23031 #if HAVE_PTHREADS > 4
23032 /* Final pthreads */
23033 pthread_attr_t attr;
23035 status = pthread_attr_init(&attr);
23036 if( status ) return status;
23038 #if HAVE_PTHREADS < 7
23039 status = pthread_attr_setdetachstate(&attr, &detach);
23040 if( status < 0 ) status = errno;
23042 status = pthread_attr_setdetachstate(&attr, detach);
23044 if( status ) return status;
23045 status = pthread_create( &t, &attr, task, NULL );
23046 #if HAVE_PTHREADS < 7
23047 if( status < 0 ) status = errno;
23049 if( status ) return status;
23051 /* Draft 4 pthreads */
23052 status = pthread_create( &t, pthread_attr_default, task, NULL );
23053 if( status ) return errno;
23055 /* give thread a chance to complete */
23056 /* it should remain joinable and hence detachable */
23059 status = pthread_detach( &t );
23060 if( status ) return errno;
23063 #ifdef HAVE_LINUX_THREADS
23064 pthread_kill_other_threads_np();
23072 if ac_fn_c_try_run "$LINENO"
23074 ol_cv_pthread_lib_lpthreads=yes
23076 ol_cv_pthread_lib_lpthreads=no
23078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23079 conftest.$ac_objext conftest.beam conftest.$ac_ext
23087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
23088 printf "%s\n" "$ol_cv_pthread_lib_lpthreads" >&6; }
23090 if test $ol_cv_pthread_lib_lpthreads = yes ; then
23091 ol_link_pthreads="-lpthreads"
23092 ol_link_threads=posix
23097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
23098 printf "%s\n" "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
23100 if test $ol_link_threads != no ; then
23101 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23103 save_CPPFLAGS="$CPPFLAGS"
23105 LIBS="$LTHREAD_LIBS $LIBS"
23107 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
23108 if test "x$ac_cv_func_sched_yield" = xyes
23110 printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
23113 ac_fn_c_check_func "$LINENO" "pthread_yield" "ac_cv_func_pthread_yield"
23114 if test "x$ac_cv_func_pthread_yield" = xyes
23116 printf "%s\n" "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h
23119 ac_fn_c_check_func "$LINENO" "thr_yield" "ac_cv_func_thr_yield"
23120 if test "x$ac_cv_func_thr_yield" = xyes
23122 printf "%s\n" "#define HAVE_THR_YIELD 1" >>confdefs.h
23127 if test $ac_cv_func_sched_yield = no &&
23128 test $ac_cv_func_pthread_yield = no &&
23129 test $ac_cv_func_thr_yield = no ; then
23130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
23131 printf %s "checking for sched_yield in -lrt... " >&6; }
23132 if test ${ac_cv_lib_rt_sched_yield+y}
23134 printf %s "(cached) " >&6
23136 ac_check_lib_save_LIBS=$LIBS
23138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23139 /* end confdefs.h. */
23141 /* Override any GCC internal prototype to avoid an error.
23142 Use char because int might match the return type of a GCC
23143 builtin and then its argument prototype would still apply. */
23144 char sched_yield ();
23148 return sched_yield ();
23153 if ac_fn_c_try_link "$LINENO"
23155 ac_cv_lib_rt_sched_yield=yes
23157 ac_cv_lib_rt_sched_yield=no
23159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23160 conftest$ac_exeext conftest.$ac_ext
23161 LIBS=$ac_check_lib_save_LIBS
23163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
23164 printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; }
23165 if test "x$ac_cv_lib_rt_sched_yield" = xyes
23167 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
23169 printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
23171 ac_cv_func_sched_yield=yes
23173 ac_cv_func_sched_yield=no
23177 if test $ac_cv_func_sched_yield = no &&
23178 test $ac_cv_func_pthread_yield = no &&
23179 test "$ac_cv_func_thr_yield" = no ; then
23180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
23181 printf "%s\n" "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
23184 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
23185 if test "x$ac_cv_func_pthread_kill" = xyes
23187 printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h
23192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
23193 printf %s "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
23194 if test ${ol_cv_func_pthread_rwlock_destroy+y}
23196 printf %s "(cached) " >&6
23199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23200 /* end confdefs.h. */
23202 #include <pthread.h>
23203 pthread_rwlock_t rwlock;
23208 pthread_rwlock_destroy(&rwlock);
23213 if ac_fn_c_try_link "$LINENO"
23215 ol_cv_func_pthread_rwlock_destroy=yes
23217 ol_cv_func_pthread_rwlock_destroy=no
23219 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23220 conftest$ac_exeext conftest.$ac_ext
23223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
23224 printf "%s\n" "$ol_cv_func_pthread_rwlock_destroy" >&6; }
23225 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
23227 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
23231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
23232 printf %s "checking for pthread_detach with <pthread.h>... " >&6; }
23233 if test ${ol_cv_func_pthread_detach+y}
23235 printf %s "(cached) " >&6
23238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23239 /* end confdefs.h. */
23241 #include <pthread.h>
23243 #define NULL (void*)0
23249 pthread_detach(NULL);
23254 if ac_fn_c_try_link "$LINENO"
23256 ol_cv_func_pthread_detach=yes
23258 ol_cv_func_pthread_detach=no
23260 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23261 conftest$ac_exeext conftest.$ac_ext
23264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
23265 printf "%s\n" "$ol_cv_func_pthread_detach" >&6; }
23267 if test $ol_cv_func_pthread_detach = no ; then
23268 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
23272 printf "%s\n" "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
23275 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
23276 if test "x$ac_cv_func_pthread_setconcurrency" = xyes
23278 printf "%s\n" "#define HAVE_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
23281 ac_fn_c_check_func "$LINENO" "pthread_getconcurrency" "ac_cv_func_pthread_getconcurrency"
23282 if test "x$ac_cv_func_pthread_getconcurrency" = xyes
23284 printf "%s\n" "#define HAVE_PTHREAD_GETCONCURRENCY 1" >>confdefs.h
23287 ac_fn_c_check_func "$LINENO" "thr_setconcurrency" "ac_cv_func_thr_setconcurrency"
23288 if test "x$ac_cv_func_thr_setconcurrency" = xyes
23290 printf "%s\n" "#define HAVE_THR_SETCONCURRENCY 1" >>confdefs.h
23293 ac_fn_c_check_func "$LINENO" "thr_getconcurrency" "ac_cv_func_thr_getconcurrency"
23294 if test "x$ac_cv_func_thr_getconcurrency" = xyes
23296 printf "%s\n" "#define HAVE_THR_GETCONCURRENCY 1" >>confdefs.h
23302 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
23303 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes
23305 printf "%s\n" "#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1" >>confdefs.h
23309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
23310 printf %s "checking for LinuxThreads implementation... " >&6; }
23311 if test ${ol_cv_sys_linux_threads+y}
23313 printf %s "(cached) " >&6
23315 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
23317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
23318 printf "%s\n" "$ol_cv_sys_linux_threads" >&6; }
23323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
23324 printf %s "checking for LinuxThreads consistency... " >&6; }
23325 if test ${ol_cv_linux_threads+y}
23327 printf %s "(cached) " >&6
23330 if test $ol_cv_header_linux_threads = yes &&
23331 test $ol_cv_sys_linux_threads = yes; then
23332 ol_cv_linux_threads=yes
23333 elif test $ol_cv_header_linux_threads = no &&
23334 test $ol_cv_sys_linux_threads = no; then
23335 ol_cv_linux_threads=no
23337 ol_cv_linux_threads=error
23341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
23342 printf "%s\n" "$ol_cv_linux_threads" >&6; }
23345 if test $ol_cv_linux_threads = error; then
23346 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
23349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
23350 printf %s "checking if pthread_create() works... " >&6; }
23351 if test ${ol_cv_pthread_create_works+y}
23353 printf %s "(cached) " >&6
23356 if test "$cross_compiling" = yes
23358 ol_cv_pthread_create_works=yes
23360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23361 /* end confdefs.h. */
23364 /* pthread test headers */
23365 #include <pthread.h>
23366 #if HAVE_PTHREADS < 7
23370 #define NULL (void*)0
23373 static void *task(p)
23376 return (void *) (p == NULL);
23380 int main(argc, argv)
23385 /* pthread test function */
23386 #ifndef PTHREAD_CREATE_DETACHED
23387 #define PTHREAD_CREATE_DETACHED 1
23391 int detach = PTHREAD_CREATE_DETACHED;
23393 #if HAVE_PTHREADS > 4
23394 /* Final pthreads */
23395 pthread_attr_t attr;
23397 status = pthread_attr_init(&attr);
23398 if( status ) return status;
23400 #if HAVE_PTHREADS < 7
23401 status = pthread_attr_setdetachstate(&attr, &detach);
23402 if( status < 0 ) status = errno;
23404 status = pthread_attr_setdetachstate(&attr, detach);
23406 if( status ) return status;
23407 status = pthread_create( &t, &attr, task, NULL );
23408 #if HAVE_PTHREADS < 7
23409 if( status < 0 ) status = errno;
23411 if( status ) return status;
23413 /* Draft 4 pthreads */
23414 status = pthread_create( &t, pthread_attr_default, task, NULL );
23415 if( status ) return errno;
23417 /* give thread a chance to complete */
23418 /* it should remain joinable and hence detachable */
23421 status = pthread_detach( &t );
23422 if( status ) return errno;
23425 #ifdef HAVE_LINUX_THREADS
23426 pthread_kill_other_threads_np();
23434 if ac_fn_c_try_run "$LINENO"
23436 ol_cv_pthread_create_works=yes
23438 ol_cv_pthread_create_works=no
23440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23441 conftest.$ac_objext conftest.beam conftest.$ac_ext
23445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
23446 printf "%s\n" "$ol_cv_pthread_create_works" >&6; }
23448 if test $ol_cv_pthread_create_works = no ; then
23449 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
23452 ol_replace_broken_yield=no
23454 if test $ol_replace_broken_yield = yes ; then
23456 printf "%s\n" "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
23460 if test x$ol_with_yielding_select = xauto ; then
23461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
23462 printf %s "checking if select yields when using pthreads... " >&6; }
23463 if test ${ol_cv_pthread_select_yields+y}
23465 printf %s "(cached) " >&6
23468 if test "$cross_compiling" = yes
23470 ol_cv_pthread_select_yields=cross
23472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23473 /* end confdefs.h. */
23475 #include <sys/types.h>
23476 #include <sys/time.h>
23477 #include <unistd.h>
23478 #include <pthread.h>
23480 #define NULL (void*) 0
23483 static int fildes[2];
23485 static void *task(p)
23497 FD_SET(fildes[0], &rfds);
23499 /* we're not interested in any fds */
23500 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
23507 exit(0); /* if we exit here, the select blocked the whole process */
23510 int main(argc, argv)
23516 /* create a pipe to select */
23517 if(pipe(&fildes[0])) {
23522 #ifdef HAVE_PTHREAD_SETCONCURRENCY
23523 (void) pthread_setconcurrency(2);
23525 #ifdef HAVE_THR_SETCONCURRENCY
23526 /* Set Solaris LWP concurrency to 2 */
23527 thr_setconcurrency(2);
23531 #if HAVE_PTHREADS < 6
23532 pthread_create(&t, pthread_attr_default, task, NULL);
23534 pthread_create(&t, NULL, task, NULL);
23537 /* make sure task runs first */
23538 #ifdef HAVE_THR_YIELD
23540 #elif defined( HAVE_SCHED_YIELD )
23542 #elif defined( HAVE_PTHREAD_YIELD )
23549 if ac_fn_c_try_run "$LINENO"
23551 ol_cv_pthread_select_yields=no
23553 ol_cv_pthread_select_yields=yes
23555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23556 conftest.$ac_objext conftest.beam conftest.$ac_ext
23560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
23561 printf "%s\n" "$ol_cv_pthread_select_yields" >&6; }
23563 if test $ol_cv_pthread_select_yields = cross ; then
23564 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
23567 if test $ol_cv_pthread_select_yields = yes ; then
23568 ol_with_yielding_select=yes
23572 CPPFLAGS="$save_CPPFLAGS"
23575 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
23579 if test $ol_with_threads = posix ; then
23580 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
23585 case $ol_with_threads in auto | yes | mach)
23587 ac_fn_c_check_header_compile "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
23588 if test "x$ac_cv_header_mach_cthreads_h" = xyes
23590 printf "%s\n" "#define HAVE_MACH_CTHREADS_H 1" >>confdefs.h
23593 ac_fn_c_check_header_compile "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default"
23594 if test "x$ac_cv_header_cthreads_h" = xyes
23596 printf "%s\n" "#define HAVE_CTHREADS_H 1" >>confdefs.h
23600 if test $ac_cv_header_mach_cthreads_h = yes ; then
23601 ol_with_threads=found
23603 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
23604 if test "x$ac_cv_func_cthread_fork" = xyes
23606 ol_link_threads=yes
23610 if test $ol_link_threads = no ; then
23611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
23612 printf %s "checking for cthread_fork with -all_load... " >&6; }
23613 if test ${ol_cv_cthread_all_load+y}
23615 printf %s "(cached) " >&6
23619 LIBS="-all_load $LIBS"
23620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23621 /* end confdefs.h. */
23622 #include <mach/cthreads.h>
23627 cthread_fork((void *)0, (void *)0);
23633 if ac_fn_c_try_link "$LINENO"
23635 ol_cv_cthread_all_load=yes
23637 ol_cv_cthread_all_load=no
23639 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23640 conftest$ac_exeext conftest.$ac_ext
23644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
23645 printf "%s\n" "$ol_cv_cthread_all_load" >&6; }
23647 if test $ol_cv_cthread_all_load = yes ; then
23648 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
23649 ol_link_threads=mach
23650 ol_with_threads=found
23654 elif test $ac_cv_header_cthreads_h = yes ; then
23656 ol_with_threads=found
23659 LIBS="$LIBS -lthreads"
23660 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
23661 if test "x$ac_cv_func_cthread_fork" = xyes
23663 ol_link_threads=yes
23668 if test $ol_link_threads = yes ; then
23669 LTHREAD_LIBS="-lthreads"
23670 ol_link_threads=mach
23671 ol_with_threads=found
23673 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
23676 elif test $ol_with_threads = mach ; then
23677 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
23680 if test $ol_link_threads = mach ; then
23682 printf "%s\n" "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
23684 elif test $ol_with_threads = found ; then
23685 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
23690 case $ol_with_threads in auto | yes | pth)
23692 ac_fn_c_check_header_compile "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
23693 if test "x$ac_cv_header_pth_h" = xyes
23695 printf "%s\n" "#define HAVE_PTH_H 1" >>confdefs.h
23700 if test $ac_cv_header_pth_h = yes ; then
23701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
23702 printf %s "checking for pth_version in -lpth... " >&6; }
23703 if test ${ac_cv_lib_pth_pth_version+y}
23705 printf %s "(cached) " >&6
23707 ac_check_lib_save_LIBS=$LIBS
23709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23710 /* end confdefs.h. */
23712 /* Override any GCC internal prototype to avoid an error.
23713 Use char because int might match the return type of a GCC
23714 builtin and then its argument prototype would still apply. */
23715 char pth_version ();
23719 return pth_version ();
23724 if ac_fn_c_try_link "$LINENO"
23726 ac_cv_lib_pth_pth_version=yes
23728 ac_cv_lib_pth_pth_version=no
23730 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23731 conftest$ac_exeext conftest.$ac_ext
23732 LIBS=$ac_check_lib_save_LIBS
23734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
23735 printf "%s\n" "$ac_cv_lib_pth_pth_version" >&6; }
23736 if test "x$ac_cv_lib_pth_pth_version" = xyes
23744 if test $have_pth = yes ; then
23746 printf "%s\n" "#define HAVE_GNU_PTH 1" >>confdefs.h
23748 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
23749 ol_link_threads=pth
23750 ol_with_threads=found
23752 if test x$ol_with_yielding_select = xauto ; then
23753 ol_with_yielding_select=yes
23760 case $ol_with_threads in auto | yes | lwp)
23762 ac_fn_c_check_header_compile "$LINENO" "thread.h" "ac_cv_header_thread_h" "$ac_includes_default"
23763 if test "x$ac_cv_header_thread_h" = xyes
23765 printf "%s\n" "#define HAVE_THREAD_H 1" >>confdefs.h
23768 ac_fn_c_check_header_compile "$LINENO" "synch.h" "ac_cv_header_synch_h" "$ac_includes_default"
23769 if test "x$ac_cv_header_synch_h" = xyes
23771 printf "%s\n" "#define HAVE_SYNCH_H 1" >>confdefs.h
23775 if test $ac_cv_header_thread_h = yes &&
23776 test $ac_cv_header_synch_h = yes ; then
23777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
23778 printf %s "checking for thr_create in -lthread... " >&6; }
23779 if test ${ac_cv_lib_thread_thr_create+y}
23781 printf %s "(cached) " >&6
23783 ac_check_lib_save_LIBS=$LIBS
23784 LIBS="-lthread $LIBS"
23785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23786 /* end confdefs.h. */
23788 /* Override any GCC internal prototype to avoid an error.
23789 Use char because int might match the return type of a GCC
23790 builtin and then its argument prototype would still apply. */
23791 char thr_create ();
23795 return thr_create ();
23800 if ac_fn_c_try_link "$LINENO"
23802 ac_cv_lib_thread_thr_create=yes
23804 ac_cv_lib_thread_thr_create=no
23806 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23807 conftest$ac_exeext conftest.$ac_ext
23808 LIBS=$ac_check_lib_save_LIBS
23810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
23811 printf "%s\n" "$ac_cv_lib_thread_thr_create" >&6; }
23812 if test "x$ac_cv_lib_thread_thr_create" = xyes
23820 if test $have_thr = yes ; then
23822 printf "%s\n" "#define HAVE_THR 1" >>confdefs.h
23824 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
23825 ol_link_threads=thr
23827 if test x$ol_with_yielding_select = xauto ; then
23828 ol_with_yielding_select=yes
23831 ac_fn_c_check_func "$LINENO" "thr_setconcurrency" "ac_cv_func_thr_setconcurrency"
23832 if test "x$ac_cv_func_thr_setconcurrency" = xyes
23834 printf "%s\n" "#define HAVE_THR_SETCONCURRENCY 1" >>confdefs.h
23837 ac_fn_c_check_func "$LINENO" "thr_getconcurrency" "ac_cv_func_thr_getconcurrency"
23838 if test "x$ac_cv_func_thr_getconcurrency" = xyes
23840 printf "%s\n" "#define HAVE_THR_GETCONCURRENCY 1" >>confdefs.h
23847 ac_fn_c_check_header_compile "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
23848 if test "x$ac_cv_header_lwp_lwp_h" = xyes
23850 printf "%s\n" "#define HAVE_LWP_LWP_H 1" >>confdefs.h
23854 if test $ac_cv_header_lwp_lwp_h = yes ; then
23855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
23856 printf %s "checking for lwp_create in -llwp... " >&6; }
23857 if test ${ac_cv_lib_lwp_lwp_create+y}
23859 printf %s "(cached) " >&6
23861 ac_check_lib_save_LIBS=$LIBS
23863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23864 /* end confdefs.h. */
23866 /* Override any GCC internal prototype to avoid an error.
23867 Use char because int might match the return type of a GCC
23868 builtin and then its argument prototype would still apply. */
23869 char lwp_create ();
23873 return lwp_create ();
23878 if ac_fn_c_try_link "$LINENO"
23880 ac_cv_lib_lwp_lwp_create=yes
23882 ac_cv_lib_lwp_lwp_create=no
23884 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23885 conftest$ac_exeext conftest.$ac_ext
23886 LIBS=$ac_check_lib_save_LIBS
23888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
23889 printf "%s\n" "$ac_cv_lib_lwp_lwp_create" >&6; }
23890 if test "x$ac_cv_lib_lwp_lwp_create" = xyes
23898 if test $have_lwp = yes ; then
23900 printf "%s\n" "#define HAVE_LWP 1" >>confdefs.h
23902 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
23903 ol_link_threads=lwp
23905 if test x$ol_with_yielding_select = xauto ; then
23906 ol_with_yielding_select=no
23913 if test $ol_with_yielding_select = yes ; then
23915 printf "%s\n" "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
23919 if test $ol_with_threads = manual ; then
23920 ol_link_threads=yes
23922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
23923 printf "%s\n" "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
23925 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
23926 if test "x$ac_cv_header_pthread_h" = xyes
23928 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
23931 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
23932 if test "x$ac_cv_header_sched_h" = xyes
23934 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
23938 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
23939 if test "x$ac_cv_func_sched_yield" = xyes
23941 printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
23944 ac_fn_c_check_func "$LINENO" "pthread_yield" "ac_cv_func_pthread_yield"
23945 if test "x$ac_cv_func_pthread_yield" = xyes
23947 printf "%s\n" "#define HAVE_PTHREAD_YIELD 1" >>confdefs.h
23952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
23953 printf %s "checking for LinuxThreads pthread.h... " >&6; }
23954 if test ${ol_cv_header_linux_threads+y}
23956 printf %s "(cached) " >&6
23958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23959 /* end confdefs.h. */
23960 #include <pthread.h>
23962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23963 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1
23965 ol_cv_header_linux_threads=yes
23967 ol_cv_header_linux_threads=no
23973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
23974 printf "%s\n" "$ol_cv_header_linux_threads" >&6; }
23975 if test $ol_cv_header_linux_threads = yes; then
23977 printf "%s\n" "#define HAVE_LINUX_THREADS 1" >>confdefs.h
23982 ac_fn_c_check_header_compile "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
23983 if test "x$ac_cv_header_mach_cthreads_h" = xyes
23985 printf "%s\n" "#define HAVE_MACH_CTHREADS_H 1" >>confdefs.h
23989 ac_fn_c_check_header_compile "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
23990 if test "x$ac_cv_header_lwp_lwp_h" = xyes
23992 printf "%s\n" "#define HAVE_LWP_LWP_H 1" >>confdefs.h
23996 ac_fn_c_check_header_compile "$LINENO" "thread.h" "ac_cv_header_thread_h" "$ac_includes_default"
23997 if test "x$ac_cv_header_thread_h" = xyes
23999 printf "%s\n" "#define HAVE_THREAD_H 1" >>confdefs.h
24002 ac_fn_c_check_header_compile "$LINENO" "synch.h" "ac_cv_header_synch_h" "$ac_includes_default"
24003 if test "x$ac_cv_header_synch_h" = xyes
24005 printf "%s\n" "#define HAVE_SYNCH_H 1" >>confdefs.h
24011 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
24013 printf "%s\n" "#define REENTRANT 1" >>confdefs.h
24016 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
24019 printf "%s\n" "#define THREAD_SAFE 1" >>confdefs.h
24022 printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h
24025 printf "%s\n" "#define THREADSAFE 1" >>confdefs.h
24028 printf "%s\n" "#define _THREADSAFE 1" >>confdefs.h
24031 printf "%s\n" "#define _SGI_MP_SOURCE 1" >>confdefs.h
24034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
24035 printf %s "checking for thread specific errno... " >&6; }
24036 if test ${ol_cv_errno_thread_specific+y}
24038 printf %s "(cached) " >&6
24041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24042 /* end confdefs.h. */
24052 if ac_fn_c_try_link "$LINENO"
24054 ol_cv_errno_thread_specific=yes
24056 ol_cv_errno_thread_specific=no
24058 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24059 conftest$ac_exeext conftest.$ac_ext
24062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
24063 printf "%s\n" "$ol_cv_errno_thread_specific" >&6; }
24065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
24066 printf %s "checking for thread specific h_errno... " >&6; }
24067 if test ${ol_cv_h_errno_thread_specific+y}
24069 printf %s "(cached) " >&6
24072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24073 /* end confdefs.h. */
24083 if ac_fn_c_try_link "$LINENO"
24085 ol_cv_h_errno_thread_specific=yes
24087 ol_cv_h_errno_thread_specific=no
24089 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24090 conftest$ac_exeext conftest.$ac_ext
24093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
24094 printf "%s\n" "$ol_cv_h_errno_thread_specific" >&6; }
24096 if test $ol_cv_errno_thread_specific != yes ||
24097 test $ol_cv_h_errno_thread_specific != yes ; then
24098 LIBS="$LTHREAD_LIBS $LIBS"
24104 if test $ol_link_threads = no ; then
24105 if test $ol_with_threads = yes ; then
24106 as_fn_error $? "no suitable thread support" "$LINENO" 5
24109 if test $ol_with_threads = auto ; then
24110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
24111 printf "%s\n" "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
24116 printf "%s\n" "#define NO_THREADS 1" >>confdefs.h
24124 if test $ol_link_threads != no ; then
24126 printf "%s\n" "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
24130 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
24131 case "$ol_with_threads" in
24137 ol_found_pthreads=yes
24142 ac_cpp='$CPP $CPPFLAGS'
24143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24152 case "$ol_found_pthreads" in
24155 LIBS="$LTHREAD_LIBS $LIBS"
24156 saved_CFLAGS="$CFLAGS"
24157 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
24158 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
24159 if test "x$ac_cv_func_sem_timedwait" = xyes
24161 printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
24166 { saved_LIBS=; unset saved_LIBS;}
24167 CFLAGS="$saved_CFLAGS"
24168 { saved_CFLAGS=; unset saved_CFLAGS;}
24169 case "$ac_cv_func_sem_timedwait" in
24171 PTHREAD_LIBS="$LTHREAD_LIBS"
24177 case "$have_pthreads" in
24179 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
24181 LIBS="$LTHREAD_LIBS $LIBS"
24182 saved_CFLAGS="$CFLAGS"
24183 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
24184 # The cast to long int works around a bug in the HP C Compiler
24185 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24186 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24187 # This bug is HP SR number 8606223364.
24188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
24189 printf %s "checking size of pthread_t... " >&6; }
24190 if test ${ac_cv_sizeof_pthread_t+y}
24192 printf %s "(cached) " >&6
24194 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
24195 $ac_includes_default
24196 #include <pthread.h>
24203 if test "$ac_cv_type_pthread_t" = yes; then
24204 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24205 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24206 as_fn_error 77 "cannot compute sizeof (pthread_t)
24207 See \`config.log' for more details" "$LINENO" 5; }
24209 ac_cv_sizeof_pthread_t=0
24214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
24215 printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; }
24219 printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h
24222 LIBISC_PTHREADS_NOTHREADS=pthreads
24224 printf "%s\n" "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
24227 # We'd like to use sigwait() too
24229 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
24230 if test "x$ac_cv_func_sigwait" = xyes
24234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
24235 printf %s "checking for sigwait in -lc... " >&6; }
24236 if test ${ac_cv_lib_c_sigwait+y}
24238 printf %s "(cached) " >&6
24240 ac_check_lib_save_LIBS=$LIBS
24242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24243 /* end confdefs.h. */
24245 /* Override any GCC internal prototype to avoid an error.
24246 Use char because int might match the return type of a GCC
24247 builtin and then its argument prototype would still apply. */
24257 if ac_fn_c_try_link "$LINENO"
24259 ac_cv_lib_c_sigwait=yes
24261 ac_cv_lib_c_sigwait=no
24263 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24264 conftest$ac_exeext conftest.$ac_ext
24265 LIBS=$ac_check_lib_save_LIBS
24267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
24268 printf "%s\n" "$ac_cv_lib_c_sigwait" >&6; }
24269 if test "x$ac_cv_lib_c_sigwait" = xyes
24273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
24274 printf %s "checking for sigwait in -lpthread... " >&6; }
24275 if test ${ac_cv_lib_pthread_sigwait+y}
24277 printf %s "(cached) " >&6
24279 ac_check_lib_save_LIBS=$LIBS
24280 LIBS="-lpthread $LIBS"
24281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24282 /* end confdefs.h. */
24284 /* Override any GCC internal prototype to avoid an error.
24285 Use char because int might match the return type of a GCC
24286 builtin and then its argument prototype would still apply. */
24296 if ac_fn_c_try_link "$LINENO"
24298 ac_cv_lib_pthread_sigwait=yes
24300 ac_cv_lib_pthread_sigwait=no
24302 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24303 conftest$ac_exeext conftest.$ac_ext
24304 LIBS=$ac_check_lib_save_LIBS
24306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
24307 printf "%s\n" "$ac_cv_lib_pthread_sigwait" >&6; }
24308 if test "x$ac_cv_lib_pthread_sigwait" = xyes
24312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
24313 printf %s "checking for _Psigwait in -lpthread... " >&6; }
24314 if test ${ac_cv_lib_pthread__Psigwait+y}
24316 printf %s "(cached) " >&6
24318 ac_check_lib_save_LIBS=$LIBS
24319 LIBS="-lpthread $LIBS"
24320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24321 /* end confdefs.h. */
24323 /* Override any GCC internal prototype to avoid an error.
24324 Use char because int might match the return type of a GCC
24325 builtin and then its argument prototype would still apply. */
24330 return _Psigwait ();
24335 if ac_fn_c_try_link "$LINENO"
24337 ac_cv_lib_pthread__Psigwait=yes
24339 ac_cv_lib_pthread__Psigwait=no
24341 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24342 conftest$ac_exeext conftest.$ac_ext
24343 LIBS=$ac_check_lib_save_LIBS
24345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
24346 printf "%s\n" "$ac_cv_lib_pthread__Psigwait" >&6; }
24347 if test "x$ac_cv_lib_pthread__Psigwait" = xyes
24364 case "$host:$have_sigwait" in
24366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
24367 printf %s "checking for sigwait in -lc_r... " >&6; }
24368 if test ${ac_cv_lib_c_r_sigwait+y}
24370 printf %s "(cached) " >&6
24372 ac_check_lib_save_LIBS=$LIBS
24374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24375 /* end confdefs.h. */
24377 /* Override any GCC internal prototype to avoid an error.
24378 Use char because int might match the return type of a GCC
24379 builtin and then its argument prototype would still apply. */
24389 if ac_fn_c_try_link "$LINENO"
24391 ac_cv_lib_c_r_sigwait=yes
24393 ac_cv_lib_c_r_sigwait=no
24395 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24396 conftest$ac_exeext conftest.$ac_ext
24397 LIBS=$ac_check_lib_save_LIBS
24399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
24400 printf "%s\n" "$ac_cv_lib_c_r_sigwait" >&6; }
24401 if test "x$ac_cv_lib_c_r_sigwait" = xyes
24408 case "$have_sigwait" in
24410 ac_cv_func_sigwait=yes
24412 printf "%s\n" "#define HAVE_SIGWAIT 1" >>confdefs.h
24416 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
24417 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes
24419 printf "%s\n" "#define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1" >>confdefs.h
24423 ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize"
24424 if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes
24426 printf "%s\n" "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
24429 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
24430 if test "x$ac_cv_func_sysconf" = xyes
24432 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
24438 *-freebsd5.[012]|*-freebsd5.[012].*)
24440 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
24442 printf "%s\n" "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
24445 *-bsdi3.*|*-bsdi4.0*)
24447 printf "%s\n" "#define NEED_PTHREAD_INIT 1" >>confdefs.h
24452 printf "%s\n" "#define HAVE_LINUXTHREADS 1" >>confdefs.h
24456 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
24458 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
24459 if test "x$ac_cv_func_pthread_setconcurrency" = xyes
24461 printf "%s\n" "#define HAVE_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
24465 case "$ac_cv_func_pthread_setconcurrency" in
24468 printf "%s\n" "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
24472 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
24474 printf "%s\n" "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
24478 hack_shutup_pthreadonceinit=no
24481 hack_shutup_pthreadonceinit=yes
24484 hack_shutup_pthreadonceinit=yes
24487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
24488 printf %s "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
24489 if test ${ntp_cv_braces_around_pthread_once_init+y}
24491 printf %s "(cached) " >&6
24493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24494 /* end confdefs.h. */
24496 #include <pthread.h>
24502 static pthread_once_t once_test =
24510 if ac_fn_c_try_compile "$LINENO"
24512 ntp_cv_braces_around_pthread_once_init=no
24514 ntp_cv_braces_around_pthread_once_init=yes
24517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
24521 printf "%s\n" "$ntp_cv_braces_around_pthread_once_init" >&6; }
24522 case "$ntp_cv_braces_around_pthread_once_init" in
24524 hack_shutup_pthreadonceinit=yes
24528 case "$hack_shutup_pthreadonceinit" in
24531 printf "%s\n" "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
24535 { saved_LIBS=; unset saved_LIBS;}
24536 CFLAGS="$saved_CFLAGS"
24537 { saved_CFLAGS=; unset saved_CFLAGS;}
24540 LIBISC_PTHREADS_NOTHREADS=nothreads
24544 if test "$have_pthreads" != "no"; then
24558 case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
24560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
24561 printf %s "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
24562 if test ${ntp_cv_vsnprintf_percent_m+y}
24564 printf %s "(cached) " >&6
24566 if test "$cross_compiling" = yes
24568 ntp_cv_vsnprintf_percent_m=no
24571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24572 /* end confdefs.h. */
24574 #include <stdarg.h>
24577 #include <string.h>
24579 int call_vsnprintf(
24586 int call_vsnprintf(
24597 rc = vsnprintf(dst, sz, fmt, ap);
24611 strcpy(sbuf, strerror(ENOENT));
24613 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
24615 return strcmp(sbuf, pbuf);
24622 if ac_fn_c_try_run "$LINENO"
24624 ntp_cv_vsnprintf_percent_m=yes
24626 ntp_cv_vsnprintf_percent_m=no
24628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24629 conftest.$ac_objext conftest.beam conftest.$ac_ext
24634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
24635 printf "%s\n" "$ntp_cv_vsnprintf_percent_m" >&6; }
24636 case "$ntp_cv_vsnprintf_percent_m" in
24639 printf "%s\n" "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
24644 ac_fn_c_check_header_compile "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
24645 if test "x$ac_cv_header_sys_clockctl_h" = xyes
24647 printf "%s\n" "#define HAVE_SYS_CLOCKCTL_H 1" >>confdefs.h
24652 # Check whether --enable-clockctl was given.
24653 if test ${enable_clockctl+y}
24655 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
24657 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
24662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
24663 printf %s "checking if we should use /dev/clockctl... " >&6; }
24664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
24665 printf "%s\n" "$ntp_use_dev_clockctl" >&6; }
24668 ac_fn_c_check_header_compile "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
24669 if test "x$ac_cv_header_sys_capability_h" = xyes
24671 printf "%s\n" "#define HAVE_SYS_CAPABILITY_H 1" >>confdefs.h
24674 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
24675 if test "x$ac_cv_header_sys_prctl_h" = xyes
24677 printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
24682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
24683 printf %s "checking if we have linux capabilities (libcap)... " >&6; }
24685 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
24689 ntp_have_linuxcaps=no
24691 *) ntp_have_linuxcaps=yes
24696 ntp_have_linuxcaps=no
24700 # Check whether --enable-linuxcaps was given.
24701 if test ${enable_linuxcaps+y}
24703 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
24708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
24709 printf "%s\n" "$ntp_have_linuxcaps" >&6; }
24711 case "$ntp_have_linuxcaps" in
24714 printf "%s\n" "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
24721 ac_fn_c_check_header_compile "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
24722 if test "x$ac_cv_header_priv_h" = xyes
24724 printf "%s\n" "#define HAVE_PRIV_H 1" >>confdefs.h
24728 case "$ac_cv_header_priv_h" in
24732 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
24733 if test "x$ac_cv_func_setppriv" = xyes
24735 ntp_have_solarisprivs=yes
24737 ntp_have_solarisprivs=no
24745 # Check whether --enable-solarisprivs was given.
24746 if test ${enable_solarisprivs+y}
24748 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
24753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
24754 printf %s "checking if we have solaris privileges... " >&6; }
24756 case "$ntp_have_solarisprivs" in
24759 printf "%s\n" "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
24762 '') ntp_have_solarisprivs="no"
24766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
24767 printf "%s\n" "$ntp_have_solarisprivs" >&6; }
24769 ac_fn_c_check_header_compile "$LINENO" "sys/mac.h" "ac_cv_header_sys_mac_h" "$ac_includes_default"
24770 if test "x$ac_cv_header_sys_mac_h" = xyes
24772 printf "%s\n" "#define HAVE_SYS_MAC_H 1" >>confdefs.h
24777 # Check whether --enable-trustedbsd_mac was given.
24778 if test ${enable_trustedbsd_mac+y}
24780 enableval=$enable_trustedbsd_mac; ntp_use_trustedbsd_mac=$enableval
24785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should use TrustedBSD MAC privileges" >&5
24786 printf %s "checking if we should use TrustedBSD MAC privileges... " >&6; }
24788 case "$ntp_use_trustedbsd_mac$ac_cv_header_sys_mac_h" in
24791 printf "%s\n" "#define HAVE_TRUSTEDBSD_MAC 1" >>confdefs.h
24794 *) ntp_use_trustedbsd_mac="no";
24798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_use_trustedbsd_mac" >&5
24799 printf "%s\n" "$ntp_use_trustedbsd_mac" >&6; }
24801 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs$ntp_use_trustedbsd_mac" in
24804 printf "%s\n" "#define HAVE_DROPROOT 1" >>confdefs.h
24810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
24811 printf %s "checking for library containing res_9_init... " >&6; }
24812 if test ${ac_cv_search_res_9_init+y}
24814 printf %s "(cached) " >&6
24816 ac_func_search_save_LIBS=$LIBS
24817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24818 /* end confdefs.h. */
24820 /* Override any GCC internal prototype to avoid an error.
24821 Use char because int might match the return type of a GCC
24822 builtin and then its argument prototype would still apply. */
24823 char res_9_init ();
24827 return res_9_init ();
24832 for ac_lib in '' resolv
24834 if test -z "$ac_lib"; then
24835 ac_res="none required"
24838 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24840 if ac_fn_c_try_link "$LINENO"
24842 ac_cv_search_res_9_init=$ac_res
24844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24846 if test ${ac_cv_search_res_9_init+y}
24851 if test ${ac_cv_search_res_9_init+y}
24855 ac_cv_search_res_9_init=no
24857 rm conftest.$ac_ext
24858 LIBS=$ac_func_search_save_LIBS
24860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
24861 printf "%s\n" "$ac_cv_search_res_9_init" >&6; }
24862 ac_res=$ac_cv_search_res_9_init
24863 if test "$ac_res" != no
24865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24870 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
24871 printf %s "checking for library containing res_init... " >&6; }
24872 if test ${ac_cv_search_res_init+y}
24874 printf %s "(cached) " >&6
24876 ac_func_search_save_LIBS=$LIBS
24877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24878 /* end confdefs.h. */
24880 /* Override any GCC internal prototype to avoid an error.
24881 Use char because int might match the return type of a GCC
24882 builtin and then its argument prototype would still apply. */
24887 return res_init ();
24892 for ac_lib in '' resolv
24894 if test -z "$ac_lib"; then
24895 ac_res="none required"
24898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24900 if ac_fn_c_try_link "$LINENO"
24902 ac_cv_search_res_init=$ac_res
24904 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24906 if test ${ac_cv_search_res_init+y}
24911 if test ${ac_cv_search_res_init+y}
24915 ac_cv_search_res_init=no
24917 rm conftest.$ac_ext
24918 LIBS=$ac_func_search_save_LIBS
24920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
24921 printf "%s\n" "$ac_cv_search_res_init" >&6; }
24922 ac_res=$ac_cv_search_res_init
24923 if test "$ac_res" != no
24925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24931 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "#ifdef HAVE_SYS_TYPES_H
24932 # include <sys/types.h>
24934 #ifdef HAVE_NETINET_IN_H
24935 # include <netinet/in.h> /* inet_ functions / structs */
24937 #ifdef HAVE_ARPA_NAMESER_H
24938 # include <arpa/nameser.h> /* DNS HEADER struct */
24940 #ifdef HAVE_NETDB_H
24941 # include <netdb.h>
24944 if test "x$ac_cv_header_sys_types_h" = xyes
24946 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
24949 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "#ifdef HAVE_SYS_TYPES_H
24950 # include <sys/types.h>
24952 #ifdef HAVE_NETINET_IN_H
24953 # include <netinet/in.h> /* inet_ functions / structs */
24955 #ifdef HAVE_ARPA_NAMESER_H
24956 # include <arpa/nameser.h> /* DNS HEADER struct */
24958 #ifdef HAVE_NETDB_H
24959 # include <netdb.h>
24962 if test "x$ac_cv_header_netinet_in_h" = xyes
24964 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
24967 ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "#ifdef HAVE_SYS_TYPES_H
24968 # include <sys/types.h>
24970 #ifdef HAVE_NETINET_IN_H
24971 # include <netinet/in.h> /* inet_ functions / structs */
24973 #ifdef HAVE_ARPA_NAMESER_H
24974 # include <arpa/nameser.h> /* DNS HEADER struct */
24976 #ifdef HAVE_NETDB_H
24977 # include <netdb.h>
24980 if test "x$ac_cv_header_arpa_nameser_h" = xyes
24982 printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h
24985 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "#ifdef HAVE_SYS_TYPES_H
24986 # include <sys/types.h>
24988 #ifdef HAVE_NETINET_IN_H
24989 # include <netinet/in.h> /* inet_ functions / structs */
24991 #ifdef HAVE_ARPA_NAMESER_H
24992 # include <arpa/nameser.h> /* DNS HEADER struct */
24994 #ifdef HAVE_NETDB_H
24995 # include <netdb.h>
24998 if test "x$ac_cv_header_netdb_h" = xyes
25000 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
25003 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#ifdef HAVE_SYS_TYPES_H
25004 # include <sys/types.h>
25006 #ifdef HAVE_NETINET_IN_H
25007 # include <netinet/in.h> /* inet_ functions / structs */
25009 #ifdef HAVE_ARPA_NAMESER_H
25010 # include <arpa/nameser.h> /* DNS HEADER struct */
25012 #ifdef HAVE_NETDB_H
25013 # include <netdb.h>
25016 if test "x$ac_cv_header_resolv_h" = xyes
25018 printf "%s\n" "#define HAVE_RESOLV_H 1" >>confdefs.h
25023 #HMS: Why do we do this check so "early"?
25025 for ac_func in res_init
25027 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
25028 if test "x$ac_cv_func_res_init" = xyes
25030 printf "%s\n" "#define HAVE_RES_INIT 1" >>confdefs.h
25033 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
25034 if test "x$ac_cv_func___res_init" = xyes
25036 printf "%s\n" "#define HAVE___RES_INIT 1" >>confdefs.h
25044 # We also need -lsocket, but we have tested for that already.
25045 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
25046 if test "x$ac_cv_func_inet_ntop" = xyes
25051 printf "%s\n" "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
25055 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
25056 if test "x$ac_cv_func_inet_pton" = xyes
25061 printf "%s\n" "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
25066 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
25067 if test "x$ac_cv_type_uintptr_t" = xyes
25070 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
25074 ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
25075 if test "x$ac_cv_type_int32" = xyes
25078 printf "%s\n" "#define HAVE_INT32 1" >>confdefs.h
25082 ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
25083 if test "x$ac_cv_type_u_int32" = xyes
25086 printf "%s\n" "#define HAVE_U_INT32 1" >>confdefs.h
25094 case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
25096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
25097 printf %s "checking for int32 with DNS headers included... " >&6; }
25098 if test ${ntp_cv_type_int32_with_dns+y}
25100 printf %s "(cached) " >&6
25102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25103 /* end confdefs.h. */
25105 #ifdef HAVE_ARPA_NAMESER_H
25106 # include <arpa/nameser.h>
25108 #include <resolv.h>
25114 size_t cb = sizeof(int32);
25121 if ac_fn_c_try_compile "$LINENO"
25123 ntp_cv_type_int32_with_dns=yes
25125 ntp_cv_type_int32_with_dns=no
25128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
25132 printf "%s\n" "$ntp_cv_type_int32_with_dns" >&6; }
25133 case "$ntp_cv_type_int32_with_dns" in
25136 printf "%s\n" "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
25141 case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
25143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
25144 printf %s "checking for u_int32 with DNS headers included... " >&6; }
25145 if test ${ntp_cv_type_u_int32_with_dns+y}
25147 printf %s "(cached) " >&6
25149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25150 /* end confdefs.h. */
25152 #ifdef HAVE_ARPA_NAMESER_H
25153 # include <arpa/nameser.h>
25155 #include <resolv.h>
25161 size_t cb = sizeof(u_int32);
25168 if ac_fn_c_try_compile "$LINENO"
25170 ntp_cv_type_u_int32_with_dns=yes
25172 ntp_cv_type_u_int32_with_dns=no
25175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
25179 printf "%s\n" "$ntp_cv_type_u_int32_with_dns" >&6; }
25180 case "$ntp_cv_type_u_int32_with_dns" in
25183 printf "%s\n" "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
25188 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
25189 #ifdef HAVE_SYS_TIME_H
25190 # include <sys/time.h>
25192 #ifdef HAVE_ERRNO_H
25193 # include <errno.h>
25198 if test "x$ac_cv_header_sys_timepps_h" = xyes
25200 printf "%s\n" "#define HAVE_SYS_TIMEPPS_H 1" >>confdefs.h
25205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
25206 printf %s "checking for struct timespec... " >&6; }
25207 if test ${ntp_cv_struct_timespec+y}
25209 printf %s "(cached) " >&6
25211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25212 /* end confdefs.h. */
25214 #include <sys/time.h>
25215 /* Under SunOS, timespec is in sys/timepps.h,
25216 which needs errno.h and FRAC */
25217 #ifdef HAVE_ERRNO_H
25218 # include <errno.h>
25220 #ifdef HAVE_SYS_TIMEPPS_H
25221 # define FRAC 4294967296
25222 # include <sys/timepps.h>
25236 if ac_fn_c_try_compile "$LINENO"
25238 ntp_cv_struct_timespec=yes
25240 ntp_cv_struct_timespec=no
25243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
25247 printf "%s\n" "$ntp_cv_struct_timespec" >&6; }
25248 case "$ntp_cv_struct_timespec" in
25251 printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
25255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
25256 printf %s "checking for struct ntptimeval... " >&6; }
25257 if test ${ntp_cv_struct_ntptimeval+y}
25259 printf %s "(cached) " >&6
25261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25262 /* end confdefs.h. */
25264 #include <sys/time.h>
25265 #include <sys/timex.h>
25271 struct ntptimeval n;
25278 if ac_fn_c_try_compile "$LINENO"
25280 ntp_cv_struct_ntptimeval=yes
25282 ntp_cv_struct_ntptimeval=no
25285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
25289 printf "%s\n" "$ntp_cv_struct_ntptimeval" >&6; }
25290 case "$ntp_cv_struct_ntptimeval" in
25293 printf "%s\n" "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
25297 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
25298 #ifdef HAVE_SYS_TYPES_H
25299 # include <sys/types.h>
25304 if test "x$ac_cv_header_md5_h" = xyes
25306 printf "%s\n" "#define HAVE_MD5_H 1" >>confdefs.h
25311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
25312 printf %s "checking for library containing MD5Init... " >&6; }
25313 if test ${ac_cv_search_MD5Init+y}
25315 printf %s "(cached) " >&6
25317 ac_func_search_save_LIBS=$LIBS
25318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25319 /* end confdefs.h. */
25321 /* Override any GCC internal prototype to avoid an error.
25322 Use char because int might match the return type of a GCC
25323 builtin and then its argument prototype would still apply. */
25333 for ac_lib in '' md5 md
25335 if test -z "$ac_lib"; then
25336 ac_res="none required"
25339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25341 if ac_fn_c_try_link "$LINENO"
25343 ac_cv_search_MD5Init=$ac_res
25345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25347 if test ${ac_cv_search_MD5Init+y}
25352 if test ${ac_cv_search_MD5Init+y}
25356 ac_cv_search_MD5Init=no
25358 rm conftest.$ac_ext
25359 LIBS=$ac_func_search_save_LIBS
25361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
25362 printf "%s\n" "$ac_cv_search_MD5Init" >&6; }
25363 ac_res=$ac_cv_search_MD5Init
25364 if test "$ac_res" != no
25366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25370 ac_fn_c_check_func "$LINENO" "MD5Init" "ac_cv_func_MD5Init"
25371 if test "x$ac_cv_func_MD5Init" = xyes
25373 printf "%s\n" "#define HAVE_MD5INIT 1" >>confdefs.h
25376 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
25377 if test "x$ac_cv_func_sysconf" = xyes
25379 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
25382 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
25383 if test "x$ac_cv_func_getdtablesize" = xyes
25385 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
25388 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
25389 if test "x$ac_cv_func_sigaction" = xyes
25391 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
25394 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
25395 if test "x$ac_cv_func_sigset" = xyes
25397 printf "%s\n" "#define HAVE_SIGSET 1" >>confdefs.h
25400 ac_fn_c_check_func "$LINENO" "sigvec" "ac_cv_func_sigvec"
25401 if test "x$ac_cv_func_sigvec" = xyes
25403 printf "%s\n" "#define HAVE_SIGVEC 1" >>confdefs.h
25408 # HMS: does this need to be a cached variable?
25409 # Check whether --enable-signalled-io was given.
25410 if test ${enable_signalled_io+y}
25412 enableval=$enable_signalled_io; use_signalled_io=$enableval
25414 use_signalled_io=yes
25419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
25420 printf %s "checking for SIGIO... " >&6; }
25421 if test ${ntp_cv_hdr_def_sigio+y}
25423 printf %s "(cached) " >&6
25425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25426 /* end confdefs.h. */
25428 #include <signal.h>
25435 if ac_fn_c_try_cpp "$LINENO"
25437 ntp_cv_hdr_def_sigio=yes
25439 ntp_cv_hdr_def_sigio=no
25442 rm -f conftest.err conftest.i conftest.$ac_ext
25445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
25446 printf "%s\n" "$ntp_cv_hdr_def_sigio" >&6; }
25448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
25449 printf %s "checking if we want to use SIGIO... " >&6; }
25451 case "$ntp_cv_hdr_def_sigio" in
25455 alpha*-dec-osf4*|alpha*-dec-osf5*)
25497 ans="Possible for $host but disabled because of reported problems"
25504 case "$use_signalled_io" in
25507 printf "%s\n" "#define HAVE_SIGNALED_IO 1" >>confdefs.h
25510 *) ans="Allowed for $host but --disable-signalled-io was given"
25514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25515 printf "%s\n" "$ans" >&6; }
25517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
25518 printf %s "checking for SIGPOLL... " >&6; }
25519 if test ${ntp_cv_hdr_def_sigpoll+y}
25521 printf %s "(cached) " >&6
25523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25524 /* end confdefs.h. */
25526 #include <signal.h>
25533 if ac_fn_c_try_cpp "$LINENO"
25535 ntp_cv_hdr_def_sigpoll=yes
25537 ntp_cv_hdr_def_sigpoll=no
25540 rm -f conftest.err conftest.i conftest.$ac_ext
25543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
25544 printf "%s\n" "$ntp_cv_hdr_def_sigpoll" >&6; }
25546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
25547 printf %s "checking if we can use SIGPOLL for UDP I/O... " >&6; }
25549 case "$ntp_cv_hdr_def_sigpoll" in
25568 # XXX Only verified thru AIX6
25606 printf "%s\n" "#define USE_UDP_SIGPOLL 1" >>confdefs.h
25609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25610 printf "%s\n" "$ans" >&6; }
25612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
25613 printf %s "checking if we can use SIGPOLL for TTY I/O... " >&6; }
25615 case "$ntp_cv_hdr_def_sigpoll" in
25634 # XXX Only verified thru AIX6
25669 printf "%s\n" "#define USE_TTY_SIGPOLL 1" >>confdefs.h
25672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25673 printf "%s\n" "$ans" >&6; }
25675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
25676 printf %s "checking number of arguments to gettimeofday()... " >&6; }
25677 if test ${ntp_cv_func_Xettimeofday_nargs+y}
25679 printf %s "(cached) " >&6
25681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25682 /* end confdefs.h. */
25684 #include <sys/time.h>
25690 gettimeofday(0, 0);
25691 settimeofday(0, 0);
25698 if ac_fn_c_try_compile "$LINENO"
25700 ntp_cv_func_Xettimeofday_nargs=2
25702 ntp_cv_func_Xettimeofday_nargs=1
25705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
25709 printf "%s\n" "$ntp_cv_func_Xettimeofday_nargs" >&6; }
25710 case "$ntp_cv_func_Xettimeofday_nargs" in
25713 printf "%s\n" "#define SYSV_TIMEOFDAY 1" >>confdefs.h
25718 for ac_func in settimeofday
25720 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
25721 if test "x$ac_cv_func_settimeofday" = xyes
25723 printf "%s\n" "#define HAVE_SETTIMEOFDAY 1" >>confdefs.h
25728 *-*-mpeix*) ac_cv_func_settimeofday=yes
25735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
25736 printf %s "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
25737 ntp_warning='GRONK'
25739 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
25742 ans='clock_settime()'
25745 ntp_warning='But clock_settime() would be better (if we had it)'
25746 ans='settimeofday()'
25749 ntp_warning='Which is the worst of the three'
25755 ntp_warning='Which leaves us with nothing to use!'
25758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25759 printf "%s\n" "$ans" >&6; }
25760 case "$ntp_warning" in
25764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
25765 printf "%s\n" "$as_me: WARNING: *** $ntp_warning ***" >&2;}
25770 LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
25772 { __LIBS=; unset __LIBS;}
25776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for deprecated --with-arlib" >&5
25777 printf %s "checking for deprecated --with-arlib... " >&6; }
25779 # Check whether --with-arlib was given.
25780 if test ${with_arlib+y}
25782 withval=$with_arlib; ans=$withval
25787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
25788 printf "%s\n" "$ans" >&6; }
25792 { printf "%s\n" "$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
25793 printf "%s\n" "$as_me: WARNING: Please do not use --with-arlib, arlib is no longer included. In the future, --with-arlib will not be recognized." >&2;}
25797 for ac_prog in gawk mawk nawk awk
25799 # Extract the first word of "$ac_prog", so it can be a program name with args.
25800 set dummy $ac_prog; ac_word=$2
25801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25802 printf %s "checking for $ac_word... " >&6; }
25803 if test ${ac_cv_prog_AWK+y}
25805 printf %s "(cached) " >&6
25807 if test -n "$AWK"; then
25808 ac_cv_prog_AWK="$AWK" # Let the user override the test.
25810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25811 for as_dir in $PATH
25814 case $as_dir in #(((
25817 *) as_dir=$as_dir/ ;;
25819 for ac_exec_ext in '' $ac_executable_extensions; do
25820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25821 ac_cv_prog_AWK="$ac_prog"
25822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25831 AWK=$ac_cv_prog_AWK
25832 if test -n "$AWK"; then
25833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
25834 printf "%s\n" "$AWK" >&6; }
25836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25837 printf "%s\n" "no" >&6; }
25841 test -n "$AWK" && break
25844 { ac_cv_prog_AWK=; unset ac_cv_prog_AWK;}
25845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
25846 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
25848 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
25849 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
25851 printf %s "(cached) " >&6
25853 cat >conftest.make <<\_ACEOF
25856 @echo '@@@%%%=$(MAKE)=@@@%%%'
25858 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25859 case `${MAKE-make} -f conftest.make 2>/dev/null` in
25860 *@@@%%%=?*=@@@%%%*)
25861 eval ac_cv_prog_make_${ac_make}_set=yes;;
25863 eval ac_cv_prog_make_${ac_make}_set=no;;
25865 rm -f conftest.make
25867 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
25868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25869 printf "%s\n" "yes" >&6; }
25872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25873 printf "%s\n" "no" >&6; }
25874 SET_MAKE="MAKE=${MAKE-make}"
25881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
25882 printf %s "checking whether ln -s works... " >&6; }
25884 if test "$LN_S" = "ln -s"; then
25885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25886 printf "%s\n" "yes" >&6; }
25888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
25889 printf "%s\n" "no, using $LN_S" >&6; }
25892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
25893 printf %s "checking for library containing strerror... " >&6; }
25894 if test ${ac_cv_search_strerror+y}
25896 printf %s "(cached) " >&6
25898 ac_func_search_save_LIBS=$LIBS
25899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25900 /* end confdefs.h. */
25902 /* Override any GCC internal prototype to avoid an error.
25903 Use char because int might match the return type of a GCC
25904 builtin and then its argument prototype would still apply. */
25909 return strerror ();
25914 for ac_lib in '' cposix
25916 if test -z "$ac_lib"; then
25917 ac_res="none required"
25920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25922 if ac_fn_c_try_link "$LINENO"
25924 ac_cv_search_strerror=$ac_res
25926 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25928 if test ${ac_cv_search_strerror+y}
25933 if test ${ac_cv_search_strerror+y}
25937 ac_cv_search_strerror=no
25939 rm conftest.$ac_ext
25940 LIBS=$ac_func_search_save_LIBS
25942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
25943 printf "%s\n" "$ac_cv_search_strerror" >&6; }
25944 ac_res=$ac_cv_search_strerror
25945 if test "$ac_res" != no
25947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25953 # Extract the first word of "perl", so it can be a program name with args.
25954 set dummy perl; ac_word=$2
25955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25956 printf %s "checking for $ac_word... " >&6; }
25957 if test ${ac_cv_path_PATH_PERL+y}
25959 printf %s "(cached) " >&6
25963 ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
25966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25967 for as_dir in $PATH
25970 case $as_dir in #(((
25973 *) as_dir=$as_dir/ ;;
25975 for ac_exec_ext in '' $ac_executable_extensions; do
25976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25977 ac_cv_path_PATH_PERL="$as_dir$ac_word$ac_exec_ext"
25978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25988 PATH_PERL=$ac_cv_path_PATH_PERL
25989 if test -n "$PATH_PERL"; then
25990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
25991 printf "%s\n" "$PATH_PERL" >&6; }
25993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25994 printf "%s\n" "no" >&6; }
25998 { ac_cv_path_PATH_PERL=; unset ac_cv_path_PATH_PERL;}
25999 # Extract the first word of "test", so it can be a program name with args.
26000 set dummy test; ac_word=$2
26001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26002 printf %s "checking for $ac_word... " >&6; }
26003 if test ${ac_cv_path_PATH_TEST+y}
26005 printf %s "(cached) " >&6
26009 ac_cv_path_PATH_TEST="$PATH_TEST" # Let the user override the test with a path.
26012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26013 for as_dir in $PATH
26016 case $as_dir in #(((
26019 *) as_dir=$as_dir/ ;;
26021 for ac_exec_ext in '' $ac_executable_extensions; do
26022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26023 ac_cv_path_PATH_TEST="$as_dir$ac_word$ac_exec_ext"
26024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26034 PATH_TEST=$ac_cv_path_PATH_TEST
26035 if test -n "$PATH_TEST"; then
26036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_TEST" >&5
26037 printf "%s\n" "$PATH_TEST" >&6; }
26039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26040 printf "%s\n" "no" >&6; }
26044 { ac_cv_path_PATH_TEST=; unset ac_cv_path_PATH_TEST;}
26045 test -z "$CONFIG_SHELL" && CONFIG_SHELL=/bin/sh
26048 # Check whether --with-net-snmp-config was given.
26049 if test ${with_net_snmp_config+y}
26051 withval=$with_net_snmp_config; ans=$withval
26061 ans=net-snmp-config
26066 as_fn_error $? "--with-net-snmp-config takes either a name or an absolute path" "$LINENO" 5
26071 PROG_NET_SNMP_CONFIG=$ans
26072 case "$PROG_NET_SNMP_CONFIG" in
26075 PATH_NET_SNMP_CONFIG=$PROG_NET_SNMP_CONFIG
26078 # Extract the first word of "$PROG_NET_SNMP_CONFIG", so it can be a program name with args.
26079 set dummy $PROG_NET_SNMP_CONFIG; ac_word=$2
26080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26081 printf %s "checking for $ac_word... " >&6; }
26082 if test ${ac_cv_path_PATH_NET_SNMP_CONFIG+y}
26084 printf %s "(cached) " >&6
26086 case $PATH_NET_SNMP_CONFIG in
26088 ac_cv_path_PATH_NET_SNMP_CONFIG="$PATH_NET_SNMP_CONFIG" # Let the user override the test with a path.
26091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26092 for as_dir in $PATH
26095 case $as_dir in #(((
26098 *) as_dir=$as_dir/ ;;
26100 for ac_exec_ext in '' $ac_executable_extensions; do
26101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26102 ac_cv_path_PATH_NET_SNMP_CONFIG="$as_dir$ac_word$ac_exec_ext"
26103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26113 PATH_NET_SNMP_CONFIG=$ac_cv_path_PATH_NET_SNMP_CONFIG
26114 if test -n "$PATH_NET_SNMP_CONFIG"; then
26115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
26116 printf "%s\n" "$PATH_NET_SNMP_CONFIG" >&6; }
26118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26119 printf "%s\n" "no" >&6; }
26123 { ac_cv_path_PATH_NET_SNMP_CONFIG=; unset ac_cv_path_PATH_NET_SNMP_CONFIG;}
26126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for net-snmp-config path" >&5
26127 printf %s "checking for net-snmp-config path... " >&6; }
26128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_NET_SNMP_CONFIG" >&5
26129 printf "%s\n" "$PATH_NET_SNMP_CONFIG" >&6; }
26131 case "$PATH_NET_SNMP_CONFIG" in
26132 /*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for net-snmp version" >&5
26133 printf %s "checking for net-snmp version... " >&6; }
26134 if test ${ntp_cv_net_snmp_version+y}
26136 printf %s "(cached) " >&6
26138 ntp_cv_net_snmp_version=`$PATH_NET_SNMP_CONFIG --version`
26141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_net_snmp_version" >&5
26142 printf "%s\n" "$ntp_cv_net_snmp_version" >&6; }
26148 ac_link="$ac_link $VX_KERNEL"
26152 # HMS: a check for -lnsl used to be here - now being done in NTP_LIBNTP
26153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
26154 printf %s "checking for library containing openlog... " >&6; }
26155 if test ${ac_cv_search_openlog+y}
26157 printf %s "(cached) " >&6
26159 ac_func_search_save_LIBS=$LIBS
26160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26161 /* end confdefs.h. */
26163 /* Override any GCC internal prototype to avoid an error.
26164 Use char because int might match the return type of a GCC
26165 builtin and then its argument prototype would still apply. */
26175 for ac_lib in '' gen syslog
26177 if test -z "$ac_lib"; then
26178 ac_res="none required"
26181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26183 if ac_fn_c_try_link "$LINENO"
26185 ac_cv_search_openlog=$ac_res
26187 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26189 if test ${ac_cv_search_openlog+y}
26194 if test ${ac_cv_search_openlog+y}
26198 ac_cv_search_openlog=no
26200 rm conftest.$ac_ext
26201 LIBS=$ac_func_search_save_LIBS
26203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
26204 printf "%s\n" "$ac_cv_search_openlog" >&6; }
26205 ac_res=$ac_cv_search_openlog
26206 if test "$ac_res" != no
26208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26212 # XXX library list will be in ac_cv_search_openlog
26214 # LIBSECCOMP is off by default -- needs testing with all the features
26215 # Please send bug reports to loganaden@gmail.com
26216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to use libseccomp sandboxing (EXPERIMENTAL)" >&5
26217 printf %s "checking if we want to use libseccomp sandboxing (EXPERIMENTAL)... " >&6; }
26218 # Check whether --enable-libseccomp was given.
26219 if test ${enable_libseccomp+y}
26221 enableval=$enable_libseccomp; ntp_ok=$enableval
26227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
26228 printf "%s\n" "$ntp_ok" >&6; }
26231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
26232 printf %s "checking for library containing seccomp_init... " >&6; }
26233 if test ${ac_cv_search_seccomp_init+y}
26235 printf %s "(cached) " >&6
26237 ac_func_search_save_LIBS=$LIBS
26238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26239 /* end confdefs.h. */
26241 /* Override any GCC internal prototype to avoid an error.
26242 Use char because int might match the return type of a GCC
26243 builtin and then its argument prototype would still apply. */
26244 char seccomp_init ();
26248 return seccomp_init ();
26253 for ac_lib in '' seccomp
26255 if test -z "$ac_lib"; then
26256 ac_res="none required"
26259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26261 if ac_fn_c_try_link "$LINENO"
26263 ac_cv_search_seccomp_init=$ac_res
26265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26267 if test ${ac_cv_search_seccomp_init+y}
26272 if test ${ac_cv_search_seccomp_init+y}
26276 ac_cv_search_seccomp_init=no
26278 rm conftest.$ac_ext
26279 LIBS=$ac_func_search_save_LIBS
26281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
26282 printf "%s\n" "$ac_cv_search_seccomp_init" >&6; }
26283 ac_res=$ac_cv_search_seccomp_init
26284 if test "$ac_res" != no
26286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26288 printf "%s\n" "#define LIBSECCOMP 1" >>confdefs.h
26293 if test "$cross_compiling" = yes
26295 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26296 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
26297 as_fn_error $? "cannot run test program while cross compiling
26298 See \`config.log' for more details" "$LINENO" 5; }
26300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26301 /* end confdefs.h. */
26304 #include <stdlib.h>
26306 #include <sys/prctl.h>
26307 #include <linux/seccomp.h>
26312 ret = prctl(PR_GET_SECCOMP, 0, 0, 0, 0);
26324 prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, 0, 0);
26340 if ac_fn_c_try_run "$LINENO"
26343 printf "%s\n" "#define KERN_SECCOMP 1" >>confdefs.h
26347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26348 conftest.$ac_objext conftest.beam conftest.$ac_ext
26355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
26356 printf %s "checking for facilitynames in syslog.h... " >&6; }
26357 if test ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+y}
26359 printf %s "(cached) " >&6
26362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26363 /* end confdefs.h. */
26365 #define SYSLOG_NAMES
26366 #include <stdlib.h>
26367 #include <syslog.h>
26372 void *fnames; fnames = facilitynames;
26377 if ac_fn_c_try_compile "$LINENO"
26379 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
26381 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
26383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
26386 printf "%s\n" "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
26387 case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
26390 printf "%s\n" "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
26394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
26395 printf "%s\n" "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
26398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
26399 printf "%s\n" "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
26410 # HMS: Make sure we check for -lrt for clock_* before this...
26411 case "$ac_cv_search_clock_gettime" in
26412 '') as_fn_error $? "Internal Error: Haven't looked for clock_gettime() yet!" "$LINENO" 5 ;;
26414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sched_setscheduler" >&5
26415 printf %s "checking for library containing sched_setscheduler... " >&6; }
26416 if test ${ac_cv_search_sched_setscheduler+y}
26418 printf %s "(cached) " >&6
26420 ac_func_search_save_LIBS=$LIBS
26421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26422 /* end confdefs.h. */
26424 /* Override any GCC internal prototype to avoid an error.
26425 Use char because int might match the return type of a GCC
26426 builtin and then its argument prototype would still apply. */
26427 char sched_setscheduler ();
26431 return sched_setscheduler ();
26436 for ac_lib in '' rt posix4
26438 if test -z "$ac_lib"; then
26439 ac_res="none required"
26442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26444 if ac_fn_c_try_link "$LINENO"
26446 ac_cv_search_sched_setscheduler=$ac_res
26448 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26450 if test ${ac_cv_search_sched_setscheduler+y}
26455 if test ${ac_cv_search_sched_setscheduler+y}
26459 ac_cv_search_sched_setscheduler=no
26461 rm conftest.$ac_ext
26462 LIBS=$ac_func_search_save_LIBS
26464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_setscheduler" >&5
26465 printf "%s\n" "$ac_cv_search_sched_setscheduler" >&6; }
26466 ac_res=$ac_cv_search_sched_setscheduler
26467 if test "$ac_res" != no
26469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26476 ac_fn_c_check_header_compile "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
26477 if test "x$ac_cv_header_bstring_h" = xyes
26479 printf "%s\n" "#define HAVE_BSTRING_H 1" >>confdefs.h
26483 ac_fn_c_check_header_compile "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
26484 if test "x$ac_cv_header_dns_sd_h" = xyes
26486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing DNSServiceRegister" >&5
26487 printf %s "checking for library containing DNSServiceRegister... " >&6; }
26488 if test ${ac_cv_search_DNSServiceRegister+y}
26490 printf %s "(cached) " >&6
26492 ac_func_search_save_LIBS=$LIBS
26493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26494 /* end confdefs.h. */
26496 /* Override any GCC internal prototype to avoid an error.
26497 Use char because int might match the return type of a GCC
26498 builtin and then its argument prototype would still apply. */
26499 char DNSServiceRegister ();
26503 return DNSServiceRegister ();
26508 for ac_lib in '' dns_sd
26510 if test -z "$ac_lib"; then
26511 ac_res="none required"
26514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26516 if ac_fn_c_try_link "$LINENO"
26518 ac_cv_search_DNSServiceRegister=$ac_res
26520 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26522 if test ${ac_cv_search_DNSServiceRegister+y}
26527 if test ${ac_cv_search_DNSServiceRegister+y}
26531 ac_cv_search_DNSServiceRegister=no
26533 rm conftest.$ac_ext
26534 LIBS=$ac_func_search_save_LIBS
26536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_DNSServiceRegister" >&5
26537 printf "%s\n" "$ac_cv_search_DNSServiceRegister" >&6; }
26538 ac_res=$ac_cv_search_DNSServiceRegister
26539 if test "$ac_res" != no
26541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26543 printf "%s\n" "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
26551 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
26552 if test "x$ac_cv_header_fcntl_h" = xyes
26554 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
26557 ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
26558 if test "x$ac_cv_header_fnmatch_h" = xyes
26560 printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h
26563 ac_fn_c_check_header_compile "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default"
26564 if test "x$ac_cv_header_ieeefp_h" = xyes
26566 printf "%s\n" "#define HAVE_IEEEFP_H 1" >>confdefs.h
26569 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
26570 if test "x$ac_cv_header_inttypes_h" = xyes
26572 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
26575 ac_fn_c_check_header_compile "$LINENO" "kvm.h" "ac_cv_header_kvm_h" "$ac_includes_default"
26576 if test "x$ac_cv_header_kvm_h" = xyes
26578 printf "%s\n" "#define HAVE_KVM_H 1" >>confdefs.h
26581 ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
26582 if test "x$ac_cv_header_math_h" = xyes
26584 printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
26589 ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
26590 if test "x$ac_cv_header_memory_h" = xyes
26592 printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
26595 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
26596 if test "x$ac_cv_header_netdb_h" = xyes
26598 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
26601 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
26602 if test "x$ac_cv_header_poll_h" = xyes
26604 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
26608 ac_fn_c_check_header_compile "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
26609 if test "x$ac_cv_header_sgtty_h" = xyes
26611 printf "%s\n" "#define HAVE_SGTTY_H 1" >>confdefs.h
26614 ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
26615 if test "x$ac_cv_header_stdatomic_h" = xyes
26617 printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
26621 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
26622 if test "x$ac_cv_type__Bool" = xyes
26625 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
26630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
26631 printf %s "checking for stdbool.h that conforms to C99... " >&6; }
26632 if test ${ac_cv_header_stdbool_h+y}
26634 printf %s "(cached) " >&6
26636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26637 /* end confdefs.h. */
26638 #include <stdbool.h>
26640 #ifndef __bool_true_false_are_defined
26641 #error "__bool_true_false_are_defined is not defined"
26643 char a[__bool_true_false_are_defined == 1 ? 1 : -1];
26645 /* Regardless of whether this is C++ or "_Bool" is a
26646 valid type name, "true" and "false" should be usable
26647 in #if expressions and integer constant expressions,
26648 and "bool" should be a valid type name. */
26651 #error "'true' is not true"
26654 #error "'true' is not equal to 1"
26656 char b[true == 1 ? 1 : -1];
26660 #error "'false' is not false"
26663 #error "'false' is not equal to 0"
26665 char d[false == 0 ? 1 : -1];
26667 enum { e = false, f = true, g = false * true, h = true * 256 };
26669 char i[(bool) 0.5 == true ? 1 : -1];
26670 char j[(bool) 0.0 == false ? 1 : -1];
26671 char k[sizeof (bool) > 0 ? 1 : -1];
26673 struct sb { bool s: 1; bool t; } s;
26674 char l[sizeof s.t > 0 ? 1 : -1];
26676 /* The following fails for
26677 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
26679 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
26680 char o[-1 - (bool) 0 < 0 ? 1 : -1];
26681 /* Catch a bug in an HP-UX C compiler. See
26682 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
26683 https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
26688 /* C 1999 specifies that bool, true, and false are to be
26689 macros, but C++ 2011 and later overrule this. */
26690 #if __cplusplus < 201103
26692 #error "bool is not defined"
26695 #error "false is not defined"
26698 #error "true is not defined"
26702 /* If _Bool is available, repeat with it all the tests
26703 above that used bool. */
26705 struct sB { _Bool s: 1; _Bool t; } t;
26707 char q[(_Bool) 0.5 == true ? 1 : -1];
26708 char r[(_Bool) 0.0 == false ? 1 : -1];
26709 char u[sizeof (_Bool) > 0 ? 1 : -1];
26710 char v[sizeof t.t > 0 ? 1 : -1];
26713 char x[sizeof m == h * sizeof m[0] ? 1 : -1];
26714 char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
26733 /* Refer to every declared value, so they cannot be
26734 discarded as unused. */
26735 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
26736 + !l + !m + !n + !o + !p + !pp + !ps
26738 + !q + !r + !u + !v + !w + !x + !y + !z + !pt
26746 if ac_fn_c_try_compile "$LINENO"
26748 ac_cv_header_stdbool_h=yes
26750 ac_cv_header_stdbool_h=no
26752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
26755 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
26757 if test $ac_cv_header_stdbool_h = yes; then
26759 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
26763 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
26764 if test "x$ac_cv_header_stdlib_h" = xyes
26766 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
26769 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
26770 if test "x$ac_cv_header_string_h" = xyes
26772 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
26775 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
26776 if test "x$ac_cv_header_termio_h" = xyes
26778 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
26782 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
26783 if test "x$ac_cv_header_termios_h" = xyes
26785 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
26788 ac_fn_c_check_header_compile "$LINENO" "timepps.h" "ac_cv_header_timepps_h" "$ac_includes_default"
26789 if test "x$ac_cv_header_timepps_h" = xyes
26791 printf "%s\n" "#define HAVE_TIMEPPS_H 1" >>confdefs.h
26794 ac_fn_c_check_header_compile "$LINENO" "timex.h" "ac_cv_header_timex_h" "$ac_includes_default"
26795 if test "x$ac_cv_header_timex_h" = xyes
26797 printf "%s\n" "#define HAVE_TIMEX_H 1" >>confdefs.h
26800 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
26801 if test "x$ac_cv_header_unistd_h" = xyes
26803 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
26810 ac_fn_c_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
26811 if test "x$ac_cv_header_utmpx_h" = xyes
26813 printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h
26817 case "$ac_cv_header_utmpx_h" in
26821 ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
26822 if test "x$ac_cv_header_utmp_h" = xyes
26824 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
26832 ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
26833 if test "x$ac_cv_header_utmp_h" = xyes
26835 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
26838 ac_fn_c_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
26839 if test "x$ac_cv_header_utmpx_h" = xyes
26841 printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h
26849 # On Suns only (so far) getpass() truncates the typed password to 8
26850 # characters, but getpassphrase() allows up to 257. Most systems'
26851 # getpass() does not truncate, at least not so as to affect ntpq and
26852 # ntpdc password prompts.
26854 # So check for getpassphrase(), but only on Sun operating systems.
26857 *-*-sunos*|*-*-solaris*)
26858 ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase"
26859 if test "x$ac_cv_func_getpassphrase" = xyes
26861 printf "%s\n" "#define HAVE_GETPASSPHRASE 1" >>confdefs.h
26868 ac_fn_c_check_header_compile "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
26869 if test "x$ac_cv_header_net_if6_h" = xyes
26871 printf "%s\n" "#define HAVE_NET_IF6_H 1" >>confdefs.h
26875 ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
26876 #include <sys/types.h>
26877 #include <sys/socket.h>
26878 #include <net/if.h>
26881 if test "x$ac_cv_header_net_route_h" = xyes
26883 printf "%s\n" "#define HAVE_NET_ROUTE_H 1" >>confdefs.h
26888 ac_fn_c_check_header_compile "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
26889 if test "x$ac_cv_header_netinfo_ni_h" = xyes
26891 printf "%s\n" "#define HAVE_NETINFO_NI_H 1" >>confdefs.h
26895 case "$ac_cv_header_netinfo_ni_h" in
26898 printf "%s\n" "#define HAVE_NETINFO 1" >>confdefs.h
26901 ac_fn_c_check_header_compile "$LINENO" "sun/audioio.h" "ac_cv_header_sun_audioio_h" "$ac_includes_default"
26902 if test "x$ac_cv_header_sun_audioio_h" = xyes
26904 printf "%s\n" "#define HAVE_SUN_AUDIOIO_H 1" >>confdefs.h
26907 ac_fn_c_check_header_compile "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
26908 if test "x$ac_cv_header_sys_audioio_h" = xyes
26910 printf "%s\n" "#define HAVE_SYS_AUDIOIO_H 1" >>confdefs.h
26913 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
26914 if test "x$ac_cv_header_sys_file_h" = xyes
26916 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
26924 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
26925 if test "x$ac_cv_header_sys_ioctl_h" = xyes
26927 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
26933 ac_fn_c_check_header_compile "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
26934 if test "x$ac_cv_header_sys_ipc_h" = xyes
26936 printf "%s\n" "#define HAVE_SYS_IPC_H 1" >>confdefs.h
26939 ac_fn_c_check_header_compile "$LINENO" "sys/lock.h" "ac_cv_header_sys_lock_h" "$ac_includes_default"
26940 if test "x$ac_cv_header_sys_lock_h" = xyes
26942 printf "%s\n" "#define HAVE_SYS_LOCK_H 1" >>confdefs.h
26945 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
26946 if test "x$ac_cv_header_sys_mman_h" = xyes
26948 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
26952 # HMS: Check sys/proc.h and sys/resource.h after some others
26953 ac_fn_c_check_header_compile "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default"
26954 if test "x$ac_cv_header_sys_modem_h" = xyes
26956 printf "%s\n" "#define HAVE_SYS_MODEM_H 1" >>confdefs.h
26959 ac_fn_c_check_header_compile "$LINENO" "sys/ppsclock.h" "ac_cv_header_sys_ppsclock_h" "$ac_includes_default"
26960 if test "x$ac_cv_header_sys_ppsclock_h" = xyes
26962 printf "%s\n" "#define HAVE_SYS_PPSCLOCK_H 1" >>confdefs.h
26965 ac_fn_c_check_header_compile "$LINENO" "sys/ppstime.h" "ac_cv_header_sys_ppstime_h" "$ac_includes_default"
26966 if test "x$ac_cv_header_sys_ppstime_h" = xyes
26968 printf "%s\n" "#define HAVE_SYS_PPSTIME_H 1" >>confdefs.h
26971 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
26972 if test "x$ac_cv_header_sched_h" = xyes
26974 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
26978 case "$ac_cv_header_sched_h" in
26982 ac_fn_c_check_header_compile "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
26983 if test "x$ac_cv_header_sys_sched_h" = xyes
26985 printf "%s\n" "#define HAVE_SYS_SCHED_H 1" >>confdefs.h
26991 # HMS: Check sys/shm.h after some others
26992 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
26993 if test "x$ac_cv_header_sys_select_h" = xyes
26995 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
26998 ac_fn_c_check_header_compile "$LINENO" "sys/signal.h" "ac_cv_header_sys_signal_h" "$ac_includes_default"
26999 if test "x$ac_cv_header_sys_signal_h" = xyes
27001 printf "%s\n" "#define HAVE_SYS_SIGNAL_H 1" >>confdefs.h
27004 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
27005 if test "x$ac_cv_header_sys_sockio_h" = xyes
27007 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
27011 # HMS: Checked sys/socket.h earlier
27016 ac_fn_c_check_header_compile "$LINENO" "machine/soundcard.h" "ac_cv_header_machine_soundcard_h" "$ac_includes_default"
27017 if test "x$ac_cv_header_machine_soundcard_h" = xyes
27019 printf "%s\n" "#define HAVE_MACHINE_SOUNDCARD_H 1" >>confdefs.h
27022 ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
27023 if test "x$ac_cv_header_sys_soundcard_h" = xyes
27025 printf "%s\n" "#define HAVE_SYS_SOUNDCARD_H 1" >>confdefs.h
27031 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
27032 if test "x$ac_cv_header_sys_stat_h" = xyes
27034 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
27037 ac_fn_c_check_header_compile "$LINENO" "sys/stream.h" "ac_cv_header_sys_stream_h" "$ac_includes_default"
27038 if test "x$ac_cv_header_sys_stream_h" = xyes
27040 printf "%s\n" "#define HAVE_SYS_STREAM_H 1" >>confdefs.h
27043 ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
27044 if test "x$ac_cv_header_stropts_h" = xyes
27046 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
27049 ac_fn_c_check_header_compile "$LINENO" "sys/stropts.h" "ac_cv_header_sys_stropts_h" "$ac_includes_default"
27050 if test "x$ac_cv_header_sys_stropts_h" = xyes
27052 printf "%s\n" "#define HAVE_SYS_STROPTS_H 1" >>confdefs.h
27055 ac_fn_c_check_header_compile "$LINENO" "sys/syssgi.h" "ac_cv_header_sys_syssgi_h" "$ac_includes_default"
27056 if test "x$ac_cv_header_sys_syssgi_h" = xyes
27058 printf "%s\n" "#define HAVE_SYS_SYSSGI_H 1" >>confdefs.h
27062 ac_fn_c_check_header_compile "$LINENO" "sys/systune.h" "ac_cv_header_sys_systune_h" "$ac_includes_default"
27063 if test "x$ac_cv_header_sys_systune_h" = xyes
27065 printf "%s\n" "#define HAVE_SYS_SYSTUNE_H 1" >>confdefs.h
27068 ac_fn_c_check_header_compile "$LINENO" "sys/termios.h" "ac_cv_header_sys_termios_h" "$ac_includes_default"
27069 if test "x$ac_cv_header_sys_termios_h" = xyes
27071 printf "%s\n" "#define HAVE_SYS_TERMIOS_H 1" >>confdefs.h
27074 ac_fn_c_check_header_compile "$LINENO" "sys/tpro.h" "ac_cv_header_sys_tpro_h" "$ac_includes_default"
27075 if test "x$ac_cv_header_sys_tpro_h" = xyes
27077 printf "%s\n" "#define HAVE_SYS_TPRO_H 1" >>confdefs.h
27080 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
27081 if test "x$ac_cv_header_sys_wait_h" = xyes
27083 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
27087 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
27088 if test "x$ac_cv_func_waitpid" = xyes
27090 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
27096 ac_fn_c_check_header_compile "$LINENO" "/sys/sync/queue.h" "ac_cv_header__sys_sync_queue_h" "$ac_includes_default"
27097 if test "x$ac_cv_header__sys_sync_queue_h" = xyes
27099 printf "%s\n" "#define HAVE__SYS_SYNC_QUEUE_H 1" >>confdefs.h
27102 ac_fn_c_check_header_compile "$LINENO" "/sys/sync/sema.h" "ac_cv_header__sys_sync_sema_h" "$ac_includes_default"
27103 if test "x$ac_cv_header__sys_sync_sema_h" = xyes
27105 printf "%s\n" "#define HAVE__SYS_SYNC_SEMA_H 1" >>confdefs.h
27111 ac_fn_c_check_header_compile "$LINENO" "machine/inline.h" "ac_cv_header_machine_inline_h" "$ac_includes_default"
27112 if test "x$ac_cv_header_machine_inline_h" = xyes
27114 printf "%s\n" "#define HAVE_MACHINE_INLINE_H 1" >>confdefs.h
27117 ac_fn_c_check_header_compile "$LINENO" "sys/pcl720.h" "ac_cv_header_sys_pcl720_h" "$ac_includes_default"
27118 if test "x$ac_cv_header_sys_pcl720_h" = xyes
27120 printf "%s\n" "#define HAVE_SYS_PCL720_H 1" >>confdefs.h
27123 ac_fn_c_check_header_compile "$LINENO" "sys/i8253.h" "ac_cv_header_sys_i8253_h" "$ac_includes_default"
27124 if test "x$ac_cv_header_sys_i8253_h" = xyes
27126 printf "%s\n" "#define HAVE_SYS_I8253_H 1" >>confdefs.h
27133 case "$ac_cv_header_stdatomic_h" in
27135 ac_fn_c_check_func "$LINENO" "atomic_thread_fence" "ac_cv_func_atomic_thread_fence"
27136 if test "x$ac_cv_func_atomic_thread_fence" = xyes
27138 printf "%s\n" "#define HAVE_ATOMIC_THREAD_FENCE 1" >>confdefs.h
27142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for atomic_thread_fence()" >&5
27143 printf %s "checking for atomic_thread_fence()... " >&6; }
27144 if test ${ntp_cv_func_atomic_thread_fence+y}
27146 printf %s "(cached) " >&6
27148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27149 /* end confdefs.h. */
27151 #include <stdatomic.h>
27157 atomic_thread_fence(memory_order_seq_cst);
27164 if ac_fn_c_try_compile "$LINENO"
27166 ntp_cv_func_atomic_thread_fence=yes
27168 ntp_cv_func_atomic_thread_fence=no
27171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_atomic_thread_fence" >&5
27175 printf "%s\n" "$ntp_cv_func_atomic_thread_fence" >&6; }
27184 ac_fn_c_check_func "$LINENO" "ntp_adjtime" "ac_cv_func_ntp_adjtime"
27185 if test "x$ac_cv_func_ntp_adjtime" = xyes
27187 printf "%s\n" "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
27190 ac_fn_c_check_func "$LINENO" "ntp_gettime" "ac_cv_func_ntp_gettime"
27191 if test "x$ac_cv_func_ntp_gettime" = xyes
27193 printf "%s\n" "#define HAVE_NTP_GETTIME 1" >>confdefs.h
27202 case "$ac_cv_func_ntp_gettime" in
27206 ac_fn_c_check_func "$LINENO" "__ntp_gettime" "ac_cv_func___ntp_gettime"
27207 if test "x$ac_cv_func___ntp_gettime" = xyes
27209 printf "%s\n" "#define HAVE___NTP_GETTIME 1" >>confdefs.h
27213 case "$ac_cv_func___ntp_gettime" in
27216 printf "%s\n" "#define ntp_gettime __ntp_gettime" >>confdefs.h
27219 printf "%s\n" "#define HAVE_NTP_GETTIME 1" >>confdefs.h
27224 ac_fn_c_check_func "$LINENO" "adjtimex" "ac_cv_func_adjtimex"
27225 if test "x$ac_cv_func_adjtimex" = xyes
27227 printf "%s\n" "#define HAVE_ADJTIMEX 1" >>confdefs.h
27231 case "$ac_cv_func_adjtimex" in
27234 printf "%s\n" "#define ntp_adjtime adjtimex" >>confdefs.h
27237 printf "%s\n" "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
27242 ac_fn_c_check_func "$LINENO" "__adjtimex" "ac_cv_func___adjtimex"
27243 if test "x$ac_cv_func___adjtimex" = xyes
27245 printf "%s\n" "#define HAVE___ADJTIMEX 1" >>confdefs.h
27249 case "$ac_cv_func___adjtimex" in
27252 printf "%s\n" "#define ntp_adjtime __adjtimex" >>confdefs.h
27255 printf "%s\n" "#define HAVE_NTP_ADJTIME 1" >>confdefs.h
27258 printf "%s\n" "#define adjtimex __adjtimex" >>confdefs.h
27261 printf "%s\n" "#define HAVE_ADJTIMEX 1" >>confdefs.h
27268 case "$have_adjtimex" in
27270 # nlist stuff is only needed for tickadj.
27273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing nlist" >&5
27274 printf %s "checking for library containing nlist... " >&6; }
27275 if test ${ac_cv_search_nlist+y}
27277 printf %s "(cached) " >&6
27279 ac_func_search_save_LIBS=$LIBS
27280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27281 /* end confdefs.h. */
27283 /* Override any GCC internal prototype to avoid an error.
27284 Use char because int might match the return type of a GCC
27285 builtin and then its argument prototype would still apply. */
27295 for ac_lib in '' elf ld mld
27297 if test -z "$ac_lib"; then
27298 ac_res="none required"
27301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27303 if ac_fn_c_try_link "$LINENO"
27305 ac_cv_search_nlist=$ac_res
27307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27309 if test ${ac_cv_search_nlist+y}
27314 if test ${ac_cv_search_nlist+y}
27318 ac_cv_search_nlist=no
27320 rm conftest.$ac_ext
27321 LIBS=$ac_func_search_save_LIBS
27323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nlist" >&5
27324 printf "%s\n" "$ac_cv_search_nlist" >&6; }
27325 ac_res=$ac_cv_search_nlist
27326 if test "$ac_res" != no
27328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27332 # XXX ac_cv_search_nlist will be 'none required', 'no', or '-l...'
27333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing kvm_open" >&5
27334 printf %s "checking for library containing kvm_open... " >&6; }
27335 if test ${ac_cv_search_kvm_open+y}
27337 printf %s "(cached) " >&6
27339 ac_func_search_save_LIBS=$LIBS
27340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27341 /* end confdefs.h. */
27343 /* Override any GCC internal prototype to avoid an error.
27344 Use char because int might match the return type of a GCC
27345 builtin and then its argument prototype would still apply. */
27350 return kvm_open ();
27355 for ac_lib in '' kvm
27357 if test -z "$ac_lib"; then
27358 ac_res="none required"
27361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27363 if ac_fn_c_try_link "$LINENO"
27365 ac_cv_search_kvm_open=$ac_res
27367 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27369 if test ${ac_cv_search_kvm_open+y}
27374 if test ${ac_cv_search_kvm_open+y}
27378 ac_cv_search_kvm_open=no
27380 rm conftest.$ac_ext
27381 LIBS=$ac_func_search_save_LIBS
27383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kvm_open" >&5
27384 printf "%s\n" "$ac_cv_search_kvm_open" >&6; }
27385 ac_res=$ac_cv_search_kvm_open
27386 if test "$ac_res" != no
27388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27391 # XXX ac_cv_search_kvm_open will be 'none required', 'no', or '-l...'
27392 ac_fn_c_check_header_compile "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
27393 if test "x$ac_cv_header_nlist_h" = xyes
27395 printf "%s\n" "#define HAVE_NLIST_H 1" >>confdefs.h
27398 ac_fn_c_check_header_compile "$LINENO" "sys/var.h" "ac_cv_header_sys_var_h" "$ac_includes_default"
27399 if test "x$ac_cv_header_sys_var_h" = xyes
27401 printf "%s\n" "#define HAVE_SYS_VAR_H 1" >>confdefs.h
27405 case "$ac_cv_header_nlist_h" in
27408 printf "%s\n" "#define NLIST_STRUCT 1" >>confdefs.h
27410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
27411 printf %s "checking for n_un in struct nlist... " >&6; }
27412 if test ${ntp_cv_struct_nlist_n_un+y}
27414 printf %s "(cached) " >&6
27416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27417 /* end confdefs.h. */
27433 if ac_fn_c_try_compile "$LINENO"
27435 ntp_cv_struct_nlist_n_un=yes
27437 ntp_cv_struct_nlist_n_un=no
27440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_nlist_n_un" >&5
27444 printf "%s\n" "$ntp_cv_struct_nlist_n_un" >&6; }
27445 case "$ntp_cv_struct_nlist_n_un" in
27448 printf "%s\n" "#define NLIST_NAME_UNION 1" >>confdefs.h
27453 LDADD_NLIST="$LIBS"
27455 { saved_LIBS=; unset saved_LIBS;}
27458 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "
27459 #ifdef HAVE_SYS_TYPES_H
27460 # include <sys/types.h>
27462 #ifdef HAVE_SYS_TIME_H
27463 # include <sys/time.h>
27467 if test "x$ac_cv_header_sys_proc_h" = xyes
27469 printf "%s\n" "#define HAVE_SYS_PROC_H 1" >>confdefs.h
27474 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
27475 #ifdef HAVE_SYS_TIME_H
27476 # include <sys/time.h>
27480 if test "x$ac_cv_header_sys_resource_h" = xyes
27482 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
27487 ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "
27488 #ifdef HAVE_SYS_TYPES_H
27489 # include <sys/types.h>
27491 #ifdef HAVE_SYS_IPC_H
27492 # include <sys/ipc.h>
27496 if test "x$ac_cv_header_sys_shm_h" = xyes
27498 printf "%s\n" "#define HAVE_SYS_SHM_H 1" >>confdefs.h
27503 ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "
27504 #ifdef HAVE_SYS_TIME_H
27505 # include <sys/time.h>
27509 if test "x$ac_cv_header_sys_timex_h" = xyes
27511 printf "%s\n" "#define HAVE_SYS_TIMEX_H 1" >>confdefs.h
27518 # We could do a cv check here, but is it worth it?
27520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27521 /* end confdefs.h. */
27523 #include <sys/socket.h>
27525 #include "Bletch: AF_UNSPEC is undefined!"
27528 #include "Bletch: AF_UNSPEC != 0"
27534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: AF_UNSPEC is zero, as expected." >&5
27535 printf "%s\n" "$as_me: AF_UNSPEC is zero, as expected." >&6;}
27541 if ac_fn_c_try_compile "$LINENO"
27545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27548 printf %s "checking return type of signal handlers... " >&6; }
27549 if test ${ac_cv_type_signal+y}
27551 printf %s "(cached) " >&6
27553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27554 /* end confdefs.h. */
27555 #include <sys/types.h>
27556 #include <signal.h>
27561 return *(signal (0, 0)) (0) == 1;
27566 if ac_fn_c_try_compile "$LINENO"
27568 ac_cv_type_signal=int
27570 ac_cv_type_signal=void
27572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27575 printf "%s\n" "$ac_cv_type_signal" >&6; }
27577 printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
27580 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27581 if test "x$ac_cv_type_off_t" = xyes
27586 printf "%s\n" "#define off_t long int" >>confdefs.h
27590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27591 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27592 if test ${ac_cv_struct_tm+y}
27594 printf %s "(cached) " >&6
27596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27597 /* end confdefs.h. */
27598 #include <sys/types.h>
27605 int *p = &tm.tm_sec;
27611 if ac_fn_c_try_compile "$LINENO"
27613 ac_cv_struct_tm=time.h
27615 ac_cv_struct_tm=sys/time.h
27617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27620 printf "%s\n" "$ac_cv_struct_tm" >&6; }
27621 if test $ac_cv_struct_tm = sys/time.h; then
27623 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
27627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
27628 printf %s "checking for a fallback value for HZ... " >&6; }
27629 if test ${ntp_cv_default_hz+y}
27631 printf %s "(cached) " >&6
27634 ntp_cv_default_hz=100
27636 alpha*-dec-osf4*|alpha*-dec-osf5*)
27637 ntp_cv_default_hz=1024
27640 ntp_cv_default_hz=256
27646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_default_hz" >&5
27647 printf "%s\n" "$ntp_cv_default_hz" >&6; }
27649 printf "%s\n" "#define DEFAULT_HZ $ntp_cv_default_hz" >>confdefs.h
27652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
27653 printf %s "checking if we need to override the system's value for HZ... " >&6; }
27654 if test ${ntp_cv_override_hz+y}
27656 printf %s "(cached) " >&6
27659 ntp_cv_override_hz=no
27661 alpha*-dec-osf4*|alpha*-dec-osf5*)
27662 ntp_cv_override_hz=yes
27665 ntp_cv_override_hz=yes
27668 ntp_cv_override_hz=yes
27671 ntp_cv_override_hz=yes
27674 ntp_cv_override_hz=yes
27680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_override_hz" >&5
27681 printf "%s\n" "$ntp_cv_override_hz" >&6; }
27682 case "$ntp_cv_override_hz" in
27685 printf "%s\n" "#define OVERRIDE_HZ 1" >>confdefs.h
27691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
27692 printf %s "checking for struct rt_msghdr... " >&6; }
27693 if test ${ntp_cv_struct_rt_msghdr+y}
27695 printf %s "(cached) " >&6
27697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27698 /* end confdefs.h. */
27700 #include <sys/types.h>
27701 #include <sys/socket.h>
27702 #include <net/if.h>
27703 #include <net/route.h>
27709 struct rt_msghdr p;
27716 if ac_fn_c_try_compile "$LINENO"
27718 ntp_cv_struct_rt_msghdr=yes
27720 ntp_cv_struct_rt_msghdr=no
27723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_rt_msghdr" >&5
27727 printf "%s\n" "$ntp_cv_struct_rt_msghdr" >&6; }
27729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct rtattr" >&5
27730 printf %s "checking for struct rtattr... " >&6; }
27731 if test ${ntp_cv_rtattr+y}
27733 printf %s "(cached) " >&6
27735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27736 /* end confdefs.h. */
27738 #include <stddef.h>
27739 #include <sys/socket.h>
27740 #include <linux/rtnetlink.h>
27753 if ac_fn_c_try_compile "$LINENO"
27760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rtattr" >&5
27764 printf "%s\n" "$ntp_cv_rtattr" >&6; }
27766 case "$ntp_cv_struct_rt_msghdr$ntp_cv_rtattr" in
27769 printf "%s\n" "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
27771 case "$ntp_cv_rtattr" in
27774 printf "%s\n" "#define HAVE_RTNETLINK 1" >>confdefs.h
27779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
27780 printf %s "checking struct sigaction for sa_sigaction... " >&6; }
27781 if test ${ntp_cv_struct_sigaction_has_sa_sigaction+y}
27783 printf %s "(cached) " >&6
27785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27786 /* end confdefs.h. */
27788 #include <signal.h>
27794 struct sigaction act;
27795 act.sa_sigaction = 0;
27802 if ac_fn_c_try_compile "$LINENO"
27804 ntp_cv_struct_sigaction_has_sa_sigaction=yes
27806 ntp_cv_struct_sigaction_has_sa_sigaction=no
27809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_sigaction_has_sa_sigaction" >&5
27813 printf "%s\n" "$ntp_cv_struct_sigaction_has_sa_sigaction" >&6; }
27814 case "$ntp_cv_struct_sigaction_has_sa_sigaction" in
27817 printf "%s\n" "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
27821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
27822 printf %s "checking for struct ppsclockev... " >&6; }
27823 if test ${ntp_cv_struct_ppsclockev+y}
27825 printf %s "(cached) " >&6
27827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27828 /* end confdefs.h. */
27830 #ifdef HAVE_SYS_TYPES_H
27831 # include <sys/types.h>
27833 #ifdef HAVE_SYS_TERMIOS_H
27834 # include <sys/termios.h>
27836 #ifdef HAVE_SYS_TIME_H
27837 # include <sys/time.h>
27839 #ifdef HAVE_SYS_PPSCLOCK_H
27840 # include <sys/ppsclock.h>
27847 extern struct ppsclockev *pce;
27848 return pce->serial;
27855 if ac_fn_c_try_compile "$LINENO"
27857 ntp_cv_struct_ppsclockev=yes
27859 ntp_cv_struct_ppsclockev=no
27862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ppsclockev" >&5
27866 printf "%s\n" "$ntp_cv_struct_ppsclockev" >&6; }
27867 case "$ntp_cv_struct_ppsclockev" in
27870 printf "%s\n" "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
27874 case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
27876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
27877 printf %s "checking for struct snd_size... " >&6; }
27878 if test ${ntp_cv_struct_snd_size+y}
27880 printf %s "(cached) " >&6
27882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27883 /* end confdefs.h. */
27885 #ifdef HAVE_MACHINE_SOUNDCARD_H
27886 # include <machine/soundcard.h>
27888 #ifdef HAVE_SYS_SOUNDCARD_H
27889 # include <sys/soundcard.h>
27896 extern struct snd_size *ss;
27897 return ss->rec_size;
27904 if ac_fn_c_try_compile "$LINENO"
27906 ntp_cv_struct_snd_size=yes
27908 ntp_cv_struct_snd_size=no
27911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_snd_size" >&5
27915 printf "%s\n" "$ntp_cv_struct_snd_size" >&6; }
27916 case "$ntp_cv_struct_snd_size" in
27919 printf "%s\n" "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
27924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
27925 printf %s "checking struct clockinfo for hz... " >&6; }
27926 if test ${ntp_cv_struct_clockinfo_has_hz+y}
27928 printf %s "(cached) " >&6
27930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27931 /* end confdefs.h. */
27933 #include <sys/time.h>
27939 extern struct clockinfo *pc;
27947 if ac_fn_c_try_compile "$LINENO"
27949 ntp_cv_struct_clockinfo_has_hz=yes
27951 ntp_cv_struct_clockinfo_has_hz=no
27954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
27958 printf "%s\n" "$ntp_cv_struct_clockinfo_has_hz" >&6; }
27959 case "$ntp_cv_struct_clockinfo_has_hz" in
27962 printf "%s\n" "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
27966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
27967 printf %s "checking struct clockinfo for tickadj... " >&6; }
27968 if test ${ntp_cv_struct_clockinfo_has_hz+y}
27970 printf %s "(cached) " >&6
27972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27973 /* end confdefs.h. */
27975 #include <sys/time.h>
27981 extern struct clockinfo *pc;
27982 return pc->tickadj;
27989 if ac_fn_c_try_compile "$LINENO"
27991 ntp_cv_struct_clockinfo_has_hz=yes
27993 ntp_cv_struct_clockinfo_has_hz=no
27996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_clockinfo_has_hz" >&5
28000 printf "%s\n" "$ntp_cv_struct_clockinfo_has_hz" >&6; }
28001 case "$ntp_cv_struct_clockinfo_has_hz" in
28004 printf "%s\n" "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
28008 case "$ntp_cv_struct_ntptimeval" in
28010 ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "
28011 #ifdef HAVE_SYS_TIME_H
28012 # include <sys/time.h>
28014 # ifdef HAVE_TIME_H
28018 #ifdef HAVE_SYS_TIMEX_H
28019 # include <sys/timex.h>
28021 # ifdef HAVE_TIMEX_H
28022 # include <timex.h>
28028 if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = xyes
28031 printf "%s\n" "#define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1" >>confdefs.h
28040 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
28041 if test "x$ac_cv_func_arc4random_buf" = xyes
28043 printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
28051 LIBS="$LIBS $LDADD_LIBNTP"
28052 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
28053 if test "x$ac_cv_func_daemon" = xyes
28055 printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
28059 # XXX if we keep everything in LIBS and also keep separate lists, this simplifies.
28061 { saved_LIBS=; unset saved_LIBS;}
28064 for ac_func in finite
28066 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
28067 if test "x$ac_cv_func_finite" = xyes
28069 printf "%s\n" "#define HAVE_FINITE 1" >>confdefs.h
28073 for ac_func in isfinite
28075 ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
28076 if test "x$ac_cv_func_isfinite" = xyes
28078 printf "%s\n" "#define HAVE_ISFINITE 1" >>confdefs.h
28082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
28083 printf %s "checking for isfinite with <math.h>... " >&6; }
28087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28088 /* end confdefs.h. */
28104 if ac_fn_c_try_link "$LINENO"
28111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28112 conftest$ac_exeext conftest.$ac_ext
28114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28115 printf "%s\n" "$ans" >&6; }
28118 printf "%s\n" "#define HAVE_ISFINITE 1" >>confdefs.h
28131 ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"
28132 if test "x$ac_cv_func_fnmatch" = xyes
28134 printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h
28137 ac_fn_c_check_func "$LINENO" "getbootfile" "ac_cv_func_getbootfile"
28138 if test "x$ac_cv_func_getbootfile" = xyes
28140 printf "%s\n" "#define HAVE_GETBOOTFILE 1" >>confdefs.h
28143 ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
28144 if test "x$ac_cv_func_getuid" = xyes
28146 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h
28149 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
28150 if test "x$ac_cv_func_getrusage" = xyes
28152 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
28155 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
28156 if test "x$ac_cv_func_nanosleep" = xyes
28158 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
28161 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
28162 if test "x$ac_cv_func_strsignal" = xyes
28164 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
28167 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
28168 if test "x$ac_cv_func_strsignal" = xyes
28170 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
28173 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28174 if test "x$ac_cv_func_closefrom" = xyes
28176 printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h
28179 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
28180 if test "x$ac_cv_func_getdtablesize" = xyes
28182 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
28188 # kvm_open() is only used by tickadj. Also see above.
28189 case "$ac_cv_header_kvm_h" in
28191 ac_fn_c_check_func "$LINENO" "kvm_open" "ac_cv_func_kvm_open"
28192 if test "x$ac_cv_func_kvm_open" = xyes
28194 printf "%s\n" "#define HAVE_KVM_OPEN 1" >>confdefs.h
28203 # Just stubs. Sigh.
28205 *) ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
28206 if test "x$ac_cv_func_mkstemp" = xyes
28208 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
28214 ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
28215 if test "x$ac_cv_func_mktime" = xyes
28217 printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h
28223 # XXX only verified thru AIX6.
28224 # Just a stub. Sigh.
28227 # Just a stub in "old" Irix. Sigh.
28229 # In the belief that the fix for bug 1223 fixes mlockall() under linux...
28231 # # there, but more trouble than it is worth for now (resolver problems)
28234 # Apparently there but not working in QNX. Sigh?
28237 # Just a stub. Sigh.
28239 alpha*-dec-osf4*|alpha*-dec-osf5*)
28240 # mlockall is there, as a #define calling memlk via <sys/mman.h>
28241 # Not easy to test for - cheat.
28243 for ac_func in memlk
28245 ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
28246 if test "x$ac_cv_func_memlk" = xyes
28248 printf "%s\n" "#define HAVE_MEMLK 1" >>confdefs.h
28249 ac_cv_func_mlockall=yes
28253 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
28254 if test "x$ac_cv_func_mlockall" = xyes
28256 printf "%s\n" "#define HAVE_MLOCKALL 1" >>confdefs.h
28261 *) ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
28262 if test "x$ac_cv_func_mlockall" = xyes
28264 printf "%s\n" "#define HAVE_MLOCKALL 1" >>confdefs.h
28270 ac_fn_c_check_func "$LINENO" "nice" "ac_cv_func_nice"
28271 if test "x$ac_cv_func_nice" = xyes
28273 printf "%s\n" "#define HAVE_NICE 1" >>confdefs.h
28276 ac_fn_c_check_func "$LINENO" "plock" "ac_cv_func_plock"
28277 if test "x$ac_cv_func_plock" = xyes
28279 printf "%s\n" "#define HAVE_PLOCK 1" >>confdefs.h
28282 ac_fn_c_check_func "$LINENO" "pututline" "ac_cv_func_pututline"
28283 if test "x$ac_cv_func_pututline" = xyes
28285 printf "%s\n" "#define HAVE_PUTUTLINE 1" >>confdefs.h
28288 ac_fn_c_check_func "$LINENO" "pututxline" "ac_cv_func_pututxline"
28289 if test "x$ac_cv_func_pututxline" = xyes
28291 printf "%s\n" "#define HAVE_PUTUTXLINE 1" >>confdefs.h
28294 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
28295 if test "x$ac_cv_func_readlink" = xyes
28297 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
28300 ac_fn_c_check_func "$LINENO" "rtprio" "ac_cv_func_rtprio"
28301 if test "x$ac_cv_func_rtprio" = xyes
28303 printf "%s\n" "#define HAVE_RTPRIO 1" >>confdefs.h
28308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a POSIX-2008 compliant realpath()" >&5
28309 printf %s "checking for a POSIX-2008 compliant realpath()... " >&6; }
28313 ac_cpp='$CPP $CPPFLAGS'
28314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28319 if test "$cross_compiling" = yes
28321 ans="CROSS COMPILE!"
28324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28325 /* end confdefs.h. */
28327 #include <sys/param.h>
28328 #include <stdlib.h>
28329 int main() { return (NULL == realpath(".", NULL)); }
28332 if ac_fn_c_try_run "$LINENO"
28338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28339 conftest.$ac_objext conftest.beam conftest.$ac_ext
28342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28343 printf "%s\n" "$ans" >&6; }
28347 printf "%s\n" "#define HAVE_FUNC_POSIX_REALPATH 1" >>confdefs.h
28353 ac_cpp='$CPP $CPPFLAGS'
28354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28361 # XXX only verified thru AIX6.
28362 # Just a stub in AIX 4. Sigh.
28365 # Just stubs in solaris2.5. Sigh.
28367 *) ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
28368 if test "x$ac_cv_func_sched_setscheduler" = xyes
28370 printf "%s\n" "#define HAVE_SCHED_SETSCHEDULER 1" >>confdefs.h
28376 ac_fn_c_check_func "$LINENO" "setlinebuf" "ac_cv_func_setlinebuf"
28377 if test "x$ac_cv_func_setlinebuf" = xyes
28379 printf "%s\n" "#define HAVE_SETLINEBUF 1" >>confdefs.h
28382 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
28383 if test "x$ac_cv_func_setpgid" = xyes
28385 printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h
28388 ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
28389 if test "x$ac_cv_func_setpriority" = xyes
28391 printf "%s\n" "#define HAVE_SETPRIORITY 1" >>confdefs.h
28394 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
28395 if test "x$ac_cv_func_setsid" = xyes
28397 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
28400 ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf"
28401 if test "x$ac_cv_func_setvbuf" = xyes
28403 printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h
28407 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
28408 if test "x$ac_cv_func_strdup" = xyes
28410 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
28413 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
28414 if test "x$ac_cv_func_strnlen" = xyes
28416 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
28419 ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
28420 if test "x$ac_cv_func_memchr" = xyes
28422 printf "%s\n" "#define HAVE_MEMCHR 1" >>confdefs.h
28425 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
28426 if test "x$ac_cv_func_strerror" = xyes
28428 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
28431 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
28432 if test "x$ac_cv_func_setrlimit" = xyes
28434 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
28437 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
28438 if test "x$ac_cv_func_strchr" = xyes
28440 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
28446 # XXX only verified thru AIX6.
28447 # Just stubs. Sigh.
28450 # Just stubs. Sigh.
28453 # Just stubs. Sigh.
28456 # Just stubs. Sigh.
28459 ac_fn_c_check_func "$LINENO" "timer_create" "ac_cv_func_timer_create"
28460 if test "x$ac_cv_func_timer_create" = xyes
28462 printf "%s\n" "#define HAVE_TIMER_CREATE 1" >>confdefs.h
28471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_MEMLOCK" >&5
28472 printf %s "checking for RLIMIT_MEMLOCK... " >&6; }
28473 if test ${ntp_cv_rlimit_memlock+y}
28475 printf %s "(cached) " >&6
28477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28478 /* end confdefs.h. */
28480 #ifdef HAVE_SYS_TYPES_H
28481 # include <sys/types.h>
28483 #ifdef HAVE_SYS_TIME_H
28484 # include <sys/time.h>
28486 #ifdef HAVE_SYS_RESOURCE_H
28487 # include <sys/resource.h>
28494 getrlimit(RLIMIT_MEMLOCK, 0);
28501 if ac_fn_c_try_compile "$LINENO"
28503 ntp_cv_rlimit_memlock=yes
28505 ntp_cv_rlimit_memlock=no
28508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_memlock" >&5
28512 printf "%s\n" "$ntp_cv_rlimit_memlock" >&6; }
28515 ntp_dflt_rlimit_memlock="-1" ;;
28516 *) ntp_dflt_rlimit_memlock="32" ;;
28518 case "$ntp_cv_rlimit_memlock" in
28521 HAVE_RLIMIT_MEMLOCK=" memlock $ntp_dflt_rlimit_memlock" ;;
28524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_STACK" >&5
28525 printf %s "checking for RLIMIT_STACK... " >&6; }
28526 if test ${ntp_cv_rlimit_stack+y}
28528 printf %s "(cached) " >&6
28530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28531 /* end confdefs.h. */
28533 #ifdef HAVE_SYS_TYPES_H
28534 # include <sys/types.h>
28536 #ifdef HAVE_SYS_TIME_H
28537 # include <sys/time.h>
28539 #ifdef HAVE_SYS_RESOURCE_H
28540 # include <sys/resource.h>
28547 getrlimit(RLIMIT_STACK, 0);
28554 if ac_fn_c_try_compile "$LINENO"
28556 ntp_cv_rlimit_stack=yes
28558 ntp_cv_rlimit_stack=no
28561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rlimit_stack" >&5
28565 printf "%s\n" "$ntp_cv_rlimit_stack" >&6; }
28566 case "$ntp_cv_rlimit_stack" in
28569 HAVE_RLIMIT_STACK=" stacksize 50"
28572 # HMS: Only if we are doing the MLOCKALL stuff...
28573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the default number of 4k stack pages" >&5
28574 printf %s "checking for the default number of 4k stack pages... " >&6; }
28576 # Check whether --with-stack-limit was given.
28577 if test ${with_stack_limit+y}
28579 withval=$with_stack_limit; ans=$withval
28597 *) as_fn_error $? "\"--with-stack-limit requires an integer argument.\"" "$LINENO" 5
28600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28601 printf "%s\n" "$ans" >&6; }
28603 printf "%s\n" "#define DFLT_RLIMIT_STACK $ans" >>confdefs.h
28606 # HMS: only if we have RLIMIT_MEMLOCK
28607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the default number of megabytes to MEMLOCK" >&5
28608 printf %s "checking for the default number of megabytes to MEMLOCK... " >&6; }
28610 # Check whether --with-memlock was given.
28611 if test ${with_memlock+y}
28613 withval=$with_memlock; ans=$withval
28621 ans=$ntp_dflt_rlimit_memlock
28624 *) as_fn_error $? "\"--with-memlock requires an integer argument.\"" "$LINENO" 5
28627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
28628 printf "%s\n" "$ans" >&6; }
28630 printf "%s\n" "#define DFLT_RLIMIT_MEMLOCK $ans" >>confdefs.h
28635 # some OSes prefer _exit() in forked children to exit()
28636 ac_fn_c_check_func "$LINENO" "_exit" "ac_cv_func__exit"
28637 if test "x$ac_cv_func__exit" = xyes
28639 printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
28643 ntp_worker_child_exit=exit
28644 case "$ac_cv_func__exit::$host_os" in
28646 ntp_worker_child_exit=_exit
28649 ntp_worker_child_exit=_exit
28653 printf "%s\n" "#define WORKER_CHILD_EXIT $ntp_worker_child_exit" >>confdefs.h
28656 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
28657 if test "x$ac_cv_func_umask" = xyes
28659 printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h
28662 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
28663 if test "x$ac_cv_func_uname" = xyes
28665 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
28668 ac_fn_c_check_func "$LINENO" "updwtmp" "ac_cv_func_updwtmp"
28669 if test "x$ac_cv_func_updwtmp" = xyes
28671 printf "%s\n" "#define HAVE_UPDWTMP 1" >>confdefs.h
28674 ac_fn_c_check_func "$LINENO" "updwtmpx" "ac_cv_func_updwtmpx"
28675 if test "x$ac_cv_func_updwtmpx" = xyes
28677 printf "%s\n" "#define HAVE_UPDWTMPX 1" >>confdefs.h
28684 # http://bugs.ntp.org/737
28685 case "$ac_cv_func_recvmsg" in
28687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
28688 printf %s "checking if we need extra help to define struct iovec... " >&6; }
28689 if test ${ntp_cv_struct_iovec_help+y}
28691 printf %s "(cached) " >&6
28695 for ntp_cv_struct_iovec_help in '0' '1'; do
28696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28697 /* end confdefs.h. */
28699 #ifdef HAVE_SYS_TYPES_H
28700 # include <sys/types.h>
28702 #ifdef HAVE_SYS_SOCKET_H
28703 # include <sys/socket.h>
28705 #if $ntp_cv_struct_iovec_help
28706 # include <sys/uio.h>
28721 x = recvmsg(s, &mh, flags);
28729 if ac_fn_c_try_compile "$LINENO"
28731 compiled=yes ; break 1
28733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28735 case "$compiled" in
28737 ntp_cv_struct_iovec_help=0
28739 { compiled=; unset compiled;}
28743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_iovec_help" >&5
28744 printf "%s\n" "$ntp_cv_struct_iovec_help" >&6; }
28745 case "$ntp_cv_struct_iovec_help" in
28748 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
28753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
28754 printf %s "checking number of arguments taken by setpgrp()... " >&6; }
28755 if test ${ntp_cv_func_setpgrp_nargs+y}
28757 printf %s "(cached) " >&6
28759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28760 /* end confdefs.h. */
28762 #ifdef HAVE_SYS_TYPES_H
28763 # include <sys/types.h>
28765 #ifdef HAVE_UNISTD_H
28766 # include <unistd.h>
28780 if ac_fn_c_try_compile "$LINENO"
28782 ntp_cv_func_setpgrp_nargs=2
28784 ntp_cv_func_setpgrp_nargs=0
28787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_setpgrp_nargs" >&5
28791 printf "%s\n" "$ntp_cv_func_setpgrp_nargs" >&6; }
28792 case "$ntp_cv_func_setpgrp_nargs" in
28795 printf "%s\n" "#define HAVE_SETPGRP_0 1" >>confdefs.h
28799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
28800 printf %s "checking if we need to declare 'errno'... " >&6; }
28801 if test ${ntp_cv_decl_errno+y}
28803 printf %s "(cached) " >&6
28805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28806 /* end confdefs.h. */
28808 #ifdef HAVE_ERRNO_H
28809 # include <errno.h>
28823 if ac_fn_c_try_compile "$LINENO"
28825 ntp_cv_decl_errno=no
28827 ntp_cv_decl_errno=yes
28830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_errno" >&5
28834 printf "%s\n" "$ntp_cv_decl_errno" >&6; }
28835 case "$ntp_cv_decl_errno" in
28838 printf "%s\n" "#define DECL_ERRNO 1" >>confdefs.h
28842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
28843 printf %s "checking if we may declare 'h_errno'... " >&6; }
28844 if test ${ntp_cv_decl_h_errno+y}
28846 printf %s "(cached) " >&6
28848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28849 /* end confdefs.h. */
28851 #include <sys/types.h>
28852 #ifdef HAVE_NETINET_IN_H
28853 # include <netinet/in.h>
28855 #ifdef HAVE_ARPA_NAMESER_H
28856 # include <arpa/nameser.h>
28858 #ifdef HAVE_NETDB_H
28859 # include <netdb.h>
28861 #ifdef HAVE_RESOLV_H
28862 # include <resolv.h>
28869 extern int h_errno;
28876 if ac_fn_c_try_compile "$LINENO"
28878 ntp_cv_decl_h_errno=yes
28880 ntp_cv_decl_h_errno=no
28883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_h_errno" >&5
28887 printf "%s\n" "$ntp_cv_decl_h_errno" >&6; }
28888 case "$ntp_cv_decl_h_errno" in
28891 printf "%s\n" "#define DECL_H_ERRNO 1" >>confdefs.h
28895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
28896 printf %s "checking if declaring 'syscall()' is ok... " >&6; }
28897 if test ${ntp_cv_decl_syscall+y}
28899 printf %s "(cached) " >&6
28901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28902 /* end confdefs.h. */
28904 #ifdef HAVE_SYS_TYPES_H
28905 # include <sys/types.h>
28907 #ifdef HAVE_UNISTD_H
28908 # include <unistd.h>
28915 extern int syscall (int, ...);
28922 if ac_fn_c_try_compile "$LINENO"
28924 ntp_cv_decl_syscall=yes
28926 ntp_cv_decl_syscall=no
28929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_decl_syscall" >&5
28933 printf "%s\n" "$ntp_cv_decl_syscall" >&6; }
28934 case "$ntp_cv_decl_syscall" in
28937 printf "%s\n" "#define DECL_SYSCALL 1" >>confdefs.h
28944 printf "%s\n" "#define DECL_HSTRERROR_0 1" >>confdefs.h
28945 # Needed for XLC under AIX 4.3.2
28949 printf "%s\n" "#define DECL_ADJTIME_0 1" >>confdefs.h
28952 printf "%s\n" "#define DECL_INET_NTOA_0 1" >>confdefs.h
28955 printf "%s\n" "#define DECL_MKTEMP_0 1" >>confdefs.h
28958 printf "%s\n" "#define DECL_SELECT_0 1" >>confdefs.h
28961 printf "%s\n" "#define DECL_SETITIMER_0 1" >>confdefs.h
28964 printf "%s\n" "#define DECL_SYSLOG_0 1" >>confdefs.h
28967 printf "%s\n" "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
28972 printf "%s\n" "#define DECL_PLOCK_0 1" >>confdefs.h
28975 printf "%s\n" "#define DECL_STIME_1 1" >>confdefs.h
28980 printf "%s\n" "#define DECL_ADJTIME_0 1" >>confdefs.h
28985 printf "%s\n" "#define DECL_ADJTIME_0 1" >>confdefs.h
28988 printf "%s\n" "#define DECL_BZERO_0 1" >>confdefs.h
28991 printf "%s\n" "#define DECL_IOCTL_0 1" >>confdefs.h
28994 printf "%s\n" "#define DECL_IPC_0 1" >>confdefs.h
28997 printf "%s\n" "#define DECL_MEMMOVE_0 1" >>confdefs.h
29000 printf "%s\n" "#define DECL_MKTEMP_0 1" >>confdefs.h
29003 printf "%s\n" "#define DECL_RENAME_0 1" >>confdefs.h
29006 printf "%s\n" "#define DECL_SELECT_0 1" >>confdefs.h
29009 printf "%s\n" "#define DECL_SETITIMER_0 1" >>confdefs.h
29012 printf "%s\n" "#define DECL_SETPRIORITY_0 1" >>confdefs.h
29015 printf "%s\n" "#define DECL_STDIO_0 1" >>confdefs.h
29018 printf "%s\n" "#define DECL_STRTOL_0 1" >>confdefs.h
29021 printf "%s\n" "#define DECL_SYSLOG_0 1" >>confdefs.h
29024 printf "%s\n" "#define DECL_TIME_0 1" >>confdefs.h
29027 printf "%s\n" "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
29030 printf "%s\n" "#define DECL_TOLOWER_0 1" >>confdefs.h
29035 printf "%s\n" "#define DECL_MKSTEMP_0 1" >>confdefs.h
29038 printf "%s\n" "#define DECL_SETPRIORITY_1 1" >>confdefs.h
29043 printf "%s\n" "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
29050 printf "%s\n" "#define DECL_ADJTIME_0 1" >>confdefs.h
29053 printf "%s\n" "#define DECL_BCOPY_0 1" >>confdefs.h
29056 printf "%s\n" "#define DECL_BZERO_0 1" >>confdefs.h
29059 printf "%s\n" "#define DECL_IOCTL_0 1" >>confdefs.h
29062 printf "%s\n" "#define DECL_IPC_0 1" >>confdefs.h
29065 printf "%s\n" "#define DECL_MEMMOVE_0 1" >>confdefs.h
29068 printf "%s\n" "#define DECL_MKTEMP_0 1" >>confdefs.h
29071 printf "%s\n" "#define DECL_MKSTEMP_0 1" >>confdefs.h
29074 printf "%s\n" "#define DECL_RENAME_0 1" >>confdefs.h
29077 printf "%s\n" "#define DECL_SELECT_0 1" >>confdefs.h
29080 printf "%s\n" "#define DECL_SETITIMER_0 1" >>confdefs.h
29083 printf "%s\n" "#define DECL_SETPRIORITY_0 1" >>confdefs.h
29086 printf "%s\n" "#define DECL_SIGVEC_0 1" >>confdefs.h
29088 case "`basename $ac_cv_prog_CC`" in
29091 printf "%s\n" "#define DECL_STDIO_0 1" >>confdefs.h
29096 printf "%s\n" "#define DECL_STRTOL_0 1" >>confdefs.h
29099 printf "%s\n" "#define DECL_SYSLOG_0 1" >>confdefs.h
29102 printf "%s\n" "#define DECL_TIME_0 1" >>confdefs.h
29105 printf "%s\n" "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
29108 printf "%s\n" "#define DECL_TOLOWER_0 1" >>confdefs.h
29111 printf "%s\n" "#define DECL_TOUPPER_0 1" >>confdefs.h
29114 printf "%s\n" "#define DECL_STRERROR_0 1" >>confdefs.h
29119 printf "%s\n" "#define DECL_ADJTIME_0 1" >>confdefs.h
29122 printf "%s\n" "#define DECL_BZERO_0 1" >>confdefs.h
29125 printf "%s\n" "#define DECL_CFSETISPEED_0 1" >>confdefs.h
29128 printf "%s\n" "#define DECL_IOCTL_0 1" >>confdefs.h
29131 printf "%s\n" "#define DECL_IPC_0 1" >>confdefs.h
29134 printf "%s\n" "#define DECL_MKTEMP_0 1" >>confdefs.h
29137 printf "%s\n" "#define DECL_NLIST_0 1" >>confdefs.h
29140 printf "%s\n" "#define DECL_PLOCK_0 1" >>confdefs.h
29143 printf "%s\n" "#define DECL_SELECT_0 1" >>confdefs.h
29146 printf "%s\n" "#define DECL_SETITIMER_0 1" >>confdefs.h
29149 printf "%s\n" "#define DECL_SETPRIORITY_0 1" >>confdefs.h
29152 printf "%s\n" "#define DECL_STIME_0 1" >>confdefs.h
29155 printf "%s\n" "#define DECL_SYSLOG_0 1" >>confdefs.h
29158 printf "%s\n" "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
29166 printf "%s\n" "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
29174 printf "%s\n" "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
29178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
29179 printf %s "checking if we will open the broadcast socket... " >&6; }
29180 if test ${ntp_cv_var_open_bcast_socket+y}
29182 printf %s "(cached) " >&6
29190 ntp_cv_var_open_bcast_socket=$ans
29194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_open_bcast_socket" >&5
29195 printf "%s\n" "$ntp_cv_var_open_bcast_socket" >&6; }
29196 case "$ntp_cv_var_open_bcast_socket" in
29199 printf "%s\n" "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
29206 printf "%s\n" "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
29210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
29211 printf %s "checking if process groups are set with -pid... " >&6; }
29212 if test ${ntp_cv_arg_setpgrp_negpid+y}
29214 printf %s "(cached) " >&6
29237 ntp_cv_arg_setpgrp_negpid=$ans
29241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_arg_setpgrp_negpid" >&5
29242 printf "%s\n" "$ntp_cv_arg_setpgrp_negpid" >&6; }
29243 case "$ntp_cv_arg_setpgrp_negpid" in
29246 printf "%s\n" "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
29250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
29251 printf %s "checking if we need a ctty for F_SETOWN... " >&6; }
29252 if test ${ntp_cv_func_ctty_for_f_setown+y}
29254 printf %s "(cached) " >&6
29264 # NetBSD versions prior to 3.99.8 require a CTTY for F_SETOWN,
29265 # while later versions will fail a ioctl(TIOCSCTTY, 0) call in
29266 # some cases and so should not have USE_FSETOWNCTTY. "netbsd"
29267 # in $host may be followed by "aout", "ecoff", or "elf".
29268 *-*-netbsd*[a-z]3.[0-8]*|*-*-netbsd*[a-z][0-2].*|*-*-netbsd*[a-z]3.99.[0-7])
29271 *-*-netbsd3.[0-8]*|*-*-netbsd[0-2].*|*-*-netbsd3.99.[0-7])
29287 ntp_cv_func_ctty_for_f_setown=$ans
29291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_ctty_for_f_setown" >&5
29292 printf "%s\n" "$ntp_cv_func_ctty_for_f_setown" >&6; }
29293 case "$ntp_cv_func_ctty_for_f_setown" in
29296 printf "%s\n" "#define USE_FSETOWNCTTY 1" >>confdefs.h
29300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the OS clears cached routes when more specifics become available" >&5
29301 printf %s "checking if the OS clears cached routes when more specifics become available... " >&6; }
29302 if test ${ntp_cv_os_routeupdates+y}
29304 printf %s "(cached) " >&6
29315 ntp_cv_os_routeupdates=$ans
29319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_routeupdates" >&5
29320 printf "%s\n" "$ntp_cv_os_routeupdates" >&6; }
29321 case "$ntp_cv_os_routeupdates" in
29324 printf "%s\n" "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
29328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the wildcard socket needs REUSEADDR to bind other addresses" >&5
29329 printf %s "checking if the wildcard socket needs REUSEADDR to bind other addresses... " >&6; }
29330 if test ${ntp_cv_os_wildcardreuse+y}
29332 printf %s "(cached) " >&6
29342 ntp_cv_os_wildcardreuse=$ans
29346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_os_wildcardreuse" >&5
29347 printf "%s\n" "$ntp_cv_os_wildcardreuse" >&6; }
29348 case "$ntp_cv_os_wildcardreuse" in
29351 printf "%s\n" "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
29358 printf "%s\n" "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
29362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
29363 printf %s "checking for a minimum recommended value of tickadj... " >&6; }
29364 if test ${ntp_cv_var_min_rec_tickadj+y}
29366 printf %s "(cached) " >&6
29375 ntp_cv_var_min_rec_tickadj=$ans
29379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_min_rec_tickadj" >&5
29380 printf "%s\n" "$ntp_cv_var_min_rec_tickadj" >&6; }
29381 case "$ntp_cv_var_min_rec_tickadj" in
29386 printf "%s\n" "#define MIN_REC_TICKADJ $ntp_cv_var_min_rec_tickadj" >>confdefs.h
29390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
29391 printf %s "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
29392 if test ${ntp_cv_no_parenb_ignpar+y}
29394 printf %s "(cached) " >&6
29405 i?86-*-freebsd[123].*)
29414 ntp_cv_no_parenb_ignpar=$ans
29418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_no_parenb_ignpar" >&5
29419 printf "%s\n" "$ntp_cv_no_parenb_ignpar" >&6; }
29420 case "$ntp_cv_no_parenb_ignpar" in
29423 printf "%s\n" "#define NO_PARENB_IGNPAR 1" >>confdefs.h
29427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we're including processing time debugging code" >&5
29428 printf %s "checking if we're including processing time debugging code... " >&6; }
29429 # Check whether --enable-debug-timing was given.
29430 if test ${enable_debug_timing+y}
29432 enableval=$enable_debug_timing; ntp_ok=$enableval
29441 printf "%s\n" "#define DEBUG_TIMING 1" >>confdefs.h
29444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29445 printf "%s\n" "$ntp_ok" >&6; }
29447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
29448 printf %s "checking for a the number of minutes in a DST adjustment... " >&6; }
29449 # Check whether --enable-dst-minutes was given.
29450 if test ${enable_dst_minutes+y}
29452 enableval=$enable_dst_minutes; ans=$enableval
29459 printf "%s\n" "#define DSTMINUTES $ans" >>confdefs.h
29461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
29462 printf "%s\n" "$ans" >&6; }
29464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry permanent DNS failures" >&5
29465 printf %s "checking if ntpd will retry permanent DNS failures... " >&6; }
29466 # Check whether --enable-ignore-dns-errors was given.
29467 if test ${enable_ignore_dns_errors+y}
29469 enableval=$enable_ignore_dns_errors; ans=$enableval
29478 printf "%s\n" "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
29481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
29482 printf "%s\n" "$ans" >&6; }
29484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
29485 printf %s "checking availability of ntp_{adj,get}time()... " >&6; }
29486 if test ${ntp_cv_var_ntp_syscalls+y}
29488 printf %s "(cached) " >&6
29491 ntp_cv_var_ntp_syscalls=no
29492 case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
29494 ntp_cv_var_ntp_syscalls=libc
29497 ntp_cv_var_ntp_syscalls=inline
29500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29501 /* end confdefs.h. */
29503 #include <sys/syscall.h>
29504 #if !defined(SYS_ntp_gettime) || !defined(SYS_ntp_adjtime)
29509 if ac_fn_c_try_cpp "$LINENO"
29511 ntp_cv_var_ntp_syscalls=kernel
29514 rm -f conftest.err conftest.i conftest.$ac_ext
29520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_ntp_syscalls" >&5
29521 printf "%s\n" "$ntp_cv_var_ntp_syscalls" >&6; }
29522 case "$ntp_cv_var_ntp_syscalls" in
29525 printf "%s\n" "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
29530 printf "%s\n" "#define NTP_SYSCALLS_STD 1" >>confdefs.h
29535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
29536 printf %s "checking if sys/timex.h has STA_FLL... " >&6; }
29537 if test ${ntp_cv_var_sta_fll+y}
29539 printf %s "(cached) " >&6
29541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29542 /* end confdefs.h. */
29544 #include <sys/timex.h>
29550 if ac_fn_c_try_cpp "$LINENO"
29552 ntp_cv_var_sta_fll=yes
29554 ntp_cv_var_sta_fll=no
29557 rm -f conftest.err conftest.i conftest.$ac_ext
29560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_sta_fll" >&5
29561 printf "%s\n" "$ntp_cv_var_sta_fll" >&6; }
29563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
29564 printf %s "checking if we have kernel PLL support... " >&6; }
29565 if test ${ntp_cv_var_kernel_pll+y}
29567 printf %s "(cached) " >&6
29569 case "$ac_cv_header_sys_timex_h$ntp_cv_struct_ntptimeval$ntp_cv_var_sta_fll$ntp_cv_var_ntp_syscalls" in
29571 ntp_cv_var_kernel_pll=no
29573 *) ntp_cv_var_kernel_pll=yes
29579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_var_kernel_pll" >&5
29580 printf "%s\n" "$ntp_cv_var_kernel_pll" >&6; }
29581 case "$ntp_cv_var_kernel_pll" in
29584 printf "%s\n" "#define KERNEL_PLL 1" >>confdefs.h
29588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
29589 printf %s "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
29590 if test ${ntp_cv_size_returned_in_buffer+y}
29592 printf %s "(cached) " >&6
29607 ntp_cv_size_returned_in_buffer=$ans
29611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_size_returned_in_buffer" >&5
29612 printf "%s\n" "$ntp_cv_size_returned_in_buffer" >&6; }
29613 case "$ntp_cv_size_returned_in_buffer" in
29616 printf "%s\n" "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
29620 # Check for ioctls TIOCGPPSEV
29621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCGPPSEV" >&5
29622 printf %s "checking for TTY PPS ioctl TIOCGPPSEV... " >&6; }
29623 case "$ac_cv_header_termios_h" in
29625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29626 /* end confdefs.h. */
29628 #include <termios.h>
29634 if ac_fn_c_try_cpp "$LINENO"
29641 rm -f conftest.err conftest.i conftest.$ac_ext
29650 printf "%s\n" "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
29653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29654 printf "%s\n" "$ntp_ok" >&6; }
29656 # Check for ioctls TIOCSPPS
29657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl TIOCSPPS" >&5
29658 printf %s "checking for TTY PPS ioctl TIOCSPPS... " >&6; }
29659 case "$ac_cv_header_termios_h" in
29661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29662 /* end confdefs.h. */
29664 #include <termios.h>
29670 if ac_fn_c_try_cpp "$LINENO"
29677 rm -f conftest.err conftest.i conftest.$ac_ext
29686 printf "%s\n" "#define HAVE_TIOCSPPS 1" >>confdefs.h
29689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29690 printf "%s\n" "$ntp_ok" >&6; }
29692 # Check for ioctls CIOGETEV
29693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TTY PPS ioctl CIOGETEV" >&5
29694 printf %s "checking for TTY PPS ioctl CIOGETEV... " >&6; }
29695 case "$ac_cv_header_sys_ppsclock_h" in
29697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29698 /* end confdefs.h. */
29700 #include <sys/ppsclock.h>
29706 if ac_fn_c_try_cpp "$LINENO"
29713 rm -f conftest.err conftest.i conftest.$ac_ext
29722 printf "%s\n" "#define HAVE_CIOGETEV 1" >>confdefs.h
29725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29726 printf "%s\n" "$ntp_ok" >&6; }
29728 # ATOM/PPSAPI stuff.
29732 # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
29734 # The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
29735 # The PPSAPI needs struct timespec.
29736 # The PPSAPI also needs a timepps header.
29738 case "$ac_cv_c_inline$ntp_cv_struct_timespec" in
29740 case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
29741 *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
29743 printf "%s\n" "#define HAVE_PPSAPI 1" >>confdefs.h
29748 ntp_ripe_ncc_ok=yes
29754 # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
29755 ac_fn_c_check_header_compile "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
29756 if test "x$ac_cv_header_linux_serial_h" = xyes
29761 case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
29763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
29764 printf %s "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
29765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29766 /* end confdefs.h. */
29768 #include <sys/time.h>
29770 #include <sys/ppsclock.h>
29771 #include <linux/serial.h>
29773 #ifndef TIOCGSERIAL
29776 #ifndef TIOCSSERIAL
29779 #ifndef ASYNC_PPS_CD_POS
29782 #ifndef ASYNC_PPS_CD_NEG
29790 if ac_fn_c_try_cpp "$LINENO"
29797 rm -f conftest.err conftest.i conftest.$ac_ext
29798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29799 printf "%s\n" "$ntp_ok" >&6; }
29808 printf "%s\n" "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
29812 # Check for SHMEM_STATUS support
29813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
29814 printf %s "checking SHMEM_STATUS support... " >&6; }
29815 case "$ac_cv_header_sys_mman_h" in
29826 printf "%s\n" "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
29829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29830 printf "%s\n" "$ntp_ok" >&6; }
29834 # HPUX only, and by explicit request
29835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
29836 printf %s "checking Datum/Bancomm bc635/VME interface... " >&6; }
29837 # Check whether --enable-BANCOMM was given.
29838 if test ${enable_BANCOMM+y}
29840 enableval=$enable_BANCOMM; ntp_ok=$enableval
29850 printf "%s\n" "#define CLOCK_BANC 1" >>confdefs.h
29852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing bcStartPci" >&5
29853 printf %s "checking for library containing bcStartPci... " >&6; }
29854 if test ${ac_cv_search_bcStartPci+y}
29856 printf %s "(cached) " >&6
29858 ac_func_search_save_LIBS=$LIBS
29859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29860 /* end confdefs.h. */
29862 /* Override any GCC internal prototype to avoid an error.
29863 Use char because int might match the return type of a GCC
29864 builtin and then its argument prototype would still apply. */
29865 char bcStartPci ();
29869 return bcStartPci ();
29874 for ac_lib in '' bcsdk
29876 if test -z "$ac_lib"; then
29877 ac_res="none required"
29880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29882 if ac_fn_c_try_link "$LINENO"
29884 ac_cv_search_bcStartPci=$ac_res
29886 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29888 if test ${ac_cv_search_bcStartPci+y}
29893 if test ${ac_cv_search_bcStartPci+y}
29897 ac_cv_search_bcStartPci=no
29899 rm conftest.$ac_ext
29900 LIBS=$ac_func_search_save_LIBS
29902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bcStartPci" >&5
29903 printf "%s\n" "$ac_cv_search_bcStartPci" >&6; }
29904 ac_res=$ac_cv_search_bcStartPci
29905 if test "$ac_res" != no
29907 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29914 printf "%s\n" "$ntp_ok" >&6; }
29915 case "$ntp_ok$host" in
29917 yes*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29918 printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
29921 #HPUX only, and only by explicit request
29922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
29923 printf %s "checking TrueTime GPS receiver/VME interface... " >&6; }
29924 # Check whether --enable-GPSVME was given.
29925 if test ${enable_GPSVME+y}
29927 enableval=$enable_GPSVME; ntp_ok=$enableval
29937 printf "%s\n" "#define CLOCK_GPSVME 1" >>confdefs.h
29941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
29942 printf "%s\n" "$ntp_ok" >&6; }
29943 case "$ntp_ok$host" in
29945 yes*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
29946 printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
29949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
29950 printf %s "checking for PCL720 clock support... " >&6; }
29951 case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
29954 printf "%s\n" "#define CLOCK_PPS720 1" >>confdefs.h
29962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
29963 printf "%s\n" "$ans" >&6; }
29965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
29966 printf %s "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
29967 # Check whether --enable-all-clocks was given.
29968 if test ${enable_all_clocks+y}
29970 enableval=$enable_all_clocks; ntp_eac=$enableval
29976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
29977 printf "%s\n" "$ntp_eac" >&6; }
29979 # HMS: Should we also require ntp_parse_ok?
29980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
29981 printf %s "checking if we have support for PARSE clocks... " >&6; }
29982 case "$ntp_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
29989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
29990 printf "%s\n" "$ntp_canparse" >&6; }
29992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
29993 printf %s "checking if we have support for audio clocks... " >&6; }
29994 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
29998 printf "%s\n" "#define HAVE_AUDIO /**/" >>confdefs.h
30001 *) ntp_canaudio=no ;;
30003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
30004 printf "%s\n" "$ntp_canaudio" >&6; }
30006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
30007 printf %s "checking if we have support for the SHM refclock interface... " >&6; }
30008 case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
30012 *) ntp_canshm=no ;;
30014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
30015 printf "%s\n" "$ntp_canshm" >&6; }
30017 # Test for termios TIOCMBIS modem control (ACTS, Heath, Palisade)
30018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for termios modem control" >&5
30019 printf %s "checking for termios modem control... " >&6; }
30020 if test ${ntp_cv_modem_control+y}
30022 printf %s "(cached) " >&6
30024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30025 /* end confdefs.h. */
30027 #ifdef HAVE_UNISTD_H
30028 # include <unistd.h>
30030 #ifdef HAVE_TERMIOS_H
30031 # include <termios.h>
30033 #ifdef HAVE_SYS_IOCTL_H
30034 # include <sys/ioctl.h>
30041 int dtr = TIOCM_DTR;
30043 ioctl(1, TIOCMBIS, (char *)&dtr);
30050 if ac_fn_c_try_compile "$LINENO"
30052 ntp_cv_modem_control=yes
30054 ntp_cv_modem_control=no
30057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
30060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_modem_control" >&5
30061 printf "%s\n" "$ntp_cv_modem_control" >&6; }
30062 case "$ntp_eac::$ntp_cv_modem_control" in
30064 ntp_enable_all_modem_control_clocks=yes
30067 ntp_enable_all_modem_control_clocks=no
30071 # Requires modem control
30072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
30073 printf %s "checking ACTS modem service... " >&6; }
30074 # Check whether --enable-ACTS was given.
30075 if test ${enable_ACTS+y}
30077 enableval=$enable_ACTS; ntp_ok=$enableval
30079 ntp_ok=$ntp_enable_all_modem_control_clocks
30087 printf "%s\n" "#define CLOCK_ACTS 1" >>confdefs.h
30091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30092 printf "%s\n" "$ntp_ok" >&6; }
30094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
30095 printf %s "checking Arbiter 1088A/B GPS receiver... " >&6; }
30096 # Check whether --enable-ARBITER was given.
30097 if test ${enable_ARBITER+y}
30099 enableval=$enable_ARBITER; ntp_ok=$enableval
30109 printf "%s\n" "#define CLOCK_ARBITER 1" >>confdefs.h
30113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30114 printf "%s\n" "$ntp_ok" >&6; }
30116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
30117 printf %s "checking Arcron MSF receiver... " >&6; }
30118 # Check whether --enable-ARCRON_MSF was given.
30119 if test ${enable_ARCRON_MSF+y}
30121 enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
30131 printf "%s\n" "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
30135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30136 printf "%s\n" "$ntp_ok" >&6; }
30138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
30139 printf %s "checking Austron 2200A/2201A GPS receiver... " >&6; }
30140 # Check whether --enable-AS2201 was given.
30141 if test ${enable_AS2201+y}
30143 enableval=$enable_AS2201; ntp_ok=$enableval
30153 printf "%s\n" "#define CLOCK_AS2201 1" >>confdefs.h
30157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30158 printf "%s\n" "$ntp_ok" >&6; }
30160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
30161 printf %s "checking ATOM PPS interface... " >&6; }
30162 # Check whether --enable-ATOM was given.
30163 if test ${enable_ATOM+y}
30165 enableval=$enable_ATOM; ntp_ok=$enableval
30171 case "$ntp_atom_ok" in
30178 printf "%s\n" "#define CLOCK_ATOM 1" >>confdefs.h
30182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30183 printf "%s\n" "$ntp_ok" >&6; }
30185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
30186 printf %s "checking Chrono-log K-series WWVB receiver... " >&6; }
30187 # Check whether --enable-CHRONOLOG was given.
30188 if test ${enable_CHRONOLOG+y}
30190 enableval=$enable_CHRONOLOG; ntp_ok=$enableval
30200 printf "%s\n" "#define CLOCK_CHRONOLOG 1" >>confdefs.h
30204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30205 printf "%s\n" "$ntp_ok" >&6; }
30207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
30208 printf %s "checking CHU modem/decoder... " >&6; }
30209 # Check whether --enable-CHU was given.
30210 if test ${enable_CHU+y}
30212 enableval=$enable_CHU; ntp_ok=$enableval
30222 printf "%s\n" "#define CLOCK_CHU 1" >>confdefs.h
30226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30227 printf "%s\n" "$ntp_ok" >&6; }
30228 ntp_refclock_chu=$ntp_ok
30230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
30231 printf %s "checking CHU audio/decoder... " >&6; }
30232 # Check whether --enable-AUDIO-CHU was given.
30233 if test ${enable_AUDIO_CHU+y}
30235 enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
30238 case "$ntp_eac$ntp_refclock_chu$ntp_canaudio" in
30246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30247 printf "%s\n" "$ntp_ok" >&6; }
30248 # We used to check for sunos/solaris target...
30249 case "$ntp_ok$ntp_refclock_chu$ntp_canaudio" in
30250 yes*no*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
30251 printf "%s\n" "$as_me: WARNING: *** But the expected answer is...no ***" >&2;}
30255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
30256 printf %s "checking Datum Programmable Time System... " >&6; }
30257 # Check whether --enable-DATUM was given.
30258 if test ${enable_DATUM+y}
30260 enableval=$enable_DATUM; ntp_ok=$enableval
30263 case "$ac_cv_header_termios_h" in
30278 printf "%s\n" "#define CLOCK_DATUM 1" >>confdefs.h
30282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30283 printf "%s\n" "$ntp_ok" >&6; }
30285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
30286 printf %s "checking Dumb generic hh:mm:ss local clock... " >&6; }
30287 # Check whether --enable-DUMBCLOCK was given.
30288 if test ${enable_DUMBCLOCK+y}
30290 enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
30300 printf "%s\n" "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
30304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30305 printf "%s\n" "$ntp_ok" >&6; }
30307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
30308 printf %s "checking Forum Graphic GPS... " >&6; }
30309 # Check whether --enable-FG was given.
30310 if test ${enable_FG+y}
30312 enableval=$enable_FG; ntp_ok=$enableval
30322 printf "%s\n" "#define CLOCK_FG 1" >>confdefs.h
30326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30327 printf "%s\n" "$ntp_ok" >&6; }
30329 # Requires modem control
30330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
30331 printf %s "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
30332 # Check whether --enable-HEATH was given.
30333 if test ${enable_HEATH+y}
30335 enableval=$enable_HEATH; ntp_ok=$enableval
30337 ntp_ok=$ntp_enable_all_modem_control_clocks
30345 printf "%s\n" "#define CLOCK_HEATH 1" >>confdefs.h
30349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30350 printf "%s\n" "$ntp_ok" >&6; }
30352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
30353 printf %s "checking for hopf serial clock device... " >&6; }
30354 # Check whether --enable-HOPFSERIAL was given.
30355 if test ${enable_HOPFSERIAL+y}
30357 enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
30367 printf "%s\n" "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
30371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30372 printf "%s\n" "$ntp_ok" >&6; }
30374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
30375 printf %s "checking for hopf PCI clock 6039... " >&6; }
30376 # Check whether --enable-HOPFPCI was given.
30377 if test ${enable_HOPFPCI+y}
30379 enableval=$enable_HOPFPCI; ntp_ok=$enableval
30389 printf "%s\n" "#define CLOCK_HOPF_PCI 1" >>confdefs.h
30393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30394 printf "%s\n" "$ntp_ok" >&6; }
30396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
30397 printf %s "checking HP 58503A GPS receiver... " >&6; }
30398 # Check whether --enable-HPGPS was given.
30399 if test ${enable_HPGPS+y}
30401 enableval=$enable_HPGPS; ntp_ok=$enableval
30411 printf "%s\n" "#define CLOCK_HPGPS 1" >>confdefs.h
30415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30416 printf "%s\n" "$ntp_ok" >&6; }
30418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
30419 printf %s "checking IRIG audio decoder... " >&6; }
30420 # Check whether --enable-IRIG was given.
30421 if test ${enable_IRIG+y}
30423 enableval=$enable_IRIG; ntp_ok=$enableval
30426 case "$ntp_eac$ntp_canaudio" in
30438 printf "%s\n" "#define CLOCK_IRIG 1" >>confdefs.h
30442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30443 printf "%s\n" "$ntp_ok" >&6; }
30444 case "$ntp_ok$ntp_canaudio" in
30445 yesno) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
30446 printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
30449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
30450 printf %s "checking for JJY receiver... " >&6; }
30451 # Check whether --enable-JJY was given.
30452 if test ${enable_JJY+y}
30454 enableval=$enable_JJY; ntp_ok=$enableval
30464 printf "%s\n" "#define CLOCK_JJY 1" >>confdefs.h
30468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30469 printf "%s\n" "$ntp_ok" >&6; }
30471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
30472 printf %s "checking Rockwell Jupiter GPS receiver... " >&6; }
30473 # Check whether --enable-JUPITER was given.
30474 if test ${enable_JUPITER+y}
30476 enableval=$enable_JUPITER; ntp_ok=$enableval
30481 case "$ntp_jupiter_ok" in
30488 printf "%s\n" "#define CLOCK_JUPITER 1" >>confdefs.h
30492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30493 printf "%s\n" "$ntp_ok" >&6; }
30495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
30496 printf %s "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
30497 # Check whether --enable-LEITCH was given.
30498 if test ${enable_LEITCH+y}
30500 enableval=$enable_LEITCH; ntp_ok=$enableval
30510 printf "%s\n" "#define CLOCK_LEITCH 1" >>confdefs.h
30514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30515 printf "%s\n" "$ntp_ok" >&6; }
30517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
30518 printf %s "checking local clock reference... " >&6; }
30519 # Check whether --enable-LOCAL-CLOCK was given.
30520 if test ${enable_LOCAL_CLOCK+y}
30522 enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
30532 printf "%s\n" "#define CLOCK_LOCAL 1" >>confdefs.h
30536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30537 printf "%s\n" "$ntp_ok" >&6; }
30541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
30542 printf %s "checking Magnavox MX4200 GPS receiver... " >&6; }
30543 # Check whether --enable-MX4200 was given.
30544 if test ${enable_MX4200+y}
30546 enableval=$enable_MX4200; ntp_ok=$enableval
30549 case "$ac_cv_var_ppsclock" in
30565 printf "%s\n" "#define CLOCK_MX4200 1" >>confdefs.h
30569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30570 printf "%s\n" "$ntp_ok" >&6; }
30571 case "$ntp_ok$host" in
30572 yes*-*-ultrix*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
30573 printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
30576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
30577 printf %s "checking for NeoClock4X receiver... " >&6; }
30578 # Check whether --enable-NEOCLOCK4X was given.
30579 if test ${enable_NEOCLOCK4X+y}
30581 enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
30591 printf "%s\n" "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
30595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30596 printf "%s\n" "$ntp_ok" >&6; }
30598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
30599 printf %s "checking NMEA GPS receiver... " >&6; }
30600 # Check whether --enable-NMEA was given.
30601 if test ${enable_NMEA+y}
30603 enableval=$enable_NMEA; ntp_ok=$enableval
30613 printf "%s\n" "#define CLOCK_NMEA 1" >>confdefs.h
30617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30618 printf "%s\n" "$ntp_ok" >&6; }
30620 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
30621 if test "x$ac_cv_func_strtoll" = xyes
30623 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
30627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GPSD JSON receiver" >&5
30628 printf %s "checking for GPSD JSON receiver... " >&6; }
30629 # Check whether --enable-GPSD was given.
30630 if test ${enable_GPSD+y}
30632 enableval=$enable_GPSD; ntp_ok=$enableval
30634 case "$ac_cv_func_strtoll" in
30635 yes) ntp_ok=$ntp_eac ;;
30645 printf "%s\n" "#define CLOCK_GPSDJSON 1" >>confdefs.h
30649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30650 printf "%s\n" "$ntp_ok" >&6; }
30652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
30653 printf %s "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
30654 # Check whether --enable-ONCORE was given.
30655 if test ${enable_ONCORE+y}
30657 enableval=$enable_ONCORE; ntp_ok=$enableval
30663 case "$ntp_oncore_ok" in
30670 printf "%s\n" "#define CLOCK_ONCORE 1" >>confdefs.h
30674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30675 printf "%s\n" "$ntp_ok" >&6; }
30677 # Requires modem control
30678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
30679 printf %s "checking for Palisade clock... " >&6; }
30680 # Check whether --enable-PALISADE was given.
30681 if test ${enable_PALISADE+y}
30683 enableval=$enable_PALISADE; ntp_ok=$enableval
30685 ntp_ok=$ntp_enable_all_modem_control_clocks
30693 printf "%s\n" "#define CLOCK_PALISADE 1" >>confdefs.h
30697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30698 printf "%s\n" "$ntp_ok" >&6; }
30700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
30701 printf %s "checking Conrad parallel port radio clock... " >&6; }
30702 # Check whether --enable-PCF was given.
30703 if test ${enable_PCF+y}
30705 enableval=$enable_PCF; ntp_ok=$enableval
30715 printf "%s\n" "#define CLOCK_PCF 1" >>confdefs.h
30719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30720 printf "%s\n" "$ntp_ok" >&6; }
30722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
30723 printf %s "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
30724 # Check whether --enable-PST was given.
30725 if test ${enable_PST+y}
30727 enableval=$enable_PST; ntp_ok=$enableval
30737 printf "%s\n" "#define CLOCK_PST 1" >>confdefs.h
30741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30742 printf "%s\n" "$ntp_ok" >&6; }
30744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
30745 printf %s "checking RIPENCC specific Trimble driver... " >&6; }
30746 # Check whether --enable-RIPENCC was given.
30747 if test ${enable_RIPENCC+y}
30749 enableval=$enable_RIPENCC; ntp_ok=$enableval
30755 # 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
30756 case "$ntp_ripe_ncc_ok" in
30763 printf "%s\n" "#define CLOCK_RIPENCC /**/" >>confdefs.h
30767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30768 printf "%s\n" "$ntp_ok" >&6; }
30770 # Danny Meyer says SHM compiles (with a few warnings) under Win32.
30771 # For *IX, we need sys/ipc.h and sys/shm.h.
30772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
30773 printf %s "checking for SHM clock attached thru shared memory... " >&6; }
30774 # Check whether --enable-SHM was given.
30775 if test ${enable_SHM+y}
30777 enableval=$enable_SHM; ntp_ok=$enableval
30780 case "$ntp_eac$ntp_canshm" in
30792 printf "%s\n" "#define CLOCK_SHM 1" >>confdefs.h
30796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30797 printf "%s\n" "$ntp_ok" >&6; }
30799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
30800 printf %s "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
30801 # Check whether --enable-SPECTRACOM was given.
30802 if test ${enable_SPECTRACOM+y}
30804 enableval=$enable_SPECTRACOM; ntp_ok=$enableval
30814 printf "%s\n" "#define CLOCK_SPECTRACOM 1" >>confdefs.h
30818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30819 printf "%s\n" "$ntp_ok" >&6; }
30821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
30822 printf %s "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
30823 # Check whether --enable-TPRO was given.
30824 if test ${enable_TPRO+y}
30826 enableval=$enable_TPRO; ntp_ok=$enableval
30829 case "$ac_cv_header_sys_tpro_h" in
30845 printf "%s\n" "#define CLOCK_TPRO 1" >>confdefs.h
30849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30850 printf "%s\n" "$ntp_ok" >&6; }
30851 case "$ntp_ok$ac_cv_header_sys_tpro" in
30852 yesno) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
30853 printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
30856 # Not on a vax-dec-bsd
30857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
30858 printf %s "checking Kinemetrics/TrueTime receivers... " >&6; }
30859 # Check whether --enable-TRUETIME was given.
30860 if test ${enable_TRUETIME+y}
30862 enableval=$enable_TRUETIME; ntp_ok=$enableval
30881 printf "%s\n" "#define CLOCK_TRUETIME 1" >>confdefs.h
30885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30886 printf "%s\n" "$ntp_ok" >&6; }
30887 case "$ntp_ok$host" in
30888 yesvax-dec-bsd) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
30889 printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
30892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
30893 printf %s "checking TrueTime 560 IRIG-B decoder... " >&6; }
30894 # Check whether --enable-TT560 was given.
30895 if test ${enable_TT560+y}
30897 enableval=$enable_TT560; ntp_ok=$enableval
30907 printf "%s\n" "#define CLOCK_TT560 /**/" >>confdefs.h
30911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30912 printf "%s\n" "$ntp_ok" >&6; }
30914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
30915 printf %s "checking Ultralink M320 WWVB receiver... " >&6; }
30916 # Check whether --enable-ULINK was given.
30917 if test ${enable_ULINK+y}
30919 enableval=$enable_ULINK; ntp_ok=$enableval
30929 printf "%s\n" "#define CLOCK_ULINK 1" >>confdefs.h
30933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30934 printf "%s\n" "$ntp_ok" >&6; }
30936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Spectracom TSYNC PCI timing board" >&5
30937 printf %s "checking Spectracom TSYNC PCI timing board... " >&6; }
30938 # Check whether --enable-TSYNCPCI was given.
30939 if test ${enable_TSYNCPCI+y}
30941 enableval=$enable_TSYNCPCI; ntp_ok=$enableval
30959 printf "%s\n" "#define CLOCK_TSYNCPCI 1" >>confdefs.h
30963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30964 printf "%s\n" "$ntp_ok" >&6; }
30966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
30967 printf %s "checking WWV receiver... " >&6; }
30968 # Check whether --enable-WWV was given.
30969 if test ${enable_WWV+y}
30971 enableval=$enable_WWV; ntp_ok=$enableval
30974 case "$ntp_eac$ntp_canaudio" in
30986 printf "%s\n" "#define CLOCK_WWV 1" >>confdefs.h
30990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
30991 printf "%s\n" "$ntp_ok" >&6; }
30992 case "$ntp_ok$ntp_canaudio" in
30993 yesno) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
30994 printf "%s\n" "$as_me: WARNING: *** But the expected answer is... no ***" >&2;}
30997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
30998 printf %s "checking for Zyfer receiver... " >&6; }
30999 # Check whether --enable-ZYFER was given.
31000 if test ${enable_ZYFER+y}
31002 enableval=$enable_ZYFER; ntp_ok=$enableval
31012 printf "%s\n" "#define CLOCK_ZYFER 1" >>confdefs.h
31016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31017 printf "%s\n" "$ntp_ok" >&6; }
31019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
31020 printf %s "checking for default inclusion of all suitable PARSE clocks... " >&6; }
31021 # Check whether --enable-parse-clocks was given.
31022 if test ${enable_parse_clocks+y}
31024 enableval=$enable_parse_clocks; ntp_eapc=$enableval
31028 yes) ntp_eapc=$ntp_canparse ;;
31031 # Delete the next line one of these days
31037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
31038 printf "%s\n" "$ntp_eapc" >&6; }
31040 case "$ntp_eac$ntp_eapc$ntp_canparse" in
31042 as_fn_error $? "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
31045 as_fn_error $? "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
31053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
31054 printf %s "checking Diem Computime Radio Clock... " >&6; }
31055 # Check whether --enable-COMPUTIME was given.
31056 if test ${enable_COMPUTIME+y}
31058 enableval=$enable_COMPUTIME; ntp_ok=$enableval
31069 printf "%s\n" "#define CLOCK_COMPUTIME 1" >>confdefs.h
31073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31074 printf "%s\n" "$ntp_ok" >&6; }
31075 case "$ntp_ok$ntp_canparse" in
31077 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
31080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
31081 printf %s "checking ELV/DCF7000 clock... " >&6; }
31082 # Check whether --enable-DCF7000 was given.
31083 if test ${enable_DCF7000+y}
31085 enableval=$enable_DCF7000; ntp_ok=$enableval
31096 printf "%s\n" "#define CLOCK_DCF7000 1" >>confdefs.h
31100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31101 printf "%s\n" "$ntp_ok" >&6; }
31102 case "$ntp_ok$ntp_canparse" in
31104 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
31107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
31108 printf %s "checking HOPF 6021 clock... " >&6; }
31109 # Check whether --enable-HOPF6021 was given.
31110 if test ${enable_HOPF6021+y}
31112 enableval=$enable_HOPF6021; ntp_ok=$enableval
31123 printf "%s\n" "#define CLOCK_HOPF6021 1" >>confdefs.h
31127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31128 printf "%s\n" "$ntp_ok" >&6; }
31129 case "$ntp_ok$ntp_canparse" in
31131 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
31134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
31135 printf %s "checking Meinberg clocks... " >&6; }
31136 # Check whether --enable-MEINBERG was given.
31137 if test ${enable_MEINBERG+y}
31139 enableval=$enable_MEINBERG; ntp_ok=$enableval
31150 printf "%s\n" "#define CLOCK_MEINBERG 1" >>confdefs.h
31154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31155 printf "%s\n" "$ntp_ok" >&6; }
31156 case "$ntp_ok$ntp_canparse" in
31158 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
31161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
31162 printf %s "checking DCF77 raw time code... " >&6; }
31163 # Check whether --enable-RAWDCF was given.
31164 if test ${enable_RAWDCF+y}
31166 enableval=$enable_RAWDCF; ntp_ok=$enableval
31179 printf "%s\n" "#define CLOCK_RAWDCF 1" >>confdefs.h
31183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31184 printf "%s\n" "$ntp_ok" >&6; }
31185 case "$ntp_ok$ntp_canparse" in
31187 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
31190 case "$ntp_rawdcf" in
31192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
31193 printf %s "checking if we must enable parity for RAWDCF... " >&6; }
31194 if test ${ntp_cv_rawdcf_parity+y}
31196 printf %s "(cached) " >&6
31205 ntp_cv_rawdcf_parity=$ans
31209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_rawdcf_parity" >&5
31210 printf "%s\n" "$ntp_cv_rawdcf_parity" >&6; }
31211 case "$ntp_cv_rawdcf_parity" in
31214 printf "%s\n" "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
31219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
31220 printf %s "checking RCC 8000 clock... " >&6; }
31221 # Check whether --enable-RCC8000 was given.
31222 if test ${enable_RCC8000+y}
31224 enableval=$enable_RCC8000; ntp_ok=$enableval
31235 printf "%s\n" "#define CLOCK_RCC8000 1" >>confdefs.h
31239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31240 printf "%s\n" "$ntp_ok" >&6; }
31241 case "$ntp_ok$ntp_canparse" in
31243 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
31246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
31247 printf %s "checking Schmid DCF77 clock... " >&6; }
31248 # Check whether --enable-SCHMID was given.
31249 if test ${enable_SCHMID+y}
31251 enableval=$enable_SCHMID; ntp_ok=$enableval
31262 printf "%s\n" "#define CLOCK_SCHMID 1" >>confdefs.h
31266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31267 printf "%s\n" "$ntp_ok" >&6; }
31268 case "$ntp_ok$ntp_canparse" in
31270 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
31273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
31274 printf %s "checking Trimble GPS receiver/TAIP protocol... " >&6; }
31275 # Check whether --enable-TRIMTAIP was given.
31276 if test ${enable_TRIMTAIP+y}
31278 enableval=$enable_TRIMTAIP; ntp_ok=$enableval
31289 printf "%s\n" "#define CLOCK_TRIMTAIP 1" >>confdefs.h
31293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31294 printf "%s\n" "$ntp_ok" >&6; }
31295 case "$ntp_ok$ntp_canparse" in
31297 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
31300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
31301 printf %s "checking Trimble GPS receiver/TSIP protocol... " >&6; }
31302 # Check whether --enable-TRIMTSIP was given.
31303 if test ${enable_TRIMTSIP+y}
31305 enableval=$enable_TRIMTSIP; ntp_ok=$enableval
31316 printf "%s\n" "#define CLOCK_TRIMTSIP 1" >>confdefs.h
31320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31321 printf "%s\n" "$ntp_ok" >&6; }
31322 case "$ntp_ok$ntp_canparse" in
31324 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
31327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
31328 printf %s "checking WHARTON 400A Series clock... " >&6; }
31329 # Check whether --enable-WHARTON was given.
31330 if test ${enable_WHARTON+y}
31332 enableval=$enable_WHARTON; ntp_ok=$enableval
31343 printf "%s\n" "#define CLOCK_WHARTON_400A 1" >>confdefs.h
31347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31348 printf "%s\n" "$ntp_ok" >&6; }
31349 case "$ntp_ok$ntp_canparse" in
31351 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
31354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
31355 printf %s "checking VARITEXT clock... " >&6; }
31356 # Check whether --enable-VARITEXT was given.
31357 if test ${enable_VARITEXT+y}
31359 enableval=$enable_VARITEXT; ntp_ok=$enableval
31370 printf "%s\n" "#define CLOCK_VARITEXT 1" >>confdefs.h
31374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31375 printf "%s\n" "$ntp_ok" >&6; }
31376 case "$ntp_ok$ntp_canparse" in
31378 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
31381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SEL240X clock" >&5
31382 printf %s "checking SEL240X clock... " >&6; }
31383 # Check whether --enable-SEL240X was given.
31384 if test ${enable_SEL240X+y}
31386 enableval=$enable_SEL240X; ntp_ok=$enableval
31391 if test "$ntp_ok" = "yes"; then
31395 printf "%s\n" "#define CLOCK_SEL240X 1" >>confdefs.h
31398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
31399 printf "%s\n" "$ntp_ok" >&6; }
31400 case "$ntp_ok$ntp_canparse" in
31402 as_fn_error $? "That's a parse clock and this system doesn't support it!" "$LINENO" 5
31411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
31412 printf %s "checking if we need to make and use the parse libraries... " >&6; }
31414 case "$ntp_libparse" in
31418 printf "%s\n" "#define CLOCK_PARSE 1" >>confdefs.h
31420 LIBPARSE=../libparse/libparse.a
31421 MAKE_LIBPARSE=libparse.a
31422 # HMS: check_y2k trips the 34 year problem now...
31423 false && MAKE_CHECK_Y2K=check_y2k
31425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31426 printf "%s\n" "$ans" >&6; }
31436 # Check whether --with-crypto was given.
31437 if test ${with_crypto+y}
31439 withval=$with_crypto;
31443 # Check whether --with-openssl-libdir was given.
31444 if test ${with_openssl_libdir+y}
31446 withval=$with_openssl_libdir;
31450 # Check whether --with-openssl-incdir was given.
31451 if test ${with_openssl_incdir+y}
31453 withval=$with_openssl_incdir;
31457 # Check whether --with-rpath was given.
31458 if test ${with_rpath+y}
31460 withval=$with_rpath;
31465 ntp_openssl_from_pkg_config=no
31467 with_crypto=${with_crypto:-openssl,libcrypto}
31468 case "$with_crypto" in
31470 with_crypto=openssl,libcrypto
31474 case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
31476 *:notempty:notgiven:notgiven)
31477 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
31478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
31479 printf %s "checking pkg-config for $pkg... " >&6; }
31480 if $PKG_CONFIG --exists $pkg ; then
31481 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
31482 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
31483 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
31484 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
31485 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
31488 ntp_openssl_from_pkg_config=yes
31489 ntp_openssl_version="`$PKG_CONFIG --modversion $pkg`"
31490 case "$ntp_openssl_version" in
31492 *) ntp_openssl_version='(unknown)' ;;
31494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_openssl_version" >&5
31495 printf "%s\n" "yes, version $ntp_openssl_version" >&6; }
31499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31500 printf "%s\n" "no" >&6; }
31503 case "$with_crypto:$ntp_openssl" in
31508 case "${with_rpath-notgiven}" in
31510 # Lame - what to do if we need -Wl... but not -R?
31516 # This may really only be true for gcc
31517 need_dash_Wlrpath=1
31529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
31530 printf %s "checking for openssl library directory... " >&6; }
31531 with_openssl_libdir=${with_openssl_libdir-notgiven}
31532 case "$with_openssl_libdir" in
31536 with_openssl_libdir=default
31539 with_openssl_libdir=no
31543 case "$with_openssl_libdir" in
31546 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
31547 with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
31548 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
31550 case "$with_openssl_libdir" in
31553 *) # Look for libcrypto.a and libssl.a:
31554 for i in $with_openssl_libdir no
31558 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
31561 test -f $i/libcrypto.so -a -f $i/libssl.so && break
31562 test -f $i/libcrypto.a -a -f $i/libssl.a && break
31569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
31570 printf "%s\n" "$openssl_libdir" >&6; }
31571 case "$openssl_libdir" in
31574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
31575 printf "%s\n" "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
31578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
31579 printf %s "checking for openssl include directory... " >&6; }
31580 with_openssl_incdir=${with_openssl_incdir-notgiven}
31581 case "$with_openssl_incdir" in
31584 with_openssl_incdir="/usr/include /usr/sfw/include"
31585 with_openssl_incdir="$with_openssl_incdir /usr/local/include"
31586 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
31588 case "$with_openssl_incdir" in
31591 *) # look for openssl/evp.h:
31592 for i in $with_openssl_incdir no
31594 test -f $i/openssl/evp.h && break
31600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
31601 printf "%s\n" "$openssl_incdir" >&6; }
31602 case "$openssl_incdir" in
31605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
31606 printf "%s\n" "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
31608 if test -z "$openssl_libdir" -o -z "$openssl_incdir"
31615 case "$ntp_openssl" in
31617 # We have OpenSSL inc/lib dirs - use them.
31618 case "$openssl_incdir" in
31622 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
31625 case "$openssl_libdir" in
31629 LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
31630 case "$need_dash_r" in
31632 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
31634 case "$need_dash_Wlrpath" in
31636 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
31640 LDADD_NTP="$LDADD_NTP -lcrypto"
31644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
31645 printf %s "checking if we will use crypto... " >&6; }
31646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
31647 printf "%s\n" "$ntp_openssl" >&6; }
31649 case "$ntp_openssl" in
31651 ac_fn_c_check_header_compile "$LINENO" "openssl/cmac.h" "ac_cv_header_openssl_cmac_h" "$ac_includes_default"
31652 if test "x$ac_cv_header_openssl_cmac_h" = xyes
31654 printf "%s\n" "#define HAVE_OPENSSL_CMAC_H 1" >>confdefs.h
31657 ac_fn_c_check_header_compile "$LINENO" "openssl/hmac.h" "ac_cv_header_openssl_hmac_h" "$ac_includes_default"
31658 if test "x$ac_cv_header_openssl_hmac_h" = xyes
31660 printf "%s\n" "#define HAVE_OPENSSL_HMAC_H 1" >>confdefs.h
31665 printf "%s\n" "#define OPENSSL /**/" >>confdefs.h
31667 case "$VER_SUFFIX" in
31669 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
31674 NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
31675 CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
31676 NTPO_SAVED_LIBS="$LIBS"
31679 # check for linking with -lcrypto failure, and try -lcrypto -lz.
31680 # Helps m68k-atari-mint
31682 case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
31684 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
31685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
31686 printf %s "checking if linking with -lcrypto alone works... " >&6; }
31687 if test ${ntp_cv_bare_lcrypto+y}
31689 printf %s "(cached) " >&6
31691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31692 /* end confdefs.h. */
31694 #include "openssl/err.h"
31695 #include "openssl/evp.h"
31701 ERR_load_crypto_strings();
31702 OpenSSL_add_all_algorithms();
31709 if ac_fn_c_try_link "$LINENO"
31711 ntp_cv_bare_lcrypto=yes
31713 ntp_cv_bare_lcrypto=no
31716 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31717 conftest$ac_exeext conftest.$ac_ext
31720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
31721 printf "%s\n" "$ntp_cv_bare_lcrypto" >&6; }
31722 case "$ntp_cv_bare_lcrypto" in
31724 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
31725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
31726 printf %s "checking if linking with -lcrypto -lz works... " >&6; }
31727 if test ${ntp_cv_lcrypto_lz+y}
31729 printf %s "(cached) " >&6
31731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31732 /* end confdefs.h. */
31734 #include "openssl/err.h"
31735 #include "openssl/evp.h"
31741 ERR_load_crypto_strings();
31742 OpenSSL_add_all_algorithms();
31749 if ac_fn_c_try_link "$LINENO"
31751 ntp_cv_lcrypto_lz=yes
31753 ntp_cv_lcrypto_lz=no
31756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31757 conftest$ac_exeext conftest.$ac_ext
31760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
31761 printf "%s\n" "$ntp_cv_lcrypto_lz" >&6; }
31762 case "$ntp_cv_lcrypto_lz" in
31764 LDADD_NTP="$LDADD_NTP -lz"
31770 # Older OpenSSL headers have a number of callback prototypes inside
31771 # other function prototypes which trigger copious warnings with gcc's
31772 # -Wstrict-prototypes, which is included in -Wall.
31776 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
31777 # int (*cb)(), int sgckey);
31782 openssl_triggers_warnings=unknown
31783 NTPO_SAVED_CFLAGS="$CFLAGS"
31785 case "$ntp_openssl:$GCC" in
31787 CFLAGS="$CFLAGS -Werror"
31788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31789 /* end confdefs.h. */
31796 /* see if -Werror breaks gcc */
31803 if ac_fn_c_try_compile "$LINENO"
31805 gcc_handles_Werror=yes
31807 gcc_handles_Werror=no
31810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31811 case "$gcc_handles_Werror" in
31813 # if this gcc doesn't do -Werror go ahead and use
31814 # -Wstrict-prototypes.
31815 openssl_triggers_warnings=yes
31818 CFLAGS="$CFLAGS -Wstrict-prototypes"
31819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31820 /* end confdefs.h. */
31822 #include "openssl/asn1_mac.h"
31823 #include "openssl/bn.h"
31824 #include "openssl/err.h"
31825 #include "openssl/evp.h"
31826 #include "openssl/pem.h"
31827 #include "openssl/rand.h"
31828 #include "openssl/x509v3.h"
31841 if ac_fn_c_try_compile "$LINENO"
31843 openssl_triggers_warnings=no
31845 openssl_triggers_warnings=yes
31848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
31850 case "$openssl_triggers_warnings" in
31852 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
31855 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
31859 # gcc without OpenSSL
31860 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
31863 # Because we don't want -Werror for the EVP_MD_do_all_sorted check
31864 CFLAGS="$NTPO_SAVED_CFLAGS"
31866 case "$ntp_openssl" in
31868 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
31869 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
31870 if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes
31872 printf "%s\n" "#define HAVE_EVP_MD_DO_ALL_SORTED 1" >>confdefs.h
31880 CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
31881 LIBS="$NTPO_SAVED_LIBS"
31882 { NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
31883 { NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
31884 { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
31885 { openssl_triggers_warnings=; unset openssl_triggers_warnings;}
31886 { ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
31889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to enable CMAC support" >&5
31890 printf %s "checking if we want to enable CMAC support... " >&6; }
31891 case "$ac_cv_header_openssl_cmac_h" in
31894 printf "%s\n" "#define ENABLE_CMAC 1" >>confdefs.h
31901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31902 printf "%s\n" "$ans" >&6; }
31907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to use OpenSSL's crypto random (if available)" >&5
31908 printf %s "checking if we want to use OpenSSL's crypto random (if available)... " >&6; }
31909 # Check whether --enable-openssl-random was given.
31910 if test ${enable_openssl_random+y}
31912 enableval=$enable_openssl_random; ntp_use_openssl_random=$enableval
31914 ntp_use_openssl_random=yes
31918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_use_openssl_random" >&5
31919 printf "%s\n" "$ntp_use_openssl_random" >&6; }
31921 # The following might need extra libraries
31922 NTPO_SAVED_LIBS="$LIBS"
31923 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
31924 ac_fn_c_check_func "$LINENO" "RAND_bytes" "ac_cv_func_RAND_bytes"
31925 if test "x$ac_cv_func_RAND_bytes" = xyes
31927 printf "%s\n" "#define HAVE_RAND_BYTES 1" >>confdefs.h
31930 ac_fn_c_check_func "$LINENO" "RAND_poll" "ac_cv_func_RAND_poll"
31931 if test "x$ac_cv_func_RAND_poll" = xyes
31933 printf "%s\n" "#define HAVE_RAND_POLL 1" >>confdefs.h
31937 LIBS="$NTPO_SAVED_LIBS"
31938 case "$ntp_openssl$ntp_use_openssl_random$ac_cv_func_RAND_bytes$ac_cv_func_RAND_poll" in
31941 printf "%s\n" "#define USE_OPENSSL_CRYPTO_RAND 1" >>confdefs.h
31944 *) ntp_use_openssl_random=no ;;
31949 # if we are using OpenSSL (--with-crypto), by default Autokey is enabled
31950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to include NTP Autokey protocol support" >&5
31951 printf %s "checking if we want to include NTP Autokey protocol support... " >&6; }
31952 # Check whether --enable-autokey was given.
31953 if test ${enable_autokey+y}
31955 enableval=$enable_autokey; ntp_autokey=$enableval
31957 ntp_autokey=$ntp_openssl
31961 case "$ntp_autokey" in
31965 case "$ntp_openssl" in
31967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&5
31968 printf "%s\n" "$as_me: WARNING: Disabling Autokey, --enable-autokey requires --with-crypto." >&2;}
31973 printf "%s\n" "#define AUTOKEY 1" >>confdefs.h
31980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_autokey" >&5
31981 printf "%s\n" "$ntp_autokey" >&6; }
31984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
31985 printf %s "checking if we want to run check-layout... " >&6; }
31986 case "$cross_compiling$PATH_PERL" in
31988 MAKE_CHECK_LAYOUT=check-layout
31995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
31996 printf "%s\n" "$ans" >&6; }
32000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
32001 printf %s "checking if we can make dcf parse utilities... " >&6; }
32003 case "$ntp_parseutil" in
32006 *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
32013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32014 printf "%s\n" "$ans" >&6; }
32017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
32018 printf %s "checking if we can build kernel streams modules for parse... " >&6; }
32020 case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
32024 case "$ntp_cv_var_kernel_pll" in
32027 printf "%s\n" "#define PPS_SYNC 1" >>confdefs.h
32032 MAKE_PARSEKMODULE=parsestreams.loadable_module.o
32036 MAKE_PARSEKMODULE=parse
32037 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
32038 if test "x$ac_cv_header_strings_h" = xyes
32040 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
32048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32049 printf "%s\n" "$ans" >&6; }
32051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
32052 printf %s "checking if we need basic refclock support... " >&6; }
32053 case "$ntp_refclock" in
32056 printf "%s\n" "#define REFCLOCK 1" >>confdefs.h
32060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
32061 printf "%s\n" "$ntp_refclock" >&6; }
32063 PROPDELAY=propdelay
32067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
32068 printf %s "checking if we want HP-UX adjtimed support... " >&6; }
32078 MAKE_ADJTIMED=adjtimed
32080 printf "%s\n" "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
32089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32090 printf "%s\n" "$ans" >&6; }
32092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
32093 printf %s "checking if we want QNX adjtime support... " >&6; }
32104 printf "%s\n" "#define NEED_QNX_ADJTIME 1" >>confdefs.h
32108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32109 printf "%s\n" "$ans" >&6; }
32111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
32112 printf %s "checking if we can read kmem... " >&6; }
32114 # the default is to enable it if the system has the capability
32116 case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
32125 *-*-domainos) # Won't be found...
32145 # --enable-kmem / --disable-kmem controls if present
32146 # Check whether --enable-kmem was given.
32147 if test ${enable_kmem+y}
32149 enableval=$enable_kmem; ans=$enableval
32154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32155 printf "%s\n" "$ans" >&6; }
32164 printf "%s\n" "#define NOKMEM 1" >>confdefs.h
32169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
32170 printf %s "checking if adjtime is accurate... " >&6; }
32172 # target-dependent defaults
32178 i386-unknown-osf1*)
32181 mips-sgi-irix[456]*)
32188 # XXX only verified thru AIX6.
32207 # --enable-accurate-adjtime / --disable-accurate-adjtime
32208 # override the default
32209 # Check whether --enable-accurate-adjtime was given.
32210 if test ${enable_accurate_adjtime+y}
32212 enableval=$enable_accurate_adjtime; ans=$enableval
32217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32218 printf "%s\n" "$ans" >&6; }
32223 printf "%s\n" "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
32225 adjtime_is_accurate=yes
32228 adjtime_is_accurate=no
32232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
32233 printf %s "checking the name of 'tick' in the kernel... " >&6; }
32234 if test ${ntp_cv_nlist_tick+y}
32236 printf %s "(cached) " >&6
32241 m68*-hp-hpux*) # HP9000/300?
32251 # XXX only verified thru AIX6.
32270 ntp_cv_nlist_tick=$ans
32274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tick" >&5
32275 printf "%s\n" "$ntp_cv_nlist_tick" >&6; }
32276 case "$ntp_cv_nlist_tick" in
32278 ;; # HMS: I think we can only get 'no' here...
32281 printf "%s\n" "#define K_TICK_NAME \"$ntp_cv_nlist_tick\"" >>confdefs.h
32285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
32286 printf %s "checking for the units of 'tick'... " >&6; }
32287 if test ${ntp_cv_tick_nano+y}
32289 printf %s "(cached) " >&6
32298 ntp_cv_tick_nano=$ans
32302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tick_nano" >&5
32303 printf "%s\n" "$ntp_cv_tick_nano" >&6; }
32304 case "$ntp_cv_tick_nano" in
32307 printf "%s\n" "#define TICK_NANO 1" >>confdefs.h
32311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
32312 printf %s "checking the name of 'tickadj' in the kernel... " >&6; }
32313 if test ${ntp_cv_nlist_tickadj+y}
32315 printf %s "(cached) " >&6
32320 m68*-hp-hpux*) # HP9000/300?
32351 ans=no # hrestime_adj
32357 ntp_cv_nlist_tickadj=$ans
32361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_tickadj" >&5
32362 printf "%s\n" "$ntp_cv_nlist_tickadj" >&6; }
32363 case "$ntp_cv_nlist_tickadj" in
32365 ;; # HMS: I think we can only get 'no' here...
32368 printf "%s\n" "#define K_TICKADJ_NAME \"$ntp_cv_nlist_tickadj\"" >>confdefs.h
32372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
32373 printf %s "checking for the units of 'tickadj'... " >&6; }
32374 if test ${ntp_cv_tickadj_nano+y}
32376 printf %s "(cached) " >&6
32385 ntp_cv_tickadj_nano=$ans
32389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_tickadj_nano" >&5
32390 printf "%s\n" "$ntp_cv_tickadj_nano" >&6; }
32391 case "$ntp_cv_tickadj_nano" in
32394 printf "%s\n" "#define TICKADJ_NANO 1" >>confdefs.h
32398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
32399 printf %s "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
32400 if test ${ntp_cv_nlist_dosynctodr+y}
32402 printf %s "(cached) " >&6
32446 ntp_cv_nlist_dosynctodr=$ans
32450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_dosynctodr" >&5
32451 printf "%s\n" "$ntp_cv_nlist_dosynctodr" >&6; }
32452 case "$ntp_cv_nlist_dosynctodr" in
32457 printf "%s\n" "#define K_DOSYNCTODR_NAME \"$ntp_cv_nlist_dosynctodr\"" >>confdefs.h
32462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
32463 printf %s "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
32464 if test ${ntp_cv_nlist_noprintf+y}
32466 printf %s "(cached) " >&6
32504 ntp_cv_nlist_noprintf=$ans
32508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_nlist_noprintf" >&5
32509 printf "%s\n" "$ntp_cv_nlist_noprintf" >&6; }
32510 case "$ntp_cv_nlist_noprintf" in
32515 printf "%s\n" "#define K_NOPRINTF_NAME \"$ntp_cv_nlist_noprintf\"" >>confdefs.h
32523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
32524 printf %s "checking for a default value for 'tick'... " >&6; }
32526 # target-dependent default for tick
32530 as_fn_error $? "tick needs work for cygwin" "$LINENO" 5
32555 # Check whether --enable-tick was given.
32556 if test ${enable_tick+y}
32558 enableval=$enable_tick; ans=$enableval
32563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32564 printf "%s\n" "$ans" >&6; }
32568 ;; # HMS: I think we can only get 'no' here...
32571 printf "%s\n" "#define PRESET_TICK $ans" >>confdefs.h
32575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
32576 printf %s "checking for a default value for 'tickadj'... " >&6; }
32578 # target-specific default
32582 case "$adjtime_is_accurate" in
32591 case "$can_kmem" in
32597 *-*-domainos) # Skippy: won't be found...
32598 case "$can_kmem" in
32605 case "$adjtime_is_accurate" in
32628 # Check whether --enable-tickadj was given.
32629 if test ${enable_tickadj+y}
32631 enableval=$enable_tickadj; ans=$enableval
32636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32637 printf "%s\n" "$ans" >&6; }
32639 default_tickadj=$ans
32641 case "$default_tickadj" in
32643 ;; # HMS: I think we can only get 'no' here...
32646 printf "%s\n" "#define PRESET_TICKADJ $default_tickadj" >>confdefs.h
32650 # Newer versions of ReliantUNIX round adjtime() values down to
32651 # 1/100s (system tick). Sigh ...
32652 # Unfortunately, there is no easy way to know if particular release
32653 # has this "feature" or any obvious way to test for it.
32657 printf "%s\n" "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
32664 printf "%s\n" "#define SCO5_CLOCK 1" >>confdefs.h
32668 ntp_cv_make_tickadj=yes
32669 case "$can_kmem$ac_cv_var_tick$default_tickadj" in
32670 nonono) # Don't read KMEM, no presets. Bogus.
32671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5
32672 printf "%s\n" "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;}
32673 ntp_cv_make_tickadj=no
32675 nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
32676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5
32677 printf "%s\n" "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;}
32678 ntp_cv_make_tickadj=no
32680 no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus.
32681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5
32682 printf "%s\n" "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;}
32683 ntp_cv_make_tickadj=no
32685 no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool.
32687 yesnono) # Read KMEM, no presets. Cool.
32689 yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
32690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5
32691 printf "%s\n" "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;}
32693 yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool.
32695 yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
32697 *) # Generally bogus.
32698 as_fn_error $? "This shouldn't happen." "$LINENO" 5
32703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
32704 printf %s "checking if we want and can make the ntptime utility... " >&6; }
32705 if test ${ac_cv_make_ntptime+y}
32707 printf %s "(cached) " >&6
32710 *) case "$ntp_cv_struct_ntptimeval$ntp_cv_var_kernel_pll" in
32720 ac_cv_make_ntptime=$ans
32722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
32723 printf "%s\n" "$ac_cv_make_ntptime" >&6; }
32724 case "$ac_cv_make_ntptime" in
32726 MAKE_NTPTIME=ntptime
32739 # tickadj is pretty useless on newer versions of ReliantUNIX
32741 ntp_cv_make_tickadj=no
32744 ntp_cv_make_tickadj=no
32747 # DLM says tickadj is a no-no starting with solaris2.5
32749 *-*-solaris2.1[0-9]*)
32750 ntp_cv_make_tickadj=no
32752 *-*-solaris2.[0-4]*) ;;
32753 *) ntp_cv_make_tickadj=no ;;
32757 ntp_cv_make_tickadj=no
32762 # Despite all the above, we always make tickadj. Setting
32763 # ntp_cv_make_tickadj before AC_CACHE_CHECK will cause a false
32764 # report that the configuration variable was cached. It may
32765 # be better to simply remove the hunk above, I did not want
32766 # to remove it if there is hope it will be used again.
32768 { ntp_cv_make_tickadj=; unset ntp_cv_make_tickadj;}
32770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
32771 printf %s "checking if we want and can make the tickadj utility... " >&6; }
32772 if test ${ntp_cv_make_tickadj+y}
32774 printf %s "(cached) " >&6
32776 ntp_cv_make_tickadj=yes
32779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_tickadj" >&5
32780 printf "%s\n" "$ntp_cv_make_tickadj" >&6; }
32781 case "$ntp_cv_make_tickadj" in
32783 MAKE_TICKADJ=tickadj
32798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
32799 printf %s "checking if we want and can make the timetrim utility... " >&6; }
32800 if test ${ntp_cv_make_timetrim+y}
32802 printf %s "(cached) " >&6
32807 ntp_cv_make_timetrim=yes
32810 ntp_cv_make_timetrim=yes
32813 ntp_cv_make_timetrim=no
32819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_make_timetrim" >&5
32820 printf "%s\n" "$ntp_cv_make_timetrim" >&6; }
32821 case "$ntp_cv_make_timetrim" in
32823 MAKE_TIMETRIM=timetrim
32835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
32836 printf %s "checking if we want to build the NTPD simulator... " >&6; }
32837 # Check whether --enable-simulator was given.
32838 if test ${enable_simulator+y}
32840 enableval=$enable_simulator; ans=$enableval
32846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32847 printf "%s\n" "$ans" >&6; }
32850 MAKE_NTPDSIM=ntpdsim
32851 MAKE_LIBNTPSIM=libntpsim.a
32866 LDFLAGS="$LDFLAGS -r"
32874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
32875 printf %s "checking if sntp will be built... " >&6; }
32877 # Check whether --with-sntp was given.
32878 if test ${with_sntp+y}
32880 withval=$with_sntp;
32882 with_sntp="${withsntp=yes}"
32886 case "$with_sntp" in
32895 if test -n "$SNTP"; then
32897 BUILD_SNTP_FALSE='#'
32899 BUILD_SNTP_TRUE='#'
32903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
32904 printf "%s\n" "$with_sntp" >&6; }
32908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to build ntpsnmpd" >&5
32909 printf %s "checking if we want to build ntpsnmpd... " >&6; }
32911 # Check whether --with-ntpsnmpd was given.
32912 if test ${with_ntpsnmpd+y}
32914 withval=$with_ntpsnmpd; ans=$withval
32917 case "$PATH_NET_SNMP_CONFIG" in
32925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
32926 printf "%s\n" "$ans" >&6; }
32929 case "$PATH_NET_SNMP_CONFIG" in
32931 SNMP_LIBS=`$PATH_NET_SNMP_CONFIG --agent-libs`
32932 # Bug 2815. This is a bit of a hack, but it works...
32933 case "$ntp_cv_net_snmp_version" in
32934 5.3*) SNMP_LIBS=`echo $SNMP_LIBS | $SED -e 's/-lnetsnmpagent/-lnetsnmpagent -lnetsnmpmibs/'`
32938 # HMS: we really want to separate CPPFLAGS and CFLAGS
32939 foo=`$PATH_NET_SNMP_CONFIG --cflags`
32945 SNMP_CPPFLAGS="$SNMP_CPPFLAGS $i"
32947 *) SNMP_CFLAGS="$SNMP_CFLAGS $i"
32954 save_CFLAGS=$CFLAGS
32955 save_CPPFLAGS=$CPPFLAGS
32957 CFLAGS=$SNMP_CFLAGS
32958 CPPFLAGS=$SNMP_CPPFLAGS
32960 ac_fn_c_check_header_compile "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default"
32961 if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes
32963 MAKE_NTPSNMPD=ntpsnmpd
32965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: net-snmp-config present but net-snmp headers are not available!" >&5
32966 printf "%s\n" "$as_me: WARNING: net-snmp-config present but net-snmp headers are not available!" >&2;}
32971 # Do this last, as we're messing up LIBS.
32972 # check -lnetsnmp for netsnmp_daemonize
32973 LIBS=`$PATH_NET_SNMP_CONFIG --libs`
32974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for netsnmp_daemonize in -lnetsnmp" >&5
32975 printf %s "checking for netsnmp_daemonize in -lnetsnmp... " >&6; }
32976 if test ${ac_cv_lib_netsnmp_netsnmp_daemonize+y}
32978 printf %s "(cached) " >&6
32980 ac_check_lib_save_LIBS=$LIBS
32981 LIBS="-lnetsnmp $LIBS"
32982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32983 /* end confdefs.h. */
32985 /* Override any GCC internal prototype to avoid an error.
32986 Use char because int might match the return type of a GCC
32987 builtin and then its argument prototype would still apply. */
32988 char netsnmp_daemonize ();
32992 return netsnmp_daemonize ();
32997 if ac_fn_c_try_link "$LINENO"
32999 ac_cv_lib_netsnmp_netsnmp_daemonize=yes
33001 ac_cv_lib_netsnmp_netsnmp_daemonize=no
33003 rm -f core conftest.err conftest.$ac_objext conftest.beam \
33004 conftest$ac_exeext conftest.$ac_ext
33005 LIBS=$ac_check_lib_save_LIBS
33007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_netsnmp_daemonize" >&5
33008 printf "%s\n" "$ac_cv_lib_netsnmp_netsnmp_daemonize" >&6; }
33009 if test "x$ac_cv_lib_netsnmp_netsnmp_daemonize" = xyes
33020 printf "%s\n" "#define NEED_NETSNMP_DAEMONIZE 1" >>confdefs.h
33024 CFLAGS=$save_CFLAGS
33025 { save_CFLAGS=; unset save_CFLAGS;}
33026 CPPFLAGS=$save_CPPFLAGS
33027 { save_CPPFLAGS=; unset save_CPPFLAGS;}
33029 { save_LIBS=; unset save_LIBS;}
33032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&5
33033 printf "%s\n" "$as_me: WARNING: Cannot build ntpsnmpd - net-snmp-config cannot be found" >&2;}
33040 case "$MAKE_NTPSNMPD" in
33049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
33050 printf %s "checking if we should always slew the time... " >&6; }
33052 # target-specific defaults
33064 *-*-openvms*) # HMS: won't be found
33071 # --enable-slew-always / --disable-slew-always overrides default
33073 # Check whether --enable-slew-always was given.
33074 if test ${enable_slew_always+y}
33076 enableval=$enable_slew_always; ans=$enableval
33081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33082 printf "%s\n" "$ans" >&6; }
33087 printf "%s\n" "#define SLEWALWAYS 1" >>confdefs.h
33091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
33092 printf %s "checking if we should step and slew the time... " >&6; }
33107 *-*-solaris2.1[0-9]*)
33110 *-*-solaris2.[012]*)
33113 *-*-sysv4*) # HMS: Does this catch Fujitsu UXP?
33120 # Check whether --enable-step-slew was given.
33121 if test ${enable_step_slew+y}
33123 enableval=$enable_step_slew; ans=$enableval
33128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33129 printf "%s\n" "$ans" >&6; }
33134 printf "%s\n" "#define STEP_SLEW 1" >>confdefs.h
33138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
33139 printf %s "checking if ntpdate should step the time... " >&6; }
33149 # Check whether --enable-ntpdate-step was given.
33150 if test ${enable_ntpdate_step+y}
33152 enableval=$enable_ntpdate_step; ans=$enableval
33157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33158 printf "%s\n" "$ans" >&6; }
33163 printf "%s\n" "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
33168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
33169 printf %s "checking if we should sync TODR clock every hour... " >&6; }
33175 *-*-openvms*) # HMS: won't be found
33183 # Check whether --enable-hourly-todr-sync was given.
33184 if test ${enable_hourly_todr_sync+y}
33186 enableval=$enable_hourly_todr_sync; ans=$enableval
33191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33192 printf "%s\n" "$ans" >&6; }
33194 case "$ac_cv_var_sync_todr" in
33197 printf "%s\n" "#define DOSYNCTODR 1" >>confdefs.h
33202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
33203 printf %s "checking if we should avoid kernel FLL bug... " >&6; }
33214 if test "$2" -ge 17
33216 # Generic_105181-17 and higher
33235 if test "$2" -ge 07
33237 # Generic_106541-07 and higher
33253 # Check whether --enable-kernel-fll-bug was given.
33254 if test ${enable_kernel_fll_bug+y}
33256 enableval=$enable_kernel_fll_bug; ans=$enableval
33261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33262 printf "%s\n" "$ans" >&6; }
33267 printf "%s\n" "#define KERNEL_FLL_BUG 1" >>confdefs.h
33272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want new session key behavior" >&5
33273 printf %s "checking if we want new session key behavior... " >&6; }
33274 # Check whether --enable-bug1243-fix was given.
33275 if test ${enable_bug1243_fix+y}
33277 enableval=$enable_bug1243_fix; ans=$enableval
33283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33284 printf "%s\n" "$ans" >&6; }
33288 printf "%s\n" "#define DISABLE_BUG1243_FIX 1" >>confdefs.h
33293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want the explicit 127.0.0.0/8 martian filter" >&5
33294 printf %s "checking if we want the explicit 127.0.0.0/8 martian filter... " >&6; }
33295 # Check whether --enable-bug3020-fix was given.
33296 if test ${enable_bug3020_fix+y}
33298 enableval=$enable_bug3020_fix; ans=$enableval
33304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33305 printf "%s\n" "$ans" >&6; }
33309 printf "%s\n" "#define ENABLE_BUG3020_FIX 1" >>confdefs.h
33314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want correct mode7 fudgetime2 behavior" >&5
33315 printf %s "checking if we want correct mode7 fudgetime2 behavior... " >&6; }
33316 # Check whether --enable-bug3527-fix was given.
33317 if test ${enable_bug3527_fix+y}
33319 enableval=$enable_bug3527_fix; ans=$enableval
33325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33326 printf "%s\n" "$ans" >&6; }
33330 printf "%s\n" "#define DISABLE_BUG3527_FIX 1" >>confdefs.h
33335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want a debug assert on an OOB KoD RATE value" >&5
33336 printf %s "checking if we want a debug assert on an OOB KoD RATE value... " >&6; }
33337 # Check whether --enable-bug3767-fix was given.
33338 if test ${enable_bug3767_fix+y}
33340 enableval=$enable_bug3767_fix; ans=$enableval
33346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33347 printf "%s\n" "$ans" >&6; }
33351 printf "%s\n" "#define DISABLE_BUG3767_FIX 1" >>confdefs.h
33356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
33357 printf %s "checking if we should use the IRIG sawtooth filter... " >&6; }
33363 *-*-solaris2.1[0-9]*)
33370 # Check whether --enable-irig-sawtooth was given.
33371 if test ${enable_irig_sawtooth+y}
33373 enableval=$enable_irig_sawtooth; ans=$enableval
33378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33379 printf "%s\n" "$ans" >&6; }
33384 printf "%s\n" "#define IRIG_SUCKS 1" >>confdefs.h
33388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
33389 printf %s "checking if we should enable NIST lockclock scheme... " >&6; }
33390 # Check whether --enable-nist was given.
33391 if test ${enable_nist+y}
33393 enableval=$enable_nist; ans=$enableval
33400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33401 printf "%s\n" "$ans" >&6; }
33406 printf "%s\n" "#define LOCKCLOCK 1" >>confdefs.h
33410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
33411 printf %s "checking if we want support for Samba's signing daemon... " >&6; }
33412 # Check whether --enable-ntp-signd was given.
33413 if test ${enable_ntp_signd+y}
33415 enableval=$enable_ntp_signd; ans=$enableval
33422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33423 printf "%s\n" "$ans" >&6; }
33430 ntp_signd_path=/var/run/ntp_signd
33433 ntp_signd_path="$ans"
33436 case "$ntp_signd_path" in
33441 printf "%s\n" "#define HAVE_NTP_SIGND 1" >>confdefs.h
33444 printf "%s\n" "#define NTP_SIGND_PATH \"$ntp_signd_path\"" >>confdefs.h
33449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want 'magic' PPS support" >&5
33450 printf %s "checking if we want 'magic' PPS support... " >&6; }
33451 # Check whether --enable-magicpps was given.
33452 if test ${enable_magicpps+y}
33454 enableval=$enable_magicpps; ans=$enableval
33460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
33461 printf "%s\n" "$ans" >&6; }
33465 printf "%s\n" "#define ENABLE_MAGICPPS 1" >>confdefs.h
33467 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
33468 if test "x$ac_cv_func_openat" = xyes
33470 printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h
33473 ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir"
33474 if test "x$ac_cv_func_fdopendir" = xyes
33476 printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h
33479 ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat"
33480 if test "x$ac_cv_func_fstatat" = xyes
33482 printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h
33489 ac_fn_c_check_header_compile "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
33490 if test "x$ac_cv_header_libscf_h" = xyes
33492 printf "%s\n" "#define HAVE_LIBSCF_H 1" >>confdefs.h
33497 case "$ac_cv_header_libscf_h" in
33505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
33506 printf %s "checking for struct sockaddr_storage... " >&6; }
33507 if test ${ntp_cv_sockaddr_storage+y}
33509 printf %s "(cached) " >&6
33511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33512 /* end confdefs.h. */
33514 #ifdef HAVE_SYS_TYPES_H
33515 # include <sys/types.h>
33517 #ifdef HAVE_SYS_SOCKET_H
33518 # include <sys/socket.h>
33520 #ifdef HAVE_NETINET_IN_H
33521 # include <netinet/in.h>
33528 struct sockaddr_storage n;
33535 if ac_fn_c_try_compile "$LINENO"
33537 ntp_cv_sockaddr_storage=yes
33539 ntp_cv_sockaddr_storage=no
33542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
33546 printf "%s\n" "$ntp_cv_sockaddr_storage" >&6; }
33547 case "$ntp_cv_sockaddr_storage" in
33550 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
33552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
33553 printf %s "checking for sockaddr_storage.__ss_family... " >&6; }
33554 if test ${ntp_cv_have___ss_family+y}
33556 printf %s "(cached) " >&6
33558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33559 /* end confdefs.h. */
33561 #ifdef HAVE_SYS_TYPES_H
33562 # include <sys/types.h>
33564 #ifdef HAVE_SYS_SOCKET_H
33565 # include <sys/socket.h>
33567 #ifdef HAVE_NETINET_IN_H
33568 # include <netinet/in.h>
33575 struct sockaddr_storage s;
33583 if ac_fn_c_try_compile "$LINENO"
33585 ntp_cv_have___ss_family=yes
33587 ntp_cv_have___ss_family=no
33590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
33594 printf "%s\n" "$ntp_cv_have___ss_family" >&6; }
33595 case "$ntp_cv_have___ss_family" in
33598 printf "%s\n" "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
33606 # Look for in_port_t.
33608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
33609 printf %s "checking for in_port_t... " >&6; }
33610 if test ${isc_cv_have_in_port_t+y}
33612 printf %s "(cached) " >&6
33614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33615 /* end confdefs.h. */
33617 #include <sys/types.h>
33618 #include <netinet/in.h>
33624 in_port_t port = 25;
33632 if ac_fn_c_try_compile "$LINENO"
33634 isc_cv_have_in_port_t=yes
33636 isc_cv_have_in_port_t=no
33639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
33643 printf "%s\n" "$isc_cv_have_in_port_t" >&6; }
33644 case "$isc_cv_have_in_port_t" in
33647 printf "%s\n" "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
33651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
33652 printf %s "checking type of socklen arg for getsockname()... " >&6; }
33653 if test ${ntp_cv_getsockname_socklen_type+y}
33655 printf %s "(cached) " >&6
33658 getsockname_socklen_type_found=no
33659 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
33660 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
33661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33662 /* end confdefs.h. */
33664 #ifdef HAVE_SYS_TYPES_H
33665 # include <sys/types.h>
33667 #ifdef HAVE_SYS_SOCKET_H
33668 # include <sys/socket.h>
33676 getsockname(int, $getsockname_arg2,
33677 $ntp_cv_getsockname_socklen_type *);
33684 if ac_fn_c_try_compile "$LINENO"
33686 getsockname_socklen_type_found=yes ; break 2
33688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33691 case "$getsockname_socklen_type_found" in
33693 ntp_cv_getsockname_socklen_type='socklen_t'
33695 { getsockname_arg2=; unset getsockname_arg2;}
33696 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
33700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
33701 printf "%s\n" "$ntp_cv_getsockname_socklen_type" >&6; }
33703 printf "%s\n" "#define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type" >>confdefs.h
33706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
33707 printf %s "checking struct sockaddr for sa_len... " >&6; }
33708 if test ${isc_cv_platform_havesalen+y}
33710 printf %s "(cached) " >&6
33712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33713 /* end confdefs.h. */
33715 #include <sys/types.h>
33716 #include <sys/socket.h>
33722 extern struct sockaddr *ps;
33730 if ac_fn_c_try_compile "$LINENO"
33732 isc_cv_platform_havesalen=yes
33734 isc_cv_platform_havesalen=no
33737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
33741 printf "%s\n" "$isc_cv_platform_havesalen" >&6; }
33742 case "$isc_cv_platform_havesalen" in
33745 printf "%s\n" "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
33749 # Check whether --enable-ipv6 was given.
33750 if test ${enable_ipv6+y}
33752 enableval=$enable_ipv6;
33756 case "$enable_ipv6" in
33763 printf "%s\n" "#define WANT_IPV6 1" >>confdefs.h
33776 printf "%s\n" "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
33781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
33782 printf %s "checking for IPv6 structures... " >&6; }
33783 if test ${isc_cv_found_ipv6+y}
33785 printf %s "(cached) " >&6
33787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33788 /* end confdefs.h. */
33790 #include <sys/types.h>
33791 #include <sys/socket.h>
33792 #include <netinet/in.h>
33798 struct sockaddr_in6 sin6;
33805 if ac_fn_c_try_compile "$LINENO"
33807 isc_cv_found_ipv6=yes
33809 isc_cv_found_ipv6=no
33812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
33816 printf "%s\n" "$isc_cv_found_ipv6" >&6; }
33819 # See whether IPv6 support is provided via a Kame add-on.
33820 # This is done before other IPv6 linking tests so LIBS is properly set.
33822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
33823 printf %s "checking for Kame IPv6 support... " >&6; }
33825 # Check whether --with-kame was given.
33826 if test ${with_kame+y}
33828 withval=$with_kame; use_kame="$withval"
33834 case "$use_kame" in
33838 kame_path=/usr/local/v6
33841 kame_path="$use_kame"
33844 case "$use_kame" in
33846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33847 printf "%s\n" "no" >&6; }
33850 if test -f $kame_path/lib/libinet6.a; then
33851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
33852 printf "%s\n" "$kame_path/lib/libinet6.a" >&6; }
33853 LIBS="-L$kame_path/lib -linet6 $LIBS"
33855 as_fn_error $? "$kame_path/lib/libinet6.a not found.
33857 Please choose the proper path with the following command:
33859 configure --with-kame=PATH
33866 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
33867 # Including it on Kame-using platforms is very bad, though, because
33868 # Kame uses #error against direct inclusion. So include it on only
33869 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
33870 # This is done before the in6_pktinfo check because that's what
33871 # netinet6/in6.h is needed for.
33876 printf "%s\n" "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
33878 isc_netinet6in6_hack="#include <netinet6/in6.h>"
33881 isc_netinet6in6_hack=""
33886 # This is similar to the netinet6/in6.h issue.
33889 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
33891 printf "%s\n" "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
33893 isc_netinetin6_hack="#include <netinet/in6.h>"
33896 isc_netinetin6_hack=""
33901 case "$isc_cv_found_ipv6" in
33904 printf "%s\n" "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
33906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
33907 printf %s "checking for in6_pktinfo... " >&6; }
33908 if test ${isc_cv_have_in6_pktinfo+y}
33910 printf %s "(cached) " >&6
33912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33913 /* end confdefs.h. */
33915 #include <sys/types.h>
33916 #include <sys/socket.h>
33917 #include <netinet/in.h>
33918 $isc_netinetin6_hack
33919 $isc_netinet6in6_hack
33925 struct in6_pktinfo xyzzy;
33932 if ac_fn_c_try_compile "$LINENO"
33934 isc_cv_have_in6_pktinfo=yes
33936 isc_cv_have_in6_pktinfo=no
33939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
33943 printf "%s\n" "$isc_cv_have_in6_pktinfo" >&6; }
33944 case "$isc_cv_have_in6_pktinfo" in
33947 printf "%s\n" "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
33952 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
33953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
33954 printf %s "checking for sockaddr_in6.sin6_scope_id... " >&6; }
33955 if test ${isc_cv_have_sin6_scope_id+y}
33957 printf %s "(cached) " >&6
33959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33960 /* end confdefs.h. */
33962 #include <sys/types.h>
33963 #include <sys/socket.h>
33964 #include <netinet/in.h>
33965 $isc_netinetin6_hack
33966 $isc_netinet6in6_hack
33972 struct sockaddr_in6 xyzzy;
33973 xyzzy.sin6_scope_id = 0;
33980 if ac_fn_c_try_compile "$LINENO"
33982 isc_cv_have_sin6_scope_id=yes
33984 isc_cv_have_sin6_scope_id=no
33987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
33991 printf "%s\n" "$isc_cv_have_sin6_scope_id" >&6; }
33993 case "$isc_cv_have_sin6_scope_id" in
33996 printf "%s\n" "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
34002 # We need this check run even without isc_cv_found_ipv6=yes
34004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
34005 printf %s "checking for in6addr_any... " >&6; }
34006 if test ${isc_cv_in6addr_any_links+y}
34008 printf %s "(cached) " >&6
34012 LIBS="$LDADD_LIBNTP $LIBS"
34013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34014 /* end confdefs.h. */
34015 $ac_includes_default
34016 #include <sys/socket.h>
34017 #include <netinet/in.h>
34018 $isc_netinetin6_hack
34019 $isc_netinet6in6_hack
34025 printf("%x", in6addr_any.s6_addr[15]);
34032 if ac_fn_c_try_link "$LINENO"
34034 isc_cv_in6addr_any_links=yes
34036 isc_cv_in6addr_any_links=no
34039 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34040 conftest$ac_exeext conftest.$ac_ext
34042 { SAVED_LIBS=; unset SAVED_LIBS;}
34046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
34047 printf "%s\n" "$isc_cv_in6addr_any_links" >&6; }
34049 case "$isc_cv_in6addr_any_links" in
34052 printf "%s\n" "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
34057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
34058 printf %s "checking for struct if_laddrconf... " >&6; }
34059 if test ${isc_cv_struct_if_laddrconf+y}
34061 printf %s "(cached) " >&6
34063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34064 /* end confdefs.h. */
34066 #include <sys/types.h>
34067 #include <net/if6.h>
34073 struct if_laddrconf a;
34080 if ac_fn_c_try_compile "$LINENO"
34082 isc_cv_struct_if_laddrconf=yes
34084 isc_cv_struct_if_laddrconf=no
34087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
34091 printf "%s\n" "$isc_cv_struct_if_laddrconf" >&6; }
34093 case "$isc_cv_struct_if_laddrconf" in
34096 printf "%s\n" "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
34100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
34101 printf %s "checking for struct if_laddrreq... " >&6; }
34102 if test ${isc_cv_struct_if_laddrreq+y}
34104 printf %s "(cached) " >&6
34106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34107 /* end confdefs.h. */
34109 #include <sys/types.h>
34110 #include <net/if6.h>
34116 struct if_laddrreq a;
34123 if ac_fn_c_try_compile "$LINENO"
34125 isc_cv_struct_if_laddrreq=yes
34127 isc_cv_struct_if_laddrreq=no
34130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
34134 printf "%s\n" "$isc_cv_struct_if_laddrreq" >&6; }
34136 case "$isc_cv_struct_if_laddrreq" in
34139 printf "%s\n" "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
34143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
34144 printf %s "checking for multicast IP support... " >&6; }
34145 if test ${ntp_cv_multicast+y}
34147 printf %s "(cached) " >&6
34150 ntp_cv_multicast=no
34152 i386-sequent-sysv4)
34155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34156 /* end confdefs.h. */
34158 #ifdef HAVE_NETINET_IN_H
34159 # include <netinet/in.h>
34166 struct ip_mreq ipmr;
34167 ipmr.imr_interface.s_addr = 0;
34174 if ac_fn_c_try_compile "$LINENO"
34176 ntp_cv_multicast=yes
34178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
34185 printf "%s\n" "$ntp_cv_multicast" >&6; }
34186 case "$ntp_cv_multicast" in
34189 printf "%s\n" "#define MCAST 1" >>confdefs.h
34191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
34192 printf %s "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
34193 if test ${ntp_cv_typeof_ip_multicast_loop+y}
34195 printf %s "(cached) " >&6
34199 *-*-netbsd*|*-*-*linux*)
34200 ntp_cv_typeof_ip_multicast_loop=u_int
34203 ntp_cv_typeof_ip_multicast_loop=u_char
34209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
34210 printf "%s\n" "$ntp_cv_typeof_ip_multicast_loop" >&6; }
34212 printf "%s\n" "#define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop" >>confdefs.h
34216 # Check whether --enable-getifaddrs was given.
34217 if test ${enable_getifaddrs+y}
34219 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
34221 want_getifaddrs="yes"
34226 case $want_getifaddrs in
34228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
34229 printf "%s\n" "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
34231 case $want_getifaddrs in
34236 LIBS="$LDADD_LIBNTP $LIBS"
34237 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
34238 if test "x$ac_cv_func_getifaddrs" = xyes
34240 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
34245 { SAVED_LIBS=; unset SAVED_LIBS;}
34250 # Check for if_nametoindex() for IPv6 scoped addresses support
34254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
34255 printf %s "checking for library containing if_nametoindex... " >&6; }
34256 if test ${ac_cv_search_if_nametoindex+y}
34258 printf %s "(cached) " >&6
34260 ac_func_search_save_LIBS=$LIBS
34261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34262 /* end confdefs.h. */
34264 /* Override any GCC internal prototype to avoid an error.
34265 Use char because int might match the return type of a GCC
34266 builtin and then its argument prototype would still apply. */
34267 char if_nametoindex ();
34271 return if_nametoindex ();
34276 for ac_lib in '' ipv6
34278 if test -z "$ac_lib"; then
34279 ac_res="none required"
34282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34284 if ac_fn_c_try_link "$LINENO"
34286 ac_cv_search_if_nametoindex=$ac_res
34288 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34290 if test ${ac_cv_search_if_nametoindex+y}
34295 if test ${ac_cv_search_if_nametoindex+y}
34299 ac_cv_search_if_nametoindex=no
34301 rm conftest.$ac_ext
34302 LIBS=$ac_func_search_save_LIBS
34304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
34305 printf "%s\n" "$ac_cv_search_if_nametoindex" >&6; }
34306 ac_res=$ac_cv_search_if_nametoindex
34307 if test "$ac_res" != no
34309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
34315 LIBS="$LDADD_LIBNTP $LIBS"
34316 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
34317 if test "x$ac_cv_func_if_nametoindex" = xyes
34319 printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
34324 { SAVED_LIBS=; unset SAVED_LIBS;}
34325 case "$ac_cv_func_if_nametoindex" in
34328 printf "%s\n" "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
34336 # Look for a sysctl call to get the list of network interfaces.
34338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
34339 printf %s "checking for interface list sysctl... " >&6; }
34340 if test ${ntp_cv_iflist_sysctl+y}
34342 printf %s "(cached) " >&6
34344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34345 /* end confdefs.h. */
34347 #include <sys/param.h>
34348 #include <sys/sysctl.h>
34349 #include <sys/socket.h>
34350 #ifndef NET_RT_IFLIST
34355 if ac_fn_c_try_cpp "$LINENO"
34357 ntp_cv_iflist_sysctl=yes
34359 ntp_cv_iflist_sysctl=no
34362 rm -f conftest.err conftest.i conftest.$ac_ext
34365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_iflist_sysctl" >&5
34366 printf "%s\n" "$ntp_cv_iflist_sysctl" >&6; }
34367 case "$ntp_cv_iflist_sysctl" in
34370 printf "%s\n" "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
34376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want the saveconfig mechanism" >&5
34377 printf %s "checking if we want the saveconfig mechanism... " >&6; }
34378 # Check whether --enable-saveconfig was given.
34379 if test ${enable_saveconfig+y}
34381 enableval=$enable_saveconfig; ntp_ok=$enableval
34387 ntp_saveconfig_enabled=0
34390 ntp_saveconfig_enabled=1
34392 printf "%s\n" "#define SAVECONFIG 1" >>confdefs.h
34396 if test x$ntp_saveconfig_enabled = x1; then
34397 SAVECONFIG_ENABLED_TRUE=
34398 SAVECONFIG_ENABLED_FALSE='#'
34400 SAVECONFIG_ENABLED_TRUE='#'
34401 SAVECONFIG_ENABLED_FALSE=
34404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
34405 printf "%s\n" "$ntp_ok" >&6; }
34409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want the experimental leap smear code" >&5
34410 printf %s "checking if we want the experimental leap smear code... " >&6; }
34411 # Check whether --enable-leap-smear was given.
34412 if test ${enable_leap_smear+y}
34414 enableval=$enable_leap_smear; ntp_ok=$enableval
34420 ntp_leap_smear_enabled=0
34423 ntp_leap_smear_enabled=1
34425 printf "%s\n" "#define LEAP_SMEAR 1" >>confdefs.h
34428 HAVE_LEAPSMEARINTERVAL="leapsmearinterval 0"
34431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
34432 printf "%s\n" "$ntp_ok" >&6; }
34436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want dynamic interleave support" >&5
34437 printf %s "checking if we want dynamic interleave support... " >&6; }
34438 # Check whether --enable-dynamic-interleave was given.
34439 if test ${enable_dynamic_interleave+y}
34441 enableval=$enable_dynamic_interleave; ntp_ok=$enableval
34447 ntp_dynamic_interleave=0
34450 ntp_dynamic_interleave=1
34454 printf "%s\n" "#define DYNAMIC_INTERLEAVE $ntp_dynamic_interleave" >>confdefs.h
34456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
34457 printf "%s\n" "$ntp_ok" >&6; }
34460 # We may not need have_unity
34462 # Extract the first word of "ruby", so it can be a program name with args.
34463 set dummy ruby; ac_word=$2
34464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34465 printf %s "checking for $ac_word... " >&6; }
34466 if test ${ac_cv_path_PATH_RUBY+y}
34468 printf %s "(cached) " >&6
34472 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
34475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34476 for as_dir in $PATH
34479 case $as_dir in #(((
34482 *) as_dir=$as_dir/ ;;
34484 for ac_exec_ext in '' $ac_executable_extensions; do
34485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
34486 ac_cv_path_PATH_RUBY="$as_dir$ac_word$ac_exec_ext"
34487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
34497 PATH_RUBY=$ac_cv_path_PATH_RUBY
34498 if test -n "$PATH_RUBY"; then
34499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
34500 printf "%s\n" "$PATH_RUBY" >&6; }
34502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34503 printf "%s\n" "no" >&6; }
34507 case "$PATH_RUBY" in
34511 *) PATH_RUBY="false"
34514 # We may not need UNITYBUILD_AVAILABLE
34515 if $have_unity; then
34516 UNITYBUILD_AVAILABLE_TRUE=
34517 UNITYBUILD_AVAILABLE_FALSE='#'
34519 UNITYBUILD_AVAILABLE_TRUE='#'
34520 UNITYBUILD_AVAILABLE_FALSE=
34532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
34533 printf %s "checking if we want to enable tests with undiagnosed problems... " >&6; }
34534 # Check whether --enable-problem-tests was given.
34535 if test ${enable_problem_tests+y}
34537 enableval=$enable_problem_tests; ntp_ept=$enableval
34543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_ept" >&5
34544 printf "%s\n" "$ntp_ept" >&6; }
34546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_restrict" >&5
34547 printf %s "checking if we can run test-ntp_restrict... " >&6; }
34548 ntp_test_ntp_restrict="no"
34549 case "$ntp_ept:$cross:$host" in
34550 no:0:*-*-freebsd6.4) ;;
34551 no:0:*-*-hpux11.23*) ;;
34552 no:0:*-*-solaris*) ;;
34553 *) ntp_test_ntp_restrict="yes" ;;
34555 case "$ntp_cv_gc_sections_runs" in
34556 no) ntp_test_ntp_restrict="no" ;;
34559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_restrict" >&5
34560 printf "%s\n" "$ntp_test_ntp_restrict" >&6; }
34561 if test x$ntp_test_ntp_restrict = xyes; then
34562 BUILD_TEST_NTP_RESTRICT_TRUE=
34563 BUILD_TEST_NTP_RESTRICT_FALSE='#'
34565 BUILD_TEST_NTP_RESTRICT_TRUE='#'
34566 BUILD_TEST_NTP_RESTRICT_FALSE=
34570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_scanner" >&5
34571 printf %s "checking if we can run test-ntp_scanner... " >&6; }
34572 ntp_test_ntp_scanner="no"
34573 case "$ntp_ept:$cross:$host" in
34574 no:0:*-*-freebsd6.4) ;;
34575 no:0:*-*-solaris*) ;;
34576 *) ntp_test_ntp_scanner="yes" ;;
34578 case "$ntp_cv_gc_sections_runs" in
34579 no) ntp_test_ntp_scanner="no" ;;
34582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_scanner" >&5
34583 printf "%s\n" "$ntp_test_ntp_scanner" >&6; }
34584 if test x$ntp_test_ntp_scanner = xyes; then
34585 BUILD_TEST_NTP_SCANNER_TRUE=
34586 BUILD_TEST_NTP_SCANNER_FALSE='#'
34588 BUILD_TEST_NTP_SCANNER_TRUE='#'
34589 BUILD_TEST_NTP_SCANNER_FALSE=
34593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can run test-ntp_signd" >&5
34594 printf %s "checking if we can run test-ntp_signd... " >&6; }
34595 ntp_test_ntp_signd="no"
34596 case "$ntp_ept:$cross:$host" in
34597 no:0:*-*-freebsd6.4) ;;
34598 no:0:*-*-solaris*) ;;
34599 *) ntp_test_ntp_signd="yes" ;;
34601 case "$ntp_cv_gc_sections_runs" in
34602 no) ntp_test_ntp_signd="no" ;;
34605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ntp_test_ntp_signd" >&5
34606 printf "%s\n" "$ntp_test_ntp_signd" >&6; }
34607 if test x$ntp_test_ntp_signd = xyes; then
34608 BUILD_TEST_NTP_SIGND_TRUE=
34609 BUILD_TEST_NTP_SIGND_FALSE='#'
34611 BUILD_TEST_NTP_SIGND_TRUE='#'
34612 BUILD_TEST_NTP_SIGND_FALSE=
34620 ac_fn_check_decl "$LINENO" "sigsetjmp" "ac_cv_have_decl_sigsetjmp" "#include <setjmp.h>
34621 " "$ac_c_undeclared_builtin_options" "CFLAGS"
34622 if test "x$ac_cv_have_decl_sigsetjmp" = xyes
34628 printf "%s\n" "#define HAVE_DECL_SIGSETJMP $ac_have_decl" >>confdefs.h
34629 ac_fn_check_decl "$LINENO" "siglongjmp" "ac_cv_have_decl_siglongjmp" "#include <setjmp.h>
34630 " "$ac_c_undeclared_builtin_options" "CFLAGS"
34631 if test "x$ac_cv_have_decl_siglongjmp" = xyes
34637 printf "%s\n" "#define HAVE_DECL_SIGLONGJMP $ac_have_decl" >>confdefs.h
34645 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
34646 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
34647 eval ac_define_dir="\"$sysconfdir\""
34648 eval ac_define_dir="\"$ac_define_dir\""
34649 NTP_KEYSDIR="$ac_define_dir"
34652 printf "%s\n" "#define NTP_KEYSDIR \"$ac_define_dir\"" >>confdefs.h
34654 test "$prefix_NONE" && prefix=NONE
34655 test "$exec_prefix_NONE" && exec_prefix=NONE
34658 ac_config_files="$ac_config_files Makefile"
34660 ac_config_files="$ac_config_files adjtimed/Makefile"
34662 ac_config_files="$ac_config_files clockstuff/Makefile"
34664 ac_config_files="$ac_config_files include/Makefile"
34666 ac_config_files="$ac_config_files include/isc/Makefile"
34668 ac_config_files="$ac_config_files kernel/Makefile"
34670 ac_config_files="$ac_config_files kernel/sys/Makefile"
34672 ac_config_files="$ac_config_files libntp/Makefile"
34674 ac_config_files="$ac_config_files libparse/Makefile"
34676 ac_config_files="$ac_config_files ntpd/Makefile"
34678 ac_config_files="$ac_config_files ntpd/complete.conf"
34680 ac_config_files="$ac_config_files ntpdate/Makefile"
34682 ac_config_files="$ac_config_files ntpdc/Makefile"
34684 ac_config_files="$ac_config_files ntpdc/nl.pl"
34686 ac_config_files="$ac_config_files ntpq/Makefile"
34688 ac_config_files="$ac_config_files ntpsnmpd/Makefile"
34690 ac_config_files="$ac_config_files parseutil/Makefile"
34692 ac_config_files="$ac_config_files scripts/Makefile"
34694 ac_config_files="$ac_config_files scripts/build/Makefile"
34696 ac_config_files="$ac_config_files scripts/build/genAuthors"
34698 ac_config_files="$ac_config_files scripts/build/mkver"
34700 ac_config_files="$ac_config_files scripts/calc_tickadj/Makefile"
34702 ac_config_files="$ac_config_files scripts/calc_tickadj/calc_tickadj"
34704 ac_config_files="$ac_config_files scripts/lib/Makefile"
34706 ac_config_files="$ac_config_files scripts/ntp-wait/Makefile"
34708 ac_config_files="$ac_config_files scripts/ntp-wait/ntp-wait"
34710 ac_config_files="$ac_config_files scripts/ntpsweep/Makefile"
34712 ac_config_files="$ac_config_files scripts/ntpsweep/ntpsweep"
34714 ac_config_files="$ac_config_files scripts/ntptrace/Makefile"
34716 ac_config_files="$ac_config_files scripts/ntptrace/ntptrace"
34718 ac_config_files="$ac_config_files scripts/ntpver"
34720 ac_config_files="$ac_config_files scripts/plot_summary"
34722 ac_config_files="$ac_config_files scripts/summary"
34724 ac_config_files="$ac_config_files scripts/update-leap/Makefile"
34726 ac_config_files="$ac_config_files scripts/update-leap/update-leap"
34728 ac_config_files="$ac_config_files tests/Makefile"
34730 ac_config_files="$ac_config_files tests/bug-2803/Makefile"
34732 ac_config_files="$ac_config_files tests/libntp/Makefile"
34734 ac_config_files="$ac_config_files tests/ntpd/Makefile"
34736 ac_config_files="$ac_config_files tests/ntpq/Makefile"
34738 ac_config_files="$ac_config_files tests/sandbox/Makefile"
34740 ac_config_files="$ac_config_files tests/sec-2853/Makefile"
34742 ac_config_files="$ac_config_files util/Makefile"
34745 perllibdir="${datadir}/ntp/lib"
34749 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
34750 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
34751 eval ac_define_dir="\"$perllibdir\""
34752 eval ac_define_dir="\"$ac_define_dir\""
34753 PERLLIBDIR="$ac_define_dir"
34756 printf "%s\n" "#define PERLLIBDIR \"$ac_define_dir\"" >>confdefs.h
34758 test "$prefix_NONE" && prefix=NONE
34759 test "$exec_prefix_NONE" && exec_prefix=NONE
34762 calc_tickadj_opts="$srcdir/scripts/calc_tickadj/calc_tickadj-opts"
34764 ntp_wait_opts="$srcdir/scripts/ntp-wait/ntp-wait-opts"
34766 ntpsweep_opts="$srcdir/scripts/ntpsweep/ntpsweep-opts"
34768 ntptrace_opts="$srcdir/scripts/ntptrace/ntptrace-opts"
34770 summary_opts="$srcdir/scripts/summary-opts"
34772 plot_summary_opts="$srcdir/scripts/plot_summary-opts"
34777 subdirs="$subdirs sntp"
34780 cat >confcache <<\_ACEOF
34781 # This file is a shell script that caches the results of configure
34782 # tests run on this system so they can be shared between configure
34783 # scripts and configure runs, see configure's option --config-cache.
34784 # It is not useful on other systems. If it contains results you don't
34785 # want to keep, you may remove or edit it.
34787 # config.status only pays attention to the cache file if you give it
34788 # the --recheck option to rerun configure.
34790 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34791 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34792 # following values.
34796 # The following way of writing the cache mishandles newlines in values,
34797 # but we know of no workaround that is simple, portable, and efficient.
34798 # So, we kill variables containing newlines.
34799 # Ultrix sh set writes to stderr and can't be redirected directly,
34800 # and sets the high bit in the cache file unless we assign to the vars.
34802 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34803 eval ac_val=\$$ac_var
34807 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34808 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34811 _ | IFS | as_nl) ;; #(
34812 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34813 *) { eval $ac_var=; unset $ac_var;} ;;
34819 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34820 *${as_nl}ac_space=\ *)
34821 # `set' does not quote correctly, so add quotes: double-quote
34822 # substitution turns \\\\ into \\, and sed turns \\ into \.
34825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34828 # `set' quotes correctly as required by POSIX, so do not add quotes.
34829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34838 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
34840 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34842 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34843 if test -w "$cache_file"; then
34844 if test "x$cache_file" != "x/dev/null"; then
34845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34846 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
34847 if test ! -f "$cache_file" || test -h "$cache_file"; then
34848 cat confcache >"$cache_file"
34850 case $cache_file in #(
34852 mv -f confcache "$cache_file"$$ &&
34853 mv -f "$cache_file"$$ "$cache_file" ;; #(
34855 mv -f confcache "$cache_file" ;;
34860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34861 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
34866 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34867 # Let make expand exec_prefix.
34868 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34870 DEFS=-DHAVE_CONFIG_H
34875 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34876 # 1. Remove the extension, and $U if already installed.
34877 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34878 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
34879 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34880 # will be set to the directory where LIBOBJS objects are built.
34881 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34882 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34884 LIBOBJS=$ac_libobjs
34886 LTLIBOBJS=$ac_ltlibobjs
34889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
34890 printf %s "checking that generated files are newer than configure... " >&6; }
34891 if test -n "$am_sleep_pid"; then
34892 # Hide warnings about reused PIDs.
34893 wait $am_sleep_pid 2>/dev/null
34895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
34896 printf "%s\n" "done" >&6; }
34897 if test -n "$EXEEXT"; then
34899 am__EXEEXT_FALSE='#'
34901 am__EXEEXT_TRUE='#'
34905 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34906 as_fn_error $? "conditional \"AMDEP\" was never defined.
34907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34909 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34910 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
34911 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34914 if test -z "${VPATH_HACK_TRUE}" && test -z "${VPATH_HACK_FALSE}"; then
34915 as_fn_error $? "conditional \"VPATH_HACK\" was never defined.
34916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34918 if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
34919 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
34920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34922 if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
34923 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
34924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34926 if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
34927 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
34928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34930 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
34931 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
34932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34934 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
34935 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
34936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34938 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
34939 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
34940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34942 if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
34943 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
34944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34946 if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
34947 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
34948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34950 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
34951 as_fn_error $? "conditional \"PTHREADS\" was never defined.
34952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34954 if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
34955 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
34956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34958 if test -z "${SAVECONFIG_ENABLED_TRUE}" && test -z "${SAVECONFIG_ENABLED_FALSE}"; then
34959 as_fn_error $? "conditional \"SAVECONFIG_ENABLED\" was never defined.
34960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34962 if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
34963 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
34964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34966 if test -z "${BUILD_TEST_NTP_RESTRICT_TRUE}" && test -z "${BUILD_TEST_NTP_RESTRICT_FALSE}"; then
34967 as_fn_error $? "conditional \"BUILD_TEST_NTP_RESTRICT\" was never defined.
34968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34970 if test -z "${BUILD_TEST_NTP_SCANNER_TRUE}" && test -z "${BUILD_TEST_NTP_SCANNER_FALSE}"; then
34971 as_fn_error $? "conditional \"BUILD_TEST_NTP_SCANNER\" was never defined.
34972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34974 if test -z "${BUILD_TEST_NTP_SIGND_TRUE}" && test -z "${BUILD_TEST_NTP_SIGND_FALSE}"; then
34975 as_fn_error $? "conditional \"BUILD_TEST_NTP_SIGND\" was never defined.
34976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34979 : "${CONFIG_STATUS=./config.status}"
34981 ac_clean_files_save=$ac_clean_files
34982 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
34984 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
34986 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
34988 # Generated by $as_me.
34989 # Run this file to recreate the current configuration.
34990 # Compiler output produced by configure, useful for debugging
34991 # configure, is in config.log if it exists.
34994 ac_cs_recheck=false
34997 SHELL=\${CONFIG_SHELL-$SHELL}
35000 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35001 ## -------------------- ##
35002 ## M4sh Initialization. ##
35003 ## -------------------- ##
35005 # Be more Bourne compatible
35006 DUALCASE=1; export DUALCASE # for MKS sh
35008 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
35012 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35013 # is contrary to our usage. Disable this feature.
35014 alias -g '${1+"$@"}'='"$@"'
35015 setopt NO_GLOB_SUBST
35017 case `(set -o) 2>/dev/null` in #(
35027 # Reset variables that may have inherited troublesome values from
35030 # IFS needs to be set, to space, tab, and newline, in precisely that order.
35031 # (If _AS_PATH_WALK were called with IFS unset, it would have the
35032 # side effect of setting IFS to empty, thus disabling word splitting.)
35033 # Quoting is to prevent editors from complaining about space-tab.
35043 # Ensure predictable behavior from utilities with locale-dependent output.
35049 # We cannot yet rely on "unset" to work, but we need these variables
35050 # to be unset--not just set to an empty or harmless value--now, to
35051 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
35052 # also avoids known problems related to "unset" and subshell syntax
35053 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
35054 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
35055 do eval test \${$as_var+y} \
35056 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35059 # Ensure that fds 0, 1, and 2 are open.
35060 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
35061 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
35062 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
35064 # The user is always right.
35065 if ${PATH_SEPARATOR+false} :; then
35067 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35068 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35074 # Find who we are. Look in the path if we contain no directory separator.
35077 *[\\/]* ) as_myself=$0 ;;
35078 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35079 for as_dir in $PATH
35082 case $as_dir in #(((
35085 *) as_dir=$as_dir/ ;;
35087 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
35093 # We did not find ourselves, most probably we were run as `sh COMMAND'
35094 # in which case we are not to be found in the path.
35095 if test "x$as_myself" = x; then
35098 if test ! -f "$as_myself"; then
35099 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35105 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35106 # ----------------------------------------
35107 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35108 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35109 # script with STATUS, using 1 if that was 0.
35112 as_status=$1; test $as_status -eq 0 && as_status=1
35114 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35117 printf "%s\n" "$as_me: error: $2" >&2
35118 as_fn_exit $as_status
35123 # as_fn_set_status STATUS
35124 # -----------------------
35125 # Set $? to STATUS, without forking.
35126 as_fn_set_status ()
35129 } # as_fn_set_status
35131 # as_fn_exit STATUS
35132 # -----------------
35133 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35137 as_fn_set_status $1
35143 # Portably unset VAR.
35146 { eval $1=; unset $1;}
35148 as_unset=as_fn_unset
35150 # as_fn_append VAR VALUE
35151 # ----------------------
35152 # Append the text in VALUE to the end of the definition contained in VAR. Take
35153 # advantage of any shell optimizations that allow amortized linear growth over
35154 # repeated appends, instead of the typical quadratic growth present in naive
35156 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
35158 eval 'as_fn_append ()
35169 # as_fn_arith ARG...
35170 # ------------------
35171 # Perform arithmetic evaluation on the ARGs, and store the result in the
35172 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35173 # must be portable across $(()) and expr.
35174 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
35176 eval 'as_fn_arith ()
35183 as_val=`expr "$@" || test $? -eq 1`
35188 if expr a : '\(a\)' >/dev/null 2>&1 &&
35189 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35195 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35196 as_basename=basename
35201 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35207 as_me=`$as_basename -- "$0" ||
35208 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35209 X"$0" : 'X\(//\)$' \| \
35210 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35211 printf "%s\n" X/"$0" |
35212 sed '/^.*\/\([^/][^/]*\)\/*$/{
35226 # Avoid depending upon Character Ranges.
35227 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35228 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35229 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35230 as_cr_digits='0123456789'
35231 as_cr_alnum=$as_cr_Letters$as_cr_digits
35234 # Determine whether it's possible to make 'echo' print without a newline.
35235 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
35236 # for compatibility with existing Makefiles.
35237 ECHO_C= ECHO_N= ECHO_T=
35238 case `echo -n x` in #(((((
35240 case `echo 'xy\c'` in
35241 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35243 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35250 # For backward compatibility with old third-party macros, we provide
35251 # the shell variables $as_echo and $as_echo_n. New code should use
35252 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
35253 as_echo='printf %s\n'
35254 as_echo_n='printf %s'
35256 rm -f conf$$ conf$$.exe conf$$.file
35257 if test -d conf$$.dir; then
35258 rm -f conf$$.dir/conf$$.file
35261 mkdir conf$$.dir 2>/dev/null
35263 if (echo >conf$$.file) 2>/dev/null; then
35264 if ln -s conf$$.file conf$$ 2>/dev/null; then
35266 # ... but there are two gotchas:
35267 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35268 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35269 # In both cases, we have to default to `cp -pR'.
35270 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35272 elif ln conf$$.file conf$$ 2>/dev/null; then
35280 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35281 rmdir conf$$.dir 2>/dev/null
35286 # Create "$as_dir" as a directory, including parents if necessary.
35291 -*) as_dir=./$as_dir;;
35293 test -d "$as_dir" || eval $as_mkdir_p || {
35297 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35298 *) as_qdir=$as_dir;;
35300 as_dirs="'$as_qdir' $as_dirs"
35301 as_dir=`$as_dirname -- "$as_dir" ||
35302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35303 X"$as_dir" : 'X\(//\)[^/]' \| \
35304 X"$as_dir" : 'X\(//\)$' \| \
35305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35306 printf "%s\n" X"$as_dir" |
35307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35311 /^X\(\/\/\)[^/].*/{
35324 test -d "$as_dir" && break
35326 test -z "$as_dirs" || eval "mkdir $as_dirs"
35327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35331 if mkdir -p . 2>/dev/null; then
35332 as_mkdir_p='mkdir -p "$as_dir"'
35334 test -d ./-p && rmdir ./-p
35339 # as_fn_executable_p FILE
35340 # -----------------------
35341 # Test if FILE is an executable regular file.
35342 as_fn_executable_p ()
35344 test -f "$1" && test -x "$1"
35345 } # as_fn_executable_p
35346 as_test_x='test -x'
35347 as_executable_p=as_fn_executable_p
35349 # Sed expression to map a string onto a valid CPP name.
35350 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35352 # Sed expression to map a string onto a valid variable name.
35353 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35357 ## ----------------------------------- ##
35358 ## Main body of $CONFIG_STATUS script. ##
35359 ## ----------------------------------- ##
35361 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35364 # Save the log message, to keep $0 and so on meaningful, and to
35365 # report actual input values of CONFIG_FILES etc. instead of their
35366 # values after options handling.
35368 This file was extended by ntp $as_me 4.2.8p17, which was
35369 generated by GNU Autoconf 2.71. Invocation command line was
35371 CONFIG_FILES = $CONFIG_FILES
35372 CONFIG_HEADERS = $CONFIG_HEADERS
35373 CONFIG_LINKS = $CONFIG_LINKS
35374 CONFIG_COMMANDS = $CONFIG_COMMANDS
35377 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35382 case $ac_config_files in *"
35383 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35386 case $ac_config_headers in *"
35387 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35392 # Files that config.status was made for.
35393 config_files="$ac_config_files"
35394 config_headers="$ac_config_headers"
35395 config_commands="$ac_config_commands"
35399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35401 \`$as_me' instantiates files and other configuration actions
35402 from templates according to the current configuration. Unless the files
35403 and actions are specified as TAGs, all are instantiated by default.
35405 Usage: $0 [OPTION]... [TAG]...
35407 -h, --help print this help, then exit
35408 -V, --version print version number and configuration settings, then exit
35409 --config print configuration, then exit
35410 -q, --quiet, --silent
35411 do not print progress messages
35412 -d, --debug don't remove temporary files
35413 --recheck update $as_me by reconfiguring in the same conditions
35414 --file=FILE[:TEMPLATE]
35415 instantiate the configuration file FILE
35416 --header=FILE[:TEMPLATE]
35417 instantiate the configuration header FILE
35419 Configuration files:
35422 Configuration headers:
35425 Configuration commands:
35428 Report bugs to <https://bugs.ntp.org/>.
35429 ntp home page: <https://www.ntp.org/>."
35432 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
35433 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
35434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35435 ac_cs_config='$ac_cs_config_escaped'
35437 ntp config.status 4.2.8p17
35438 configured by $0, generated by GNU Autoconf 2.71,
35439 with options \\"\$ac_cs_config\\"
35441 Copyright (C) 2021 Free Software Foundation, Inc.
35442 This config.status script is free software; the Free Software Foundation
35443 gives unlimited permission to copy, distribute and modify it."
35450 test -n "\$AWK" || AWK=awk
35453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35454 # The default lists apply if the user does not specify any file.
35460 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35461 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35465 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35477 # Handling of the options.
35478 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35480 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35481 printf "%s\n" "$ac_cs_version"; exit ;;
35482 --config | --confi | --conf | --con | --co | --c )
35483 printf "%s\n" "$ac_cs_config"; exit ;;
35484 --debug | --debu | --deb | --de | --d | -d )
35486 --file | --fil | --fi | --f )
35489 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35490 '') as_fn_error $? "missing file argument" ;;
35492 as_fn_append CONFIG_FILES " '$ac_optarg'"
35493 ac_need_defaults=false;;
35494 --header | --heade | --head | --hea )
35497 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35499 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35500 ac_need_defaults=false;;
35502 # Conflict between --help and --header
35503 as_fn_error $? "ambiguous option: \`$1'
35504 Try \`$0 --help' for more information.";;
35505 --help | --hel | -h )
35506 printf "%s\n" "$ac_cs_usage"; exit ;;
35507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35508 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35511 # This is an error.
35512 -*) as_fn_error $? "unrecognized option: \`$1'
35513 Try \`$0 --help' for more information." ;;
35515 *) as_fn_append ac_config_targets " $1"
35516 ac_need_defaults=false ;;
35522 ac_configure_extra_args=
35524 if $ac_cs_silent; then
35526 ac_configure_extra_args="$ac_configure_extra_args --silent"
35530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35531 if \$ac_cs_recheck; then
35532 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35534 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
35535 CONFIG_SHELL='$SHELL'
35536 export CONFIG_SHELL
35541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35545 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35546 ## Running $as_me. ##
35548 printf "%s\n" "$ac_log"
35552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35556 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
35559 # The HP-UX ksh and POSIX shell print the target directory to stdout
35560 # if CDPATH is set.
35561 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35563 sed_quote_subst='$sed_quote_subst'
35564 double_quote_subst='$double_quote_subst'
35565 delay_variable_subst='$delay_variable_subst'
35566 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35567 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35568 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35569 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35570 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35571 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
35572 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
35573 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35574 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35575 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
35576 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35577 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35578 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35579 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35580 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35581 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35582 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35583 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35584 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35585 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35586 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35587 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35588 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35589 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35590 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35591 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35592 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35593 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35594 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35595 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
35596 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35597 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
35598 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35599 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35600 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35601 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35602 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
35603 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35604 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35605 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35606 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
35607 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35608 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
35609 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
35610 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35611 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35612 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35613 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35614 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35615 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35616 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35617 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35618 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35619 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35620 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35621 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35622 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
35623 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35624 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"`'
35625 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
35626 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35627 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
35628 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
35629 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35630 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35631 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
35632 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
35633 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
35634 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35635 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35636 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
35637 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
35638 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35639 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35640 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35641 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35642 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35643 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35644 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35645 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35646 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35647 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35648 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35649 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35650 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35651 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35652 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35653 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35654 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35655 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35656 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35657 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35658 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35659 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35660 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
35661 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35662 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35663 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35664 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35665 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35666 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35667 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35668 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
35669 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35670 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35671 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35672 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35673 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
35674 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
35675 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35676 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35677 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35678 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35679 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35680 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35681 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35682 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35683 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35684 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35685 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35686 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35687 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35688 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35689 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35690 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35691 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35692 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35693 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
35694 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
35695 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35696 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35697 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35698 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35699 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35700 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35703 LTCFLAGS='$LTCFLAGS'
35704 compiler='$compiler_DEFAULT'
35706 # A function that is used when there is no print builtin or printf.
35707 func_fallback_echo ()
35709 eval 'cat <<_LTECHO_EOF
35714 # Quote evaled strings.
35729 deplibs_check_method \
35734 sharedlib_from_linklib_cmd \
35737 archiver_list_spec \
35743 lt_cv_sys_global_symbol_pipe \
35744 lt_cv_sys_global_symbol_to_cdecl \
35745 lt_cv_sys_global_symbol_to_import \
35746 lt_cv_sys_global_symbol_to_c_name_address \
35747 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
35748 lt_cv_nm_interface \
35749 nm_file_list_spec \
35750 lt_cv_truncate_bin \
35751 lt_prog_compiler_no_builtin_flag \
35752 lt_prog_compiler_pic \
35753 lt_prog_compiler_wl \
35754 lt_prog_compiler_static \
35755 lt_cv_prog_compiler_c_o \
35764 export_dynamic_flag_spec \
35765 whole_archive_flag_spec \
35766 compiler_needs_object \
35768 allow_undefined_flag \
35769 no_undefined_flag \
35770 hardcode_libdir_flag_spec \
35771 hardcode_libdir_separator \
35775 variables_saved_for_relink \
35777 library_names_spec \
35779 install_override_mode \
35783 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35784 *[\\\\\\\`\\"\\\$]*)
35785 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
35788 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35793 # Double-quote double-evaled strings.
35794 for var in reload_cmds \
35795 old_postinstall_cmds \
35796 old_postuninstall_cmds \
35798 extract_expsyms_cmds \
35799 old_archive_from_new_cmds \
35800 old_archive_from_expsyms_cmds \
35802 archive_expsym_cmds \
35804 module_expsym_cmds \
35805 export_symbols_cmds \
35809 postuninstall_cmds \
35811 sys_lib_search_path_spec \
35812 configure_time_dlsearch_path \
35813 configure_time_lt_sys_library_path; do
35814 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35815 *[\\\\\\\`\\"\\\$]*)
35816 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
35819 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35824 ac_aux_dir='$ac_aux_dir'
35826 # See if we are running on zsh, and set the options that allow our
35827 # commands through without removal of \ escapes INIT.
35828 if test -n "\${ZSH_VERSION+set}"; then
35829 setopt NO_GLOB_SUBST
35843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35845 # Handling of arguments.
35846 for ac_config_target in $ac_config_targets
35848 case $ac_config_target in
35849 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
35850 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35851 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
35852 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35853 "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
35854 "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
35855 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
35856 "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
35857 "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
35858 "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
35859 "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
35860 "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
35861 "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
35862 "ntpd/complete.conf") CONFIG_FILES="$CONFIG_FILES ntpd/complete.conf" ;;
35863 "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
35864 "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
35865 "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
35866 "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
35867 "ntpsnmpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpsnmpd/Makefile" ;;
35868 "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
35869 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
35870 "scripts/build/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/build/Makefile" ;;
35871 "scripts/build/genAuthors") CONFIG_FILES="$CONFIG_FILES scripts/build/genAuthors" ;;
35872 "scripts/build/mkver") CONFIG_FILES="$CONFIG_FILES scripts/build/mkver" ;;
35873 "scripts/calc_tickadj/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/Makefile" ;;
35874 "scripts/calc_tickadj/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj/calc_tickadj" ;;
35875 "scripts/lib/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/lib/Makefile" ;;
35876 "scripts/ntp-wait/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/Makefile" ;;
35877 "scripts/ntp-wait/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait/ntp-wait" ;;
35878 "scripts/ntpsweep/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/Makefile" ;;
35879 "scripts/ntpsweep/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep/ntpsweep" ;;
35880 "scripts/ntptrace/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/Makefile" ;;
35881 "scripts/ntptrace/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace/ntptrace" ;;
35882 "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
35883 "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
35884 "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
35885 "scripts/update-leap/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/Makefile" ;;
35886 "scripts/update-leap/update-leap") CONFIG_FILES="$CONFIG_FILES scripts/update-leap/update-leap" ;;
35887 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
35888 "tests/bug-2803/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bug-2803/Makefile" ;;
35889 "tests/libntp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libntp/Makefile" ;;
35890 "tests/ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpd/Makefile" ;;
35891 "tests/ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ntpq/Makefile" ;;
35892 "tests/sandbox/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sandbox/Makefile" ;;
35893 "tests/sec-2853/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sec-2853/Makefile" ;;
35894 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
35896 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35901 # If the user did not use the arguments to specify the items to instantiate,
35902 # then the envvar interface is used. Set only those that are not.
35903 # We use the long form for the default assignment because of an extremely
35904 # bizarre bug on SunOS 4.1.3.
35905 if $ac_need_defaults; then
35906 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
35907 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
35908 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
35911 # Have a temporary directory for convenience. Make it in the build tree
35912 # simply because there is no reason against having it here, and in addition,
35913 # creating and moving files from /tmp can sometimes cause problems.
35914 # Hook for its removal unless debugging.
35915 # Note that there is a small window in which the directory will not be cleaned:
35916 # after its creation but before its name has been assigned to `$tmp'.
35920 trap 'exit_status=$?
35921 : "${ac_tmp:=$tmp}"
35922 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35924 trap 'as_fn_exit 1' 1 2 13 15
35926 # Create a (secure) tmp directory for tmp files.
35929 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35933 tmp=./conf$$-$RANDOM
35934 (umask 077 && mkdir "$tmp")
35935 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35938 # Set up the scripts for CONFIG_FILES section.
35939 # No need to generate them if there are no CONFIG_FILES.
35940 # This happens for instance with `./config.status config.h'.
35941 if test -n "$CONFIG_FILES"; then
35943 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
35944 ac_cs_awk_getline=:
35945 ac_cs_awk_pipe_init=
35946 ac_cs_awk_read_file='
35947 while ((getline aline < (F[key])) > 0)
35950 ac_cs_awk_pipe_fini=
35952 ac_cs_awk_getline=false
35953 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
35954 ac_cs_awk_read_file='
35956 print "cat " F[key] " &&"
35957 '$ac_cs_awk_pipe_init
35958 # The final `:' finishes the AND list.
35959 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
35961 ac_cr=`echo X | tr X '\015'`
35962 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35963 # But we know of no other shell where ac_cr would be empty at this
35964 # point, so we can use a bashism as a fallback.
35965 if test "x$ac_cr" = x; then
35966 eval ac_cr=\$\'\\r\'
35968 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35969 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35972 ac_cs_awk_cr=$ac_cr
35975 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35978 # Create commands to substitute file output variables.
35980 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
35981 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
35982 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
35985 } >conf$$files.sh &&
35986 . ./conf$$files.sh ||
35987 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35988 rm -f conf$$files.sh
35991 echo "cat >conf$$subs.awk <<_ACEOF" &&
35992 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35994 } >conf$$subs.sh ||
35995 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35996 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
35998 for ac_last_try in false false false false false :; do
35999 . ./conf$$subs.sh ||
36000 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36002 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36003 if test $ac_delim_n = $ac_delim_num; then
36005 elif $ac_last_try; then
36006 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36008 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36011 rm -f conf$$subs.sh
36013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36014 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
36018 s/^/S["/; s/!.*/"]=/
36028 s/\(.\{148\}\)..*/\1/
36030 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36035 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36042 s/\(.\{148\}\)..*/\1/
36044 s/["\\]/\\&/g; s/^/"/; s/$/"/
36048 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36053 ' <conf$$subs.awk | sed '
36058 ' >>$CONFIG_STATUS || ac_write_fail=1
36059 rm -f conf$$subs.awk
36060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36062 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
36063 for (key in S) S_is_set[key] = 1
36065 \$ac_cs_awk_pipe_init
36069 nfields = split(line, field, "@")
36071 len = length(field[1])
36072 for (i = 2; i < nfields; i++) {
36074 keylen = length(key)
36075 if (S_is_set[key]) {
36077 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36078 len += length(value) + length(field[++i])
36083 if (nfields == 3 && !substed) {
36085 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
36086 \$ac_cs_awk_read_file
36092 \$ac_cs_awk_pipe_fini
36095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36096 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36097 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36100 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
36101 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
36104 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36105 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
36106 # trailing colons and then remove the whole line if VPATH becomes empty
36107 # (actually we leave an empty line to preserve line numbers).
36108 if test "x$srcdir" = x.; then
36109 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36128 fi # test -n "$CONFIG_FILES"
36130 # Set up the scripts for CONFIG_HEADERS section.
36131 # No need to generate them if there are no CONFIG_HEADERS.
36132 # This happens for instance with `./config.status Makefile'.
36133 if test -n "$CONFIG_HEADERS"; then
36134 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
36138 # Transform confdefs.h into an awk script `defines.awk', embedded as
36139 # here-document in config.status, that substitutes the proper values into
36140 # config.h.in to produce config.h.
36142 # Create a delimiter string that does not exist in confdefs.h, to ease
36143 # handling of long lines.
36145 for ac_last_try in false false :; do
36146 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36147 if test -z "$ac_tt"; then
36149 elif $ac_last_try; then
36150 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
36152 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36156 # For the awk script, D is an array of macro values keyed by name,
36157 # likewise P contains macro parameters if any. Preserve backslash
36158 # newline sequences.
36160 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36162 s/.\{148\}/&'"$ac_delim"'/g
36165 s/^[ ]*#[ ]*define[ ][ ]*/ /
36172 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36174 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36178 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36179 D["\1"]=" \3\\\\\\n"\\/p
36181 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36186 s/.\{148\}/&'"$ac_delim"'/g
36191 s/["\\]/\\&/g; s/^/"/; s/$/"/p
36194 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36196 ' <confdefs.h | sed '
36197 s/'"$ac_delim"'/"\\\
36198 "/g' >>$CONFIG_STATUS || ac_write_fail=1
36200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36201 for (key in D) D_is_set[key] = 1
36204 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36206 split(line, arg, " ")
36207 if (arg[1] == "#") {
36211 defundef = substr(arg[1], 2)
36214 split(mac1, mac2, "(") #)
36216 prefix = substr(line, 1, index(line, defundef) - 1)
36217 if (D_is_set[macro]) {
36218 # Preserve the white space surrounding the "#".
36219 print prefix "define", macro P[macro] D[macro]
36222 # Replace #undef with comments. This is necessary, for example,
36223 # in the case of _POSIX_SOURCE, which is predefined and required
36224 # on some systems where configure will not decide to define it.
36225 if (defundef == "undef") {
36226 print "/*", prefix defundef, macro, "*/"
36234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36235 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
36236 fi # test -n "$CONFIG_HEADERS"
36239 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36244 :[FHLC]) ac_mode=$ac_tag; continue;;
36246 case $ac_mode$ac_tag in
36248 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
36249 :[FH]-) ac_tag=-:-;;
36250 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36267 -) ac_f="$ac_tmp/stdin";;
36268 *) # Look for the file first in the build tree, then in the source tree
36269 # (if the path is not absolute). The absolute path cannot be DOS-style,
36270 # because $ac_f cannot contain `:'.
36274 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36276 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
36278 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36279 as_fn_append ac_file_inputs " '$ac_f'"
36282 # Let's still pretend it is `configure' which instantiates (i.e., don't
36283 # use $as_me), people would be surprised to read:
36284 # /* config.h. Generated by config.status. */
36285 configure_input='Generated from '`
36286 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36288 if test x"$ac_file" != x-; then
36289 configure_input="$ac_file. $configure_input"
36290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36291 printf "%s\n" "$as_me: creating $ac_file" >&6;}
36293 # Neutralize special characters interpreted by sed in replacement strings.
36294 case $configure_input in #(
36295 *\&* | *\|* | *\\* )
36296 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
36297 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36298 *) ac_sed_conf_input=$configure_input;;
36302 *:-:* | *:-) cat >"$ac_tmp/stdin" \
36303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
36308 ac_dir=`$as_dirname -- "$ac_file" ||
36309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36310 X"$ac_file" : 'X\(//\)[^/]' \| \
36311 X"$ac_file" : 'X\(//\)$' \| \
36312 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36313 printf "%s\n" X"$ac_file" |
36314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36318 /^X\(\/\/\)[^/].*/{
36331 as_dir="$ac_dir"; as_fn_mkdir_p
36335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36337 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
36338 # A ".." for each directory in $ac_dir_suffix.
36339 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36340 case $ac_top_builddir_sub in
36341 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36342 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36345 ac_abs_top_builddir=$ac_pwd
36346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36347 # for backward compatibility:
36348 ac_top_builddir=$ac_top_build_prefix
36351 .) # We are building in place.
36353 ac_top_srcdir=$ac_top_builddir_sub
36354 ac_abs_top_srcdir=$ac_pwd ;;
36355 [\\/]* | ?:[\\/]* ) # Absolute name.
36356 ac_srcdir=$srcdir$ac_dir_suffix;
36357 ac_top_srcdir=$srcdir
36358 ac_abs_top_srcdir=$srcdir ;;
36359 *) # Relative name.
36360 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36361 ac_top_srcdir=$ac_top_build_prefix$srcdir
36362 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36374 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36375 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36377 ac_MKDIR_P=$MKDIR_P
36379 [\\/$]* | ?:[\\/]* ) ;;
36380 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36385 # If the template does not know about datarootdir, expand it.
36386 # FIXME: This hack should be removed a few years after 2.60.
36387 ac_datarootdir_hack=; ac_datarootdir_seen=
36398 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36399 *datarootdir*) ac_datarootdir_seen=yes;;
36400 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36402 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36405 ac_datarootdir_hack='
36406 s&@datadir@&$datadir&g
36407 s&@docdir@&$docdir&g
36408 s&@infodir@&$infodir&g
36409 s&@localedir@&$localedir&g
36410 s&@mandir@&$mandir&g
36411 s&\\\${datarootdir}&$datarootdir&g' ;;
36415 # Neutralize VPATH when `$srcdir' = `.'.
36416 # Shell code in configure.ac might set extrasub.
36417 # FIXME: do we really want to maintain this feature?
36418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36419 ac_sed_extra="$ac_vpsub
36422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36424 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36425 s|@configure_input@|$ac_sed_conf_input|;t t
36426 s&@top_builddir@&$ac_top_builddir_sub&;t t
36427 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36428 s&@srcdir@&$ac_srcdir&;t t
36429 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36430 s&@top_srcdir@&$ac_top_srcdir&;t t
36431 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36432 s&@builddir@&$ac_builddir&;t t
36433 s&@abs_builddir@&$ac_abs_builddir&;t t
36434 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36435 s&@INSTALL@&$ac_INSTALL&;t t
36436 s&@MKDIR_P@&$ac_MKDIR_P&;t t
36437 $ac_datarootdir_hack
36439 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
36440 if $ac_cs_awk_getline; then
36441 $AWK -f "$ac_tmp/subs.awk"
36443 $AWK -f "$ac_tmp/subs.awk" | $SHELL
36445 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36447 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36448 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36449 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36450 "$ac_tmp/out"`; test -z "$ac_out"; } &&
36451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36452 which seems to be undefined. Please make sure it is defined" >&5
36453 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36454 which seems to be undefined. Please make sure it is defined" >&2;}
36456 rm -f "$ac_tmp/stdin"
36458 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36459 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36461 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36467 if test x"$ac_file" != x-; then
36469 printf "%s\n" "/* $configure_input */" >&1 \
36470 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36471 } >"$ac_tmp/config.h" \
36472 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36473 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36475 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
36478 mv "$ac_tmp/config.h" "$ac_file" \
36479 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36482 printf "%s\n" "/* $configure_input */" >&1 \
36483 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36484 || as_fn_error $? "could not create -" "$LINENO" 5
36486 # Compute "$ac_file"'s index in $config_headers.
36489 for _am_header in $config_headers :; do
36490 case $_am_header in
36491 $_am_arg | $_am_arg:* )
36494 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36497 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36498 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36499 X"$_am_arg" : 'X\(//\)[^/]' \| \
36500 X"$_am_arg" : 'X\(//\)$' \| \
36501 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36502 printf "%s\n" X"$_am_arg" |
36503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36507 /^X\(\/\/\)[^/].*/{
36519 s/.*/./; q'`/stamp-h$_am_stamp_count
36522 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36523 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
36528 case $ac_file$ac_mode in
36529 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36530 # Older Autoconf quotes --file arguments for eval, but not when files
36531 # are listed without --file. Let's play safe and only enable the eval
36532 # if we detect the quoting.
36533 # TODO: see whether this extra hack can be removed once we start
36534 # requiring Autoconf 2.70 or later.
36535 case $CONFIG_FILES in #(
36537 eval set x "$CONFIG_FILES" ;; #(
36539 set x $CONFIG_FILES ;; #(
36544 # Used to flag and report bootstrapping failures.
36548 # Strip MF so we end up with the name of the file.
36549 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
36550 # Check whether this is an Automake generated Makefile which includes
36551 # dependency-tracking related rules and includes.
36552 # Grep'ing the whole file directly is not great: AIX grep has a line
36553 # limit of 2048, but all sed's we know have understand at least 4000.
36554 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
36556 am_dirpart=`$as_dirname -- "$am_mf" ||
36557 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36558 X"$am_mf" : 'X\(//\)[^/]' \| \
36559 X"$am_mf" : 'X\(//\)$' \| \
36560 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
36561 printf "%s\n" X"$am_mf" |
36562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36566 /^X\(\/\/\)[^/].*/{
36579 am_filepart=`$as_basename -- "$am_mf" ||
36580 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
36581 X"$am_mf" : 'X\(//\)$' \| \
36582 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
36583 printf "%s\n" X/"$am_mf" |
36584 sed '/^.*\/\([^/][^/]*\)\/*$/{
36597 { echo "$as_me:$LINENO: cd "$am_dirpart" \
36598 && sed -e '/# am--include-marker/d' "$am_filepart" \
36599 | $MAKE -f - am--depfiles" >&5
36600 (cd "$am_dirpart" \
36601 && sed -e '/# am--include-marker/d' "$am_filepart" \
36602 | $MAKE -f - am--depfiles) >&5 2>&5
36604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605 (exit $ac_status); } || am_rc=$?
36607 if test $am_rc -ne 0; then
36608 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36609 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
36610 as_fn_error $? "Something went wrong bootstrapping makefile fragments
36611 for automatic dependency tracking. If GNU make was not used, consider
36612 re-running the configure script with MAKE=\"gmake\" (or whatever is
36613 necessary). You can also try re-running configure with the
36614 '--disable-dependency-tracking' option to at least be able to build
36615 the package (albeit without support for automatic dependency tracking).
36616 See \`config.log' for more details" "$LINENO" 5; }
36618 { am_dirpart=; unset am_dirpart;}
36619 { am_filepart=; unset am_filepart;}
36620 { am_mf=; unset am_mf;}
36621 { am_rc=; unset am_rc;}
36622 rm -f conftest-deps.mk
36627 # See if we are running on zsh, and set the options that allow our
36628 # commands through without removal of \ escapes.
36629 if test -n "${ZSH_VERSION+set}"; then
36630 setopt NO_GLOB_SUBST
36634 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36637 cat <<_LT_EOF >> "$cfgfile"
36639 # Generated automatically by $as_me ($PACKAGE) $VERSION
36640 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36641 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
36643 # Provide generalized library-building support services.
36644 # Written by Gordon Matzigkeit, 1996
36646 # Copyright (C) 2014 Free Software Foundation, Inc.
36647 # This is free software; see the source for copying conditions. There is NO
36648 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
36650 # GNU Libtool is free software; you can redistribute it and/or modify
36651 # it under the terms of the GNU General Public License as published by
36652 # the Free Software Foundation; either version 2 of of the License, or
36653 # (at your option) any later version.
36655 # As a special exception to the GNU General Public License, if you
36656 # distribute this file as part of a program or library that is built
36657 # using GNU Libtool, you may include this file under the same
36658 # distribution terms that you use for the rest of that program.
36660 # GNU Libtool is distributed in the hope that it will be useful, but
36661 # WITHOUT ANY WARRANTY; without even the implied warranty of
36662 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36663 # GNU General Public License for more details.
36665 # You should have received a copy of the GNU General Public License
36666 # along with this program. If not, see <http://www.gnu.org/licenses/>.
36669 # The names of the tagged configurations supported by this script.
36672 # Configured defaults for sys_lib_dlsearch_path munging.
36673 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
36675 # ### BEGIN LIBTOOL CONFIG
36677 # Whether or not to build shared libraries.
36678 build_libtool_libs=$enable_shared
36680 # Which release of libtool.m4 was used?
36681 macro_version=$macro_version
36682 macro_revision=$macro_revision
36684 # Whether or not to build static libraries.
36685 build_old_libs=$enable_static
36687 # What type of objects to build.
36690 # Whether or not to optimize for fast installation.
36691 fast_install=$enable_fast_install
36693 # Shared archive member basename,for filename based shared library versioning on AIX.
36694 shared_archive_member_spec=$shared_archive_member_spec
36696 # Shell to use when invoking shell scripts.
36699 # An echo program that protects backslashes.
36702 # The PATH separator for the build system.
36703 PATH_SEPARATOR=$lt_PATH_SEPARATOR
36706 host_alias=$host_alias
36710 # The build system.
36711 build_alias=$build_alias
36715 # A sed program that does not truncate output.
36718 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
36719 Xsed="\$SED -e 1s/^X//"
36721 # A grep program that handles long lines.
36727 # A literal string matcher.
36730 # A BSD- or MS-compatible name lister.
36733 # Whether we need soft or hard links.
36736 # What is the maximum length of a command?
36737 max_cmd_len=$max_cmd_len
36739 # Object file suffix (normally "o").
36742 # Executable file suffix (normally "").
36745 # whether the shell understands "unset".
36748 # turn spaces into newlines.
36751 # turn newlines into spaces.
36754 # convert \$build file names to \$host format.
36755 to_host_file_cmd=$lt_cv_to_host_file_cmd
36757 # convert \$build files to toolchain format.
36758 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36760 # An object symbol dumper.
36761 OBJDUMP=$lt_OBJDUMP
36763 # Method to check whether dependent libraries are shared objects.
36764 deplibs_check_method=$lt_deplibs_check_method
36766 # Command to use when deplibs_check_method = "file_magic".
36767 file_magic_cmd=$lt_file_magic_cmd
36769 # How to find potential files when deplibs_check_method = "file_magic".
36770 file_magic_glob=$lt_file_magic_glob
36772 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
36773 want_nocaseglob=$lt_want_nocaseglob
36775 # DLL creation program.
36776 DLLTOOL=$lt_DLLTOOL
36778 # Command to associate shared and link libraries.
36779 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
36784 # Flags to create an archive.
36785 AR_FLAGS=$lt_AR_FLAGS
36787 # How to feed a file listing to the archiver.
36788 archiver_list_spec=$lt_archiver_list_spec
36790 # A symbol stripping program.
36793 # Commands used to install an old-style archive.
36795 old_postinstall_cmds=$lt_old_postinstall_cmds
36796 old_postuninstall_cmds=$lt_old_postuninstall_cmds
36798 # Whether to use a lock for old archive extraction.
36799 lock_old_archive_extraction=$lock_old_archive_extraction
36804 # LTCC compiler flags.
36805 LTCFLAGS=$lt_CFLAGS
36807 # Take the output of nm and produce a listing of raw symbols and C names.
36808 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36810 # Transform the output of nm in a proper C declaration.
36811 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36813 # Transform the output of nm into a list of symbols to manually relocate.
36814 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
36816 # Transform the output of nm in a C name address pair.
36817 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36819 # Transform the output of nm in a C name address pair when lib prefix is needed.
36820 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36822 # The name lister interface.
36823 nm_interface=$lt_lt_cv_nm_interface
36825 # Specify filename containing input files for \$NM.
36826 nm_file_list_spec=$lt_nm_file_list_spec
36828 # The root where to search for dependent libraries,and where our libraries should be installed.
36829 lt_sysroot=$lt_sysroot
36831 # Command to truncate a binary pipe.
36832 lt_truncate_bin=$lt_lt_cv_truncate_bin
36834 # The name of the directory that contains temporary libtool files.
36837 # Used to examine libraries when file_magic_cmd begins with "file".
36838 MAGIC_CMD=$MAGIC_CMD
36840 # Must we lock files when doing compilation?
36841 need_locks=$lt_need_locks
36844 MANIFEST_TOOL=$lt_MANIFEST_TOOL
36846 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36847 DSYMUTIL=$lt_DSYMUTIL
36849 # Tool to change global to local symbols on Mac OS X.
36852 # Tool to manipulate fat objects and archives on Mac OS X.
36855 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
36858 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36859 OTOOL64=$lt_OTOOL64
36861 # Old archive suffix (normally "a").
36864 # Shared library suffix (normally ".so").
36865 shrext_cmds=$lt_shrext_cmds
36867 # The commands to extract the exported symbol list from a shared archive.
36868 extract_expsyms_cmds=$lt_extract_expsyms_cmds
36870 # Variables whose values should be saved in libtool wrapper scripts and
36871 # restored at link time.
36872 variables_saved_for_relink=$lt_variables_saved_for_relink
36874 # Do we need the "lib" prefix for modules?
36875 need_lib_prefix=$need_lib_prefix
36877 # Do we need a version for libraries?
36878 need_version=$need_version
36880 # Library versioning type.
36881 version_type=$version_type
36883 # Shared library runtime path variable.
36884 runpath_var=$runpath_var
36886 # Shared library path variable.
36887 shlibpath_var=$shlibpath_var
36889 # Is shlibpath searched before the hard-coded library search path?
36890 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36892 # Format of library name prefix.
36893 libname_spec=$lt_libname_spec
36895 # List of archive names. First name is the real one, the rest are links.
36896 # The last name is the one that the linker finds with -lNAME
36897 library_names_spec=$lt_library_names_spec
36899 # The coded name of the library, if different from the real name.
36900 soname_spec=$lt_soname_spec
36902 # Permission mode override for installation of shared libraries.
36903 install_override_mode=$lt_install_override_mode
36905 # Command to use after installation of a shared archive.
36906 postinstall_cmds=$lt_postinstall_cmds
36908 # Command to use after uninstallation of a shared archive.
36909 postuninstall_cmds=$lt_postuninstall_cmds
36911 # Commands used to finish a libtool library installation in a directory.
36912 finish_cmds=$lt_finish_cmds
36914 # As "finish_cmds", except a single script fragment to be evaled but
36916 finish_eval=$lt_finish_eval
36918 # Whether we should hardcode library paths into libraries.
36919 hardcode_into_libs=$hardcode_into_libs
36921 # Compile-time system search path for libraries.
36922 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
36924 # Detected run-time system search path for libraries.
36925 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
36927 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
36928 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
36930 # Whether dlopen is supported.
36931 dlopen_support=$enable_dlopen
36933 # Whether dlopen of programs is supported.
36934 dlopen_self=$enable_dlopen_self
36936 # Whether dlopen of statically linked programs is supported.
36937 dlopen_self_static=$enable_dlopen_self_static
36939 # Commands to strip libraries.
36940 old_striplib=$lt_old_striplib
36941 striplib=$lt_striplib
36944 # The linker used to build libraries.
36947 # How to create reloadable object files.
36948 reload_flag=$lt_reload_flag
36949 reload_cmds=$lt_reload_cmds
36951 # Commands used to build an old-style archive.
36952 old_archive_cmds=$lt_old_archive_cmds
36954 # A language specific compiler.
36957 # Is the compiler the GNU compiler?
36960 # Compiler flag to turn off builtin functions.
36961 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
36963 # Additional compiler flags for building library objects.
36964 pic_flag=$lt_lt_prog_compiler_pic
36966 # How to pass a linker flag through the compiler.
36967 wl=$lt_lt_prog_compiler_wl
36969 # Compiler flag to prevent dynamic linking.
36970 link_static_flag=$lt_lt_prog_compiler_static
36972 # Does compiler simultaneously support -c and -o options?
36973 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
36975 # Whether or not to add -lc for building shared libraries.
36976 build_libtool_need_lc=$archive_cmds_need_lc
36978 # Whether or not to disallow shared libs when runtime libs are static.
36979 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36981 # Compiler flag to allow reflexive dlopens.
36982 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36984 # Compiler flag to generate shared objects directly from archives.
36985 whole_archive_flag_spec=$lt_whole_archive_flag_spec
36987 # Whether the compiler copes with passing no objects directly.
36988 compiler_needs_object=$lt_compiler_needs_object
36990 # Create an old-style archive from a shared archive.
36991 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36993 # Create a temporary old-style archive to link instead of a shared archive.
36994 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36996 # Commands used to build a shared archive.
36997 archive_cmds=$lt_archive_cmds
36998 archive_expsym_cmds=$lt_archive_expsym_cmds
37000 # Commands used to build a loadable module if different from building
37001 # a shared archive.
37002 module_cmds=$lt_module_cmds
37003 module_expsym_cmds=$lt_module_expsym_cmds
37005 # Whether we are building with GNU ld or not.
37006 with_gnu_ld=$lt_with_gnu_ld
37008 # Flag that allows shared libraries with undefined symbols to be built.
37009 allow_undefined_flag=$lt_allow_undefined_flag
37011 # Flag that enforces no undefined symbols.
37012 no_undefined_flag=$lt_no_undefined_flag
37014 # Flag to hardcode \$libdir into a binary during linking.
37015 # This must work even if \$libdir does not exist
37016 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37018 # Whether we need a single "-rpath" flag with a separated argument.
37019 hardcode_libdir_separator=$lt_hardcode_libdir_separator
37021 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
37022 # DIR into the resulting binary.
37023 hardcode_direct=$hardcode_direct
37025 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
37026 # DIR into the resulting binary and the resulting library dependency is
37027 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
37028 # library is relocated.
37029 hardcode_direct_absolute=$hardcode_direct_absolute
37031 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37032 # into the resulting binary.
37033 hardcode_minus_L=$hardcode_minus_L
37035 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37036 # into the resulting binary.
37037 hardcode_shlibpath_var=$hardcode_shlibpath_var
37039 # Set to "yes" if building a shared library automatically hardcodes DIR
37040 # into the library and all subsequent libraries and executables linked
37042 hardcode_automatic=$hardcode_automatic
37044 # Set to yes if linker adds runtime paths of dependent libraries
37045 # to runtime path list.
37046 inherit_rpath=$inherit_rpath
37048 # Whether libtool must link a program against all its dependency libraries.
37049 link_all_deplibs=$link_all_deplibs
37051 # Set to "yes" if exported symbols are required.
37052 always_export_symbols=$always_export_symbols
37054 # The commands to list exported symbols.
37055 export_symbols_cmds=$lt_export_symbols_cmds
37057 # Symbols that should not be listed in the preloaded symbols.
37058 exclude_expsyms=$lt_exclude_expsyms
37060 # Symbols that must always be exported.
37061 include_expsyms=$lt_include_expsyms
37063 # Commands necessary for linking programs (against libraries) with templates.
37064 prelink_cmds=$lt_prelink_cmds
37066 # Commands necessary for finishing linking programs.
37067 postlink_cmds=$lt_postlink_cmds
37069 # Specify filename containing input files.
37070 file_list_spec=$lt_file_list_spec
37072 # How to hardcode a shared library path into an executable.
37073 hardcode_action=$hardcode_action
37075 # ### END LIBTOOL CONFIG
37079 cat <<'_LT_EOF' >> "$cfgfile"
37081 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
37083 # func_munge_path_list VARIABLE PATH
37084 # -----------------------------------
37085 # VARIABLE is name of variable containing _space_ separated list of
37086 # directories to be munged by the contents of PATH, which is string
37089 # string "DIR[ DIR]" will be prepended to VARIABLE
37091 # string "DIR[ DIR]" will be appended to VARIABLE
37092 # "DIRP[:DIRP]::[DIRA:]DIRA"
37093 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
37094 # "DIRA[ DIRA]" will be appended to VARIABLE
37096 # VARIABLE will be replaced by "DIR[ DIR]"
37097 func_munge_path_list ()
37103 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
37106 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
37109 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
37110 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
37113 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
37119 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
37120 func_cc_basename ()
37122 for cc_temp in $*""; do
37124 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
37125 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
37130 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
37134 # ### END FUNCTIONS SHARED WITH CONFIGURE
37140 cat <<\_LT_EOF >> "$cfgfile"
37141 # AIX sometimes has problems with the GCC collect2 program. For some
37142 # reason, if we set the COLLECT_NAMES environment variable, the problems
37143 # vanish in a puff of smoke.
37144 if test set != "${COLLECT_NAMES+set}"; then
37146 export COLLECT_NAMES
37154 ltmain=$ac_aux_dir/ltmain.sh
37157 # We use sed instead of cat because bash on DJGPP gets confused if
37158 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37159 # text mode, it properly converts lines to CR/LF. This bash problem
37160 # is reportedly fixed, but why not run on old versions too?
37161 sed '$q' "$ltmain" >> "$cfgfile" \
37162 || (rm -f "$cfgfile"; exit 1)
37164 mv -f "$cfgfile" "$ofile" ||
37165 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37169 "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 ;;
37170 "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
37171 "scripts/build/genAuthors":F) chmod +x scripts/build/genAuthors ;;
37172 "scripts/build/mkver":F) chmod +x scripts/build/mkver ;;
37173 "scripts/calc_tickadj/calc_tickadj":F) chmod +x scripts/calc_tickadj/calc_tickadj ;;
37174 "scripts/ntp-wait/ntp-wait":F) chmod +x scripts/ntp-wait/ntp-wait ;;
37175 "scripts/ntpsweep/ntpsweep":F) chmod +x scripts/ntpsweep/ntpsweep ;;
37176 "scripts/ntptrace/ntptrace":F) chmod +x scripts/ntptrace/ntptrace ;;
37177 "scripts/ntpver":F) chmod +x scripts/ntpver ;;
37178 "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
37179 "scripts/summary":F) chmod +x scripts/summary ;;
37180 "scripts/update-leap/update-leap":F) chmod +x scripts/update-leap/update-leap ;;
37188 ac_clean_files=$ac_clean_files_save
37190 test $ac_write_fail = 0 ||
37191 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
37194 # configure is writing to config.log, and then calls config.status.
37195 # config.status does its own redirection, appending to config.log.
37196 # Unfortunately, on DOS this fails, as config.log is still kept open
37197 # by configure, so config.status won't be able to write to it; its
37198 # output is simply discarded. So we exec the FD to /dev/null,
37199 # effectively closing config.log, so it can be properly (re)opened and
37200 # appended to by config.status. When coming back to configure, we
37201 # need to make the FD available again.
37202 if test "$no_create" != yes; then
37204 ac_config_status_args=
37205 test "$silent" = yes &&
37206 ac_config_status_args="$ac_config_status_args --quiet"
37208 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37210 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37211 # would make configure fail if this is the last instruction.
37212 $ac_cs_success || as_fn_exit 1
37216 # CONFIG_SUBDIRS section.
37218 if test "$no_recursion" != yes; then
37220 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
37221 # so they do not pile up.
37222 ac_sub_configure_args=
37224 eval "set x $ac_configure_args"
37228 if test -n "$ac_prev"; then
37233 -cache-file | --cache-file | --cache-fil | --cache-fi \
37234 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
37235 ac_prev=cache_file ;;
37236 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
37237 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
37240 --config-cache | -C)
37242 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
37244 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
37246 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
37248 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
37250 --disable-option-checking)
37254 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
37256 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
37260 # Always prepend --prefix to ensure using the same prefix
37261 # in subdir configurations.
37262 ac_arg="--prefix=$prefix"
37264 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
37266 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
37269 if test "$silent" = yes; then
37270 ac_sub_configure_args="--silent $ac_sub_configure_args"
37273 # Always prepend --disable-option-checking to silence warnings, since
37274 # different subdirs can have different --enable and --with options.
37275 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
37278 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
37280 # Do not complain, so a configure script can configure whichever
37281 # parts of a large source tree are present.
37282 test -d "$srcdir/$ac_dir" || continue
37284 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
37285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
37286 printf "%s\n" "$ac_msg" >&6
37287 as_dir="$ac_dir"; as_fn_mkdir_p
37291 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37293 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
37294 # A ".." for each directory in $ac_dir_suffix.
37295 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37296 case $ac_top_builddir_sub in
37297 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37298 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37301 ac_abs_top_builddir=$ac_pwd
37302 ac_abs_builddir=$ac_pwd$ac_dir_suffix
37303 # for backward compatibility:
37304 ac_top_builddir=$ac_top_build_prefix
37307 .) # We are building in place.
37309 ac_top_srcdir=$ac_top_builddir_sub
37310 ac_abs_top_srcdir=$ac_pwd ;;
37311 [\\/]* | ?:[\\/]* ) # Absolute name.
37312 ac_srcdir=$srcdir$ac_dir_suffix;
37313 ac_top_srcdir=$srcdir
37314 ac_abs_top_srcdir=$srcdir ;;
37315 *) # Relative name.
37316 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37317 ac_top_srcdir=$ac_top_build_prefix$srcdir
37318 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37320 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37325 # Check for configure.gnu first; this name is used for a wrapper for
37326 # Metaconfig's "Configure" on case-insensitive file systems.
37327 if test -f "$ac_srcdir/configure.gnu"; then
37328 ac_sub_configure=$ac_srcdir/configure.gnu
37329 elif test -f "$ac_srcdir/configure"; then
37330 ac_sub_configure=$ac_srcdir/configure
37332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
37333 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
37337 # The recursion is here.
37338 if test -n "$ac_sub_configure"; then
37339 # Make the cache file name correct relative to the subdirectory.
37340 case $cache_file in
37341 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
37342 *) # Relative name.
37343 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
37346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
37347 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
37348 # The eval makes quoting arguments work.
37349 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
37350 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
37351 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
37357 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
37358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
37359 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}