2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sntp 4.2.8p11.
5 # Report bugs to <http://bugs.ntp.org./>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.ntp.org./ about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
592 PACKAGE_TARNAME='sntp'
593 PACKAGE_VERSION='4.2.8p11'
594 PACKAGE_STRING='sntp 4.2.8p11'
595 PACKAGE_BUGREPORT='http://bugs.ntp.org./'
596 PACKAGE_URL='http://www.ntp.org./'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
635 enable_option_checking=no
636 ac_subst_vars='am__EXEEXT_FALSE
639 BUILD_TEST_KODFILE_FALSE
640 BUILD_TEST_KODFILE_TRUE
641 BUILD_TEST_KODDATABASE_FALSE
642 BUILD_TEST_KODDATABASE_TRUE
643 UNITYBUILD_AVAILABLE_FALSE
644 UNITYBUILD_AVAILABLE_TRUE
655 NTP_FORCE_LIBEVENT_DIST
661 INSTALL_LIBOPTS_FALSE
664 GL_GENERATE_STDNORETURN_H_FALSE
665 GL_GENERATE_STDNORETURN_H_TRUE
689 LIBISC_PTHREADS_NOTHREADS
702 NTP_CROSSCOMPILE_FALSE
703 NTP_CROSSCOMPILE_TRUE
706 INSTALL_UPDATE_LEAP_FALSE
707 INSTALL_UPDATE_LEAP_TRUE
748 INSTALL_NTPSWEEP_FALSE
749 INSTALL_NTPSWEEP_TRUE
791 WANT_CALC_TICKADJ_MS_FALSE
792 WANT_CALC_TICKADJ_MS_TRUE
840 INSTALL_STRIP_PROGRAM
882 program_transform_name
895 enable_option_checking
897 enable_dependency_tracking
903 enable_thread_support
920 enable_libopts_install
927 enable_local_libevent
937 ac_precious_vars='build_alias
947 ac_subdirs_all='libevent'
949 # Initialize some variables set by options.
951 ac_init_version=false
952 ac_unrecognized_opts=
954 # The variables have the same names as the options, with
955 # dashes changed to underlines.
963 program_transform_name=s,x,x,
971 # Installation directory options.
972 # These are left unexpanded so users can "make install exec_prefix=/foo"
973 # and all the variables that are supposed to be based on exec_prefix
974 # by default will actually change.
975 # Use braces instead of parens because sh, perl, etc. also accept them.
976 # (The list follows the same order as the GNU Coding Standards.)
977 bindir='${exec_prefix}/bin'
978 sbindir='${exec_prefix}/sbin'
979 libexecdir='${exec_prefix}/libexec'
980 datarootdir='${prefix}/share'
981 datadir='${datarootdir}'
982 sysconfdir='${prefix}/etc'
983 sharedstatedir='${prefix}/com'
984 localstatedir='${prefix}/var'
985 includedir='${prefix}/include'
986 oldincludedir='/usr/include'
987 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988 infodir='${datarootdir}/info'
993 libdir='${exec_prefix}/lib'
994 localedir='${datarootdir}/locale'
995 mandir='${datarootdir}/man'
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
1003 eval $ac_prev=\$ac_option
1009 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1016 case $ac_dashdash$ac_option in
1020 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023 bindir=$ac_optarg ;;
1025 -build | --build | --buil | --bui | --bu)
1026 ac_prev=build_alias ;;
1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028 build_alias=$ac_optarg ;;
1030 -cache-file | --cache-file | --cache-fil | --cache-fi \
1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032 ac_prev=cache_file ;;
1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035 cache_file=$ac_optarg ;;
1037 --config-cache | -C)
1038 cache_file=config.cache ;;
1040 -datadir | --datadir | --datadi | --datad)
1042 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1043 datadir=$ac_optarg ;;
1045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046 | --dataroo | --dataro | --datar)
1047 ac_prev=datarootdir ;;
1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050 datarootdir=$ac_optarg ;;
1052 -disable-* | --disable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error $? "invalid feature name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1061 "enable_$ac_useropt"
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1066 eval enable_$ac_useropt=no ;;
1068 -docdir | --docdir | --docdi | --doc | --do)
1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071 docdir=$ac_optarg ;;
1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076 dvidir=$ac_optarg ;;
1078 -enable-* | --enable-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error $? "invalid feature name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1087 "enable_$ac_useropt"
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1092 eval enable_$ac_useropt=\$ac_optarg ;;
1094 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096 | --exec | --exe | --ex)
1097 ac_prev=exec_prefix ;;
1098 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100 | --exec=* | --exe=* | --ex=*)
1101 exec_prefix=$ac_optarg ;;
1103 -gas | --gas | --ga | --g)
1104 # Obsolete; use --with-gas.
1107 -help | --help | --hel | --he | -h)
1108 ac_init_help=long ;;
1109 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110 ac_init_help=recursive ;;
1111 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112 ac_init_help=short ;;
1114 -host | --host | --hos | --ho)
1115 ac_prev=host_alias ;;
1116 -host=* | --host=* | --hos=* | --ho=*)
1117 host_alias=$ac_optarg ;;
1119 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123 htmldir=$ac_optarg ;;
1125 -includedir | --includedir | --includedi | --included | --include \
1126 | --includ | --inclu | --incl | --inc)
1127 ac_prev=includedir ;;
1128 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129 | --includ=* | --inclu=* | --incl=* | --inc=*)
1130 includedir=$ac_optarg ;;
1132 -infodir | --infodir | --infodi | --infod | --info | --inf)
1134 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135 infodir=$ac_optarg ;;
1137 -libdir | --libdir | --libdi | --libd)
1139 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140 libdir=$ac_optarg ;;
1142 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143 | --libexe | --libex | --libe)
1144 ac_prev=libexecdir ;;
1145 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146 | --libexe=* | --libex=* | --libe=*)
1147 libexecdir=$ac_optarg ;;
1149 -localedir | --localedir | --localedi | --localed | --locale)
1150 ac_prev=localedir ;;
1151 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152 localedir=$ac_optarg ;;
1154 -localstatedir | --localstatedir | --localstatedi | --localstated \
1155 | --localstate | --localstat | --localsta | --localst | --locals)
1156 ac_prev=localstatedir ;;
1157 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1158 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1159 localstatedir=$ac_optarg ;;
1161 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164 mandir=$ac_optarg ;;
1166 -nfp | --nfp | --nf)
1167 # Obsolete; use --without-fp.
1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171 | --no-cr | --no-c | -n)
1174 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1178 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180 | --oldin | --oldi | --old | --ol | --o)
1181 ac_prev=oldincludedir ;;
1182 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185 oldincludedir=$ac_optarg ;;
1187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190 prefix=$ac_optarg ;;
1192 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193 | --program-pre | --program-pr | --program-p)
1194 ac_prev=program_prefix ;;
1195 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197 program_prefix=$ac_optarg ;;
1199 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200 | --program-suf | --program-su | --program-s)
1201 ac_prev=program_suffix ;;
1202 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204 program_suffix=$ac_optarg ;;
1206 -program-transform-name | --program-transform-name \
1207 | --program-transform-nam | --program-transform-na \
1208 | --program-transform-n | --program-transform- \
1209 | --program-transform | --program-transfor \
1210 | --program-transfo | --program-transf \
1211 | --program-trans | --program-tran \
1212 | --progr-tra | --program-tr | --program-t)
1213 ac_prev=program_transform_name ;;
1214 -program-transform-name=* | --program-transform-name=* \
1215 | --program-transform-nam=* | --program-transform-na=* \
1216 | --program-transform-n=* | --program-transform-=* \
1217 | --program-transform=* | --program-transfor=* \
1218 | --program-transfo=* | --program-transf=* \
1219 | --program-trans=* | --program-tran=* \
1220 | --progr-tra=* | --program-tr=* | --program-t=*)
1221 program_transform_name=$ac_optarg ;;
1223 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226 pdfdir=$ac_optarg ;;
1228 -psdir | --psdir | --psdi | --psd | --ps)
1230 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234 | -silent | --silent | --silen | --sile | --sil)
1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241 sbindir=$ac_optarg ;;
1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245 | --sharedst | --shareds | --shared | --share | --shar \
1247 ac_prev=sharedstatedir ;;
1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252 sharedstatedir=$ac_optarg ;;
1254 -site | --site | --sit)
1256 -site=* | --site=* | --sit=*)
1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262 srcdir=$ac_optarg ;;
1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265 | --syscon | --sysco | --sysc | --sys | --sy)
1266 ac_prev=sysconfdir ;;
1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269 sysconfdir=$ac_optarg ;;
1271 -target | --target | --targe | --targ | --tar | --ta | --t)
1272 ac_prev=target_alias ;;
1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274 target_alias=$ac_optarg ;;
1276 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1279 -version | --version | --versio | --versi | --vers | -V)
1280 ac_init_version=: ;;
1283 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error $? "invalid package name: $ac_useropt"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1296 eval with_$ac_useropt=\$ac_optarg ;;
1298 -without-* | --without-*)
1299 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 as_fn_error $? "invalid package name: $ac_useropt"
1303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1312 eval with_$ac_useropt=no ;;
1315 # Obsolete; use --with-x.
1318 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319 | --x-incl | --x-inc | --x-in | --x-i)
1320 ac_prev=x_includes ;;
1321 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323 x_includes=$ac_optarg ;;
1325 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327 ac_prev=x_libraries ;;
1328 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330 x_libraries=$ac_optarg ;;
1332 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1333 Try \`$0 --help' for more information"
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 case $ac_envvar in #(
1340 '' | [0-9]* | *[!_$as_cr_alnum]* )
1341 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1343 eval $ac_envvar=\$ac_optarg
1344 export $ac_envvar ;;
1347 # FIXME: should be removed in autoconf 3.0.
1348 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1357 if test -n "$ac_prev"; then
1358 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359 as_fn_error $? "missing argument to $ac_option"
1362 if test -n "$ac_unrecognized_opts"; then
1363 case $enable_option_checking in
1365 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1366 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370 # Check all directory arguments for consistency.
1371 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372 datadir sysconfdir sharedstatedir localstatedir includedir \
1373 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374 libdir localedir mandir
1376 eval ac_val=\$$ac_var
1377 # Remove trailing slashes.
1380 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381 eval $ac_var=\$ac_val;;
1383 # Be sure to have absolute directory names.
1385 [\\/$]* | ?:[\\/]* ) continue;;
1386 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1388 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1391 # There might be people who depend on the old broken behavior: `$host'
1392 # used to hold the argument of --host etc.
1393 # FIXME: To remove some day.
1396 target=$target_alias
1398 # FIXME: To remove some day.
1399 if test "x$host_alias" != x; then
1400 if test "x$build_alias" = x; then
1401 cross_compiling=maybe
1402 elif test "x$build_alias" != "x$host_alias"; then
1408 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410 test "$silent" = yes && exec 6>/dev/null
1413 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414 ac_ls_di=`ls -di .` &&
1415 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416 as_fn_error $? "working directory cannot be determined"
1417 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418 as_fn_error $? "pwd does not report name of working directory"
1421 # Find the source files, if location was not specified.
1422 if test -z "$srcdir"; then
1423 ac_srcdir_defaulted=yes
1424 # Try the directory containing this script, then the parent directory.
1425 ac_confdir=`$as_dirname -- "$as_myself" ||
1426 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427 X"$as_myself" : 'X\(//\)[^/]' \| \
1428 X"$as_myself" : 'X\(//\)$' \| \
1429 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430 $as_echo X"$as_myself" |
1431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1453 ac_srcdir_defaulted=no
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1457 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1459 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1463 # When building in place, set srcdir=.
1464 if test "$ac_abs_confdir" = "$ac_pwd"; then
1467 # Remove unnecessary trailing slashes from srcdir.
1468 # Double slashes in file names in object file debugging info
1469 # mess up M-x gdb in Emacs.
1471 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 for ac_var in $ac_precious_vars; do
1474 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_env_${ac_var}_value=\$${ac_var}
1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481 # Report the --help message.
1483 if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
1487 \`configure' configures sntp 4.2.8p11 to adapt to many kinds of systems.
1489 Usage: $0 [OPTION]... [VAR=VALUE]...
1491 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492 VAR=VALUE. See below for descriptions of some of the useful variables.
1494 Defaults for the options are specified in brackets.
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
1501 -q, --quiet, --silent do not print \`checking ...' messages
1502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for \`--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1507 Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
1509 [$ac_default_prefix]
1510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1513 By default, \`make install' will install all the files in
1514 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516 for instance \`--prefix=\$HOME'.
1518 For better control, use the options below.
1520 Fine tuning of the installation directories:
1521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1527 --libdir=DIR object code libraries [EPREFIX/lib]
1528 --includedir=DIR C header files [PREFIX/include]
1529 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1532 --infodir=DIR info documentation [DATAROOTDIR/info]
1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1534 --mandir=DIR man documentation [DATAROOTDIR/man]
1535 --docdir=DIR documentation root [DATAROOTDIR/doc/sntp]
1536 --htmldir=DIR html documentation [DOCDIR]
1537 --dvidir=DIR dvi documentation [DOCDIR]
1538 --pdfdir=DIR pdf documentation [DOCDIR]
1539 --psdir=DIR ps documentation [DOCDIR]
1545 --program-prefix=PREFIX prepend PREFIX to installed program names
1546 --program-suffix=SUFFIX append SUFFIX to installed program names
1547 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1550 --build=BUILD configure for building on BUILD [guessed]
1551 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1555 if test -n "$ac_init_help"; then
1556 case $ac_init_help in
1557 short | recursive ) echo "Configuration of sntp 4.2.8p11:";;
1562 --disable-option-checking ignore unrecognized --enable/--with options
1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1565 --enable-silent-rules less verbose build output (undo: "make V=1")
1566 --disable-silent-rules verbose build output (undo: "make V=0")
1567 --enable-dependency-tracking
1568 do not reject slow dependency extractors
1569 --disable-dependency-tracking
1570 speeds up one-time build
1571 defaults: + yes, - no, s system-specific
1572 --enable-debugging + include ntpd debugging code
1573 --enable-thread-support s use threads (+ if available)
1574 --enable-c99-snprintf s force replacement
1575 --enable-clockctl s Use /dev/clockctl for non-root clock control
1576 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1577 --enable-solarisprivs + Use Solaris privileges for non-root clock control
1578 --enable-shared[=PKGS] build shared libraries [default=no]
1579 --enable-static[=PKGS] build static libraries [default=yes]
1580 --enable-fast-install[=PKGS]
1581 optimize for fast installation [default=yes]
1582 --disable-libtool-lock avoid locking (might break parallel builds)
1583 --disable-nls disable nls support in libopts
1584 --enable-local-libopts Use the supplied libopts tearoff code
1585 --enable-libopts-install
1586 Install libopts with client installation
1587 --disable-optional-args not wanting optional option args
1588 --enable-local-libevent Force using the supplied libevent tearoff code
1589 --enable-ipv6 s use IPv6?
1591 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]].
1592 --enable-problem-tests + enable tests with undiagnosed problems
1595 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1596 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1597 --with-hardenfile=XXX os-specific or "/dev/null"
1598 --with-locfile=XXX os-specific or "legacy"
1599 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1600 --with-lineeditlibs edit,editline (readline may be specified if desired)
1601 --with-threads with threads [auto]
1602 --with-yielding-select with yielding select [auto]
1603 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1605 --with-aix-soname=aix|svr4|both
1606 shared library versioning (aka "SONAME") variant to
1607 provide on AIX, [default=aix].
1608 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1609 compiler's sysroot if not specified).
1610 --without-sntp - disable building sntp and sntp/tests
1611 --with-autoopts-config specify the config-info script
1612 --with-regex-header a reg expr header is specified
1613 --with-libregex libregex installation prefix
1614 --with-libregex-cflags libregex compile flags
1615 --with-libregex-libs libregex link command arguments
1616 --with-crypto + =openssl,libcrypto
1618 --with-openssl-libdir + =/something/reasonable
1620 --with-openssl-incdir + =/something/reasonable
1622 --without-rpath s Disable auto-added -R linker paths
1624 --with-kame - =/usr/local/v6
1626 Some influential environment variables:
1627 CC C compiler command
1628 CFLAGS C compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 LIBS libraries to pass to the linker, e.g. -l<library>
1632 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633 you have headers in a nonstandard directory <include dir>
1636 User-defined run-time library search path.
1638 Use these variables to override the choices made by `configure' or to help
1639 it to find libraries and programs with nonstandard names/locations.
1641 Report bugs to <http://bugs.ntp.org./>.
1642 sntp home page: <http://www.ntp.org./>.
1647 if test "$ac_init_help" = "recursive"; then
1648 # If there are subdirs, report their specific --help.
1649 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1650 test -d "$ac_dir" ||
1651 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1659 # A ".." for each directory in $ac_dir_suffix.
1660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1661 case $ac_top_builddir_sub in
1662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1666 ac_abs_top_builddir=$ac_pwd
1667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1668 # for backward compatibility:
1669 ac_top_builddir=$ac_top_build_prefix
1672 .) # We are building in place.
1674 ac_top_srcdir=$ac_top_builddir_sub
1675 ac_abs_top_srcdir=$ac_pwd ;;
1676 [\\/]* | ?:[\\/]* ) # Absolute name.
1677 ac_srcdir=$srcdir$ac_dir_suffix;
1678 ac_top_srcdir=$srcdir
1679 ac_abs_top_srcdir=$srcdir ;;
1681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1682 ac_top_srcdir=$ac_top_build_prefix$srcdir
1683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1687 cd "$ac_dir" || { ac_status=$?; continue; }
1688 # Check for guested configure.
1689 if test -f "$ac_srcdir/configure.gnu"; then
1691 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1692 elif test -f "$ac_srcdir/configure"; then
1694 $SHELL "$ac_srcdir/configure" --help=recursive
1696 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1698 cd "$ac_pwd" || { ac_status=$?; break; }
1702 test -n "$ac_init_help" && exit $ac_status
1703 if $ac_init_version; then
1705 sntp configure 4.2.8p11
1706 generated by GNU Autoconf 2.69
1708 Copyright (C) 2012 Free Software Foundation, Inc.
1709 This configure script is free software; the Free Software Foundation
1710 gives unlimited permission to copy, distribute and modify it.
1715 ## ------------------------ ##
1716 ## Autoconf initialization. ##
1717 ## ------------------------ ##
1719 # ac_fn_c_try_compile LINENO
1720 # --------------------------
1721 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_compile ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 rm -f conftest.$ac_objext
1726 if { { ac_try="$ac_compile"
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_compile") 2>conftest.err
1735 if test -s conftest.err; then
1736 grep -v '^ *+' conftest.err >conftest.er1
1737 cat conftest.er1 >&5
1738 mv -f conftest.er1 conftest.err
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && {
1742 test -z "$ac_c_werror_flag" ||
1743 test ! -s conftest.err
1744 } && test -s conftest.$ac_objext; then :
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status $ac_retval
1755 } # ac_fn_c_try_compile
1757 # ac_fn_c_try_cpp LINENO
1758 # ----------------------
1759 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if { { ac_try="$ac_cpp conftest.$ac_ext"
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } > conftest.i && {
1779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1784 $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1794 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1797 # the include files in INCLUDES and setting the cache variable VAR
1799 ac_fn_c_check_header_mongrel ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 if eval \${$3+:} false; then :
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806 $as_echo_n "(cached) " >&6
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1812 # Is the header compilable?
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1814 $as_echo_n "checking $2 usability... " >&6; }
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1820 if ac_fn_c_try_compile "$LINENO"; then :
1821 ac_header_compiler=yes
1823 ac_header_compiler=no
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1827 $as_echo "$ac_header_compiler" >&6; }
1829 # Is the header present?
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1831 $as_echo_n "checking $2 presence... " >&6; }
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1836 if ac_fn_c_try_cpp "$LINENO"; then :
1837 ac_header_preproc=yes
1839 ac_header_preproc=no
1841 rm -f conftest.err conftest.i conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1843 $as_echo "$ac_header_preproc" >&6; }
1845 # So? What about this header?
1846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1849 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1855 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1857 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1859 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1861 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864 ( $as_echo "## ------------------------------------ ##
1865 ## Report this to http://bugs.ntp.org./ ##
1866 ## ------------------------------------ ##"
1867 ) | sed "s/^/$as_me: WARNING: /" >&2
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1875 eval "$3=\$ac_header_compiler"
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 } # ac_fn_c_check_header_mongrel
1885 # ac_fn_c_try_run LINENO
1886 # ----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1888 # that executables *can* be run.
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 if { { ac_try="$ac_link"
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_link") 2>&5
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1903 { { case "(($ac_try" in
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_try") 2>&5
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; }; }; then :
1915 $as_echo "$as_me: program exited with status $ac_status" >&5
1916 $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1919 ac_retval=$ac_status
1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 as_fn_set_status $ac_retval
1927 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1928 # -------------------------------------------------------
1929 # Tests whether HEADER exists and can be compiled using the include files in
1930 # INCLUDES, setting the cache variable VAR accordingly.
1931 ac_fn_c_check_header_compile ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1944 if ac_fn_c_try_compile "$LINENO"; then :
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956 } # ac_fn_c_check_header_compile
1958 # ac_fn_c_try_link LINENO
1959 # -----------------------
1960 # Try to link conftest.$ac_ext, and return whether this succeeded.
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 rm -f conftest.$ac_objext conftest$ac_exeext
1965 if { { ac_try="$ac_link"
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_link") 2>conftest.err
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && {
1981 test -z "$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1983 } && test -s conftest$ac_exeext && {
1984 test "$cross_compiling" = yes ||
1985 test -x conftest$ac_exeext
1989 $as_echo "$as_me: failed program was:" >&5
1990 sed 's/^/| /' conftest.$ac_ext >&5
1994 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1995 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1996 # interfere with the next link command; also delete a directory that is
1997 # left behind by Apple's compiler. We do this before executing the actions.
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 as_fn_set_status $ac_retval
2002 } # ac_fn_c_try_link
2004 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2005 # -------------------------------------------
2006 # Tests whether TYPE exists after having included INCLUDES, setting cache
2007 # variable VAR accordingly.
2008 ac_fn_c_check_type ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014 $as_echo_n "(cached) " >&6
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2042 if ac_fn_c_try_compile "$LINENO"; then :
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 } # ac_fn_c_check_type
2058 # ac_fn_c_check_func LINENO FUNC VAR
2059 # ----------------------------------
2060 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2061 ac_fn_c_check_func ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if eval \${$3+:} false; then :
2067 $as_echo_n "(cached) " >&6
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2073 #define $2 innocuous_$2
2075 /* System header to define __stub macros and hopefully few prototypes,
2076 which can conflict with char $2 (); below.
2077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2078 <limits.h> exists even on freestanding compilers. */
2081 # include <limits.h>
2083 # include <assert.h>
2088 /* Override any GCC internal prototype to avoid an error.
2089 Use char because int might match the return type of a GCC
2090 builtin and then its argument prototype would still apply. */
2095 /* The GNU C library defines this for functions which it implements
2096 to always fail with ENOSYS. Some functions are actually named
2097 something starting with __ and the normal name is an alias. */
2098 #if defined __stub_$2 || defined __stub___$2
2110 if ac_fn_c_try_link "$LINENO"; then :
2115 rm -f core conftest.err conftest.$ac_objext \
2116 conftest$ac_exeext conftest.$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123 } # ac_fn_c_check_func
2125 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2126 # ---------------------------------------------
2127 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2129 ac_fn_c_check_decl ()
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 as_decl_name=`echo $2|sed 's/ *(.*//'`
2133 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2135 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2136 if eval \${$3+:} false; then :
2137 $as_echo_n "(cached) " >&6
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2145 #ifndef $as_decl_name
2147 (void) $as_decl_use;
2149 (void) $as_decl_name;
2157 if ac_fn_c_try_compile "$LINENO"; then :
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 } # ac_fn_c_check_decl
2171 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2172 # --------------------------------------------
2173 # Tries to find the compile-time value of EXPR in a program that includes
2174 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2176 ac_fn_c_compute_int ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 if test "$cross_compiling" = yes; then
2180 # Depending upon the size, compute the lo and hi bounds.
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2187 static int test_array [1 - 2 * !(($2) >= 0)];
2189 return test_array [0];
2195 if ac_fn_c_try_compile "$LINENO"; then :
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2204 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2206 return test_array [0];
2212 if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_hi=$ac_mid; break
2215 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2216 if test $ac_lo -le $ac_mid; then
2220 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2231 static int test_array [1 - 2 * !(($2) < 0)];
2233 return test_array [0];
2239 if ac_fn_c_try_compile "$LINENO"; then :
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2248 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2250 return test_array [0];
2256 if ac_fn_c_try_compile "$LINENO"; then :
2257 ac_lo=$ac_mid; break
2259 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2260 if test $ac_mid -le $ac_hi; then
2264 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 # Binary search between lo and hi bounds.
2275 while test "x$ac_lo" != "x$ac_hi"; do
2276 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2283 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2285 return test_array [0];
2291 if ac_fn_c_try_compile "$LINENO"; then :
2294 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2306 static long int longval () { return $2; }
2307 static unsigned long int ulongval () { return $2; }
2314 FILE *f = fopen ("conftest.val", "w");
2319 long int i = longval ();
2322 fprintf (f, "%ld", i);
2326 unsigned long int i = ulongval ();
2329 fprintf (f, "%lu", i);
2331 /* Do not output a trailing newline, as this causes \r\n confusion
2332 on some platforms. */
2333 return ferror (f) || fclose (f) != 0;
2339 if ac_fn_c_try_run "$LINENO"; then :
2340 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2345 conftest.$ac_objext conftest.beam conftest.$ac_ext
2349 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2350 as_fn_set_status $ac_retval
2352 } # ac_fn_c_compute_int
2354 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2355 # ----------------------------------------------------
2356 # Tries to find if the field MEMBER exists in type AGGR, after including
2357 # INCLUDES, setting cache variable VAR accordingly.
2358 ac_fn_c_check_member ()
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2362 $as_echo_n "checking for $2.$3... " >&6; }
2363 if eval \${$4+:} false; then :
2364 $as_echo_n "(cached) " >&6
2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h. */
2379 if ac_fn_c_try_compile "$LINENO"; then :
2382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2383 /* end confdefs.h. */
2389 if (sizeof ac_aggr.$3)
2395 if ac_fn_c_try_compile "$LINENO"; then :
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2406 $as_echo "$ac_res" >&6; }
2407 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409 } # ac_fn_c_check_member
2410 cat >config.log <<_ACEOF
2411 This file contains any messages produced by compilers while
2412 running configure, to aid debugging if configure makes a mistake.
2414 It was created by sntp $as_me 4.2.8p11, which was
2415 generated by GNU Autoconf 2.69. Invocation command line was
2427 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2428 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2429 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2430 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2431 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2433 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2434 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2436 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2437 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2438 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2439 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2440 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2441 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2442 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 $as_echo "PATH: $as_dir"
2467 # Keep a trace of the command line.
2468 # Strip out --no-create and --no-recursion so they do not pile up.
2469 # Strip out --silent because we don't want to record it for future runs.
2470 # Also quote any args containing shell meta-characters.
2471 # Make two passes to allow for proper duplicate-argument suppression.
2475 ac_must_keep_next=false
2481 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2482 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2483 | -silent | --silent | --silen | --sile | --sil)
2486 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2489 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2491 as_fn_append ac_configure_args1 " '$ac_arg'"
2492 if test $ac_must_keep_next = true; then
2493 ac_must_keep_next=false # Got value, back to normal.
2496 *=* | --config-cache | -C | -disable-* | --disable-* \
2497 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2498 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2499 | -with-* | --with-* | -without-* | --without-* | --x)
2500 case "$ac_configure_args0 " in
2501 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2504 -* ) ac_must_keep_next=true ;;
2507 as_fn_append ac_configure_args " '$ac_arg'"
2512 { ac_configure_args0=; unset ac_configure_args0;}
2513 { ac_configure_args1=; unset ac_configure_args1;}
2515 # When interrupted or exit'd, cleanup temporary files, and complete
2516 # config.log. We remove comments because anyway the quotes in there
2517 # would cause problems or look ugly.
2518 # WARNING: Use '\'' to represent an apostrophe within the trap.
2519 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2520 trap 'exit_status=$?
2521 # Save into config.log some information that might help in debugging.
2525 $as_echo "## ---------------- ##
2526 ## Cache variables. ##
2527 ## ---------------- ##"
2529 # The following way of writing the cache mishandles newlines in values,
2531 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2532 eval ac_val=\$$ac_var
2536 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2537 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2540 _ | IFS | as_nl) ;; #(
2541 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2542 *) { eval $ac_var=; unset $ac_var;} ;;
2547 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2548 *${as_nl}ac_space=\ *)
2550 "s/'\''/'\''\\\\'\'''\''/g;
2551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2561 $as_echo "## ----------------- ##
2562 ## Output variables. ##
2563 ## ----------------- ##"
2565 for ac_var in $ac_subst_vars
2567 eval ac_val=\$$ac_var
2569 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2571 $as_echo "$ac_var='\''$ac_val'\''"
2575 if test -n "$ac_subst_files"; then
2576 $as_echo "## ------------------- ##
2577 ## File substitutions. ##
2578 ## ------------------- ##"
2580 for ac_var in $ac_subst_files
2582 eval ac_val=\$$ac_var
2584 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2586 $as_echo "$ac_var='\''$ac_val'\''"
2591 if test -s confdefs.h; then
2592 $as_echo "## ----------- ##
2599 test "$ac_signal" != 0 &&
2600 $as_echo "$as_me: caught signal $ac_signal"
2601 $as_echo "$as_me: exit $exit_status"
2603 rm -f core *.core core.conftest.* &&
2604 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2607 for ac_signal in 1 2 13 15; do
2608 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2612 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2613 rm -f -r conftest* confdefs.h
2615 $as_echo "/* confdefs.h */" > confdefs.h
2617 # Predefined preprocessor variables.
2619 cat >>confdefs.h <<_ACEOF
2620 #define PACKAGE_NAME "$PACKAGE_NAME"
2623 cat >>confdefs.h <<_ACEOF
2624 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2627 cat >>confdefs.h <<_ACEOF
2628 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2631 cat >>confdefs.h <<_ACEOF
2632 #define PACKAGE_STRING "$PACKAGE_STRING"
2635 cat >>confdefs.h <<_ACEOF
2636 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2639 cat >>confdefs.h <<_ACEOF
2640 #define PACKAGE_URL "$PACKAGE_URL"
2644 # Let the site file select an alternate cache file if it wants to.
2645 # Prefer an explicitly selected file to automatically selected ones.
2648 if test -n "$CONFIG_SITE"; then
2649 # We do not want a PATH search for config.site.
2650 case $CONFIG_SITE in #((
2651 -*) ac_site_file1=./$CONFIG_SITE;;
2652 */*) ac_site_file1=$CONFIG_SITE;;
2653 *) ac_site_file1=./$CONFIG_SITE;;
2655 elif test "x$prefix" != xNONE; then
2656 ac_site_file1=$prefix/share/config.site
2657 ac_site_file2=$prefix/etc/config.site
2659 ac_site_file1=$ac_default_prefix/share/config.site
2660 ac_site_file2=$ac_default_prefix/etc/config.site
2662 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2664 test "x$ac_site_file" = xNONE && continue
2665 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2667 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2668 sed 's/^/| /' "$ac_site_file" >&5
2670 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2672 as_fn_error $? "failed to load site script $ac_site_file
2673 See \`config.log' for more details" "$LINENO" 5; }
2677 if test -r "$cache_file"; then
2678 # Some versions of bash will fail to source /dev/null (special files
2679 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2680 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2682 $as_echo "$as_me: loading cache $cache_file" >&6;}
2684 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2685 *) . "./$cache_file";;
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2690 $as_echo "$as_me: creating cache $cache_file" >&6;}
2694 as_fn_append ac_header_list " stdarg.h"
2695 # Check that the precious variables saved in the cache have kept the same
2697 ac_cache_corrupted=false
2698 for ac_var in $ac_precious_vars; do
2699 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2700 eval ac_new_set=\$ac_env_${ac_var}_set
2701 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2702 eval ac_new_val=\$ac_env_${ac_var}_value
2703 case $ac_old_set,$ac_new_set in
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2706 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2707 ac_cache_corrupted=: ;;
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2710 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2711 ac_cache_corrupted=: ;;
2714 if test "x$ac_old_val" != "x$ac_new_val"; then
2715 # differences in whitespace do not lead to failure.
2716 ac_old_val_w=`echo x $ac_old_val`
2717 ac_new_val_w=`echo x $ac_new_val`
2718 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2720 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2721 ac_cache_corrupted=:
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2724 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2725 eval $ac_var=\$ac_old_val
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2728 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2730 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2733 # Pass precious variables to config.status.
2734 if test "$ac_new_set" = set; then
2736 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2737 *) ac_arg=$ac_var=$ac_new_val ;;
2739 case " $ac_configure_args " in
2740 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2741 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2745 if $ac_cache_corrupted; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2749 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2750 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2752 ## -------------------- ##
2753 ## Main body of script. ##
2754 ## -------------------- ##
2757 ac_cpp='$CPP $CPPFLAGS'
2758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2765 for ac_dir in libevent/build-aux "$srcdir"/libevent/build-aux; do
2766 if test -f "$ac_dir/install-sh"; then
2768 ac_install_sh="$ac_aux_dir/install-sh -c"
2770 elif test -f "$ac_dir/install.sh"; then
2772 ac_install_sh="$ac_aux_dir/install.sh -c"
2774 elif test -f "$ac_dir/shtool"; then
2776 ac_install_sh="$ac_aux_dir/shtool install -c"
2780 if test -z "$ac_aux_dir"; then
2781 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libevent/build-aux \"$srcdir\"/libevent/build-aux" "$LINENO" 5
2784 # These three variables are undocumented and unsupported,
2785 # and are intended to be withdrawn in a future Autoconf release.
2786 # They can cause serious problems if a builder's source tree is in a directory
2787 # whose full name contains unusual characters.
2788 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2789 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2790 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 # Bump sntp_configure_cache_version for each change to configure.ac or
2801 # .m4 files which invalidates cached values from previous configure
2804 # If the change affects cache variables used only by the main NTP
2805 # configure.ac, then only its version number should be bumped, while
2806 # the subdir configure.ac version numbers should be unchanged. The
2807 # same is true for a test/variable that is used only by one subdir
2808 # being changed incompatibly; only that subdir's cache version needs
2811 # If a change affects variables shared by all NTP configure scripts,
2812 # please bump the version numbers of each. If you are not sure, the
2813 # safe choice is to bump all on any cache-invalidating change.
2815 # In order to avoid the risk of version stamp collision between -stable
2816 # and -dev branches, do not simply increment the version, instead use
2817 # the date YYYYMMDD optionally with -HHMM if there is more than one
2820 sntp_configure_cache_version=20120806
2822 # When the version of config.cache and configure do not
2823 # match, NTP_CACHEVERSION will flush the cache.
2829 case "$ntp_cv_sntp_cache_version" in
2830 $sntp_configure_cache_version)
2831 # same version, good
2835 # No cache, predates ntp_cv_sntp_cache_version, or is empty.
2836 case "$cache_file" in
2841 case "$NTP_CACHEVERSION_PARENT" in
2843 # Do not clear the cache immediately after it is created
2844 # empty as it is noisy. Differentiate a newly-created
2845 # config.cache from one predating the cache version
2846 # mechanism by looking for the first cached variable set
2848 case "$ac_cv_path_install" in
2850 # empty config.cache file
2855 # Parent configure just created cache from empty,
2856 # flushing would be counterproductive.
2863 # configure cache version mismatches config.cache version
2867 case "$ntp_cache_flush" in
2869 c_version="${ntp_cv_sntp_cache_version:-(no version found)}"
2871 # Do we flush all variables or exclude others' version stamps?
2873 case "$NTP_CACHEVERSION_PARENT" in
2875 # Clear all *_cv_* variables including our child subdirs'
2876 # ntp_cv_*_cache_version variables. This prevents subdir
2877 # configure scripts from noticing a version mismatch just
2878 # after the top configure in the invocation cleared and
2879 # recreated the cache.
2881 c_varname_list=`set |
2882 sed -n -e 's/=.*$//' \
2887 # This is not the top configure this particular invocation.
2888 # Clear all *_cv_* variables sparing the version stamps
2889 # of other configure scripts, so we don't trigger
2890 # useless repeated clearings.
2892 c_varname_list=`set |
2893 sed -n -e 's/=.*$//' \
2894 -e '/ntp_cv_.*_cache_version/d' \
2899 for c_varname in $c_varname_list
2901 { eval $c_varname=; unset $c_varname; }
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
2905 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $sntp_configure_cache_version" >&5
2907 $as_echo "$as_me: configure script cache version: $sntp_configure_cache_version" >&6;}
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
2909 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
2910 { c_varname=; unset c_varname;}
2911 { c_varname_list=; unset c_varname_list;}
2912 { c_version=; unset c_version;}
2915 { ntp_cache_flush=; unset ntp_cache_flush;}
2917 # save configure version in config.cache for next time
2918 ntp_cv_sntp_cache_version="$sntp_configure_cache_version"
2920 # let any subdir configure.ac NTP_CACHEVERSION invocations
2921 # know they are not the top level.
2922 NTP_CACHEVERSION_PARENT='sntp' ; export NTP_CACHEVERSION_PARENT
2925 am__api_version='1.15'
2927 # Find a good install program. We prefer a C program (faster),
2928 # so one script is as good as another. But avoid the broken or
2929 # incompatible versions:
2930 # SysV /etc/install, /usr/sbin/install
2931 # SunOS /usr/etc/install
2932 # IRIX /sbin/install
2934 # AmigaOS /C/install, which installs bootblocks on floppy discs
2935 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2936 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2937 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2938 # OS/2's system install, which has a completely different semantic
2939 # ./install, which can be erroneously created by make from ./install.sh.
2940 # Reject install programs that cannot install multiple files.
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2942 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2943 if test -z "$INSTALL"; then
2944 if ${ac_cv_path_install+:} false; then :
2945 $as_echo_n "(cached) " >&6
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir=.
2952 # Account for people who put trailing slashes in PATH elements.
2953 case $as_dir/ in #((
2954 ./ | .// | /[cC]/* | \
2955 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2956 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2959 # OSF1 and SCO ODT 3.0 have their own names for install.
2960 # Don't use installbsd from OSF since it installs stuff as root
2962 for ac_prog in ginstall scoinst install; do
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2965 if test $ac_prog = install &&
2966 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2967 # AIX install. It has an incompatible calling convention.
2969 elif test $ac_prog = install &&
2970 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2971 # program-specific install script used by HP pwplus--don't use.
2974 rm -rf conftest.one conftest.two conftest.dir
2975 echo one > conftest.one
2976 echo two > conftest.two
2978 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2979 test -s conftest.one && test -s conftest.two &&
2980 test -s conftest.dir/conftest.one &&
2981 test -s conftest.dir/conftest.two
2983 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2996 rm -rf conftest.one conftest.two conftest.dir
2999 if test "${ac_cv_path_install+set}" = set; then
3000 INSTALL=$ac_cv_path_install
3002 # As a last resort, use the slow shell script. Don't cache a
3003 # value for INSTALL within a source directory, because that will
3004 # break other packages using the cache if that directory is
3005 # removed, or if the value is a relative name.
3006 INSTALL=$ac_install_sh
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3010 $as_echo "$INSTALL" >&6; }
3012 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3013 # It thinks the first close brace ends the variable substitution.
3014 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3016 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3018 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3021 $as_echo_n "checking whether build environment is sane... " >&6; }
3022 # Reject unsafe characters in $srcdir or the absolute working directory
3023 # name. Accept space and tab only in the latter.
3027 *[\\\"\#\$\&\'\`$am_lf]*)
3028 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3031 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3032 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3035 # Do 'set' in a subshell so we don't clobber the current shell's
3036 # arguments. Must try -L first in case configure is actually a
3037 # symlink; some systems play weird games with the mod time of symlinks
3038 # (eg FreeBSD returns the mod time of the symlink's containing
3042 for am_try in 1 2; do
3043 echo "timestamp, slept: $am_has_slept" > conftest.file
3044 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3045 if test "$*" = "X"; then
3047 set X `ls -t "$srcdir/configure" conftest.file`
3049 if test "$*" != "X $srcdir/configure conftest.file" \
3050 && test "$*" != "X conftest.file $srcdir/configure"; then
3052 # If neither matched, then we have a broken ls. This can happen
3053 # if, for instance, CONFIG_SHELL is bash and it inherits a
3054 # broken ls alias from the environment. This has actually
3055 # happened. Such a system could not be considered "sane".
3056 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3057 alias in your environment" "$LINENO" 5
3059 if test "$2" = conftest.file || test $am_try -eq 2; then
3066 test "$2" = conftest.file
3072 as_fn_error $? "newly created file is older than distributed files!
3073 Check your system clock" "$LINENO" 5
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3076 $as_echo "yes" >&6; }
3077 # If we didn't sleep, we still need to ensure time stamps of config.status and
3078 # generated files are strictly newer.
3080 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3087 test "$program_prefix" != NONE &&
3088 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3089 # Use a double $ so make ignores it.
3090 test "$program_suffix" != NONE &&
3091 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3092 # Double any \ or $.
3093 # By default was `s,x,x', remove it if useless.
3094 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3095 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3097 # Expand $ac_aux_dir to an absolute path.
3098 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3100 if test x"${MISSING+set}" != xset; then
3103 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3105 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3108 # Use eval to expand $SHELL
3109 if eval "$MISSING --is-lightweight"; then
3110 am_missing_run="$MISSING "
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3114 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3117 if test x"${install_sh+set}" != xset; then
3120 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3122 install_sh="\${SHELL} $am_aux_dir/install-sh"
3126 # Installed binaries are usually stripped using 'strip' when the user
3127 # run "make install-strip". However 'strip' might not be the right
3128 # tool to use in cross-compilation environments, therefore Automake
3129 # will honor the 'STRIP' environment variable to overrule this program.
3130 if test "$cross_compiling" != no; then
3131 if test -n "$ac_tool_prefix"; then
3132 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3133 set dummy ${ac_tool_prefix}strip; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if ${ac_cv_prog_STRIP+:} false; then :
3137 $as_echo_n "(cached) " >&6
3139 if test -n "$STRIP"; then
3140 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3149 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 STRIP=$ac_cv_prog_STRIP
3160 if test -n "$STRIP"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3162 $as_echo "$STRIP" >&6; }
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3170 if test -z "$ac_cv_prog_STRIP"; then
3172 # Extract the first word of "strip", so it can be a program name with args.
3173 set dummy strip; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3177 $as_echo_n "(cached) " >&6
3179 if test -n "$ac_ct_STRIP"; then
3180 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_ac_ct_STRIP="strip"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3200 if test -n "$ac_ct_STRIP"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3202 $as_echo "$ac_ct_STRIP" >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3208 if test "x$ac_ct_STRIP" = x; then
3211 case $cross_compiling:$ac_tool_warned in
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3215 ac_tool_warned=yes ;;
3220 STRIP="$ac_cv_prog_STRIP"
3224 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3227 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3228 if test -z "$MKDIR_P"; then
3229 if ${ac_cv_path_mkdir+:} false; then :
3230 $as_echo_n "(cached) " >&6
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3236 test -z "$as_dir" && as_dir=.
3237 for ac_prog in mkdir gmkdir; do
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3240 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3241 'mkdir (GNU coreutils) '* | \
3242 'mkdir (coreutils) '* | \
3243 'mkdir (fileutils) '4.1*)
3244 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3254 test -d ./--version && rmdir ./--version
3255 if test "${ac_cv_path_mkdir+set}" = set; then
3256 MKDIR_P="$ac_cv_path_mkdir -p"
3258 # As a last resort, use the slow shell script. Don't cache a
3259 # value for MKDIR_P within a source directory, because that will
3260 # break other packages using the cache if that directory is
3261 # removed, or if the value is a relative name.
3262 MKDIR_P="$ac_install_sh -d"
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3266 $as_echo "$MKDIR_P" >&6; }
3268 for ac_prog in gawk mawk nawk awk
3270 # Extract the first word of "$ac_prog", so it can be a program name with args.
3271 set dummy $ac_prog; ac_word=$2
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if ${ac_cv_prog_AWK+:} false; then :
3275 $as_echo_n "(cached) " >&6
3277 if test -n "$AWK"; then
3278 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 ac_cv_prog_AWK="$ac_prog"
3288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 if test -n "$AWK"; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3300 $as_echo "$AWK" >&6; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3307 test -n "$AWK" && break
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3311 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3313 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3314 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3315 $as_echo_n "(cached) " >&6
3317 cat >conftest.make <<\_ACEOF
3320 @echo '@@@%%%=$(MAKE)=@@@%%%'
3322 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3323 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3325 eval ac_cv_prog_make_${ac_make}_set=yes;;
3327 eval ac_cv_prog_make_${ac_make}_set=no;;
3331 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 $as_echo "yes" >&6; }
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 SET_MAKE="MAKE=${MAKE-make}"
3341 rm -rf .tst 2>/dev/null
3342 mkdir .tst 2>/dev/null
3343 if test -d .tst; then
3348 rmdir .tst 2>/dev/null
3350 # Check whether --enable-silent-rules was given.
3351 if test "${enable_silent_rules+set}" = set; then :
3352 enableval=$enable_silent_rules;
3355 case $enable_silent_rules in # (((
3356 yes) AM_DEFAULT_VERBOSITY=0;;
3357 no) AM_DEFAULT_VERBOSITY=1;;
3358 *) AM_DEFAULT_VERBOSITY=1;;
3360 am_make=${MAKE-make}
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3362 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3363 if ${am_cv_make_support_nested_variables+:} false; then :
3364 $as_echo_n "(cached) " >&6
3366 if $as_echo 'TRUE=$(BAR$(V))
3372 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3373 am_cv_make_support_nested_variables=yes
3375 am_cv_make_support_nested_variables=no
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3379 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3380 if test $am_cv_make_support_nested_variables = yes; then
3382 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3384 AM_V=$AM_DEFAULT_VERBOSITY
3385 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3389 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3390 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3391 # is not polluted with repeated "-I."
3392 am__isrc=' -I$(srcdir)'
3393 # test to see if srcdir already configured
3394 if test -f $srcdir/config.status; then
3395 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3399 # test whether we have cygpath
3400 if test -z "$CYGPATH_W"; then
3401 if (cygpath --version) >/dev/null 2>/dev/null; then
3402 CYGPATH_W='cygpath -w'
3409 # Define the identity of the package.
3414 cat >>confdefs.h <<_ACEOF
3415 #define PACKAGE "$PACKAGE"
3419 cat >>confdefs.h <<_ACEOF
3420 #define VERSION "$VERSION"
3423 # Some tools Automake needs.
3425 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3428 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3431 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3434 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3437 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3439 # For better backward compatibility. To be removed once Automake 1.9.x
3440 # dies out for good. For more background, see:
3441 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3442 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3443 mkdir_p='$(MKDIR_P)'
3445 # We need awk for the "check" target (and possibly the TAP driver). The
3446 # system "awk" is bad on some platforms.
3447 # Always define AMTAR for backward compatibility. Yes, it's still used
3448 # in the wild :-( We should find a proper way to deprecate it ...
3452 # We'll loop over all known methods to create a tar archive until one works.
3453 _am_tools='gnutar pax cpio none'
3455 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3462 # POSIX will say in a future version that running "rm -f" with no argument
3463 # is OK; and we want to be able to make that assumption in our Makefile
3464 # recipes. So use an aggressive probe to check that the usage we want is
3465 # actually supported "in the wild" to an acceptable degree.
3466 # See automake bug#10828.
3467 # To make any issue more visible, cause the running configure to be aborted
3468 # by default if the 'rm' program in use doesn't match our expectations; the
3469 # user can still override this though.
3470 if rm -f && rm -fr && rm -rf; then : OK; else
3474 Your 'rm' program seems unable to run without file operands specified
3475 on the command line, even when the '-f' option is present. This is contrary
3476 to the behaviour of most rm programs out there, and not conforming with
3477 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3479 Please tell bug-automake@gnu.org about your system, including the value
3480 of your $PATH and any error possibly output before this message. This
3481 can help us improve future automake versions.
3484 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3485 echo 'Configuration will proceed anyway, since you have set the' >&2
3486 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3490 Aborting the configuration process, to ensure you take notice of the issue.
3492 You can download and install GNU coreutils to get an 'rm' implementation
3493 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3495 If you want to complete the configuration process using your problematic
3496 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3497 to "yes", and re-run configure.
3500 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3504 # Check whether --enable-silent-rules was given.
3505 if test "${enable_silent_rules+set}" = set; then :
3506 enableval=$enable_silent_rules;
3509 case $enable_silent_rules in # (((
3510 yes) AM_DEFAULT_VERBOSITY=0;;
3511 no) AM_DEFAULT_VERBOSITY=1;;
3512 *) AM_DEFAULT_VERBOSITY=0;;
3514 am_make=${MAKE-make}
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3516 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3517 if ${am_cv_make_support_nested_variables+:} false; then :
3518 $as_echo_n "(cached) " >&6
3520 if $as_echo 'TRUE=$(BAR$(V))
3526 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3527 am_cv_make_support_nested_variables=yes
3529 am_cv_make_support_nested_variables=no
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3533 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3534 if test $am_cv_make_support_nested_variables = yes; then
3536 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3538 AM_V=$AM_DEFAULT_VERBOSITY
3539 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3544 # Make sure we can run config.sub.
3545 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3546 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3549 $as_echo_n "checking build system type... " >&6; }
3550 if ${ac_cv_build+:} false; then :
3551 $as_echo_n "(cached) " >&6
3553 ac_build_alias=$build_alias
3554 test "x$ac_build_alias" = x &&
3555 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3556 test "x$ac_build_alias" = x &&
3557 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3558 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3559 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3563 $as_echo "$ac_cv_build" >&6; }
3564 case $ac_cv_build in
3566 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3569 ac_save_IFS=$IFS; IFS='-'
3575 # Remember, the first character of IFS is used to create $*,
3576 # except with old shells:
3579 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3583 $as_echo_n "checking host system type... " >&6; }
3584 if ${ac_cv_host+:} false; then :
3585 $as_echo_n "(cached) " >&6
3587 if test "x$host_alias" = x; then
3588 ac_cv_host=$ac_cv_build
3590 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3591 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3596 $as_echo "$ac_cv_host" >&6; }
3599 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3602 ac_save_IFS=$IFS; IFS='-'
3608 # Remember, the first character of IFS is used to create $*,
3609 # except with old shells:
3612 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3616 cat >>confdefs.h <<_ACEOF
3617 #define STR_SYSTEM "$host"
3620 ac_config_headers="$ac_config_headers config.h"
3623 DEPDIR="${am__leading_dot}deps"
3625 ac_config_commands="$ac_config_commands depfiles"
3628 am_make=${MAKE-make}
3629 cat > confinc << 'END'
3631 @echo this is the am__doit target
3634 # If we don't find an include directive, just comment out the code.
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3636 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3640 # First try GNU make style include.
3641 echo "include confinc" > confmf
3642 # Ignore all kinds of additional output from 'make'.
3643 case `$am_make -s -f confmf 2> /dev/null` in #(
3644 *the\ am__doit\ target*)
3650 # Now try BSD make style include.
3651 if test "$am__include" = "#"; then
3652 echo '.include "confinc"' > confmf
3653 case `$am_make -s -f confmf 2> /dev/null` in #(
3654 *the\ am__doit\ target*)
3655 am__include=.include
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3664 $as_echo "$_am_result" >&6; }
3665 rm -f confinc confmf
3667 # Check whether --enable-dependency-tracking was given.
3668 if test "${enable_dependency_tracking+set}" = set; then :
3669 enableval=$enable_dependency_tracking;
3672 if test "x$enable_dependency_tracking" != xno; then
3673 am_depcomp="$ac_aux_dir/depcomp"
3677 if test "x$enable_dependency_tracking" != xno; then
3697 #AC_USE_SYSTEM_EXTENSIONS
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704 if test -n "$ac_tool_prefix"; then
3705 for ac_prog in $cclist
3707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if ${ac_cv_prog_CC+:} false; then :
3712 $as_echo_n "(cached) " >&6
3714 if test -n "$CC"; then
3715 ac_cv_prog_CC="$CC" # Let the user override the test.
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 test -z "$as_dir" && as_dir=.
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3724 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 if test -n "$CC"; then
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737 $as_echo "$CC" >&6; }
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 $as_echo "no" >&6; }
3744 test -n "$CC" && break
3747 if test -z "$CC"; then
3749 for ac_prog in $cclist
3751 # Extract the first word of "$ac_prog", so it can be a program name with args.
3752 set dummy $ac_prog; ac_word=$2
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3754 $as_echo_n "checking for $ac_word... " >&6; }
3755 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3756 $as_echo_n "(cached) " >&6
3758 if test -n "$ac_ct_CC"; then
3759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 test -z "$as_dir" && as_dir=.
3766 for ac_exec_ext in '' $ac_executable_extensions; do
3767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3768 ac_cv_prog_ac_ct_CC="$ac_prog"
3769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3779 if test -n "$ac_ct_CC"; then
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3781 $as_echo "$ac_ct_CC" >&6; }
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3784 $as_echo "no" >&6; }
3788 test -n "$ac_ct_CC" && break
3791 if test "x$ac_ct_CC" = x; then
3794 case $cross_compiling:$ac_tool_warned in
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3798 ac_tool_warned=yes ;;
3805 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807 as_fn_error $? "no acceptable C compiler found in \$PATH
3808 See \`config.log' for more details" "$LINENO" 5; }
3810 # Provide some information about the compiler.
3811 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3814 for ac_option in --version -v -V -qversion; do
3815 { { ac_try="$ac_compiler $ac_option >&5"
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821 $as_echo "$ac_try_echo"; } >&5
3822 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3824 if test -s conftest.err; then
3826 ... rest of stderr output deleted ...
3827 10q' conftest.err >conftest.er1
3828 cat conftest.er1 >&5
3830 rm -f conftest.er1 conftest.err
3831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3832 test $ac_status = 0; }
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3846 ac_clean_files_save=$ac_clean_files
3847 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3848 # Try to create an executable without -o first, disregard a.out.
3849 # It will help us diagnose broken compilers, and finding out an intuition
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3852 $as_echo_n "checking whether the C compiler works... " >&6; }
3853 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3855 # The possible output files:
3856 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3859 for ac_file in $ac_files
3862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3863 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3868 if { { ac_try="$ac_link_default"
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3874 $as_echo "$ac_try_echo"; } >&5
3875 (eval "$ac_link_default") 2>&5
3877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3878 test $ac_status = 0; }; then :
3879 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3880 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3881 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3882 # so that the user can short-circuit this test for compilers unknown to
3884 for ac_file in $ac_files ''
3886 test -f "$ac_file" || continue
3888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3891 # We found the default executable, but exeext='' is most
3895 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3897 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3899 # We set ac_cv_exeext here because the later test for it is not
3900 # safe: cross compilers may not add the suffix if given an `-o'
3901 # argument, so we may need to know it at that point already.
3902 # Even if this section looks crufty: it has the advantage of
3909 test "$ac_cv_exeext" = no && ac_cv_exeext=
3914 if test -z "$ac_file"; then :
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3917 $as_echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3922 as_fn_error 77 "C compiler cannot create executables
3923 See \`config.log' for more details" "$LINENO" 5; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3926 $as_echo "yes" >&6; }
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3929 $as_echo_n "checking for C compiler default output file name... " >&6; }
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3931 $as_echo "$ac_file" >&6; }
3932 ac_exeext=$ac_cv_exeext
3934 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3935 ac_clean_files=$ac_clean_files_save
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3937 $as_echo_n "checking for suffix of executables... " >&6; }
3938 if { { ac_try="$ac_link"
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944 $as_echo "$ac_try_echo"; } >&5
3945 (eval "$ac_link") 2>&5
3947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948 test $ac_status = 0; }; then :
3949 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3950 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3951 # work properly (i.e., refer to `conftest.exe'), while it won't with
3953 for ac_file in conftest.exe conftest conftest.*; do
3954 test -f "$ac_file" || continue
3956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3957 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3965 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3966 See \`config.log' for more details" "$LINENO" 5; }
3968 rm -f conftest conftest$ac_cv_exeext
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3970 $as_echo "$ac_cv_exeext" >&6; }
3972 rm -f conftest.$ac_ext
3973 EXEEXT=$ac_cv_exeext
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3981 FILE *f = fopen ("conftest.out", "w");
3982 return ferror (f) || fclose (f) != 0;
3988 ac_clean_files="$ac_clean_files conftest.out"
3989 # Check that the compiler produces executables we can run. If not, either
3990 # the compiler is broken, or we cross compile.
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3992 $as_echo_n "checking whether we are cross compiling... " >&6; }
3993 if test "$cross_compiling" != yes; then
3994 { { ac_try="$ac_link"
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001 (eval "$ac_link") 2>&5
4003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004 test $ac_status = 0; }
4005 if { ac_try='./conftest$ac_cv_exeext'
4006 { { case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 $as_echo "$ac_try_echo"; } >&5
4012 (eval "$ac_try") 2>&5
4014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015 test $ac_status = 0; }; }; then
4018 if test "$cross_compiling" = maybe; then
4021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4023 as_fn_error $? "cannot run C compiled programs.
4024 If you meant to cross compile, use \`--host'.
4025 See \`config.log' for more details" "$LINENO" 5; }
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4030 $as_echo "$cross_compiling" >&6; }
4032 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4033 ac_clean_files=$ac_clean_files_save
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4035 $as_echo_n "checking for suffix of object files... " >&6; }
4036 if ${ac_cv_objext+:} false; then :
4037 $as_echo_n "(cached) " >&6
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4050 rm -f conftest.o conftest.obj
4051 if { { ac_try="$ac_compile"
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4057 $as_echo "$ac_try_echo"; } >&5
4058 (eval "$ac_compile") 2>&5
4060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4061 test $ac_status = 0; }; then :
4062 for ac_file in conftest.o conftest.obj conftest.*; do
4063 test -f "$ac_file" || continue;
4065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4066 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4071 $as_echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4076 as_fn_error $? "cannot compute suffix of object files: cannot compile
4077 See \`config.log' for more details" "$LINENO" 5; }
4079 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4082 $as_echo "$ac_cv_objext" >&6; }
4083 OBJEXT=$ac_cv_objext
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4086 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4087 if ${ac_cv_c_compiler_gnu+:} false; then :
4088 $as_echo_n "(cached) " >&6
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4104 if ac_fn_c_try_compile "$LINENO"; then :
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4114 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4115 if test $ac_compiler_gnu = yes; then
4120 ac_test_CFLAGS=${CFLAGS+set}
4121 ac_save_CFLAGS=$CFLAGS
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4123 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4124 if ${ac_cv_prog_cc_g+:} false; then :
4125 $as_echo_n "(cached) " >&6
4127 ac_save_c_werror_flag=$ac_c_werror_flag
4128 ac_c_werror_flag=yes
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4142 if ac_fn_c_try_compile "$LINENO"; then :
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4157 if ac_fn_c_try_compile "$LINENO"; then :
4160 ac_c_werror_flag=$ac_save_c_werror_flag
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4173 if ac_fn_c_try_compile "$LINENO"; then :
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 ac_c_werror_flag=$ac_save_c_werror_flag
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4184 $as_echo "$ac_cv_prog_cc_g" >&6; }
4185 if test "$ac_test_CFLAGS" = set; then
4186 CFLAGS=$ac_save_CFLAGS
4187 elif test $ac_cv_prog_cc_g = yes; then
4188 if test "$GCC" = yes; then
4194 if test "$GCC" = yes; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4201 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4202 if ${ac_cv_prog_cc_c89+:} false; then :
4203 $as_echo_n "(cached) " >&6
4205 ac_cv_prog_cc_c89=no
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4212 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4213 struct buf { int x; };
4214 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4215 static char *e (p, i)
4221 static char *f (char * (*g) (char **, int), char **p, ...)
4226 s = g (p, va_arg (v,int));
4231 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4232 function prototypes and stuff, but not '\xHH' hex character constants.
4233 These don't provoke an error unfortunately, instead are silently treated
4234 as 'x'. The following induces an error, until -std is added to get
4235 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4236 array size at least. It's necessary to write '\x00'==0 to get something
4237 that's true only with -std. */
4238 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4240 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4241 inside strings and character constants. */
4243 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4245 int test (int i, double x);
4246 struct s1 {int (*f) (int a);};
4247 struct s2 {int (*f) (double a);};
4248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4254 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4259 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4260 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4262 CC="$ac_save_CC $ac_arg"
4263 if ac_fn_c_try_compile "$LINENO"; then :
4264 ac_cv_prog_cc_c89=$ac_arg
4266 rm -f core conftest.err conftest.$ac_objext
4267 test "x$ac_cv_prog_cc_c89" != "xno" && break
4269 rm -f conftest.$ac_ext
4274 case "x$ac_cv_prog_cc_c89" in
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4277 $as_echo "none needed" >&6; } ;;
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4280 $as_echo "unsupported" >&6; } ;;
4282 CC="$CC $ac_cv_prog_cc_c89"
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4284 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4286 if test "x$ac_cv_prog_cc_c89" != xno; then :
4291 ac_cpp='$CPP $CPPFLAGS'
4292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4302 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4303 if ${am_cv_prog_cc_c_o+:} false; then :
4304 $as_echo_n "(cached) " >&6
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4317 # Make sure it works both with $CC and with simple cc.
4318 # Following AC_PROG_CC_C_O, we do the test twice because some
4319 # compilers refuse to overwrite an existing .o file with -o,
4320 # though they will create one.
4321 am_cv_prog_cc_c_o=yes
4323 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4324 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } \
4328 && test -f conftest2.$ac_objext; then
4331 am_cv_prog_cc_c_o=no
4335 rm -f core conftest*
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4339 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4340 if test "$am_cv_prog_cc_c_o" != yes; then
4341 # Losing compiler, so override with the script.
4342 # FIXME: It is wrong to rewrite CC.
4343 # But if we don't then we get into trouble of one sort or another.
4344 # A longer-term fix would be to have automake use am__CC in this case,
4345 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4346 CC="$am_aux_dir/compile $CC"
4349 ac_cpp='$CPP $CPPFLAGS'
4350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355 depcc="$CC" am_compiler_list=
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4358 $as_echo_n "checking dependency style of $depcc... " >&6; }
4359 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4360 $as_echo_n "(cached) " >&6
4362 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4363 # We make a subdir and do the tests there. Otherwise we can end up
4364 # making bogus files that we don't know about and never remove. For
4365 # instance it was reported that on HP-UX the gcc test will end up
4366 # making a dummy file named 'D' -- because '-MD' means "put the output
4370 # Copy depcomp to subdir because otherwise we won't find it if we're
4371 # using a relative directory.
4372 cp "$am_depcomp" conftest.dir
4374 # We will build objects and dependencies in a subdirectory because
4375 # it helps to detect inapplicable dependency modes. For instance
4376 # both Tru64's cc and ICC support -MD to output dependencies as a
4377 # side effect of compilation, but ICC will put the dependencies in
4378 # the current directory while Tru64 will put them in the object
4382 am_cv_CC_dependencies_compiler_type=none
4383 if test "$am_compiler_list" = ""; then
4384 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4387 case " $depcc " in #(
4388 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4391 for depmode in $am_compiler_list; do
4392 # Setup a source with many dependencies, because some compilers
4393 # like to wrap large dependency lists on column 80 (with \), and
4394 # we should not choose a depcomp mode which is confused by this.
4396 # We need to recreate these files for each test, as the compiler may
4397 # overwrite some of them when testing with obscure command lines.
4398 # This happens at least with the AIX C compiler.
4400 for i in 1 2 3 4 5 6; do
4401 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4402 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4403 # Solaris 10 /bin/sh.
4404 echo '/* dummy */' > sub/conftst$i.h
4406 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4408 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4409 # mode. It turns out that the SunPro C++ compiler does not properly
4410 # handle '-M -o', and we need to detect this. Also, some Intel
4411 # versions had trouble with output in subdirs.
4412 am__obj=sub/conftest.${OBJEXT-o}
4413 am__minus_obj="-o $am__obj"
4416 # This depmode causes a compiler race in universal mode.
4417 test "$am__universal" = false || continue
4420 # After this tag, mechanisms are not by side-effect, so they'll
4421 # only be used when explicitly requested.
4422 if test "x$enable_dependency_tracking" = xyes; then
4428 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4429 # This compiler won't grok '-c -o', but also, the minuso test has
4430 # not run yet. These depmodes are late enough in the game, and
4431 # so weak that their functioning should not be impacted.
4432 am__obj=conftest.${OBJEXT-o}
4437 if depmode=$depmode \
4438 source=sub/conftest.c object=$am__obj \
4439 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4440 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4441 >/dev/null 2>conftest.err &&
4442 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4443 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4444 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4445 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4446 # icc doesn't choke on unknown options, it will just issue warnings
4447 # or remarks (even with -Werror). So we grep stderr for any message
4448 # that says an option was ignored or not supported.
4449 # When given -MP, icc 7.0 and 7.1 complain thusly:
4450 # icc: Command line warning: ignoring option '-M'; no argument required
4451 # The diagnosis changed in icc 8.0:
4452 # icc: Command line remark: option '-MP' not supported
4453 if (grep 'ignoring option' conftest.err ||
4454 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4455 am_cv_CC_dependencies_compiler_type=$depmode
4464 am_cv_CC_dependencies_compiler_type=none
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4469 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4470 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4473 test "x$enable_dependency_tracking" != xno \
4474 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4476 am__fastdepCC_FALSE='#'
4478 am__fastdepCC_TRUE='#'
4479 am__fastdepCC_FALSE=
4487 ac_cpp='$CPP $CPPFLAGS'
4488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4492 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4493 # On Suns, sometimes $CPP names a directory.
4494 if test -n "$CPP" && test -d "$CPP"; then
4497 if test -z "$CPP"; then
4498 if ${ac_cv_prog_CPP+:} false; then :
4499 $as_echo_n "(cached) " >&6
4501 # Double quotes because CPP needs to be expanded
4502 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4505 for ac_c_preproc_warn_flag in '' yes
4507 # Use a header file that comes with gcc, so configuring glibc
4508 # with a fresh cross-compiler works.
4509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4510 # <limits.h> exists even on freestanding compilers.
4511 # On the NeXT, cc -E runs the code through the compiler's parser,
4512 # not just through cpp. "Syntax error" is here to catch this case.
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4516 # include <limits.h>
4518 # include <assert.h>
4522 if ac_fn_c_try_cpp "$LINENO"; then :
4525 # Broken: fails on valid input.
4528 rm -f conftest.err conftest.i conftest.$ac_ext
4530 # OK, works on sane cases. Now check whether nonexistent headers
4531 # can be detected and how.
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4534 #include <ac_nonexistent.h>
4536 if ac_fn_c_try_cpp "$LINENO"; then :
4537 # Broken: success on invalid input.
4540 # Passes both tests.
4544 rm -f conftest.err conftest.i conftest.$ac_ext
4547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4548 rm -f conftest.i conftest.err conftest.$ac_ext
4549 if $ac_preproc_ok; then :
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4562 $as_echo "$CPP" >&6; }
4564 for ac_c_preproc_warn_flag in '' yes
4566 # Use a header file that comes with gcc, so configuring glibc
4567 # with a fresh cross-compiler works.
4568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4569 # <limits.h> exists even on freestanding compilers.
4570 # On the NeXT, cc -E runs the code through the compiler's parser,
4571 # not just through cpp. "Syntax error" is here to catch this case.
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4575 # include <limits.h>
4577 # include <assert.h>
4581 if ac_fn_c_try_cpp "$LINENO"; then :
4584 # Broken: fails on valid input.
4587 rm -f conftest.err conftest.i conftest.$ac_ext
4589 # OK, works on sane cases. Now check whether nonexistent headers
4590 # can be detected and how.
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #include <ac_nonexistent.h>
4595 if ac_fn_c_try_cpp "$LINENO"; then :
4596 # Broken: success on invalid input.
4599 # Passes both tests.
4603 rm -f conftest.err conftest.i conftest.$ac_ext
4606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4607 rm -f conftest.i conftest.err conftest.$ac_ext
4608 if $ac_preproc_ok; then :
4611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4613 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4614 See \`config.log' for more details" "$LINENO" 5; }
4618 ac_cpp='$CPP $CPPFLAGS'
4619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4625 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4626 if ${ac_cv_path_GREP+:} false; then :
4627 $as_echo_n "(cached) " >&6
4629 if test -z "$GREP"; then
4630 ac_path_GREP_found=false
4631 # Loop through the user's path and test for each of PROGNAME-LIST
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4636 test -z "$as_dir" && as_dir=.
4637 for ac_prog in grep ggrep; do
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4640 as_fn_executable_p "$ac_path_GREP" || continue
4641 # Check for GNU ac_path_GREP and select it if it is found.
4642 # Check for GNU $ac_path_GREP
4643 case `"$ac_path_GREP" --version 2>&1` in
4645 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4648 $as_echo_n 0123456789 >"conftest.in"
4651 cat "conftest.in" "conftest.in" >"conftest.tmp"
4652 mv "conftest.tmp" "conftest.in"
4653 cp "conftest.in" "conftest.nl"
4654 $as_echo 'GREP' >> "conftest.nl"
4655 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4657 as_fn_arith $ac_count + 1 && ac_count=$as_val
4658 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4659 # Best one so far, save it but keep looking for a better one
4660 ac_cv_path_GREP="$ac_path_GREP"
4661 ac_path_GREP_max=$ac_count
4663 # 10*(2^10) chars as input seems more than enough
4664 test $ac_count -gt 10 && break
4666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4669 $ac_path_GREP_found && break 3
4674 if test -z "$ac_cv_path_GREP"; then
4675 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4678 ac_cv_path_GREP=$GREP
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4683 $as_echo "$ac_cv_path_GREP" >&6; }
4684 GREP="$ac_cv_path_GREP"
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4688 $as_echo_n "checking for egrep... " >&6; }
4689 if ${ac_cv_path_EGREP+:} false; then :
4690 $as_echo_n "(cached) " >&6
4692 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4693 then ac_cv_path_EGREP="$GREP -E"
4695 if test -z "$EGREP"; then
4696 ac_path_EGREP_found=false
4697 # Loop through the user's path and test for each of PROGNAME-LIST
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4702 test -z "$as_dir" && as_dir=.
4703 for ac_prog in egrep; do
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4706 as_fn_executable_p "$ac_path_EGREP" || continue
4707 # Check for GNU ac_path_EGREP and select it if it is found.
4708 # Check for GNU $ac_path_EGREP
4709 case `"$ac_path_EGREP" --version 2>&1` in
4711 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4714 $as_echo_n 0123456789 >"conftest.in"
4717 cat "conftest.in" "conftest.in" >"conftest.tmp"
4718 mv "conftest.tmp" "conftest.in"
4719 cp "conftest.in" "conftest.nl"
4720 $as_echo 'EGREP' >> "conftest.nl"
4721 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4723 as_fn_arith $ac_count + 1 && ac_count=$as_val
4724 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4725 # Best one so far, save it but keep looking for a better one
4726 ac_cv_path_EGREP="$ac_path_EGREP"
4727 ac_path_EGREP_max=$ac_count
4729 # 10*(2^10) chars as input seems more than enough
4730 test $ac_count -gt 10 && break
4732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4735 $ac_path_EGREP_found && break 3
4740 if test -z "$ac_cv_path_EGREP"; then
4741 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4744 ac_cv_path_EGREP=$EGREP
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4750 $as_echo "$ac_cv_path_EGREP" >&6; }
4751 EGREP="$ac_cv_path_EGREP"
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4755 $as_echo_n "checking for ANSI C header files... " >&6; }
4756 if ${ac_cv_header_stdc+:} false; then :
4757 $as_echo_n "(cached) " >&6
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4774 if ac_fn_c_try_compile "$LINENO"; then :
4775 ac_cv_header_stdc=yes
4777 ac_cv_header_stdc=no
4779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781 if test $ac_cv_header_stdc = yes; then
4782 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4789 $EGREP "memchr" >/dev/null 2>&1; then :
4792 ac_cv_header_stdc=no
4798 if test $ac_cv_header_stdc = yes; then
4799 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4806 $EGREP "free" >/dev/null 2>&1; then :
4809 ac_cv_header_stdc=no
4815 if test $ac_cv_header_stdc = yes; then
4816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4817 if test "$cross_compiling" = yes; then :
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4824 #if ((' ' & 0x0FF) == 0x020)
4825 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4826 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4828 # define ISLOWER(c) \
4829 (('a' <= (c) && (c) <= 'i') \
4830 || ('j' <= (c) && (c) <= 'r') \
4831 || ('s' <= (c) && (c) <= 'z'))
4832 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4835 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4840 for (i = 0; i < 256; i++)
4841 if (XOR (islower (i), ISLOWER (i))
4842 || toupper (i) != TOUPPER (i))
4847 if ac_fn_c_try_run "$LINENO"; then :
4850 ac_cv_header_stdc=no
4852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4853 conftest.$ac_objext conftest.beam conftest.$ac_ext
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4859 $as_echo "$ac_cv_header_stdc" >&6; }
4860 if test $ac_cv_header_stdc = yes; then
4862 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4866 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4867 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4868 inttypes.h stdint.h unistd.h
4870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4871 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4873 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4874 cat >>confdefs.h <<_ACEOF
4875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4886 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4887 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4894 if test "$MINIX" = yes; then
4896 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4899 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4902 $as_echo "#define _MINIX 1" >>confdefs.h
4909 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4916 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4917 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4918 $as_echo_n "(cached) " >&6
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h. */
4923 # define __EXTENSIONS__ 1
4924 $ac_includes_default
4933 if ac_fn_c_try_compile "$LINENO"; then :
4934 ac_cv_safe_to_define___extensions__=yes
4936 ac_cv_safe_to_define___extensions__=no
4938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4941 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4942 test $ac_cv_safe_to_define___extensions__ = yes &&
4943 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4945 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4947 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4949 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4951 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4955 case $ac_cv_prog_cc_stdc in #(
4957 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4960 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4961 if ${ac_cv_prog_cc_c99+:} false; then :
4962 $as_echo_n "(cached) " >&6
4964 ac_cv_prog_cc_c99=no
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4969 #include <stdbool.h>
4974 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4975 #define debug(...) fprintf (stderr, __VA_ARGS__)
4976 #define showlist(...) puts (#__VA_ARGS__)
4977 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4979 test_varargs_macros (void)
4984 debug ("X = %d\n", x);
4985 showlist (The first, second, and third items.);
4986 report (x>y, "x is %d but y is %d", x, y);
4989 // Check long long types.
4990 #define BIG64 18446744073709551615ull
4991 #define BIG32 4294967295ul
4992 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4994 your preprocessor is broken;
4998 your preprocessor is broken;
5000 static long long int bignum = -9223372036854775807LL;
5001 static unsigned long long int ubignum = BIG64;
5003 struct incomplete_array
5011 const wchar_t *name;
5015 typedef const char *ccp;
5018 test_restrict (ccp restrict text)
5020 // See if C++-style comments work.
5021 // Iterate through items via the restricted pointer.
5022 // Also check for declarations in for loops.
5023 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5028 // Check varargs and va_copy.
5030 test_varargs (const char *format, ...)
5033 va_start (args, format);
5035 va_copy (args_copy, args);
5046 str = va_arg (args_copy, const char *);
5049 number = va_arg (args_copy, int);
5052 fnumber = va_arg (args_copy, double);
5067 _Bool success = false;
5070 if (test_restrict ("String literal") == 0)
5072 char *restrict newvar = "Another string";
5075 test_varargs ("s, d' f .", "string", 65, 34.234);
5076 test_varargs_macros ();
5078 // Check flexible array members.
5079 struct incomplete_array *ia =
5080 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5082 for (int i = 0; i < ia->datasize; ++i)
5083 ia->data[i] = i * 1.234;
5085 // Check named initializers.
5086 struct named_init ni = {
5088 .name = L"Test wide string",
5089 .average = 543.34343,
5094 int dynamic_array[ni.number];
5095 dynamic_array[ni.number - 1] = 543;
5097 // work around unused variable warnings
5098 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5099 || dynamic_array[ni.number - 1] != 543);
5105 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5107 CC="$ac_save_CC $ac_arg"
5108 if ac_fn_c_try_compile "$LINENO"; then :
5109 ac_cv_prog_cc_c99=$ac_arg
5111 rm -f core conftest.err conftest.$ac_objext
5112 test "x$ac_cv_prog_cc_c99" != "xno" && break
5114 rm -f conftest.$ac_ext
5119 case "x$ac_cv_prog_cc_c99" in
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5122 $as_echo "none needed" >&6; } ;;
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5125 $as_echo "unsupported" >&6; } ;;
5127 CC="$CC $ac_cv_prog_cc_c99"
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5129 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5131 if test "x$ac_cv_prog_cc_c99" != xno; then :
5132 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5135 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5136 if ${ac_cv_prog_cc_c89+:} false; then :
5137 $as_echo_n "(cached) " >&6
5139 ac_cv_prog_cc_c89=no
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5147 struct buf { int x; };
5148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5149 static char *e (p, i)
5155 static char *f (char * (*g) (char **, int), char **p, ...)
5160 s = g (p, va_arg (v,int));
5165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5166 function prototypes and stuff, but not '\xHH' hex character constants.
5167 These don't provoke an error unfortunately, instead are silently treated
5168 as 'x'. The following induces an error, until -std is added to get
5169 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5170 array size at least. It's necessary to write '\x00'==0 to get something
5171 that's true only with -std. */
5172 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5175 inside strings and character constants. */
5177 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5179 int test (int i, double x);
5180 struct s1 {int (*f) (int a);};
5181 struct s2 {int (*f) (double a);};
5182 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5188 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5193 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5194 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5196 CC="$ac_save_CC $ac_arg"
5197 if ac_fn_c_try_compile "$LINENO"; then :
5198 ac_cv_prog_cc_c89=$ac_arg
5200 rm -f core conftest.err conftest.$ac_objext
5201 test "x$ac_cv_prog_cc_c89" != "xno" && break
5203 rm -f conftest.$ac_ext
5208 case "x$ac_cv_prog_cc_c89" in
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5211 $as_echo "none needed" >&6; } ;;
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5214 $as_echo "unsupported" >&6; } ;;
5216 CC="$CC $ac_cv_prog_cc_c89"
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5218 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5220 if test "x$ac_cv_prog_cc_c89" != xno; then :
5221 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5223 ac_cv_prog_cc_stdc=no
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5230 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5231 if ${ac_cv_prog_cc_stdc+:} false; then :
5232 $as_echo_n "(cached) " >&6
5235 case $ac_cv_prog_cc_stdc in #(
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5238 $as_echo "unsupported" >&6; } ;; #(
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5241 $as_echo "none needed" >&6; } ;; #(
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5244 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5251 # Ralf Wildenhues: With per-target flags we need CC_C_O
5252 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
5254 if test $ac_cv_c_compiler_gnu = yes; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5256 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5257 if ${ac_cv_prog_gcc_traditional+:} false; then :
5258 $as_echo_n "(cached) " >&6
5260 ac_pattern="Autoconf.*'x'"
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5267 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5268 ac_cv_prog_gcc_traditional=yes
5270 ac_cv_prog_gcc_traditional=no
5275 if test $ac_cv_prog_gcc_traditional = no; then
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5282 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5283 ac_cv_prog_gcc_traditional=yes
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5290 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5291 if test $ac_cv_prog_gcc_traditional = yes; then
5292 CC="$CC -traditional"
5307 case "$ac_cv_prog_cc_c89" in
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5310 version 4.2.5 and higher." >&5
5311 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5312 version 4.2.5 and higher." >&2;}
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
5317 $as_echo_n "checking if $CC can handle #warning... " >&6; }
5318 if ${ntp_cv_cpp_warning+:} false; then :
5319 $as_echo_n "(cached) " >&6
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5332 if ac_fn_c_try_compile "$LINENO"; then :
5333 ntp_cv_cpp_warning=yes
5335 ntp_cv_cpp_warning=no
5338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
5342 $as_echo "$ntp_cv_cpp_warning" >&6; }
5343 case "$ntp_cv_cpp_warning" in
5346 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
5351 $as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
5352 if ${ntp_cv_cc_attribute+:} false; then :
5353 $as_echo_n "(cached) " >&6
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5361 void foo(void) __attribute__((__noreturn__));
5367 if ac_fn_c_try_compile "$LINENO"; then :
5368 ntp_cv_cc_attribute=yes
5370 ntp_cv_cc_attribute=no
5373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
5377 $as_echo "$ntp_cv_cc_attribute" >&6; }
5378 case "$ntp_cv_cc_attribute" in
5381 $as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
5388 SAVED_CFLAGS="$CFLAGS"
5389 CFLAGS="$CFLAGS -Wstrict-overflow"
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
5391 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
5392 if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
5393 $as_echo_n "(cached) " >&6
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5406 if ac_fn_c_try_compile "$LINENO"; then :
5407 ntp_cv_gcc_Wstrict_overflow=yes
5409 ntp_cv_gcc_Wstrict_overflow=no
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
5416 $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
5418 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
5421 CFLAGS="$SAVED_CFLAGS -Winit-self"
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
5423 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
5424 if ${ntp_cv_gcc_Winit_self+:} false; then :
5425 $as_echo_n "(cached) " >&6
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5439 if ac_fn_c_try_compile "$LINENO"; then :
5440 ntp_cv_gcc_Winit_self=yes
5442 ntp_cv_gcc_Winit_self=no
5445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
5450 $as_echo "$ntp_cv_gcc_Winit_self" >&6; }
5451 CFLAGS="$SAVED_CFLAGS"
5452 { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
5454 # $ntp_cv_gcc_Winit_self is tested later to add the
5455 # flag to CFLAGS_NTP.
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
5458 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
5459 if ${ntp_cv_gc_sections_runs+:} false; then :
5460 $as_echo_n "(cached) " >&6
5463 origCFLAGS="$CFLAGS"
5464 CFLAGS="$CFLAGS -Wl,--gc-sections"
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5478 int read_success_once;
5480 fpC = fopen("conftest.c", "r");
5484 cch = fread(buf, sizeof(buf), 1, fpC);
5485 read_success_once |= (0 != cch);
5487 if (!read_success_once)
5491 if (0 != fclose(fpC))
5501 if ac_fn_c_try_link "$LINENO"; then :
5503 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
5504 ntp_cv_gc_sections_runs=no
5506 ntp_cv_gc_sections_runs=no
5507 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
5511 ntp_cv_gc_sections_runs=no
5514 rm -f core conftest.err conftest.$ac_objext \
5515 conftest$ac_exeext conftest.$ac_ext
5516 CFLAGS="$origCFLAGS"
5517 { origCFLAGS=; unset origCFLAGS;}
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
5522 $as_echo "$ntp_cv_gc_sections_runs" >&6; }
5523 case "$ntp_cv_gc_sections_runs" in
5525 LDADD_LIBNTP="-Wl,--gc-sections"
5526 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
5532 CFLAGS_NTP="$CFLAGS_NTP -Wall"
5533 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
5534 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
5535 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
5536 # CFLAGS_NTP="$CFLAGS_NTP -Werror"
5537 # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
5538 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
5539 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
5540 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
5541 CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
5542 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
5543 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
5544 case "$ntp_cv_gcc_Winit_self" in
5546 CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
5548 case "$ntp_cv_gcc_Wstrict_overflow" in
5550 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
5552 # -W[no-]strict-prototypes might be added by NTP_OPENSSL
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
5557 $as_echo_n "checking additional compiler flags... " >&6; }
5558 # allow ntp_os_cflags to be preset to skip this stuff
5559 case "${ntp_os_cflags+set}" in
5568 # turn on additional headers
5569 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
5572 # avoid circular dependencies in yp headers, and more
5573 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
5574 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
5577 # XXX Only verified thru AIX6.
5578 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
5579 # avoid circular dependencies in yp headers
5580 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
5581 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
5582 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
5583 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
5584 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
5587 ntp_os_cflags="-DSYS_AMIGA"
5589 darwin*|macosx*|rhapsody*)
5590 ntp_os_cflags="-D_P1003_1B_VISIBLE"
5592 hpux10.*) # at least for hppa2.0-hp-hpux10.20
5597 # use Ansi compiler on HPUX, and some -Wp magic
5598 ntp_os_cflags="-Ae -Wp,-H18816"
5601 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5608 # use Ansi compiler on HPUX
5611 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5616 # do not use 64-bit compiler
5617 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
5621 ntp_os_cflags="-posix"
5623 solaris1*|solaris2.[0-5]|solaris2.5.*)
5625 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
5628 # turn on 64-bit file offset interface
5629 ntp_os_cflags="-D_LARGEFILE64_SOURCE"
5636 # Quick and dirty sanity check
5637 case "$VX_KERNEL" in
5639 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
5641 ntp_os_cflags="-DSYS_VXWORKS"
5646 case "$ntp_os_cflags" in
5648 ntp_os_cflags_msg="none needed"
5651 ntp_os_cflags_msg="$ntp_os_cflags"
5653 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
5655 $as_echo "$ntp_os_cflags_msg" >&6; }
5656 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
5659 $as_echo_n "checking additional linker flags... " >&6; }
5660 # HMS: The following might still need tweaking
5661 # allow ntp_os_ldflags to be preset to skip this stuff
5662 case "${ntp_os_ldflags+set}" in
5671 ntp_os_ldflags="-Wl,+allowdups"
5678 case "$ntp_os_ldflags" in
5680 ntp_os_ldflags_msg="none needed"
5683 ntp_os_ldflags_msg="$ntp_os_ldflags"
5685 LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
5687 $as_echo "$ntp_os_ldflags_msg" >&6; }
5688 { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5692 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5693 if ${ac_cv_c_bigendian+:} false; then :
5694 $as_echo_n "(cached) " >&6
5696 ac_cv_c_bigendian=unknown
5697 # See if we're dealing with a universal compiler.
5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699 /* end confdefs.h. */
5700 #ifndef __APPLE_CC__
5701 not a universal capable compiler
5706 if ac_fn_c_try_compile "$LINENO"; then :
5708 # Check for potential -arch flags. It is not universal unless
5709 # there are at least two -arch flags with different values.
5712 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5713 if test -n "$ac_prev"; then
5715 i?86 | x86_64 | ppc | ppc64)
5716 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5719 ac_cv_c_bigendian=universal
5725 elif test "x$ac_word" = "x-arch"; then
5730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5731 if test $ac_cv_c_bigendian = unknown; then
5732 # See if sys/param.h defines the BYTE_ORDER macro.
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735 #include <sys/types.h>
5736 #include <sys/param.h>
5741 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5742 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5751 if ac_fn_c_try_compile "$LINENO"; then :
5752 # It does; now see whether it defined to BIG_ENDIAN or not.
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5755 #include <sys/types.h>
5756 #include <sys/param.h>
5761 #if BYTE_ORDER != BIG_ENDIAN
5769 if ac_fn_c_try_compile "$LINENO"; then :
5770 ac_cv_c_bigendian=yes
5772 ac_cv_c_bigendian=no
5774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778 if test $ac_cv_c_bigendian = unknown; then
5779 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5787 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5795 if ac_fn_c_try_compile "$LINENO"; then :
5796 # It does; now see whether it defined to _BIG_ENDIAN or not.
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5812 if ac_fn_c_try_compile "$LINENO"; then :
5813 ac_cv_c_bigendian=yes
5815 ac_cv_c_bigendian=no
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821 if test $ac_cv_c_bigendian = unknown; then
5822 # Compile a test program.
5823 if test "$cross_compiling" = yes; then :
5824 # Try to guess by grepping values from an object file.
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5827 short int ascii_mm[] =
5828 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5829 short int ascii_ii[] =
5830 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5831 int use_ascii (int i) {
5832 return ascii_mm[i] + ascii_ii[i];
5834 short int ebcdic_ii[] =
5835 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5836 short int ebcdic_mm[] =
5837 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5838 int use_ebcdic (int i) {
5839 return ebcdic_mm[i] + ebcdic_ii[i];
5846 return use_ascii (foo) == use_ebcdic (foo);
5851 if ac_fn_c_try_compile "$LINENO"; then :
5852 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5853 ac_cv_c_bigendian=yes
5855 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5856 if test "$ac_cv_c_bigendian" = unknown; then
5857 ac_cv_c_bigendian=no
5859 # finding both strings is unlikely to happen, but who knows?
5860 ac_cv_c_bigendian=unknown
5864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5868 $ac_includes_default
5873 /* Are we little or big endian? From Harbison&Steele. */
5877 char c[sizeof (long int)];
5880 return u.c[sizeof (long int) - 1] == 1;
5886 if ac_fn_c_try_run "$LINENO"; then :
5887 ac_cv_c_bigendian=no
5889 ac_cv_c_bigendian=yes
5891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5892 conftest.$ac_objext conftest.beam conftest.$ac_ext
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5898 $as_echo "$ac_cv_c_bigendian" >&6; }
5899 case $ac_cv_c_bigendian in #(
5901 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5907 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5911 as_fn_error $? "unknown endianness
5912 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5916 $as_echo_n "checking for working volatile... " >&6; }
5917 if ${ac_cv_c_volatile+:} false; then :
5918 $as_echo_n "(cached) " >&6
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5928 int * volatile y = (int *) 0;
5934 if ac_fn_c_try_compile "$LINENO"; then :
5935 ac_cv_c_volatile=yes
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5942 $as_echo "$ac_cv_c_volatile" >&6; }
5943 if test $ac_cv_c_volatile = no; then
5945 $as_echo "#define volatile /**/" >>confdefs.h
5950 ac_cpp='$CPP $CPPFLAGS'
5951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5955 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5956 # On Suns, sometimes $CPP names a directory.
5957 if test -n "$CPP" && test -d "$CPP"; then
5960 if test -z "$CPP"; then
5961 if ${ac_cv_prog_CPP+:} false; then :
5962 $as_echo_n "(cached) " >&6
5964 # Double quotes because CPP needs to be expanded
5965 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5968 for ac_c_preproc_warn_flag in '' yes
5970 # Use a header file that comes with gcc, so configuring glibc
5971 # with a fresh cross-compiler works.
5972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5973 # <limits.h> exists even on freestanding compilers.
5974 # On the NeXT, cc -E runs the code through the compiler's parser,
5975 # not just through cpp. "Syntax error" is here to catch this case.
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5979 # include <limits.h>
5981 # include <assert.h>
5985 if ac_fn_c_try_cpp "$LINENO"; then :
5988 # Broken: fails on valid input.
5991 rm -f conftest.err conftest.i conftest.$ac_ext
5993 # OK, works on sane cases. Now check whether nonexistent headers
5994 # can be detected and how.
5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
5997 #include <ac_nonexistent.h>
5999 if ac_fn_c_try_cpp "$LINENO"; then :
6000 # Broken: success on invalid input.
6003 # Passes both tests.
6007 rm -f conftest.err conftest.i conftest.$ac_ext
6010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6011 rm -f conftest.i conftest.err conftest.$ac_ext
6012 if $ac_preproc_ok; then :
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6025 $as_echo "$CPP" >&6; }
6027 for ac_c_preproc_warn_flag in '' yes
6029 # Use a header file that comes with gcc, so configuring glibc
6030 # with a fresh cross-compiler works.
6031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6032 # <limits.h> exists even on freestanding compilers.
6033 # On the NeXT, cc -E runs the code through the compiler's parser,
6034 # not just through cpp. "Syntax error" is here to catch this case.
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6038 # include <limits.h>
6040 # include <assert.h>
6044 if ac_fn_c_try_cpp "$LINENO"; then :
6047 # Broken: fails on valid input.
6050 rm -f conftest.err conftest.i conftest.$ac_ext
6052 # OK, works on sane cases. Now check whether nonexistent headers
6053 # can be detected and how.
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056 #include <ac_nonexistent.h>
6058 if ac_fn_c_try_cpp "$LINENO"; then :
6059 # Broken: success on invalid input.
6062 # Passes both tests.
6066 rm -f conftest.err conftest.i conftest.$ac_ext
6069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6070 rm -f conftest.i conftest.err conftest.$ac_ext
6071 if $ac_preproc_ok; then :
6074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6076 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6077 See \`config.log' for more details" "$LINENO" 5; }
6081 ac_cpp='$CPP $CPPFLAGS'
6082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
6091 $as_echo_n "checking for compile/link hardening flags... " >&6; }
6094 # Check whether --with-hardenfile was given.
6095 if test "${with_hardenfile+set}" = set; then :
6096 withval=$with_hardenfile;
6104 SENTINEL_DIR="$PWD" && \
6106 case "$with_hardenfile" in \
6108 scripts/genHardFlags -d "$SENTINEL_DIR" \
6111 scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_hardenfile" \
6114 ) > genHardFlags.i 2> genHardFlags.err
6117 case "$GENHARDFLAG" in
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
6120 $as_echo "in file $GENHARDFLAGFILE" >&6; }
6121 rm genHardFlags.err genHardFlags.i
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6125 $as_echo "failed." >&6; }
6126 as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
6139 $as_echo_n "checking for install dir and man conventions... " >&6; }
6142 # Check whether --with-locfile was given.
6143 if test "${with_locfile+set}" = set; then :
6144 withval=$with_locfile;
6152 SENTINEL_DIR="$PWD" && \
6154 case "$with_locfile" in \
6156 scripts/genLocInfo -d "$SENTINEL_DIR" \
6159 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \
6162 ) > genLocInfo.i 2> genLocInfo.err
6165 case "$GENLOCINFO" in
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
6168 $as_echo "in file $GENLOCINFOFILE" >&6; }
6169 rm genLocInfo.err genLocInfo.i
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6173 $as_echo "failed." >&6; }
6174 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
6178 if test "$CALC_TICKADJ_MS" ; then
6179 WANT_CALC_TICKADJ_MS_TRUE=
6180 WANT_CALC_TICKADJ_MS_FALSE='#'
6182 WANT_CALC_TICKADJ_MS_TRUE='#'
6183 WANT_CALC_TICKADJ_MS_FALSE=
6228 if test -z "$NTPSWEEP_NI" ; then
6229 INSTALL_NTPSWEEP_TRUE=
6230 INSTALL_NTPSWEEP_FALSE='#'
6232 INSTALL_NTPSWEEP_TRUE='#'
6233 INSTALL_NTPSWEEP_FALSE=
6276 if test -z "$UPDATE_LEAP_NI" ; then
6277 INSTALL_UPDATE_LEAP_TRUE=
6278 INSTALL_UPDATE_LEAP_FALSE='#'
6280 INSTALL_UPDATE_LEAP_TRUE='#'
6281 INSTALL_UPDATE_LEAP_FALSE=
6287 if test -n "$ac_tool_prefix"; then
6288 for ac_prog in ar lib "link -lib"
6290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if ${ac_cv_prog_AR+:} false; then :
6295 $as_echo_n "(cached) " >&6
6297 if test -n "$AR"; then
6298 ac_cv_prog_AR="$AR" # Let the user override the test.
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6307 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 if test -n "$AR"; then
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6320 $as_echo "$AR" >&6; }
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6327 test -n "$AR" && break
6330 if test -z "$AR"; then
6332 for ac_prog in ar lib "link -lib"
6334 # Extract the first word of "$ac_prog", so it can be a program name with args.
6335 set dummy $ac_prog; ac_word=$2
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 $as_echo_n "checking for $ac_word... " >&6; }
6338 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6339 $as_echo_n "(cached) " >&6
6341 if test -n "$ac_ct_AR"; then
6342 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351 ac_cv_prog_ac_ct_AR="$ac_prog"
6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6361 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6362 if test -n "$ac_ct_AR"; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6364 $as_echo "$ac_ct_AR" >&6; }
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6371 test -n "$ac_ct_AR" && break
6374 if test "x$ac_ct_AR" = x; then
6377 case $cross_compiling:$ac_tool_warned in
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6381 ac_tool_warned=yes ;;
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6390 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6391 if ${am_cv_ar_interface+:} false; then :
6392 $as_echo_n "(cached) " >&6
6395 ac_cpp='$CPP $CPPFLAGS'
6396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6400 am_cv_ar_interface=ar
6401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402 /* end confdefs.h. */
6403 int some_variable = 0;
6405 if ac_fn_c_try_compile "$LINENO"; then :
6406 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6408 (eval $am_ar_try) 2>&5
6410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6411 test $ac_status = 0; }
6412 if test "$ac_status" -eq 0; then
6413 am_cv_ar_interface=ar
6415 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6417 (eval $am_ar_try) 2>&5
6419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420 test $ac_status = 0; }
6421 if test "$ac_status" -eq 0; then
6422 am_cv_ar_interface=lib
6424 am_cv_ar_interface=unknown
6427 rm -f conftest.lib libconftest.a
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6432 ac_cpp='$CPP $CPPFLAGS'
6433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6439 $as_echo "$am_cv_ar_interface" >&6; }
6441 case $am_cv_ar_interface in
6445 # Microsoft lib, so override with the ar-lib wrapper script.
6446 # FIXME: It is wrong to rewrite AR.
6447 # But if we don't then we get into trouble of one sort or another.
6448 # A longer-term fix would be to have automake use am__AR in this case,
6449 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6451 AR="$am_aux_dir/ar-lib $AR"
6454 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6462 # Expose a cross-compilation indicator to makefiles
6463 if test $build != $host; then
6464 NTP_CROSSCOMPILE_TRUE=
6465 NTP_CROSSCOMPILE_FALSE='#'
6467 NTP_CROSSCOMPILE_TRUE='#'
6468 NTP_CROSSCOMPILE_FALSE=
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6474 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6475 if ${ac_cv_path_SED+:} false; then :
6476 $as_echo_n "(cached) " >&6
6478 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6479 for ac_i in 1 2 3 4 5 6 7; do
6480 ac_script="$ac_script$as_nl$ac_script"
6482 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6483 { ac_script=; unset ac_script;}
6484 if test -z "$SED"; then
6485 ac_path_SED_found=false
6486 # Loop through the user's path and test for each of PROGNAME-LIST
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 test -z "$as_dir" && as_dir=.
6492 for ac_prog in sed gsed; do
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6495 as_fn_executable_p "$ac_path_SED" || continue
6496 # Check for GNU ac_path_SED and select it if it is found.
6497 # Check for GNU $ac_path_SED
6498 case `"$ac_path_SED" --version 2>&1` in
6500 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6503 $as_echo_n 0123456789 >"conftest.in"
6506 cat "conftest.in" "conftest.in" >"conftest.tmp"
6507 mv "conftest.tmp" "conftest.in"
6508 cp "conftest.in" "conftest.nl"
6509 $as_echo '' >> "conftest.nl"
6510 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6511 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6512 as_fn_arith $ac_count + 1 && ac_count=$as_val
6513 if test $ac_count -gt ${ac_path_SED_max-0}; then
6514 # Best one so far, save it but keep looking for a better one
6515 ac_cv_path_SED="$ac_path_SED"
6516 ac_path_SED_max=$ac_count
6518 # 10*(2^10) chars as input seems more than enough
6519 test $ac_count -gt 10 && break
6521 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6524 $ac_path_SED_found && break 3
6529 if test -z "$ac_cv_path_SED"; then
6530 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6538 $as_echo "$ac_cv_path_SED" >&6; }
6539 SED="$ac_cv_path_SED"
6542 test -z "$SED" && SED=sed
6543 Xsed="$SED -e 1s/^X//"
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6556 $as_echo_n "checking for fgrep... " >&6; }
6557 if ${ac_cv_path_FGREP+:} false; then :
6558 $as_echo_n "(cached) " >&6
6560 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6561 then ac_cv_path_FGREP="$GREP -F"
6563 if test -z "$FGREP"; then
6564 ac_path_FGREP_found=false
6565 # Loop through the user's path and test for each of PROGNAME-LIST
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6570 test -z "$as_dir" && as_dir=.
6571 for ac_prog in fgrep; do
6572 for ac_exec_ext in '' $ac_executable_extensions; do
6573 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6574 as_fn_executable_p "$ac_path_FGREP" || continue
6575 # Check for GNU ac_path_FGREP and select it if it is found.
6576 # Check for GNU $ac_path_FGREP
6577 case `"$ac_path_FGREP" --version 2>&1` in
6579 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6582 $as_echo_n 0123456789 >"conftest.in"
6585 cat "conftest.in" "conftest.in" >"conftest.tmp"
6586 mv "conftest.tmp" "conftest.in"
6587 cp "conftest.in" "conftest.nl"
6588 $as_echo 'FGREP' >> "conftest.nl"
6589 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6590 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6591 as_fn_arith $ac_count + 1 && ac_count=$as_val
6592 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6593 # Best one so far, save it but keep looking for a better one
6594 ac_cv_path_FGREP="$ac_path_FGREP"
6595 ac_path_FGREP_max=$ac_count
6597 # 10*(2^10) chars as input seems more than enough
6598 test $ac_count -gt 10 && break
6600 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6603 $ac_path_FGREP_found && break 3
6608 if test -z "$ac_cv_path_FGREP"; then
6609 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6612 ac_cv_path_FGREP=$FGREP
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6618 $as_echo "$ac_cv_path_FGREP" >&6; }
6619 FGREP="$ac_cv_path_FGREP"
6622 test -z "$GREP" && GREP=grep
6640 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6641 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6642 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6645 $as_echo_n "checking how to print strings... " >&6; }
6646 # Test print first, because it will be a builtin if present.
6647 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6648 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6650 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6653 # Use this function as a fallback that always works.
6654 func_fallback_echo ()
6656 eval 'cat <<_LTECHO_EOF
6660 ECHO='func_fallback_echo'
6663 # func_echo_all arg...
6664 # Invoke $ECHO with all args, space-separated.
6671 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6672 $as_echo "printf" >&6; } ;;
6673 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6674 $as_echo "print -r" >&6; } ;;
6675 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6676 $as_echo "cat" >&6; } ;;
6692 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6693 if test "x$ac_cv_type_pid_t" = xyes; then :
6697 cat >>confdefs.h <<_ACEOF
6703 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6704 if test "x$ac_cv_type_size_t" = xyes; then :
6708 cat >>confdefs.h <<_ACEOF
6709 #define size_t unsigned int
6715 # Check whether --enable-c99-snprintf was given.
6716 if test "${enable_c99_snprintf+set}" = set; then :
6717 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
6719 force_c99_snprintf=no
6723 case "$force_c99_snprintf" in
6725 hw_force_rpl_snprintf=yes
6726 hw_force_rpl_vsnprintf=yes
6734 for ac_header in $ac_header_list
6736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6737 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6739 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6740 cat >>confdefs.h <<_ACEOF
6741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6755 $as_echo_n "checking for unsigned long long int... " >&6; }
6756 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6757 $as_echo_n "(cached) " >&6
6759 ac_cv_type_unsigned_long_long_int=yes
6760 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6764 /* For now, do not test the preprocessor; as of 2007 there are too many
6765 implementations with broken preprocessors. Perhaps this can
6766 be revisited in 2012. In the meantime, code should not expect
6767 #if to work with literals wider than 32 bits. */
6768 /* Test literals. */
6769 long long int ll = 9223372036854775807ll;
6770 long long int nll = -9223372036854775807LL;
6771 unsigned long long int ull = 18446744073709551615ULL;
6772 /* Test constant expressions. */
6773 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6775 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6781 /* Test availability of runtime routines for shift and division. */
6782 long long int llmax = 9223372036854775807ll;
6783 unsigned long long int ullmax = 18446744073709551615ull;
6784 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6785 | (llmax / ll) | (llmax % ll)
6786 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6787 | (ullmax / ull) | (ullmax % ull));
6793 if ac_fn_c_try_link "$LINENO"; then :
6796 ac_cv_type_unsigned_long_long_int=no
6798 rm -f core conftest.err conftest.$ac_objext \
6799 conftest$ac_exeext conftest.$ac_ext
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6803 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6804 if test $ac_cv_type_unsigned_long_long_int = yes; then
6806 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6811 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
6812 if test "x$ac_cv_func_vsnprintf" = xyes; then :
6813 hw_cv_func_vsnprintf=yes
6815 hw_cv_func_vsnprintf=no
6818 if test "$hw_cv_func_vsnprintf" = yes; then :
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
6820 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
6821 if ${hw_cv_func_vsnprintf_c99+:} false; then :
6822 $as_echo_n "(cached) " >&6
6824 if test "$cross_compiling" = yes; then :
6825 hw_cv_func_vsnprintf_c99=no
6827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828 /* end confdefs.h. */
6833 static int testprintf(char *buf, size_t size, const char *format, ...)
6837 va_start(ap, format);
6838 result = vsnprintf(buf, size, format, ap);
6846 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
6847 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
6848 buf[0] != 'T' || buf[3] != '\0')
6854 if ac_fn_c_try_run "$LINENO"; then :
6855 hw_cv_func_vsnprintf_c99=yes
6857 hw_cv_func_vsnprintf_c99=no
6859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6860 conftest.$ac_objext conftest.beam conftest.$ac_ext
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
6865 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
6867 hw_cv_func_vsnprintf_c99=no
6870 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
6873 $as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
6874 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
6875 hw_use_rpl_vsnprintf=yes
6877 hw_use_rpl_vsnprintf=no
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
6880 $as_echo "$hw_use_rpl_vsnprintf" >&6; }
6881 if test "$hw_use_rpl_vsnprintf" = yes; then :
6883 $as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
6885 if test ${hw_nodef_vsnprintf=no} = no; then :
6887 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
6890 for ac_header in inttypes.h locale.h stddef.h stdint.h
6892 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6893 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6894 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6895 cat >>confdefs.h <<_ACEOF
6896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6903 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
6905 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
6907 cat >>confdefs.h <<_ACEOF
6908 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
6913 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
6915 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
6917 cat >>confdefs.h <<_ACEOF
6918 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6926 $as_echo_n "checking for long double... " >&6; }
6927 if ${ac_cv_type_long_double+:} false; then :
6928 $as_echo_n "(cached) " >&6
6930 if test "$GCC" = yes; then
6931 ac_cv_type_long_double=yes
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6935 /* The Stardent Vistra knows sizeof (long double), but does
6937 long double foo = 0.0L;
6941 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6942 sizeof (double) <= sizeof (long double))];
6944 return test_array [0];
6950 if ac_fn_c_try_compile "$LINENO"; then :
6951 ac_cv_type_long_double=yes
6953 ac_cv_type_long_double=no
6955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
6959 $as_echo "$ac_cv_type_long_double" >&6; }
6960 if test $ac_cv_type_long_double = yes; then
6962 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6969 $as_echo_n "checking for long long int... " >&6; }
6970 if ${ac_cv_type_long_long_int+:} false; then :
6971 $as_echo_n "(cached) " >&6
6973 ac_cv_type_long_long_int=yes
6974 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6975 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6976 if test $ac_cv_type_long_long_int = yes; then
6977 if test "$cross_compiling" = yes; then :
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6985 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6986 # define LLONG_MAX (HALF - 1 + HALF)
6991 long long int n = 1;
6995 long long int m = n << i;
6998 if (LLONG_MAX / 2 < m)
7006 if ac_fn_c_try_run "$LINENO"; then :
7009 ac_cv_type_long_long_int=no
7011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7012 conftest.$ac_objext conftest.beam conftest.$ac_ext
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7019 $as_echo "$ac_cv_type_long_long_int" >&6; }
7020 if test $ac_cv_type_long_long_int = yes; then
7022 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7028 $as_echo_n "checking for unsigned long long int... " >&6; }
7029 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7030 $as_echo_n "(cached) " >&6
7032 ac_cv_type_unsigned_long_long_int=yes
7033 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7037 /* For now, do not test the preprocessor; as of 2007 there are too many
7038 implementations with broken preprocessors. Perhaps this can
7039 be revisited in 2012. In the meantime, code should not expect
7040 #if to work with literals wider than 32 bits. */
7041 /* Test literals. */
7042 long long int ll = 9223372036854775807ll;
7043 long long int nll = -9223372036854775807LL;
7044 unsigned long long int ull = 18446744073709551615ULL;
7045 /* Test constant expressions. */
7046 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7048 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7054 /* Test availability of runtime routines for shift and division. */
7055 long long int llmax = 9223372036854775807ll;
7056 unsigned long long int ullmax = 18446744073709551615ull;
7057 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7058 | (llmax / ll) | (llmax % ll)
7059 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7060 | (ullmax / ull) | (ullmax % ull));
7066 if ac_fn_c_try_link "$LINENO"; then :
7069 ac_cv_type_unsigned_long_long_int=no
7071 rm -f core conftest.err conftest.$ac_objext \
7072 conftest$ac_exeext conftest.$ac_ext
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7076 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7077 if test $ac_cv_type_unsigned_long_long_int = yes; then
7079 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7083 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7084 if test "x$ac_cv_type_size_t" = xyes; then :
7088 cat >>confdefs.h <<_ACEOF
7089 #define size_t unsigned int
7096 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
7097 if test "x$ac_cv_type_intmax_t" = xyes; then :
7099 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
7102 test $ac_cv_type_long_long_int = yes \
7103 && ac_type='long long int' \
7104 || ac_type='long int'
7106 cat >>confdefs.h <<_ACEOF
7107 #define intmax_t $ac_type
7115 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
7116 if test "x$ac_cv_type_uintmax_t" = xyes; then :
7118 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7121 test $ac_cv_type_unsigned_long_long_int = yes \
7122 && ac_type='unsigned long long int' \
7123 || ac_type='unsigned long int'
7125 cat >>confdefs.h <<_ACEOF
7126 #define uintmax_t $ac_type
7133 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
7134 if test "x$ac_cv_type_uintptr_t" = xyes; then :
7136 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
7139 for ac_type in 'unsigned int' 'unsigned long int' \
7140 'unsigned long long int'; do
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143 $ac_includes_default
7147 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
7149 return test_array [0];
7155 if ac_fn_c_try_compile "$LINENO"; then :
7157 cat >>confdefs.h <<_ACEOF
7158 #define uintptr_t $ac_type
7163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164 test -z "$ac_type" && break
7169 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7170 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
7172 cat >>confdefs.h <<_ACEOF
7173 #define HAVE_PTRDIFF_T 1
7179 for ac_func in localeconv
7181 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
7182 if test "x$ac_cv_func_localeconv" = xyes; then :
7183 cat >>confdefs.h <<_ACEOF
7184 #define HAVE_LOCALECONV 1
7191 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7193 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7194 if ${ac_cv_c_const+:} false; then :
7195 $as_echo_n "(cached) " >&6
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7205 /* Ultrix mips cc rejects this sort of thing. */
7206 typedef int charset[2];
7207 const charset cs = { 0, 0 };
7208 /* SunOS 4.1.1 cc rejects this. */
7209 char const *const *pcpcc;
7211 /* NEC SVR4.0.2 mips cc rejects this. */
7212 struct point {int x, y;};
7213 static struct point const zero = {0,0};
7214 /* AIX XL C 1.02.0.0 rejects this.
7215 It does not let you subtract one const X* pointer from another in
7216 an arm of an if-expression whose if-part is not a constant
7218 const char *g = "string";
7219 pcpcc = &g + (g ? g-g : 0);
7220 /* HPUX 7.0 cc rejects these. */
7222 ppc = (char**) pcpcc;
7223 pcpcc = (char const *const *) ppc;
7224 { /* SCO 3.2v4 cc rejects this sort of thing. */
7227 char const *s = 0 ? (char *) 0 : (char const *) 0;
7232 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7234 const int *foo = &x[0];
7237 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7238 typedef const int *iptr;
7242 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7243 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7244 struct s { int j; const int *ap[3]; } bx;
7245 struct s *b = &bx; b->j = 5;
7247 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7251 return !cs[0] && !zero.x;
7258 if ac_fn_c_try_compile "$LINENO"; then :
7263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7266 $as_echo "$ac_cv_c_const" >&6; }
7267 if test $ac_cv_c_const = no; then
7269 $as_echo "#define const /**/" >>confdefs.h
7276 case " $LIBOBJS " in
7277 *" snprintf.$ac_objext "* ) ;;
7278 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7282 _hw_cv_func_xprintf_replace_done=yes
7288 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
7289 if test "x$ac_cv_func_snprintf" = xyes; then :
7290 hw_cv_func_snprintf=yes
7292 hw_cv_func_snprintf=no
7295 if test "$hw_cv_func_snprintf" = yes; then :
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
7297 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
7298 if ${hw_cv_func_snprintf_c99+:} false; then :
7299 $as_echo_n "(cached) " >&6
7301 if test "$cross_compiling" = yes; then :
7302 hw_cv_func_snprintf_c99=no
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7311 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
7312 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
7313 buf[0] != 'T' || buf[3] != '\0')
7319 if ac_fn_c_try_run "$LINENO"; then :
7320 hw_cv_func_snprintf_c99=yes
7322 hw_cv_func_snprintf_c99=no
7324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7325 conftest.$ac_objext conftest.beam conftest.$ac_ext
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
7330 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
7332 hw_cv_func_snprintf_c99=no
7335 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
7338 $as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
7339 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
7340 hw_use_rpl_snprintf=yes
7342 hw_use_rpl_snprintf=no
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
7345 $as_echo "$hw_use_rpl_snprintf" >&6; }
7346 if test "$hw_use_rpl_snprintf" = yes; then :
7348 $as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
7350 if test ${hw_nodef_snprintf=no} = no; then :
7352 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
7356 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7358 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7359 if ${ac_cv_c_const+:} false; then :
7360 $as_echo_n "(cached) " >&6
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7370 /* Ultrix mips cc rejects this sort of thing. */
7371 typedef int charset[2];
7372 const charset cs = { 0, 0 };
7373 /* SunOS 4.1.1 cc rejects this. */
7374 char const *const *pcpcc;
7376 /* NEC SVR4.0.2 mips cc rejects this. */
7377 struct point {int x, y;};
7378 static struct point const zero = {0,0};
7379 /* AIX XL C 1.02.0.0 rejects this.
7380 It does not let you subtract one const X* pointer from another in
7381 an arm of an if-expression whose if-part is not a constant
7383 const char *g = "string";
7384 pcpcc = &g + (g ? g-g : 0);
7385 /* HPUX 7.0 cc rejects these. */
7387 ppc = (char**) pcpcc;
7388 pcpcc = (char const *const *) ppc;
7389 { /* SCO 3.2v4 cc rejects this sort of thing. */
7392 char const *s = 0 ? (char *) 0 : (char const *) 0;
7397 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7399 const int *foo = &x[0];
7402 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7403 typedef const int *iptr;
7407 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7408 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7409 struct s { int j; const int *ap[3]; } bx;
7410 struct s *b = &bx; b->j = 5;
7412 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7416 return !cs[0] && !zero.x;
7423 if ac_fn_c_try_compile "$LINENO"; then :
7428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7431 $as_echo "$ac_cv_c_const" >&6; }
7432 if test $ac_cv_c_const = no; then
7434 $as_echo "#define const /**/" >>confdefs.h
7441 case " $LIBOBJS " in
7442 *" snprintf.$ac_objext "* ) ;;
7443 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7447 _hw_cv_func_xprintf_replace_done=yes
7456 # HMS: Save $LIBS and empty it.
7457 # any LIBS we add here should go in to LDADD_LIBNTP
7464 # [Bug 2332] because we need to know if we are using GNU ld...
7467 # Check whether --with-gnu-ld was given.
7468 if test "${with_gnu_ld+set}" = set; then :
7469 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7475 if test yes = "$GCC"; then
7476 # Check if gcc -print-prog-name=ld gives a path.
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7478 $as_echo_n "checking for ld used by $CC... " >&6; }
7481 # gcc leaves a trailing carriage return, which upsets mingw
7482 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7484 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7487 # Accept absolute paths.
7489 re_direlt='/[^/][^/]*/\.\./'
7490 # Canonicalize the pathname of ld
7491 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7492 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7493 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7495 test -z "$LD" && LD=$ac_prog
7498 # If it fails, then pretend we aren't using GCC.
7502 # If it is relative, then search for the first ld in PATH.
7506 elif test yes = "$with_gnu_ld"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7508 $as_echo_n "checking for GNU ld... " >&6; }
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7511 $as_echo_n "checking for non-GNU ld... " >&6; }
7513 if ${lt_cv_path_LD+:} false; then :
7514 $as_echo_n "(cached) " >&6
7516 if test -z "$LD"; then
7517 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7518 for ac_dir in $PATH; do
7520 test -z "$ac_dir" && ac_dir=.
7521 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7522 lt_cv_path_LD=$ac_dir/$ac_prog
7523 # Check to see if the program is GNU ld. I'd rather use --version,
7524 # but apparently some variants of GNU ld only accept -v.
7525 # Break only if it was the GNU/non-GNU ld that we prefer.
7526 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7527 *GNU* | *'with BFD'*)
7528 test no != "$with_gnu_ld" && break
7531 test yes != "$with_gnu_ld" && break
7538 lt_cv_path_LD=$LD # Let the user override the test with a path.
7543 if test -n "$LD"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7545 $as_echo "$LD" >&6; }
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7550 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7552 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7553 if ${lt_cv_prog_gnu_ld+:} false; then :
7554 $as_echo_n "(cached) " >&6
7556 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7557 case `$LD -v 2>&1 </dev/null` in
7558 *GNU* | *'with BFD'*)
7559 lt_cv_prog_gnu_ld=yes
7562 lt_cv_prog_gnu_ld=no
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7567 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7568 with_gnu_ld=$lt_cv_prog_gnu_ld
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
7581 $as_echo_n "checking for directory path separator... " >&6; }
7582 if ${ntp_cv_dir_sep+:} false; then :
7583 $as_echo_n "(cached) " >&6
7586 case "$ntp_cv_dir_sep" in
7589 *djgpp | *mingw32* | *emx*)
7590 ntp_cv_dir_sep="'\\'"
7593 ntp_cv_dir_sep="'/'"
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
7601 $as_echo "$ntp_cv_dir_sep" >&6; }
7603 cat >>confdefs.h <<_ACEOF
7604 #define DIR_SEP $ntp_cv_dir_sep
7609 NTP_ORIG_LIBS="$LIBS"
7611 # Check whether --with-lineeditlibs was given.
7612 if test "${with_lineeditlibs+set}" = set; then :
7613 withval=$with_lineeditlibs; use_lineeditlibs="$withval"
7615 use_lineeditlibs="edit,editline"
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
7620 $as_echo_n "checking line editing libraries... " >&6; }
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
7622 $as_echo "$use_lineeditlibs" >&6; }
7623 case "$use_lineeditlibs" in
7628 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
7629 for term_lib in "" termcap curses ncurses; do
7632 TRY_LIB="-l$lineedit_lib"
7635 TRY_LIB="-l$lineedit_lib -l$term_lib"
7638 LIBS="$NTP_ORIG_LIBS $TRY_LIB"
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
7640 $as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7644 /* Override any GCC internal prototype to avoid an error.
7645 Use char because int might match the return type of a GCC
7646 builtin and then its argument prototype would still apply. */
7659 if ac_fn_c_try_link "$LINENO"; then :
7660 ntp_lib_lineedit="$TRY_LIB"
7662 rm -f core conftest.err conftest.$ac_objext \
7663 conftest$ac_exeext conftest.$ac_ext
7664 case "$ntp_lib_lineedit" in
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667 $as_echo "no" >&6; }
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7672 $as_echo "yes" >&6; }
7677 # do not try el_gets without a terminal library
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
7681 $as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7685 /* Override any GCC internal prototype to avoid an error.
7686 Use char because int might match the return type of a GCC
7687 builtin and then its argument prototype would still apply. */
7700 if ac_fn_c_try_link "$LINENO"; then :
7701 ntp_lib_lineedit="$TRY_LIB"
7703 rm -f core conftest.err conftest.$ac_objext \
7704 conftest$ac_exeext conftest.$ac_ext
7705 case "$ntp_lib_lineedit" in
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7712 $as_echo "yes" >&6; }
7715 esac # $ntp_lib_lineedit
7718 case "$ntp_lib_lineedit" in
7726 LIBS="$NTP_ORIG_LIBS"
7728 esac # $use_lineeditlibs
7730 case "$ntp_lib_lineedit" in
7732 ntp_lib_lineedit="no"
7737 EDITLINE_LIBS="$ntp_lib_lineedit"
7740 esac # $ntp_lib_lineedit
7742 case "$ntp_lib_lineedit" in
7746 for ac_header in readline.h readline/readline.h histedit.h
7748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7749 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7750 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7751 cat >>confdefs.h <<_ACEOF
7752 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7759 for ac_header in history.h readline/history.h
7761 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7762 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7763 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7764 cat >>confdefs.h <<_ACEOF
7765 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7773 case "$ac_cv_header_histedit_h" in
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
7776 $as_echo_n "checking number of arguments to el_init()... " >&6; }
7777 if ${ntp_cv_el_init_args+:} false; then :
7778 $as_echo_n "(cached) " >&6
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7784 #include <histedit.h>
7790 el_init("conftest", stdin, stdout, stderr);
7797 if ac_fn_c_try_compile "$LINENO"; then :
7798 ntp_cv_el_init_args=4
7800 ntp_cv_el_init_args=3
7803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
7807 $as_echo "$ntp_cv_el_init_args" >&6; }
7809 cat >>confdefs.h <<_ACEOF
7810 #define EL_INIT_ARGS $ntp_cv_el_init_args
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
7816 $as_echo_n "checking whether readline supports history... " >&6; }
7818 ntp_lib_lineedit_history="no"
7820 LIBS="$ORIG_LIBS $ntp_lib_lineedit"
7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h. */
7824 /* Override any GCC internal prototype to avoid an error.
7825 Use char because int might match the return type of a GCC
7826 builtin and then its argument prototype would still apply. */
7830 char add_history ();
7834 return add_history ();
7839 if ac_fn_c_try_link "$LINENO"; then :
7840 ntp_lib_lineedit_history="yes"
7842 rm -f core conftest.err conftest.$ac_objext \
7843 conftest$ac_exeext conftest.$ac_ext
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
7847 $as_echo "$ntp_lib_lineedit_history" >&6; }
7849 case "$ntp_lib_lineedit_history" in
7852 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
7855 esac # $ntp_lib_lineedit
7856 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
7857 { ORIG_LIBS=; unset ORIG_LIBS;}
7858 { TRY_LIB=; unset TRY_LIB;}
7859 { use_lineeditlibs=; unset use_lineeditlibs;}
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
7869 $as_echo_n "checking for library containing cos... " >&6; }
7870 if ${ac_cv_search_cos+:} false; then :
7871 $as_echo_n "(cached) " >&6
7873 ac_func_search_save_LIBS=$LIBS
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7877 /* Override any GCC internal prototype to avoid an error.
7878 Use char because int might match the return type of a GCC
7879 builtin and then its argument prototype would still apply. */
7892 for ac_lib in '' m; do
7893 if test -z "$ac_lib"; then
7894 ac_res="none required"
7897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7899 if ac_fn_c_try_link "$LINENO"; then :
7900 ac_cv_search_cos=$ac_res
7902 rm -f core conftest.err conftest.$ac_objext \
7904 if ${ac_cv_search_cos+:} false; then :
7908 if ${ac_cv_search_cos+:} false; then :
7914 LIBS=$ac_func_search_save_LIBS
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
7917 $as_echo "$ac_cv_search_cos" >&6; }
7918 ac_res=$ac_cv_search_cos
7919 if test "$ac_res" != no; then :
7920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7928 { _libs=; unset _libs;}
7931 for ac_header in vfork.h
7933 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7934 if test "x$ac_cv_header_vfork_h" = xyes; then :
7935 cat >>confdefs.h <<_ACEOF
7936 #define HAVE_VFORK_H 1
7943 for ac_func in fork vfork
7945 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7946 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7947 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7948 cat >>confdefs.h <<_ACEOF
7949 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7955 if test "x$ac_cv_func_fork" = xyes; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7957 $as_echo_n "checking for working fork... " >&6; }
7958 if ${ac_cv_func_fork_works+:} false; then :
7959 $as_echo_n "(cached) " >&6
7961 if test "$cross_compiling" = yes; then :
7962 ac_cv_func_fork_works=cross
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7966 $ac_includes_default
7971 /* By Ruediger Kuhlmann. */
7978 if ac_fn_c_try_run "$LINENO"; then :
7979 ac_cv_func_fork_works=yes
7981 ac_cv_func_fork_works=no
7983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7984 conftest.$ac_objext conftest.beam conftest.$ac_ext
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7989 $as_echo "$ac_cv_func_fork_works" >&6; }
7992 ac_cv_func_fork_works=$ac_cv_func_fork
7994 if test "x$ac_cv_func_fork_works" = xcross; then
7996 *-*-amigaos* | *-*-msdosdjgpp*)
7997 # Override, as these systems have only a dummy fork() stub
7998 ac_cv_func_fork_works=no
8001 ac_cv_func_fork_works=yes
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8005 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8007 ac_cv_func_vfork_works=$ac_cv_func_vfork
8008 if test "x$ac_cv_func_vfork" = xyes; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8010 $as_echo_n "checking for working vfork... " >&6; }
8011 if ${ac_cv_func_vfork_works+:} false; then :
8012 $as_echo_n "(cached) " >&6
8014 if test "$cross_compiling" = yes; then :
8015 ac_cv_func_vfork_works=cross
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8019 /* Thanks to Paul Eggert for this test. */
8020 $ac_includes_default
8021 #include <sys/wait.h>
8025 /* On some sparc systems, changes by the child to local and incoming
8026 argument registers are propagated back to the parent. The compiler
8027 is told about this with #include <vfork.h>, but some compilers
8028 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8029 static variable whose address is put into a register that is
8030 clobbered by the vfork. */
8033 sparc_address_test (int arg)
8035 sparc_address_test (arg) int arg;
8056 pid_t parent = getpid ();
8059 sparc_address_test (0);
8064 /* Here is another test for sparc vfork register problems. This
8065 test uses lots of local variables, at least as many local
8066 variables as main has allocated so far including compiler
8067 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8068 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8069 reuse the register of parent for one of the local variables,
8070 since it will think that parent can't possibly be used any more
8071 in this routine. Assigning to the local variable will thus
8072 munge parent in the parent process. */
8074 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8075 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8076 /* Convince the compiler that p..p7 are live; otherwise, it might
8077 use the same hardware register for all 8 local variables. */
8078 if (p != p1 || p != p2 || p != p3 || p != p4
8079 || p != p5 || p != p6 || p != p7)
8082 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8083 from child file descriptors. If the child closes a descriptor
8084 before it execs or exits, this munges the parent's descriptor
8085 as well. Test for this by closing stdout in the child. */
8086 _exit(close(fileno(stdout)) != 0);
8091 while (wait(&status) != child)
8094 /* Was there some problem with vforking? */
8097 /* Did the child fail? (This shouldn't happen.) */
8100 /* Did the vfork/compiler bug occur? */
8101 || parent != getpid()
8103 /* Did the file descriptor bug occur? */
8104 || fstat(fileno(stdout), &st) != 0
8109 if ac_fn_c_try_run "$LINENO"; then :
8110 ac_cv_func_vfork_works=yes
8112 ac_cv_func_vfork_works=no
8114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8115 conftest.$ac_objext conftest.beam conftest.$ac_ext
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8120 $as_echo "$ac_cv_func_vfork_works" >&6; }
8123 if test "x$ac_cv_func_fork_works" = xcross; then
8124 ac_cv_func_vfork_works=$ac_cv_func_vfork
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8126 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8129 if test "x$ac_cv_func_vfork_works" = xyes; then
8131 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8135 $as_echo "#define vfork fork" >>confdefs.h
8138 if test "x$ac_cv_func_fork_works" = xyes; then
8140 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8144 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8145 # for constant arguments. Useless!
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8147 $as_echo_n "checking for working alloca.h... " >&6; }
8148 if ${ac_cv_working_alloca_h+:} false; then :
8149 $as_echo_n "(cached) " >&6
8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8157 char *p = (char *) alloca (2 * sizeof (int));
8163 if ac_fn_c_try_link "$LINENO"; then :
8164 ac_cv_working_alloca_h=yes
8166 ac_cv_working_alloca_h=no
8168 rm -f core conftest.err conftest.$ac_objext \
8169 conftest$ac_exeext conftest.$ac_ext
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8172 $as_echo "$ac_cv_working_alloca_h" >&6; }
8173 if test $ac_cv_working_alloca_h = yes; then
8175 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8180 $as_echo_n "checking for alloca... " >&6; }
8181 if ${ac_cv_func_alloca_works+:} false; then :
8182 $as_echo_n "(cached) " >&6
8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8187 # define alloca __builtin_alloca
8190 # include <malloc.h>
8191 # define alloca _alloca
8193 # ifdef HAVE_ALLOCA_H
8194 # include <alloca.h>
8199 # ifndef alloca /* predefined by HP cc +Olibcalls */
8200 void *alloca (size_t);
8210 char *p = (char *) alloca (1);
8216 if ac_fn_c_try_link "$LINENO"; then :
8217 ac_cv_func_alloca_works=yes
8219 ac_cv_func_alloca_works=no
8221 rm -f core conftest.err conftest.$ac_objext \
8222 conftest$ac_exeext conftest.$ac_ext
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8225 $as_echo "$ac_cv_func_alloca_works" >&6; }
8227 if test $ac_cv_func_alloca_works = yes; then
8229 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8232 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8233 # that cause trouble. Some versions do not even contain alloca or
8234 # contain a buggy version. If you still want to use their alloca,
8235 # use ar to extract alloca.o from them instead of compiling alloca.c.
8237 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8239 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8243 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8244 if ${ac_cv_os_cray+:} false; then :
8245 $as_echo_n "(cached) " >&6
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8249 #if defined CRAY && ! defined CRAY2
8256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8257 $EGREP "webecray" >/dev/null 2>&1; then :
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8266 $as_echo "$ac_cv_os_cray" >&6; }
8267 if test $ac_cv_os_cray = yes; then
8268 for ac_func in _getb67 GETB67 getb67; do
8269 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8270 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8271 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8273 cat >>confdefs.h <<_ACEOF
8274 #define CRAY_STACKSEG_END $ac_func
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8284 $as_echo_n "checking stack direction for C alloca... " >&6; }
8285 if ${ac_cv_c_stack_direction+:} false; then :
8286 $as_echo_n "(cached) " >&6
8288 if test "$cross_compiling" = yes; then :
8289 ac_cv_c_stack_direction=0
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h. */
8293 $ac_includes_default
8295 find_stack_direction (int *addr, int depth)
8300 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8301 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8306 main (int argc, char **argv)
8308 return find_stack_direction (0, argc + !argv + 20) < 0;
8311 if ac_fn_c_try_run "$LINENO"; then :
8312 ac_cv_c_stack_direction=1
8314 ac_cv_c_stack_direction=-1
8316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8317 conftest.$ac_objext conftest.beam conftest.$ac_ext
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8322 $as_echo "$ac_cv_c_stack_direction" >&6; }
8323 cat >>confdefs.h <<_ACEOF
8324 #define STACK_DIRECTION $ac_cv_c_stack_direction
8330 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8331 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
8337 cat >>confdefs.h <<_ACEOF
8338 #define HAVE_DECL_STRERROR_R $ac_have_decl
8341 for ac_func in strerror_r
8343 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8344 if test "x$ac_cv_func_strerror_r" = xyes; then :
8345 cat >>confdefs.h <<_ACEOF
8346 #define HAVE_STRERROR_R 1
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8353 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8354 if ${ac_cv_func_strerror_r_char_p+:} false; then :
8355 $as_echo_n "(cached) " >&6
8358 ac_cv_func_strerror_r_char_p=no
8359 if test $ac_cv_have_decl_strerror_r = yes; then
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8362 $ac_includes_default
8368 char x = *strerror_r (0, buf, sizeof buf);
8369 char *p = strerror_r (0, buf, sizeof buf);
8376 if ac_fn_c_try_compile "$LINENO"; then :
8377 ac_cv_func_strerror_r_char_p=yes
8379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8381 # strerror_r is not declared. Choose between
8382 # systems that have relatively inaccessible declarations for the
8383 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8384 # former has a strerror_r that returns char*, while the latter
8385 # has a strerror_r that returns `int'.
8386 # This test should segfault on the DEC system.
8387 if test "$cross_compiling" = yes; then :
8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h. */
8392 $ac_includes_default
8393 extern char *strerror_r ();
8398 char x = *strerror_r (0, buf, sizeof buf);
8399 return ! isalpha (x);
8404 if ac_fn_c_try_run "$LINENO"; then :
8405 ac_cv_func_strerror_r_char_p=yes
8407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8408 conftest.$ac_objext conftest.beam conftest.$ac_ext
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8415 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8416 if test $ac_cv_func_strerror_r_char_p = yes; then
8418 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8423 ac_busted_vpath_in_make=no
8425 *-*-irix6.1*) # 64 bit only
8428 *-*-irix6*) # 6.2 (and later?)
8429 ac_busted_vpath_in_make=yes
8432 ac_busted_vpath_in_make=yes
8435 ac_busted_vpath_in_make=yes
8439 case "$ac_busted_vpath_in_make$srcdir" in
8442 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
8444 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
8452 # Was *-*-aix[[4-9]]*
8453 # XXX only verified thru AIX6. But...
8454 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
8455 # that this support would be in 5.3, removed in 6, and added back.
8457 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
8458 # (returning ENOSYS). I didn't check 4.2. If, in the future,
8459 # IBM pulls its thumbs out long enough to implement clock_settime,
8460 # this conditional will need to change. Maybe use AC_TRY_RUN
8461 # instead to try to set the time to itself and check errno.
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
8465 $as_echo_n "checking for library containing clock_gettime... " >&6; }
8466 if ${ac_cv_search_clock_gettime+:} false; then :
8467 $as_echo_n "(cached) " >&6
8469 ac_func_search_save_LIBS=$LIBS
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h. */
8473 /* Override any GCC internal prototype to avoid an error.
8474 Use char because int might match the return type of a GCC
8475 builtin and then its argument prototype would still apply. */
8479 char clock_gettime ();
8483 return clock_gettime ();
8488 for ac_lib in '' rt; do
8489 if test -z "$ac_lib"; then
8490 ac_res="none required"
8493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8495 if ac_fn_c_try_link "$LINENO"; then :
8496 ac_cv_search_clock_gettime=$ac_res
8498 rm -f core conftest.err conftest.$ac_objext \
8500 if ${ac_cv_search_clock_gettime+:} false; then :
8504 if ${ac_cv_search_clock_gettime+:} false; then :
8507 ac_cv_search_clock_gettime=no
8510 LIBS=$ac_func_search_save_LIBS
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
8513 $as_echo "$ac_cv_search_clock_gettime" >&6; }
8514 ac_res=$ac_cv_search_clock_gettime
8515 if test "$ac_res" != no; then :
8516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8517 case "$ac_cv_search_clock_gettime" in
8520 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
8525 for ac_func in clock_getres clock_gettime clock_settime
8527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8528 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8529 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8530 cat >>confdefs.h <<_ACEOF
8531 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8540 for ac_func in getclock stime timegm strlcpy strlcat
8542 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8543 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8544 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8545 cat >>confdefs.h <<_ACEOF
8546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
8557 $as_echo_n "checking for library containing snprintb... " >&6; }
8558 if ${ac_cv_search_snprintb+:} false; then :
8559 $as_echo_n "(cached) " >&6
8561 ac_func_search_save_LIBS=$LIBS
8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h. */
8565 /* Override any GCC internal prototype to avoid an error.
8566 Use char because int might match the return type of a GCC
8567 builtin and then its argument prototype would still apply. */
8580 for ac_lib in '' util; do
8581 if test -z "$ac_lib"; then
8582 ac_res="none required"
8585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8587 if ac_fn_c_try_link "$LINENO"; then :
8588 ac_cv_search_snprintb=$ac_res
8590 rm -f core conftest.err conftest.$ac_objext \
8592 if ${ac_cv_search_snprintb+:} false; then :
8596 if ${ac_cv_search_snprintb+:} false; then :
8599 ac_cv_search_snprintb=no
8602 LIBS=$ac_func_search_save_LIBS
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
8605 $as_echo "$ac_cv_search_snprintb" >&6; }
8606 ac_res=$ac_cv_search_snprintb
8607 if test "$ac_res" != no; then :
8608 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8609 case "$ac_cv_search_snprintb" in
8612 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
8615 $as_echo "#define USE_SNPRINTB 1" >>confdefs.h
8621 for ac_header in errno.h sys/socket.h sys/types.h time.h
8623 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8624 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8625 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8626 cat >>confdefs.h <<_ACEOF
8627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8634 for ac_header in net/if.h
8636 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
8637 #ifdef HAVE_SYS_SOCKET_H
8638 # include <sys/socket.h>
8642 if test "x$ac_cv_header_net_if_h" = xyes; then :
8643 cat >>confdefs.h <<_ACEOF
8644 #define HAVE_NET_IF_H 1
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
8654 $as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
8655 if ${ntp_cv_predecl_mpinfou+:} false; then :
8656 $as_echo_n "(cached) " >&6
8659 np_cv_predecl_mpinfou=no
8660 case "$ac_cv_header_net_if_h" in
8662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8665 typedef union mpinfou {
8666 struct pdk_mpinfo *pdkptr;
8667 struct mpinfo *pikptr;
8669 #ifdef HAVE_SYS_SOCKET_H
8670 # include <sys/socket.h>
8684 if ac_fn_c_try_compile "$LINENO"; then :
8686 ntp_cv_predecl_mpinfou=yes
8687 ac_cv_header_net_if_h=yes
8691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
8697 $as_echo "$ntp_cv_predecl_mpinfou" >&6; }
8698 case "$ntp_cv_predecl_mpinfou" in
8700 cat >>confdefs.h <<_ACEOF
8701 #ifndef MPINFOU_PREDECLARED
8702 # define MPINFOU_PREDECLARED
8703 typedef union mpinfou {
8704 struct pdk_mpinfo *pdkptr;
8705 struct mpinfo *pikptr;
8715 for ac_header in linux/if_addr.h
8717 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
8718 #ifdef HAVE_SYS_SOCKET_H
8719 # include <sys/socket.h>
8723 if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
8724 cat >>confdefs.h <<_ACEOF
8725 #define HAVE_LINUX_IF_ADDR_H 1
8733 $as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h
8737 for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
8739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8740 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8741 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8742 cat >>confdefs.h <<_ACEOF
8743 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8750 # sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
8751 for ac_header in sys/sysctl.h
8753 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
8754 #if defined HAVE_SYS_PARAM_H
8755 # include <sys/param.h>
8759 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
8760 cat >>confdefs.h <<_ACEOF
8761 #define HAVE_SYS_SYSCTL_H 1
8768 for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
8770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8771 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8772 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8773 cat >>confdefs.h <<_ACEOF
8774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8782 for ac_header in resolv.h
8784 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
8785 #ifdef HAVE_SYS_TYPES_H
8786 # include <sys/types.h>
8788 #ifdef HAVE_NETINET_IN_H
8789 # include <netinet/in.h>
8791 #ifdef HAVE_ARPA_NAMESER_H
8792 # include <arpa/nameser.h>
8796 if test "x$ac_cv_header_resolv_h" = xyes; then :
8797 cat >>confdefs.h <<_ACEOF
8798 #define HAVE_RESOLV_H 1
8806 for ac_header in net/if_var.h
8808 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
8809 #if HAVE_SYS_TYPES_H
8810 # include <sys/types.h>
8812 #ifdef HAVE_SYS_SOCKET_H
8813 # include <sys/socket.h>
8815 #ifdef HAVE_NETINET_IN_H
8816 # include <netinet/in.h>
8818 #ifdef HAVE_NET_IF_H
8819 # include <net/if.h>
8823 if test "x$ac_cv_header_net_if_var_h" = xyes; then :
8824 cat >>confdefs.h <<_ACEOF
8825 #define HAVE_NET_IF_VAR_H 1
8833 for ac_header in netinet/ip.h netinet/in_var.h
8835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8836 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8837 #ifdef HAVE_SYS_TYPES_H
8838 # include <sys/types.h>
8840 #ifdef HAVE_SYS_SOCKET_H
8841 # include <sys/socket.h>
8843 #ifdef HAVE_NET_IF_H
8844 # include <net/if.h>
8846 #ifdef HAVE_NETINET_IN_H
8847 # include <netinet/in.h>
8849 #ifdef HAVE_NET_IF_VAR_H
8850 # include <net/if_var.h>
8852 #ifdef HAVE_NETINET_IN_SYSTM_H
8853 # include <netinet/in_systm.h>
8857 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8858 cat >>confdefs.h <<_ACEOF
8859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8867 # HMS: Do we need to check for -lsocket before or after these tests?
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
8869 $as_echo_n "checking for library containing inet_pton... " >&6; }
8870 if ${ac_cv_search_inet_pton+:} false; then :
8871 $as_echo_n "(cached) " >&6
8873 ac_func_search_save_LIBS=$LIBS
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8877 /* Override any GCC internal prototype to avoid an error.
8878 Use char because int might match the return type of a GCC
8879 builtin and then its argument prototype would still apply. */
8887 return inet_pton ();
8892 for ac_lib in '' nsl; do
8893 if test -z "$ac_lib"; then
8894 ac_res="none required"
8897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8899 if ac_fn_c_try_link "$LINENO"; then :
8900 ac_cv_search_inet_pton=$ac_res
8902 rm -f core conftest.err conftest.$ac_objext \
8904 if ${ac_cv_search_inet_pton+:} false; then :
8908 if ${ac_cv_search_inet_pton+:} false; then :
8911 ac_cv_search_inet_pton=no
8914 LIBS=$ac_func_search_save_LIBS
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
8917 $as_echo "$ac_cv_search_inet_pton" >&6; }
8918 ac_res=$ac_cv_search_inet_pton
8919 if test "$ac_res" != no; then :
8920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8921 case "$ac_cv_search_inet_pton" in
8924 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
8930 $as_echo_n "checking for library containing inet_ntop... " >&6; }
8931 if ${ac_cv_search_inet_ntop+:} false; then :
8932 $as_echo_n "(cached) " >&6
8934 ac_func_search_save_LIBS=$LIBS
8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8938 /* Override any GCC internal prototype to avoid an error.
8939 Use char because int might match the return type of a GCC
8940 builtin and then its argument prototype would still apply. */
8948 return inet_ntop ();
8953 for ac_lib in '' resolv; do
8954 if test -z "$ac_lib"; then
8955 ac_res="none required"
8958 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
8960 if ac_fn_c_try_link "$LINENO"; then :
8961 ac_cv_search_inet_ntop=$ac_res
8963 rm -f core conftest.err conftest.$ac_objext \
8965 if ${ac_cv_search_inet_ntop+:} false; then :
8969 if ${ac_cv_search_inet_ntop+:} false; then :
8972 ac_cv_search_inet_ntop=no
8975 LIBS=$ac_func_search_save_LIBS
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
8978 $as_echo "$ac_cv_search_inet_ntop" >&6; }
8979 ac_res=$ac_cv_search_inet_ntop
8980 if test "$ac_res" != no; then :
8981 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8982 case "$ac_cv_search_inet_ntop" in
8985 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
8991 # [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to
8992 # avoid keying on the OS name: If we find socket functions in
8993 # libsocket, next try for them in libxnet without libsocket, if found,
8994 # list both. If we simply tested libxnet first, we would find the
8995 # functions there and never add libsocket. See also [Bug 660]
8996 # http://bugs.ntp.org/show_bug.cgi?id=660#c9
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
8999 $as_echo_n "checking for library containing setsockopt... " >&6; }
9000 if ${ac_cv_search_setsockopt+:} false; then :
9001 $as_echo_n "(cached) " >&6
9003 ac_func_search_save_LIBS=$LIBS
9004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005 /* end confdefs.h. */
9007 /* Override any GCC internal prototype to avoid an error.
9008 Use char because int might match the return type of a GCC
9009 builtin and then its argument prototype would still apply. */
9017 return setsockopt ();
9022 for ac_lib in '' socket; do
9023 if test -z "$ac_lib"; then
9024 ac_res="none required"
9027 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9029 if ac_fn_c_try_link "$LINENO"; then :
9030 ac_cv_search_setsockopt=$ac_res
9032 rm -f core conftest.err conftest.$ac_objext \
9034 if ${ac_cv_search_setsockopt+:} false; then :
9038 if ${ac_cv_search_setsockopt+:} false; then :
9041 ac_cv_search_setsockopt=no
9044 LIBS=$ac_func_search_save_LIBS
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
9047 $as_echo "$ac_cv_search_setsockopt" >&6; }
9048 ac_res=$ac_cv_search_setsockopt
9049 if test "$ac_res" != no; then :
9050 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9051 case "$ac_cv_search_setsockopt" in
9054 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
9059 case "$ac_cv_search_setsockopt" in
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
9063 $as_echo_n "checking for library containing getsockopt... " >&6; }
9064 if ${ac_cv_search_getsockopt+:} false; then :
9065 $as_echo_n "(cached) " >&6
9067 ac_func_search_save_LIBS=$LIBS
9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h. */
9071 /* Override any GCC internal prototype to avoid an error.
9072 Use char because int might match the return type of a GCC
9073 builtin and then its argument prototype would still apply. */
9081 return getsockopt ();
9086 for ac_lib in '' xnet; do
9087 if test -z "$ac_lib"; then
9088 ac_res="none required"
9091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9093 if ac_fn_c_try_link "$LINENO"; then :
9094 ac_cv_search_getsockopt=$ac_res
9096 rm -f core conftest.err conftest.$ac_objext \
9098 if ${ac_cv_search_getsockopt+:} false; then :
9102 if ${ac_cv_search_getsockopt+:} false; then :
9105 ac_cv_search_getsockopt=no
9108 LIBS=$ac_func_search_save_LIBS
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
9111 $as_echo "$ac_cv_search_getsockopt" >&6; }
9112 ac_res=$ac_cv_search_getsockopt
9113 if test "$ac_res" != no; then :
9114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9115 case "$ac_cv_search_getsockopt" in
9118 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
9123 # XXX Possible trouble here - reading the comments above and looking at the
9124 # code below I wonder if we'll add -lxnet when we don't need it.
9125 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
9126 # there when it is not needed?
9127 case "$ac_cv_search_getsockopt" in
9129 LIBS="-lxnet -lsocket $saved_LIBS"
9131 *) LIBS="-lsocket $saved_LIBS"
9136 { saved_LIBS=; unset saved_LIBS;}
9138 # Bug 2427 - look for recvmsg here.
9139 for ac_func in recvmsg
9141 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
9142 if test "x$ac_cv_func_recvmsg" = xyes; then :
9143 cat >>confdefs.h <<_ACEOF
9144 #define HAVE_RECVMSG 1
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9152 $as_echo_n "checking for inline... " >&6; }
9153 if ${ac_cv_c_inline+:} false; then :
9154 $as_echo_n "(cached) " >&6
9157 for ac_kw in inline __inline__ __inline; do
9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9162 static $ac_kw foo_t static_foo () {return 0; }
9163 $ac_kw foo_t foo () {return 0; }
9167 if ac_fn_c_try_compile "$LINENO"; then :
9168 ac_cv_c_inline=$ac_kw
9170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9171 test "$ac_cv_c_inline" != no && break
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9176 $as_echo "$ac_cv_c_inline" >&6; }
9178 case $ac_cv_c_inline in
9181 case $ac_cv_c_inline in
9183 *) ac_val=$ac_cv_c_inline;;
9185 cat >>confdefs.h <<_ACEOF
9187 #define inline $ac_val
9194 case "$ac_cv_c_inline" in
9199 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9205 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9206 if ${ac_cv_header_time+:} false; then :
9207 $as_echo_n "(cached) " >&6
9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9211 #include <sys/types.h>
9212 #include <sys/time.h>
9218 if ((struct tm *) 0)
9224 if ac_fn_c_try_compile "$LINENO"; then :
9225 ac_cv_header_time=yes
9227 ac_cv_header_time=no
9229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9232 $as_echo "$ac_cv_header_time" >&6; }
9233 if test $ac_cv_header_time = yes; then
9235 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9239 # The cast to long int works around a bug in the HP C Compiler
9240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9241 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9242 # This bug is HP SR number 8606223364.
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
9244 $as_echo_n "checking size of time_t... " >&6; }
9245 if ${ac_cv_sizeof_time_t+:} false; then :
9246 $as_echo_n "(cached) " >&6
9248 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
9251 if test "$ac_cv_type_time_t" = yes; then
9252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9254 as_fn_error 77 "cannot compute sizeof (time_t)
9255 See \`config.log' for more details" "$LINENO" 5; }
9257 ac_cv_sizeof_time_t=0
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
9263 $as_echo "$ac_cv_sizeof_time_t" >&6; }
9267 cat >>confdefs.h <<_ACEOF
9268 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
9273 $as_echo_n "checking whether char is unsigned... " >&6; }
9274 if ${ac_cv_c_char_unsigned+:} false; then :
9275 $as_echo_n "(cached) " >&6
9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h. */
9279 $ac_includes_default
9283 static int test_array [1 - 2 * !(((char) -1) < 0)];
9285 return test_array [0];
9291 if ac_fn_c_try_compile "$LINENO"; then :
9292 ac_cv_c_char_unsigned=no
9294 ac_cv_c_char_unsigned=yes
9296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
9299 $as_echo "$ac_cv_c_char_unsigned" >&6; }
9300 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
9301 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
9304 # The cast to long int works around a bug in the HP C Compiler
9305 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9306 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9307 # This bug is HP SR number 8606223364.
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
9309 $as_echo_n "checking size of signed char... " >&6; }
9310 if ${ac_cv_sizeof_signed_char+:} false; then :
9311 $as_echo_n "(cached) " >&6
9313 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
9316 if test "$ac_cv_type_signed_char" = yes; then
9317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9319 as_fn_error 77 "cannot compute sizeof (signed char)
9320 See \`config.log' for more details" "$LINENO" 5; }
9322 ac_cv_sizeof_signed_char=0
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
9328 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
9332 cat >>confdefs.h <<_ACEOF
9333 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
9337 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
9338 if test "x$ac_cv_type_s_char" = xyes; then :
9340 cat >>confdefs.h <<_ACEOF
9341 #define HAVE_S_CHAR 1
9346 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
9347 if test "x$ac_cv_type_long_long" = xyes; then :
9349 cat >>confdefs.h <<_ACEOF
9350 #define HAVE_LONG_LONG 1
9356 # The cast to long int works around a bug in the HP C Compiler
9357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9359 # This bug is HP SR number 8606223364.
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
9361 $as_echo_n "checking size of short... " >&6; }
9362 if ${ac_cv_sizeof_short+:} false; then :
9363 $as_echo_n "(cached) " >&6
9365 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
9368 if test "$ac_cv_type_short" = yes; then
9369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9371 as_fn_error 77 "cannot compute sizeof (short)
9372 See \`config.log' for more details" "$LINENO" 5; }
9374 ac_cv_sizeof_short=0
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
9380 $as_echo "$ac_cv_sizeof_short" >&6; }
9384 cat >>confdefs.h <<_ACEOF
9385 #define SIZEOF_SHORT $ac_cv_sizeof_short
9389 # The cast to long int works around a bug in the HP C Compiler
9390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9392 # This bug is HP SR number 8606223364.
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
9394 $as_echo_n "checking size of int... " >&6; }
9395 if ${ac_cv_sizeof_int+:} false; then :
9396 $as_echo_n "(cached) " >&6
9398 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
9401 if test "$ac_cv_type_int" = yes; then
9402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9404 as_fn_error 77 "cannot compute sizeof (int)
9405 See \`config.log' for more details" "$LINENO" 5; }
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
9413 $as_echo "$ac_cv_sizeof_int" >&6; }
9417 cat >>confdefs.h <<_ACEOF
9418 #define SIZEOF_INT $ac_cv_sizeof_int
9422 # The cast to long int works around a bug in the HP C Compiler
9423 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9424 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9425 # This bug is HP SR number 8606223364.
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
9427 $as_echo_n "checking size of long... " >&6; }
9428 if ${ac_cv_sizeof_long+:} false; then :
9429 $as_echo_n "(cached) " >&6
9431 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
9434 if test "$ac_cv_type_long" = yes; then
9435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9437 as_fn_error 77 "cannot compute sizeof (long)
9438 See \`config.log' for more details" "$LINENO" 5; }
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
9446 $as_echo "$ac_cv_sizeof_long" >&6; }
9450 cat >>confdefs.h <<_ACEOF
9451 #define SIZEOF_LONG $ac_cv_sizeof_long
9456 case "$ac_cv_type_long_long" in
9460 # The cast to long int works around a bug in the HP C Compiler
9461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9463 # This bug is HP SR number 8606223364.
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
9465 $as_echo_n "checking size of long long... " >&6; }
9466 if ${ac_cv_sizeof_long_long+:} false; then :
9467 $as_echo_n "(cached) " >&6
9469 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
9472 if test "$ac_cv_type_long_long" = yes; then
9473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9475 as_fn_error 77 "cannot compute sizeof (long long)
9476 See \`config.log' for more details" "$LINENO" 5; }
9478 ac_cv_sizeof_long_long=0
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
9484 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9488 cat >>confdefs.h <<_ACEOF
9489 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9496 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
9498 # We have a typedef for s_char. Might as well believe it...
9501 # We have signed chars, can't say 'signed char', no s_char typedef.
9503 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
9507 # We have signed chars, can say 'signed char', no s_char typedef.
9509 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
9513 # We have unsigned chars, can't say 'signed char', no s_char typedef.
9514 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
9517 # We have unsigned chars, can say 'signed char', no s_char typedef.
9519 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9525 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9526 if ${ac_cv_type_uid_t+:} false; then :
9527 $as_echo_n "(cached) " >&6
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9531 #include <sys/types.h>
9534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9535 $EGREP "uid_t" >/dev/null 2>&1; then :
9536 ac_cv_type_uid_t=yes
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9544 $as_echo "$ac_cv_type_uid_t" >&6; }
9545 if test $ac_cv_type_uid_t = no; then
9547 $as_echo "#define uid_t int" >>confdefs.h
9550 $as_echo "#define gid_t int" >>confdefs.h
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
9560 $as_echo_n "checking if we're including debugging code... " >&6; }
9561 # Check whether --enable-debugging was given.
9562 if test "${enable_debugging+set}" = set; then :
9563 enableval=$enable_debugging; ntp_ok=$enableval
9572 $as_echo "#define DEBUG 1" >>confdefs.h
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
9576 $as_echo "$ntp_ok" >&6; }
9580 # check if we can compile with pthreads
9581 for ac_header in semaphore.h
9583 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
9584 if test "x$ac_cv_header_semaphore_h" = xyes; then :
9585 cat >>confdefs.h <<_ACEOF
9586 #define HAVE_SEMAPHORE_H 1
9593 for ac_func in socketpair
9595 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
9596 if test "x$ac_cv_func_socketpair" = xyes; then :
9597 cat >>confdefs.h <<_ACEOF
9598 #define HAVE_SOCKETPAIR 1
9604 # Check whether --enable-thread-support was given.
9605 if test "${enable_thread_support+set}" = set; then :
9606 enableval=$enable_thread_support;
9608 enable_thread_support=yes
9613 case "$enable_thread_support" in
9616 ol_found_pthreads=no
9621 ac_cpp='$CPP $CPPFLAGS'
9622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9626 # OpenLDAP --with-threads
9628 # Check whether --with-threads was given.
9629 if test "${with_threads+set}" = set; then :
9630 withval=$with_threads;
9632 for ol_val in auto nt posix mach pth lwp yes no manual ; do
9633 if test "$withval" = "$ol_val" ; then
9637 if test "$ol_arg" = "invalid" ; then
9638 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
9640 ol_with_threads="$ol_arg"
9643 ol_with_threads="auto"
9645 # end --with-threads
9648 case "$ol_with_threads$host" in
9649 auto*-*-solaris2.[0-6])
9657 *-*-aix*) if test -z "$CC" ; then
9658 case "$ol_with_threads" in
9659 auto | yes | posix) ol_aix_threads=yes ;;
9665 if test $ol_aix_threads = yes ; then
9666 if test -z "${CC}" ; then
9667 for ac_prog in cc_r xlc_r cc
9669 # Extract the first word of "$ac_prog", so it can be a program name with args.
9670 set dummy $ac_prog; ac_word=$2
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9672 $as_echo_n "checking for $ac_word... " >&6; }
9673 if ${ac_cv_prog_CC+:} false; then :
9674 $as_echo_n "(cached) " >&6
9676 if test -n "$CC"; then
9677 ac_cv_prog_CC="$CC" # Let the user override the test.
9679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9683 test -z "$as_dir" && as_dir=.
9684 for ac_exec_ext in '' $ac_executable_extensions; do
9685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9686 ac_cv_prog_CC="$ac_prog"
9687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9697 if test -n "$CC"; then
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9699 $as_echo "$CC" >&6; }
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9702 $as_echo "no" >&6; }
9706 test -n "$CC" && break
9710 if test "$CC" = cc ; then
9711 if test $ol_with_threads != auto ; then
9712 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
9715 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
9721 case ${CC} in cc_r | xlc_r)
9722 ol_with_threads=posix
9723 ol_cv_pthread_create=yes
9729 # OpenLDAP --with-yielding_select
9731 # Check whether --with-yielding_select was given.
9732 if test "${with_yielding_select+set}" = set; then :
9733 withval=$with_yielding_select;
9735 for ol_val in auto yes no manual ; do
9736 if test "$withval" = "$ol_val" ; then
9740 if test "$ol_arg" = "invalid" ; then
9741 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
9743 ol_with_yielding_select="$ol_arg"
9746 ol_with_yielding_select="auto"
9748 # end --with-yielding_select
9751 case $ol_with_threads in auto | yes | nt)
9754 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
9755 if test "x$ac_cv_func__beginthread" = xyes; then :
9760 if test $ac_cv_func__beginthread = yes ; then
9762 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
9764 ol_cv_nt_threads=yes
9768 if test "$ol_cv_nt_threads" = yes ; then
9770 ol_with_threads=found
9771 ol_with_yielding_select=yes
9774 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
9777 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
9781 if test $ol_with_threads = nt ; then
9782 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
9787 case $ol_with_threads in auto | yes | posix)
9789 for ac_header in pthread.h
9791 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9792 if test "x$ac_cv_header_pthread_h" = xyes; then :
9793 cat >>confdefs.h <<_ACEOF
9794 #define HAVE_PTHREAD_H 1
9802 if test $ac_cv_header_pthread_h = yes ; then
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
9804 $as_echo_n "checking POSIX thread version... " >&6; }
9805 if ${ol_cv_pthread_version+:} false; then :
9806 $as_echo_n "(cached) " >&6
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9812 # include <pthread.h>
9818 int i = PTHREAD_CREATE_JOINABLE;
9824 if ac_fn_c_try_compile "$LINENO"; then :
9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h. */
9828 #include <pthread.h>
9831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9832 $EGREP "pthread_detach" >/dev/null 2>&1; then :
9833 ol_cv_pthread_version=10
9835 ol_cv_pthread_version=8
9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842 /* end confdefs.h. */
9844 # include <pthread.h>
9845 # ifdef PTHREAD_CREATE_UNDETACHED
9850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9851 $EGREP "draft7" >/dev/null 2>&1; then :
9852 ol_cv_pthread_version=7
9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856 /* end confdefs.h. */
9857 #include <pthread.h>
9860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9861 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
9862 ol_cv_pthread_version=6
9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h. */
9868 # include <pthread.h>
9869 #ifdef PTHREAD_MUTEX_INITIALIZER
9874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9875 $EGREP "draft5" >/dev/null 2>&1; then :
9876 ol_cv_pthread_version=5
9878 ol_cv_pthread_version=4
9889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
9893 $as_echo "$ol_cv_pthread_version" >&6; }
9896 if test $ol_cv_pthread_version != 0 ; then
9898 cat >>confdefs.h <<_ACEOF
9899 #define HAVE_PTHREADS $ol_cv_pthread_version
9903 as_fn_error $? "unknown pthread version" "$LINENO" 5
9906 # consider threads found
9907 ol_with_threads=found
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
9911 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
9912 if ${ol_cv_header_linux_threads+:} false; then :
9913 $as_echo_n "(cached) " >&6
9915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916 /* end confdefs.h. */
9917 #include <pthread.h>
9919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9920 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
9921 ol_cv_header_linux_threads=yes
9923 ol_cv_header_linux_threads=no
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
9930 $as_echo "$ol_cv_header_linux_threads" >&6; }
9931 if test $ol_cv_header_linux_threads = yes; then
9933 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
9939 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
9940 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
9941 $as_echo_n "(cached) " >&6
9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9945 #include <pthread.h>
9946 #ifdef _POSIX_THREAD_IS_GNU_PTH
9951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9952 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
9953 ol_cv_header_gnu_pth_pthread_h=yes
9955 ol_cv_header_gnu_pth_pthread_h=no
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
9962 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
9965 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
9966 for ac_header in sched.h
9968 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
9969 if test "x$ac_cv_header_sched_h" = xyes; then :
9970 cat >>confdefs.h <<_ACEOF
9971 #define HAVE_SCHED_H 1
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
9982 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
9983 if ${ol_cv_pthread_create+:} false; then :
9984 $as_echo_n "(cached) " >&6
9987 if test "$cross_compiling" = yes; then :
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9991 /* pthread test headers */
9992 #include <pthread.h>
9993 #if HAVE_PTHREADS < 7
9997 #define NULL (void*)0
10000 static void *task(p)
10003 return (void *) (p == NULL);
10010 /* pthread test function */
10011 #ifndef PTHREAD_CREATE_DETACHED
10012 #define PTHREAD_CREATE_DETACHED 1
10016 int detach = PTHREAD_CREATE_DETACHED;
10018 #if HAVE_PTHREADS > 4
10019 /* Final pthreads */
10020 pthread_attr_t attr;
10022 status = pthread_attr_init(&attr);
10023 if( status ) return status;
10025 #if HAVE_PTHREADS < 7
10026 status = pthread_attr_setdetachstate(&attr, &detach);
10027 if( status < 0 ) status = errno;
10029 status = pthread_attr_setdetachstate(&attr, detach);
10031 if( status ) return status;
10032 status = pthread_create( &t, &attr, task, NULL );
10033 #if HAVE_PTHREADS < 7
10034 if( status < 0 ) status = errno;
10036 if( status ) return status;
10038 /* Draft 4 pthreads */
10039 status = pthread_create( &t, pthread_attr_default, task, NULL );
10040 if( status ) return errno;
10042 /* give thread a chance to complete */
10043 /* it should remain joinable and hence detachable */
10046 status = pthread_detach( &t );
10047 if( status ) return errno;
10050 #ifdef HAVE_LINUX_THREADS
10051 pthread_kill_other_threads_np();
10060 if ac_fn_c_try_link "$LINENO"; then :
10061 ol_cv_pthread_create=yes
10063 ol_cv_pthread_create=no
10065 rm -f core conftest.err conftest.$ac_objext \
10066 conftest$ac_exeext conftest.$ac_ext
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10072 /* pthread test headers */
10073 #include <pthread.h>
10074 #if HAVE_PTHREADS < 7
10078 #define NULL (void*)0
10081 static void *task(p)
10084 return (void *) (p == NULL);
10088 int main(argc, argv)
10093 /* pthread test function */
10094 #ifndef PTHREAD_CREATE_DETACHED
10095 #define PTHREAD_CREATE_DETACHED 1
10099 int detach = PTHREAD_CREATE_DETACHED;
10101 #if HAVE_PTHREADS > 4
10102 /* Final pthreads */
10103 pthread_attr_t attr;
10105 status = pthread_attr_init(&attr);
10106 if( status ) return status;
10108 #if HAVE_PTHREADS < 7
10109 status = pthread_attr_setdetachstate(&attr, &detach);
10110 if( status < 0 ) status = errno;
10112 status = pthread_attr_setdetachstate(&attr, detach);
10114 if( status ) return status;
10115 status = pthread_create( &t, &attr, task, NULL );
10116 #if HAVE_PTHREADS < 7
10117 if( status < 0 ) status = errno;
10119 if( status ) return status;
10121 /* Draft 4 pthreads */
10122 status = pthread_create( &t, pthread_attr_default, task, NULL );
10123 if( status ) return errno;
10125 /* give thread a chance to complete */
10126 /* it should remain joinable and hence detachable */
10129 status = pthread_detach( &t );
10130 if( status ) return errno;
10133 #ifdef HAVE_LINUX_THREADS
10134 pthread_kill_other_threads_np();
10142 if ac_fn_c_try_run "$LINENO"; then :
10143 ol_cv_pthread_create=yes
10145 ol_cv_pthread_create=no
10147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10148 conftest.$ac_objext conftest.beam conftest.$ac_ext
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
10153 $as_echo "$ol_cv_pthread_create" >&6; }
10155 if test $ol_cv_pthread_create != no ; then
10156 ol_link_threads=posix
10157 ol_link_pthreads=""
10160 # Pthread try link: -kthread (ol_cv_pthread_kthread)
10161 if test "$ol_link_threads" = no ; then
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
10164 $as_echo_n "checking for pthread link with -kthread... " >&6; }
10165 if ${ol_cv_pthread_kthread+:} false; then :
10166 $as_echo_n "(cached) " >&6
10171 LIBS="-kthread $LIBS"
10173 if test "$cross_compiling" = yes; then :
10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h. */
10177 /* pthread test headers */
10178 #include <pthread.h>
10179 #if HAVE_PTHREADS < 7
10183 #define NULL (void*)0
10186 static void *task(p)
10189 return (void *) (p == NULL);
10196 /* pthread test function */
10197 #ifndef PTHREAD_CREATE_DETACHED
10198 #define PTHREAD_CREATE_DETACHED 1
10202 int detach = PTHREAD_CREATE_DETACHED;
10204 #if HAVE_PTHREADS > 4
10205 /* Final pthreads */
10206 pthread_attr_t attr;
10208 status = pthread_attr_init(&attr);
10209 if( status ) return status;
10211 #if HAVE_PTHREADS < 7
10212 status = pthread_attr_setdetachstate(&attr, &detach);
10213 if( status < 0 ) status = errno;
10215 status = pthread_attr_setdetachstate(&attr, detach);
10217 if( status ) return status;
10218 status = pthread_create( &t, &attr, task, NULL );
10219 #if HAVE_PTHREADS < 7
10220 if( status < 0 ) status = errno;
10222 if( status ) return status;
10224 /* Draft 4 pthreads */
10225 status = pthread_create( &t, pthread_attr_default, task, NULL );
10226 if( status ) return errno;
10228 /* give thread a chance to complete */
10229 /* it should remain joinable and hence detachable */
10232 status = pthread_detach( &t );
10233 if( status ) return errno;
10236 #ifdef HAVE_LINUX_THREADS
10237 pthread_kill_other_threads_np();
10246 if ac_fn_c_try_link "$LINENO"; then :
10247 ol_cv_pthread_kthread=yes
10249 ol_cv_pthread_kthread=no
10251 rm -f core conftest.err conftest.$ac_objext \
10252 conftest$ac_exeext conftest.$ac_ext
10254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255 /* end confdefs.h. */
10258 /* pthread test headers */
10259 #include <pthread.h>
10260 #if HAVE_PTHREADS < 7
10264 #define NULL (void*)0
10267 static void *task(p)
10270 return (void *) (p == NULL);
10274 int main(argc, argv)
10279 /* pthread test function */
10280 #ifndef PTHREAD_CREATE_DETACHED
10281 #define PTHREAD_CREATE_DETACHED 1
10285 int detach = PTHREAD_CREATE_DETACHED;
10287 #if HAVE_PTHREADS > 4
10288 /* Final pthreads */
10289 pthread_attr_t attr;
10291 status = pthread_attr_init(&attr);
10292 if( status ) return status;
10294 #if HAVE_PTHREADS < 7
10295 status = pthread_attr_setdetachstate(&attr, &detach);
10296 if( status < 0 ) status = errno;
10298 status = pthread_attr_setdetachstate(&attr, detach);
10300 if( status ) return status;
10301 status = pthread_create( &t, &attr, task, NULL );
10302 #if HAVE_PTHREADS < 7
10303 if( status < 0 ) status = errno;
10305 if( status ) return status;
10307 /* Draft 4 pthreads */
10308 status = pthread_create( &t, pthread_attr_default, task, NULL );
10309 if( status ) return errno;
10311 /* give thread a chance to complete */
10312 /* it should remain joinable and hence detachable */
10315 status = pthread_detach( &t );
10316 if( status ) return errno;
10319 #ifdef HAVE_LINUX_THREADS
10320 pthread_kill_other_threads_np();
10328 if ac_fn_c_try_run "$LINENO"; then :
10329 ol_cv_pthread_kthread=yes
10331 ol_cv_pthread_kthread=no
10333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10334 conftest.$ac_objext conftest.beam conftest.$ac_ext
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
10343 $as_echo "$ol_cv_pthread_kthread" >&6; }
10345 if test $ol_cv_pthread_kthread = yes ; then
10346 ol_link_pthreads="-kthread"
10347 ol_link_threads=posix
10351 # Pthread try link: -pthread (ol_cv_pthread_pthread)
10352 if test "$ol_link_threads" = no ; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
10355 $as_echo_n "checking for pthread link with -pthread... " >&6; }
10356 if ${ol_cv_pthread_pthread+:} false; then :
10357 $as_echo_n "(cached) " >&6
10362 LIBS="-pthread $LIBS"
10364 if test "$cross_compiling" = yes; then :
10365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10366 /* end confdefs.h. */
10368 /* pthread test headers */
10369 #include <pthread.h>
10370 #if HAVE_PTHREADS < 7
10374 #define NULL (void*)0
10377 static void *task(p)
10380 return (void *) (p == NULL);
10387 /* pthread test function */
10388 #ifndef PTHREAD_CREATE_DETACHED
10389 #define PTHREAD_CREATE_DETACHED 1
10393 int detach = PTHREAD_CREATE_DETACHED;
10395 #if HAVE_PTHREADS > 4
10396 /* Final pthreads */
10397 pthread_attr_t attr;
10399 status = pthread_attr_init(&attr);
10400 if( status ) return status;
10402 #if HAVE_PTHREADS < 7
10403 status = pthread_attr_setdetachstate(&attr, &detach);
10404 if( status < 0 ) status = errno;
10406 status = pthread_attr_setdetachstate(&attr, detach);
10408 if( status ) return status;
10409 status = pthread_create( &t, &attr, task, NULL );
10410 #if HAVE_PTHREADS < 7
10411 if( status < 0 ) status = errno;
10413 if( status ) return status;
10415 /* Draft 4 pthreads */
10416 status = pthread_create( &t, pthread_attr_default, task, NULL );
10417 if( status ) return errno;
10419 /* give thread a chance to complete */
10420 /* it should remain joinable and hence detachable */
10423 status = pthread_detach( &t );
10424 if( status ) return errno;
10427 #ifdef HAVE_LINUX_THREADS
10428 pthread_kill_other_threads_np();
10437 if ac_fn_c_try_link "$LINENO"; then :
10438 ol_cv_pthread_pthread=yes
10440 ol_cv_pthread_pthread=no
10442 rm -f core conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10446 /* end confdefs.h. */
10449 /* pthread test headers */
10450 #include <pthread.h>
10451 #if HAVE_PTHREADS < 7
10455 #define NULL (void*)0
10458 static void *task(p)
10461 return (void *) (p == NULL);
10465 int main(argc, argv)
10470 /* pthread test function */
10471 #ifndef PTHREAD_CREATE_DETACHED
10472 #define PTHREAD_CREATE_DETACHED 1
10476 int detach = PTHREAD_CREATE_DETACHED;
10478 #if HAVE_PTHREADS > 4
10479 /* Final pthreads */
10480 pthread_attr_t attr;
10482 status = pthread_attr_init(&attr);
10483 if( status ) return status;
10485 #if HAVE_PTHREADS < 7
10486 status = pthread_attr_setdetachstate(&attr, &detach);
10487 if( status < 0 ) status = errno;
10489 status = pthread_attr_setdetachstate(&attr, detach);
10491 if( status ) return status;
10492 status = pthread_create( &t, &attr, task, NULL );
10493 #if HAVE_PTHREADS < 7
10494 if( status < 0 ) status = errno;
10496 if( status ) return status;
10498 /* Draft 4 pthreads */
10499 status = pthread_create( &t, pthread_attr_default, task, NULL );
10500 if( status ) return errno;
10502 /* give thread a chance to complete */
10503 /* it should remain joinable and hence detachable */
10506 status = pthread_detach( &t );
10507 if( status ) return errno;
10510 #ifdef HAVE_LINUX_THREADS
10511 pthread_kill_other_threads_np();
10519 if ac_fn_c_try_run "$LINENO"; then :
10520 ol_cv_pthread_pthread=yes
10522 ol_cv_pthread_pthread=no
10524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10525 conftest.$ac_objext conftest.beam conftest.$ac_ext
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
10534 $as_echo "$ol_cv_pthread_pthread" >&6; }
10536 if test $ol_cv_pthread_pthread = yes ; then
10537 ol_link_pthreads="-pthread"
10538 ol_link_threads=posix
10542 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
10543 if test "$ol_link_threads" = no ; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
10546 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
10547 if ${ol_cv_pthread_pthreads+:} false; then :
10548 $as_echo_n "(cached) " >&6
10553 LIBS="-pthreads $LIBS"
10555 if test "$cross_compiling" = yes; then :
10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10559 /* pthread test headers */
10560 #include <pthread.h>
10561 #if HAVE_PTHREADS < 7
10565 #define NULL (void*)0
10568 static void *task(p)
10571 return (void *) (p == NULL);
10578 /* pthread test function */
10579 #ifndef PTHREAD_CREATE_DETACHED
10580 #define PTHREAD_CREATE_DETACHED 1
10584 int detach = PTHREAD_CREATE_DETACHED;
10586 #if HAVE_PTHREADS > 4
10587 /* Final pthreads */
10588 pthread_attr_t attr;
10590 status = pthread_attr_init(&attr);
10591 if( status ) return status;
10593 #if HAVE_PTHREADS < 7
10594 status = pthread_attr_setdetachstate(&attr, &detach);
10595 if( status < 0 ) status = errno;
10597 status = pthread_attr_setdetachstate(&attr, detach);
10599 if( status ) return status;
10600 status = pthread_create( &t, &attr, task, NULL );
10601 #if HAVE_PTHREADS < 7
10602 if( status < 0 ) status = errno;
10604 if( status ) return status;
10606 /* Draft 4 pthreads */
10607 status = pthread_create( &t, pthread_attr_default, task, NULL );
10608 if( status ) return errno;
10610 /* give thread a chance to complete */
10611 /* it should remain joinable and hence detachable */
10614 status = pthread_detach( &t );
10615 if( status ) return errno;
10618 #ifdef HAVE_LINUX_THREADS
10619 pthread_kill_other_threads_np();
10628 if ac_fn_c_try_link "$LINENO"; then :
10629 ol_cv_pthread_pthreads=yes
10631 ol_cv_pthread_pthreads=no
10633 rm -f core conftest.err conftest.$ac_objext \
10634 conftest$ac_exeext conftest.$ac_ext
10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h. */
10640 /* pthread test headers */
10641 #include <pthread.h>
10642 #if HAVE_PTHREADS < 7
10646 #define NULL (void*)0
10649 static void *task(p)
10652 return (void *) (p == NULL);
10656 int main(argc, argv)
10661 /* pthread test function */
10662 #ifndef PTHREAD_CREATE_DETACHED
10663 #define PTHREAD_CREATE_DETACHED 1
10667 int detach = PTHREAD_CREATE_DETACHED;
10669 #if HAVE_PTHREADS > 4
10670 /* Final pthreads */
10671 pthread_attr_t attr;
10673 status = pthread_attr_init(&attr);
10674 if( status ) return status;
10676 #if HAVE_PTHREADS < 7
10677 status = pthread_attr_setdetachstate(&attr, &detach);
10678 if( status < 0 ) status = errno;
10680 status = pthread_attr_setdetachstate(&attr, detach);
10682 if( status ) return status;
10683 status = pthread_create( &t, &attr, task, NULL );
10684 #if HAVE_PTHREADS < 7
10685 if( status < 0 ) status = errno;
10687 if( status ) return status;
10689 /* Draft 4 pthreads */
10690 status = pthread_create( &t, pthread_attr_default, task, NULL );
10691 if( status ) return errno;
10693 /* give thread a chance to complete */
10694 /* it should remain joinable and hence detachable */
10697 status = pthread_detach( &t );
10698 if( status ) return errno;
10701 #ifdef HAVE_LINUX_THREADS
10702 pthread_kill_other_threads_np();
10710 if ac_fn_c_try_run "$LINENO"; then :
10711 ol_cv_pthread_pthreads=yes
10713 ol_cv_pthread_pthreads=no
10715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10716 conftest.$ac_objext conftest.beam conftest.$ac_ext
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
10725 $as_echo "$ol_cv_pthread_pthreads" >&6; }
10727 if test $ol_cv_pthread_pthreads = yes ; then
10728 ol_link_pthreads="-pthreads"
10729 ol_link_threads=posix
10733 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
10734 if test "$ol_link_threads" = no ; then
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
10737 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
10738 if ${ol_cv_pthread_mthreads+:} false; then :
10739 $as_echo_n "(cached) " >&6
10744 LIBS="-mthreads $LIBS"
10746 if test "$cross_compiling" = yes; then :
10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h. */
10750 /* pthread test headers */
10751 #include <pthread.h>
10752 #if HAVE_PTHREADS < 7
10756 #define NULL (void*)0
10759 static void *task(p)
10762 return (void *) (p == NULL);
10769 /* pthread test function */
10770 #ifndef PTHREAD_CREATE_DETACHED
10771 #define PTHREAD_CREATE_DETACHED 1
10775 int detach = PTHREAD_CREATE_DETACHED;
10777 #if HAVE_PTHREADS > 4
10778 /* Final pthreads */
10779 pthread_attr_t attr;
10781 status = pthread_attr_init(&attr);
10782 if( status ) return status;
10784 #if HAVE_PTHREADS < 7
10785 status = pthread_attr_setdetachstate(&attr, &detach);
10786 if( status < 0 ) status = errno;
10788 status = pthread_attr_setdetachstate(&attr, detach);
10790 if( status ) return status;
10791 status = pthread_create( &t, &attr, task, NULL );
10792 #if HAVE_PTHREADS < 7
10793 if( status < 0 ) status = errno;
10795 if( status ) return status;
10797 /* Draft 4 pthreads */
10798 status = pthread_create( &t, pthread_attr_default, task, NULL );
10799 if( status ) return errno;
10801 /* give thread a chance to complete */
10802 /* it should remain joinable and hence detachable */
10805 status = pthread_detach( &t );
10806 if( status ) return errno;
10809 #ifdef HAVE_LINUX_THREADS
10810 pthread_kill_other_threads_np();
10819 if ac_fn_c_try_link "$LINENO"; then :
10820 ol_cv_pthread_mthreads=yes
10822 ol_cv_pthread_mthreads=no
10824 rm -f core conftest.err conftest.$ac_objext \
10825 conftest$ac_exeext conftest.$ac_ext
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10831 /* pthread test headers */
10832 #include <pthread.h>
10833 #if HAVE_PTHREADS < 7
10837 #define NULL (void*)0
10840 static void *task(p)
10843 return (void *) (p == NULL);
10847 int main(argc, argv)
10852 /* pthread test function */
10853 #ifndef PTHREAD_CREATE_DETACHED
10854 #define PTHREAD_CREATE_DETACHED 1
10858 int detach = PTHREAD_CREATE_DETACHED;
10860 #if HAVE_PTHREADS > 4
10861 /* Final pthreads */
10862 pthread_attr_t attr;
10864 status = pthread_attr_init(&attr);
10865 if( status ) return status;
10867 #if HAVE_PTHREADS < 7
10868 status = pthread_attr_setdetachstate(&attr, &detach);
10869 if( status < 0 ) status = errno;
10871 status = pthread_attr_setdetachstate(&attr, detach);
10873 if( status ) return status;
10874 status = pthread_create( &t, &attr, task, NULL );
10875 #if HAVE_PTHREADS < 7
10876 if( status < 0 ) status = errno;
10878 if( status ) return status;
10880 /* Draft 4 pthreads */
10881 status = pthread_create( &t, pthread_attr_default, task, NULL );
10882 if( status ) return errno;
10884 /* give thread a chance to complete */
10885 /* it should remain joinable and hence detachable */
10888 status = pthread_detach( &t );
10889 if( status ) return errno;
10892 #ifdef HAVE_LINUX_THREADS
10893 pthread_kill_other_threads_np();
10901 if ac_fn_c_try_run "$LINENO"; then :
10902 ol_cv_pthread_mthreads=yes
10904 ol_cv_pthread_mthreads=no
10906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10907 conftest.$ac_objext conftest.beam conftest.$ac_ext
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
10916 $as_echo "$ol_cv_pthread_mthreads" >&6; }
10918 if test $ol_cv_pthread_mthreads = yes ; then
10919 ol_link_pthreads="-mthreads"
10920 ol_link_threads=posix
10924 # Pthread try link: -thread (ol_cv_pthread_thread)
10925 if test "$ol_link_threads" = no ; then
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
10928 $as_echo_n "checking for pthread link with -thread... " >&6; }
10929 if ${ol_cv_pthread_thread+:} false; then :
10930 $as_echo_n "(cached) " >&6
10935 LIBS="-thread $LIBS"
10937 if test "$cross_compiling" = yes; then :
10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10941 /* pthread test headers */
10942 #include <pthread.h>
10943 #if HAVE_PTHREADS < 7
10947 #define NULL (void*)0
10950 static void *task(p)
10953 return (void *) (p == NULL);
10960 /* pthread test function */
10961 #ifndef PTHREAD_CREATE_DETACHED
10962 #define PTHREAD_CREATE_DETACHED 1
10966 int detach = PTHREAD_CREATE_DETACHED;
10968 #if HAVE_PTHREADS > 4
10969 /* Final pthreads */
10970 pthread_attr_t attr;
10972 status = pthread_attr_init(&attr);
10973 if( status ) return status;
10975 #if HAVE_PTHREADS < 7
10976 status = pthread_attr_setdetachstate(&attr, &detach);
10977 if( status < 0 ) status = errno;
10979 status = pthread_attr_setdetachstate(&attr, detach);
10981 if( status ) return status;
10982 status = pthread_create( &t, &attr, task, NULL );
10983 #if HAVE_PTHREADS < 7
10984 if( status < 0 ) status = errno;
10986 if( status ) return status;
10988 /* Draft 4 pthreads */
10989 status = pthread_create( &t, pthread_attr_default, task, NULL );
10990 if( status ) return errno;
10992 /* give thread a chance to complete */
10993 /* it should remain joinable and hence detachable */
10996 status = pthread_detach( &t );
10997 if( status ) return errno;
11000 #ifdef HAVE_LINUX_THREADS
11001 pthread_kill_other_threads_np();
11010 if ac_fn_c_try_link "$LINENO"; then :
11011 ol_cv_pthread_thread=yes
11013 ol_cv_pthread_thread=no
11015 rm -f core conftest.err conftest.$ac_objext \
11016 conftest$ac_exeext conftest.$ac_ext
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11022 /* pthread test headers */
11023 #include <pthread.h>
11024 #if HAVE_PTHREADS < 7
11028 #define NULL (void*)0
11031 static void *task(p)
11034 return (void *) (p == NULL);
11038 int main(argc, argv)
11043 /* pthread test function */
11044 #ifndef PTHREAD_CREATE_DETACHED
11045 #define PTHREAD_CREATE_DETACHED 1
11049 int detach = PTHREAD_CREATE_DETACHED;
11051 #if HAVE_PTHREADS > 4
11052 /* Final pthreads */
11053 pthread_attr_t attr;
11055 status = pthread_attr_init(&attr);
11056 if( status ) return status;
11058 #if HAVE_PTHREADS < 7
11059 status = pthread_attr_setdetachstate(&attr, &detach);
11060 if( status < 0 ) status = errno;
11062 status = pthread_attr_setdetachstate(&attr, detach);
11064 if( status ) return status;
11065 status = pthread_create( &t, &attr, task, NULL );
11066 #if HAVE_PTHREADS < 7
11067 if( status < 0 ) status = errno;
11069 if( status ) return status;
11071 /* Draft 4 pthreads */
11072 status = pthread_create( &t, pthread_attr_default, task, NULL );
11073 if( status ) return errno;
11075 /* give thread a chance to complete */
11076 /* it should remain joinable and hence detachable */
11079 status = pthread_detach( &t );
11080 if( status ) return errno;
11083 #ifdef HAVE_LINUX_THREADS
11084 pthread_kill_other_threads_np();
11092 if ac_fn_c_try_run "$LINENO"; then :
11093 ol_cv_pthread_thread=yes
11095 ol_cv_pthread_thread=no
11097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11098 conftest.$ac_objext conftest.beam conftest.$ac_ext
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
11107 $as_echo "$ol_cv_pthread_thread" >&6; }
11109 if test $ol_cv_pthread_thread = yes ; then
11110 ol_link_pthreads="-thread"
11111 ol_link_threads=posix
11116 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
11117 if test "$ol_link_threads" = no ; then
11118 # try -lpthread -lmach -lexc -lc_r
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
11120 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
11121 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
11122 $as_echo_n "(cached) " >&6
11127 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
11129 if test "$cross_compiling" = yes; then :
11130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131 /* end confdefs.h. */
11133 /* pthread test headers */
11134 #include <pthread.h>
11135 #if HAVE_PTHREADS < 7
11139 #define NULL (void*)0
11142 static void *task(p)
11145 return (void *) (p == NULL);
11152 /* pthread test function */
11153 #ifndef PTHREAD_CREATE_DETACHED
11154 #define PTHREAD_CREATE_DETACHED 1
11158 int detach = PTHREAD_CREATE_DETACHED;
11160 #if HAVE_PTHREADS > 4
11161 /* Final pthreads */
11162 pthread_attr_t attr;
11164 status = pthread_attr_init(&attr);
11165 if( status ) return status;
11167 #if HAVE_PTHREADS < 7
11168 status = pthread_attr_setdetachstate(&attr, &detach);
11169 if( status < 0 ) status = errno;
11171 status = pthread_attr_setdetachstate(&attr, detach);
11173 if( status ) return status;
11174 status = pthread_create( &t, &attr, task, NULL );
11175 #if HAVE_PTHREADS < 7
11176 if( status < 0 ) status = errno;
11178 if( status ) return status;
11180 /* Draft 4 pthreads */
11181 status = pthread_create( &t, pthread_attr_default, task, NULL );
11182 if( status ) return errno;
11184 /* give thread a chance to complete */
11185 /* it should remain joinable and hence detachable */
11188 status = pthread_detach( &t );
11189 if( status ) return errno;
11192 #ifdef HAVE_LINUX_THREADS
11193 pthread_kill_other_threads_np();
11202 if ac_fn_c_try_link "$LINENO"; then :
11203 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
11205 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
11207 rm -f core conftest.err conftest.$ac_objext \
11208 conftest$ac_exeext conftest.$ac_ext
11210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211 /* end confdefs.h. */
11214 /* pthread test headers */
11215 #include <pthread.h>
11216 #if HAVE_PTHREADS < 7
11220 #define NULL (void*)0
11223 static void *task(p)
11226 return (void *) (p == NULL);
11230 int main(argc, argv)
11235 /* pthread test function */
11236 #ifndef PTHREAD_CREATE_DETACHED
11237 #define PTHREAD_CREATE_DETACHED 1
11241 int detach = PTHREAD_CREATE_DETACHED;
11243 #if HAVE_PTHREADS > 4
11244 /* Final pthreads */
11245 pthread_attr_t attr;
11247 status = pthread_attr_init(&attr);
11248 if( status ) return status;
11250 #if HAVE_PTHREADS < 7
11251 status = pthread_attr_setdetachstate(&attr, &detach);
11252 if( status < 0 ) status = errno;
11254 status = pthread_attr_setdetachstate(&attr, detach);
11256 if( status ) return status;
11257 status = pthread_create( &t, &attr, task, NULL );
11258 #if HAVE_PTHREADS < 7
11259 if( status < 0 ) status = errno;
11261 if( status ) return status;
11263 /* Draft 4 pthreads */
11264 status = pthread_create( &t, pthread_attr_default, task, NULL );
11265 if( status ) return errno;
11267 /* give thread a chance to complete */
11268 /* it should remain joinable and hence detachable */
11271 status = pthread_detach( &t );
11272 if( status ) return errno;
11275 #ifdef HAVE_LINUX_THREADS
11276 pthread_kill_other_threads_np();
11284 if ac_fn_c_try_run "$LINENO"; then :
11285 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
11287 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
11289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11290 conftest.$ac_objext conftest.beam conftest.$ac_ext
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
11299 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
11301 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
11302 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
11303 ol_link_threads=posix
11307 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
11308 if test "$ol_link_threads" = no ; then
11309 # try -lpthread -lmach -lexc
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
11311 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
11312 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
11313 $as_echo_n "(cached) " >&6
11318 LIBS="-lpthread -lmach -lexc $LIBS"
11320 if test "$cross_compiling" = yes; then :
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11324 /* pthread test headers */
11325 #include <pthread.h>
11326 #if HAVE_PTHREADS < 7
11330 #define NULL (void*)0
11333 static void *task(p)
11336 return (void *) (p == NULL);
11343 /* pthread test function */
11344 #ifndef PTHREAD_CREATE_DETACHED
11345 #define PTHREAD_CREATE_DETACHED 1
11349 int detach = PTHREAD_CREATE_DETACHED;
11351 #if HAVE_PTHREADS > 4
11352 /* Final pthreads */
11353 pthread_attr_t attr;
11355 status = pthread_attr_init(&attr);
11356 if( status ) return status;
11358 #if HAVE_PTHREADS < 7
11359 status = pthread_attr_setdetachstate(&attr, &detach);
11360 if( status < 0 ) status = errno;
11362 status = pthread_attr_setdetachstate(&attr, detach);
11364 if( status ) return status;
11365 status = pthread_create( &t, &attr, task, NULL );
11366 #if HAVE_PTHREADS < 7
11367 if( status < 0 ) status = errno;
11369 if( status ) return status;
11371 /* Draft 4 pthreads */
11372 status = pthread_create( &t, pthread_attr_default, task, NULL );
11373 if( status ) return errno;
11375 /* give thread a chance to complete */
11376 /* it should remain joinable and hence detachable */
11379 status = pthread_detach( &t );
11380 if( status ) return errno;
11383 #ifdef HAVE_LINUX_THREADS
11384 pthread_kill_other_threads_np();
11393 if ac_fn_c_try_link "$LINENO"; then :
11394 ol_cv_pthread_lpthread_lmach_lexc=yes
11396 ol_cv_pthread_lpthread_lmach_lexc=no
11398 rm -f core conftest.err conftest.$ac_objext \
11399 conftest$ac_exeext conftest.$ac_ext
11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h. */
11405 /* pthread test headers */
11406 #include <pthread.h>
11407 #if HAVE_PTHREADS < 7
11411 #define NULL (void*)0
11414 static void *task(p)
11417 return (void *) (p == NULL);
11421 int main(argc, argv)
11426 /* pthread test function */
11427 #ifndef PTHREAD_CREATE_DETACHED
11428 #define PTHREAD_CREATE_DETACHED 1
11432 int detach = PTHREAD_CREATE_DETACHED;
11434 #if HAVE_PTHREADS > 4
11435 /* Final pthreads */
11436 pthread_attr_t attr;
11438 status = pthread_attr_init(&attr);
11439 if( status ) return status;
11441 #if HAVE_PTHREADS < 7
11442 status = pthread_attr_setdetachstate(&attr, &detach);
11443 if( status < 0 ) status = errno;
11445 status = pthread_attr_setdetachstate(&attr, detach);
11447 if( status ) return status;
11448 status = pthread_create( &t, &attr, task, NULL );
11449 #if HAVE_PTHREADS < 7
11450 if( status < 0 ) status = errno;
11452 if( status ) return status;
11454 /* Draft 4 pthreads */
11455 status = pthread_create( &t, pthread_attr_default, task, NULL );
11456 if( status ) return errno;
11458 /* give thread a chance to complete */
11459 /* it should remain joinable and hence detachable */
11462 status = pthread_detach( &t );
11463 if( status ) return errno;
11466 #ifdef HAVE_LINUX_THREADS
11467 pthread_kill_other_threads_np();
11475 if ac_fn_c_try_run "$LINENO"; then :
11476 ol_cv_pthread_lpthread_lmach_lexc=yes
11478 ol_cv_pthread_lpthread_lmach_lexc=no
11480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11481 conftest.$ac_objext conftest.beam conftest.$ac_ext
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
11490 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
11492 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
11493 ol_link_pthreads="-lpthread -lmach -lexc"
11494 ol_link_threads=posix
11499 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
11500 if test "$ol_link_threads" = no ; then
11501 # try -lpthread -Wl,-woff,85
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
11503 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
11504 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
11505 $as_echo_n "(cached) " >&6
11510 LIBS="-lpthread -Wl,-woff,85 $LIBS"
11512 if test "$cross_compiling" = yes; then :
11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h. */
11516 /* pthread test headers */
11517 #include <pthread.h>
11518 #if HAVE_PTHREADS < 7
11522 #define NULL (void*)0
11525 static void *task(p)
11528 return (void *) (p == NULL);
11535 /* pthread test function */
11536 #ifndef PTHREAD_CREATE_DETACHED
11537 #define PTHREAD_CREATE_DETACHED 1
11541 int detach = PTHREAD_CREATE_DETACHED;
11543 #if HAVE_PTHREADS > 4
11544 /* Final pthreads */
11545 pthread_attr_t attr;
11547 status = pthread_attr_init(&attr);
11548 if( status ) return status;
11550 #if HAVE_PTHREADS < 7
11551 status = pthread_attr_setdetachstate(&attr, &detach);
11552 if( status < 0 ) status = errno;
11554 status = pthread_attr_setdetachstate(&attr, detach);
11556 if( status ) return status;
11557 status = pthread_create( &t, &attr, task, NULL );
11558 #if HAVE_PTHREADS < 7
11559 if( status < 0 ) status = errno;
11561 if( status ) return status;
11563 /* Draft 4 pthreads */
11564 status = pthread_create( &t, pthread_attr_default, task, NULL );
11565 if( status ) return errno;
11567 /* give thread a chance to complete */
11568 /* it should remain joinable and hence detachable */
11571 status = pthread_detach( &t );
11572 if( status ) return errno;
11575 #ifdef HAVE_LINUX_THREADS
11576 pthread_kill_other_threads_np();
11585 if ac_fn_c_try_link "$LINENO"; then :
11586 ol_cv_pthread_lib_lpthread_woff=yes
11588 ol_cv_pthread_lib_lpthread_woff=no
11590 rm -f core conftest.err conftest.$ac_objext \
11591 conftest$ac_exeext conftest.$ac_ext
11593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11594 /* end confdefs.h. */
11597 /* pthread test headers */
11598 #include <pthread.h>
11599 #if HAVE_PTHREADS < 7
11603 #define NULL (void*)0
11606 static void *task(p)
11609 return (void *) (p == NULL);
11613 int main(argc, argv)
11618 /* pthread test function */
11619 #ifndef PTHREAD_CREATE_DETACHED
11620 #define PTHREAD_CREATE_DETACHED 1
11624 int detach = PTHREAD_CREATE_DETACHED;
11626 #if HAVE_PTHREADS > 4
11627 /* Final pthreads */
11628 pthread_attr_t attr;
11630 status = pthread_attr_init(&attr);
11631 if( status ) return status;
11633 #if HAVE_PTHREADS < 7
11634 status = pthread_attr_setdetachstate(&attr, &detach);
11635 if( status < 0 ) status = errno;
11637 status = pthread_attr_setdetachstate(&attr, detach);
11639 if( status ) return status;
11640 status = pthread_create( &t, &attr, task, NULL );
11641 #if HAVE_PTHREADS < 7
11642 if( status < 0 ) status = errno;
11644 if( status ) return status;
11646 /* Draft 4 pthreads */
11647 status = pthread_create( &t, pthread_attr_default, task, NULL );
11648 if( status ) return errno;
11650 /* give thread a chance to complete */
11651 /* it should remain joinable and hence detachable */
11654 status = pthread_detach( &t );
11655 if( status ) return errno;
11658 #ifdef HAVE_LINUX_THREADS
11659 pthread_kill_other_threads_np();
11667 if ac_fn_c_try_run "$LINENO"; then :
11668 ol_cv_pthread_lib_lpthread_woff=yes
11670 ol_cv_pthread_lib_lpthread_woff=no
11672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11673 conftest.$ac_objext conftest.beam conftest.$ac_ext
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
11682 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
11684 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
11685 ol_link_pthreads="-lpthread -Wl,-woff,85"
11686 ol_link_threads=posix
11691 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
11692 if test "$ol_link_threads" = no ; then
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
11695 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
11696 if ${ol_cv_pthread_lpthread+:} false; then :
11697 $as_echo_n "(cached) " >&6
11702 LIBS="-lpthread $LIBS"
11704 if test "$cross_compiling" = yes; then :
11705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11706 /* end confdefs.h. */
11708 /* pthread test headers */
11709 #include <pthread.h>
11710 #if HAVE_PTHREADS < 7
11714 #define NULL (void*)0
11717 static void *task(p)
11720 return (void *) (p == NULL);
11727 /* pthread test function */
11728 #ifndef PTHREAD_CREATE_DETACHED
11729 #define PTHREAD_CREATE_DETACHED 1
11733 int detach = PTHREAD_CREATE_DETACHED;
11735 #if HAVE_PTHREADS > 4
11736 /* Final pthreads */
11737 pthread_attr_t attr;
11739 status = pthread_attr_init(&attr);
11740 if( status ) return status;
11742 #if HAVE_PTHREADS < 7
11743 status = pthread_attr_setdetachstate(&attr, &detach);
11744 if( status < 0 ) status = errno;
11746 status = pthread_attr_setdetachstate(&attr, detach);
11748 if( status ) return status;
11749 status = pthread_create( &t, &attr, task, NULL );
11750 #if HAVE_PTHREADS < 7
11751 if( status < 0 ) status = errno;
11753 if( status ) return status;
11755 /* Draft 4 pthreads */
11756 status = pthread_create( &t, pthread_attr_default, task, NULL );
11757 if( status ) return errno;
11759 /* give thread a chance to complete */
11760 /* it should remain joinable and hence detachable */
11763 status = pthread_detach( &t );
11764 if( status ) return errno;
11767 #ifdef HAVE_LINUX_THREADS
11768 pthread_kill_other_threads_np();
11777 if ac_fn_c_try_link "$LINENO"; then :
11778 ol_cv_pthread_lpthread=yes
11780 ol_cv_pthread_lpthread=no
11782 rm -f core conftest.err conftest.$ac_objext \
11783 conftest$ac_exeext conftest.$ac_ext
11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h. */
11789 /* pthread test headers */
11790 #include <pthread.h>
11791 #if HAVE_PTHREADS < 7
11795 #define NULL (void*)0
11798 static void *task(p)
11801 return (void *) (p == NULL);
11805 int main(argc, argv)
11810 /* pthread test function */
11811 #ifndef PTHREAD_CREATE_DETACHED
11812 #define PTHREAD_CREATE_DETACHED 1
11816 int detach = PTHREAD_CREATE_DETACHED;
11818 #if HAVE_PTHREADS > 4
11819 /* Final pthreads */
11820 pthread_attr_t attr;
11822 status = pthread_attr_init(&attr);
11823 if( status ) return status;
11825 #if HAVE_PTHREADS < 7
11826 status = pthread_attr_setdetachstate(&attr, &detach);
11827 if( status < 0 ) status = errno;
11829 status = pthread_attr_setdetachstate(&attr, detach);
11831 if( status ) return status;
11832 status = pthread_create( &t, &attr, task, NULL );
11833 #if HAVE_PTHREADS < 7
11834 if( status < 0 ) status = errno;
11836 if( status ) return status;
11838 /* Draft 4 pthreads */
11839 status = pthread_create( &t, pthread_attr_default, task, NULL );
11840 if( status ) return errno;
11842 /* give thread a chance to complete */
11843 /* it should remain joinable and hence detachable */
11846 status = pthread_detach( &t );
11847 if( status ) return errno;
11850 #ifdef HAVE_LINUX_THREADS
11851 pthread_kill_other_threads_np();
11859 if ac_fn_c_try_run "$LINENO"; then :
11860 ol_cv_pthread_lpthread=yes
11862 ol_cv_pthread_lpthread=no
11864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11865 conftest.$ac_objext conftest.beam conftest.$ac_ext
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
11874 $as_echo "$ol_cv_pthread_lpthread" >&6; }
11876 if test $ol_cv_pthread_lpthread = yes ; then
11877 ol_link_pthreads="-lpthread"
11878 ol_link_threads=posix
11882 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
11883 if test "$ol_link_threads" = no ; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
11886 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
11887 if ${ol_cv_pthread_lc_r+:} false; then :
11888 $as_echo_n "(cached) " >&6
11895 if test "$cross_compiling" = yes; then :
11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h. */
11899 /* pthread test headers */
11900 #include <pthread.h>
11901 #if HAVE_PTHREADS < 7
11905 #define NULL (void*)0
11908 static void *task(p)
11911 return (void *) (p == NULL);
11918 /* pthread test function */
11919 #ifndef PTHREAD_CREATE_DETACHED
11920 #define PTHREAD_CREATE_DETACHED 1
11924 int detach = PTHREAD_CREATE_DETACHED;
11926 #if HAVE_PTHREADS > 4
11927 /* Final pthreads */
11928 pthread_attr_t attr;
11930 status = pthread_attr_init(&attr);
11931 if( status ) return status;
11933 #if HAVE_PTHREADS < 7
11934 status = pthread_attr_setdetachstate(&attr, &detach);
11935 if( status < 0 ) status = errno;
11937 status = pthread_attr_setdetachstate(&attr, detach);
11939 if( status ) return status;
11940 status = pthread_create( &t, &attr, task, NULL );
11941 #if HAVE_PTHREADS < 7
11942 if( status < 0 ) status = errno;
11944 if( status ) return status;
11946 /* Draft 4 pthreads */
11947 status = pthread_create( &t, pthread_attr_default, task, NULL );
11948 if( status ) return errno;
11950 /* give thread a chance to complete */
11951 /* it should remain joinable and hence detachable */
11954 status = pthread_detach( &t );
11955 if( status ) return errno;
11958 #ifdef HAVE_LINUX_THREADS
11959 pthread_kill_other_threads_np();
11968 if ac_fn_c_try_link "$LINENO"; then :
11969 ol_cv_pthread_lc_r=yes
11971 ol_cv_pthread_lc_r=no
11973 rm -f core conftest.err conftest.$ac_objext \
11974 conftest$ac_exeext conftest.$ac_ext
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11980 /* pthread test headers */
11981 #include <pthread.h>
11982 #if HAVE_PTHREADS < 7
11986 #define NULL (void*)0
11989 static void *task(p)
11992 return (void *) (p == NULL);
11996 int main(argc, argv)
12001 /* pthread test function */
12002 #ifndef PTHREAD_CREATE_DETACHED
12003 #define PTHREAD_CREATE_DETACHED 1
12007 int detach = PTHREAD_CREATE_DETACHED;
12009 #if HAVE_PTHREADS > 4
12010 /* Final pthreads */
12011 pthread_attr_t attr;
12013 status = pthread_attr_init(&attr);
12014 if( status ) return status;
12016 #if HAVE_PTHREADS < 7
12017 status = pthread_attr_setdetachstate(&attr, &detach);
12018 if( status < 0 ) status = errno;
12020 status = pthread_attr_setdetachstate(&attr, detach);
12022 if( status ) return status;
12023 status = pthread_create( &t, &attr, task, NULL );
12024 #if HAVE_PTHREADS < 7
12025 if( status < 0 ) status = errno;
12027 if( status ) return status;
12029 /* Draft 4 pthreads */
12030 status = pthread_create( &t, pthread_attr_default, task, NULL );
12031 if( status ) return errno;
12033 /* give thread a chance to complete */
12034 /* it should remain joinable and hence detachable */
12037 status = pthread_detach( &t );
12038 if( status ) return errno;
12041 #ifdef HAVE_LINUX_THREADS
12042 pthread_kill_other_threads_np();
12050 if ac_fn_c_try_run "$LINENO"; then :
12051 ol_cv_pthread_lc_r=yes
12053 ol_cv_pthread_lc_r=no
12055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12056 conftest.$ac_objext conftest.beam conftest.$ac_ext
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
12065 $as_echo "$ol_cv_pthread_lc_r" >&6; }
12067 if test $ol_cv_pthread_lc_r = yes ; then
12068 ol_link_pthreads="-lc_r"
12069 ol_link_threads=posix
12074 # Pthread try link: -threads (ol_cv_pthread_threads)
12075 if test "$ol_link_threads" = no ; then
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
12078 $as_echo_n "checking for pthread link with -threads... " >&6; }
12079 if ${ol_cv_pthread_threads+:} false; then :
12080 $as_echo_n "(cached) " >&6
12085 LIBS="-threads $LIBS"
12087 if test "$cross_compiling" = yes; then :
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h. */
12091 /* pthread test headers */
12092 #include <pthread.h>
12093 #if HAVE_PTHREADS < 7
12097 #define NULL (void*)0
12100 static void *task(p)
12103 return (void *) (p == NULL);
12110 /* pthread test function */
12111 #ifndef PTHREAD_CREATE_DETACHED
12112 #define PTHREAD_CREATE_DETACHED 1
12116 int detach = PTHREAD_CREATE_DETACHED;
12118 #if HAVE_PTHREADS > 4
12119 /* Final pthreads */
12120 pthread_attr_t attr;
12122 status = pthread_attr_init(&attr);
12123 if( status ) return status;
12125 #if HAVE_PTHREADS < 7
12126 status = pthread_attr_setdetachstate(&attr, &detach);
12127 if( status < 0 ) status = errno;
12129 status = pthread_attr_setdetachstate(&attr, detach);
12131 if( status ) return status;
12132 status = pthread_create( &t, &attr, task, NULL );
12133 #if HAVE_PTHREADS < 7
12134 if( status < 0 ) status = errno;
12136 if( status ) return status;
12138 /* Draft 4 pthreads */
12139 status = pthread_create( &t, pthread_attr_default, task, NULL );
12140 if( status ) return errno;
12142 /* give thread a chance to complete */
12143 /* it should remain joinable and hence detachable */
12146 status = pthread_detach( &t );
12147 if( status ) return errno;
12150 #ifdef HAVE_LINUX_THREADS
12151 pthread_kill_other_threads_np();
12160 if ac_fn_c_try_link "$LINENO"; then :
12161 ol_cv_pthread_threads=yes
12163 ol_cv_pthread_threads=no
12165 rm -f core conftest.err conftest.$ac_objext \
12166 conftest$ac_exeext conftest.$ac_ext
12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h. */
12172 /* pthread test headers */
12173 #include <pthread.h>
12174 #if HAVE_PTHREADS < 7
12178 #define NULL (void*)0
12181 static void *task(p)
12184 return (void *) (p == NULL);
12188 int main(argc, argv)
12193 /* pthread test function */
12194 #ifndef PTHREAD_CREATE_DETACHED
12195 #define PTHREAD_CREATE_DETACHED 1
12199 int detach = PTHREAD_CREATE_DETACHED;
12201 #if HAVE_PTHREADS > 4
12202 /* Final pthreads */
12203 pthread_attr_t attr;
12205 status = pthread_attr_init(&attr);
12206 if( status ) return status;
12208 #if HAVE_PTHREADS < 7
12209 status = pthread_attr_setdetachstate(&attr, &detach);
12210 if( status < 0 ) status = errno;
12212 status = pthread_attr_setdetachstate(&attr, detach);
12214 if( status ) return status;
12215 status = pthread_create( &t, &attr, task, NULL );
12216 #if HAVE_PTHREADS < 7
12217 if( status < 0 ) status = errno;
12219 if( status ) return status;
12221 /* Draft 4 pthreads */
12222 status = pthread_create( &t, pthread_attr_default, task, NULL );
12223 if( status ) return errno;
12225 /* give thread a chance to complete */
12226 /* it should remain joinable and hence detachable */
12229 status = pthread_detach( &t );
12230 if( status ) return errno;
12233 #ifdef HAVE_LINUX_THREADS
12234 pthread_kill_other_threads_np();
12242 if ac_fn_c_try_run "$LINENO"; then :
12243 ol_cv_pthread_threads=yes
12245 ol_cv_pthread_threads=no
12247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12248 conftest.$ac_objext conftest.beam conftest.$ac_ext
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
12257 $as_echo "$ol_cv_pthread_threads" >&6; }
12259 if test $ol_cv_pthread_threads = yes ; then
12260 ol_link_pthreads="-threads"
12261 ol_link_threads=posix
12266 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
12267 if test "$ol_link_threads" = no ; then
12268 # try -lpthreads -lmach -lexc -lc_r
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
12270 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
12271 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
12272 $as_echo_n "(cached) " >&6
12277 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
12279 if test "$cross_compiling" = yes; then :
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h. */
12283 /* pthread test headers */
12284 #include <pthread.h>
12285 #if HAVE_PTHREADS < 7
12289 #define NULL (void*)0
12292 static void *task(p)
12295 return (void *) (p == NULL);
12302 /* pthread test function */
12303 #ifndef PTHREAD_CREATE_DETACHED
12304 #define PTHREAD_CREATE_DETACHED 1
12308 int detach = PTHREAD_CREATE_DETACHED;
12310 #if HAVE_PTHREADS > 4
12311 /* Final pthreads */
12312 pthread_attr_t attr;
12314 status = pthread_attr_init(&attr);
12315 if( status ) return status;
12317 #if HAVE_PTHREADS < 7
12318 status = pthread_attr_setdetachstate(&attr, &detach);
12319 if( status < 0 ) status = errno;
12321 status = pthread_attr_setdetachstate(&attr, detach);
12323 if( status ) return status;
12324 status = pthread_create( &t, &attr, task, NULL );
12325 #if HAVE_PTHREADS < 7
12326 if( status < 0 ) status = errno;
12328 if( status ) return status;
12330 /* Draft 4 pthreads */
12331 status = pthread_create( &t, pthread_attr_default, task, NULL );
12332 if( status ) return errno;
12334 /* give thread a chance to complete */
12335 /* it should remain joinable and hence detachable */
12338 status = pthread_detach( &t );
12339 if( status ) return errno;
12342 #ifdef HAVE_LINUX_THREADS
12343 pthread_kill_other_threads_np();
12352 if ac_fn_c_try_link "$LINENO"; then :
12353 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
12355 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
12357 rm -f core conftest.err conftest.$ac_objext \
12358 conftest$ac_exeext conftest.$ac_ext
12360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12361 /* end confdefs.h. */
12364 /* pthread test headers */
12365 #include <pthread.h>
12366 #if HAVE_PTHREADS < 7
12370 #define NULL (void*)0
12373 static void *task(p)
12376 return (void *) (p == NULL);
12380 int main(argc, argv)
12385 /* pthread test function */
12386 #ifndef PTHREAD_CREATE_DETACHED
12387 #define PTHREAD_CREATE_DETACHED 1
12391 int detach = PTHREAD_CREATE_DETACHED;
12393 #if HAVE_PTHREADS > 4
12394 /* Final pthreads */
12395 pthread_attr_t attr;
12397 status = pthread_attr_init(&attr);
12398 if( status ) return status;
12400 #if HAVE_PTHREADS < 7
12401 status = pthread_attr_setdetachstate(&attr, &detach);
12402 if( status < 0 ) status = errno;
12404 status = pthread_attr_setdetachstate(&attr, detach);
12406 if( status ) return status;
12407 status = pthread_create( &t, &attr, task, NULL );
12408 #if HAVE_PTHREADS < 7
12409 if( status < 0 ) status = errno;
12411 if( status ) return status;
12413 /* Draft 4 pthreads */
12414 status = pthread_create( &t, pthread_attr_default, task, NULL );
12415 if( status ) return errno;
12417 /* give thread a chance to complete */
12418 /* it should remain joinable and hence detachable */
12421 status = pthread_detach( &t );
12422 if( status ) return errno;
12425 #ifdef HAVE_LINUX_THREADS
12426 pthread_kill_other_threads_np();
12434 if ac_fn_c_try_run "$LINENO"; then :
12435 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
12437 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
12439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12440 conftest.$ac_objext conftest.beam conftest.$ac_ext
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
12449 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
12451 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
12452 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
12453 ol_link_threads=posix
12457 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
12458 if test "$ol_link_threads" = no ; then
12459 # try -lpthreads -lmach -lexc
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
12461 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
12462 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
12463 $as_echo_n "(cached) " >&6
12468 LIBS="-lpthreads -lmach -lexc $LIBS"
12470 if test "$cross_compiling" = yes; then :
12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h. */
12474 /* pthread test headers */
12475 #include <pthread.h>
12476 #if HAVE_PTHREADS < 7
12480 #define NULL (void*)0
12483 static void *task(p)
12486 return (void *) (p == NULL);
12493 /* pthread test function */
12494 #ifndef PTHREAD_CREATE_DETACHED
12495 #define PTHREAD_CREATE_DETACHED 1
12499 int detach = PTHREAD_CREATE_DETACHED;
12501 #if HAVE_PTHREADS > 4
12502 /* Final pthreads */
12503 pthread_attr_t attr;
12505 status = pthread_attr_init(&attr);
12506 if( status ) return status;
12508 #if HAVE_PTHREADS < 7
12509 status = pthread_attr_setdetachstate(&attr, &detach);
12510 if( status < 0 ) status = errno;
12512 status = pthread_attr_setdetachstate(&attr, detach);
12514 if( status ) return status;
12515 status = pthread_create( &t, &attr, task, NULL );
12516 #if HAVE_PTHREADS < 7
12517 if( status < 0 ) status = errno;
12519 if( status ) return status;
12521 /* Draft 4 pthreads */
12522 status = pthread_create( &t, pthread_attr_default, task, NULL );
12523 if( status ) return errno;
12525 /* give thread a chance to complete */
12526 /* it should remain joinable and hence detachable */
12529 status = pthread_detach( &t );
12530 if( status ) return errno;
12533 #ifdef HAVE_LINUX_THREADS
12534 pthread_kill_other_threads_np();
12543 if ac_fn_c_try_link "$LINENO"; then :
12544 ol_cv_pthread_lpthreads_lmach_lexc=yes
12546 ol_cv_pthread_lpthreads_lmach_lexc=no
12548 rm -f core conftest.err conftest.$ac_objext \
12549 conftest$ac_exeext conftest.$ac_ext
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12555 /* pthread test headers */
12556 #include <pthread.h>
12557 #if HAVE_PTHREADS < 7
12561 #define NULL (void*)0
12564 static void *task(p)
12567 return (void *) (p == NULL);
12571 int main(argc, argv)
12576 /* pthread test function */
12577 #ifndef PTHREAD_CREATE_DETACHED
12578 #define PTHREAD_CREATE_DETACHED 1
12582 int detach = PTHREAD_CREATE_DETACHED;
12584 #if HAVE_PTHREADS > 4
12585 /* Final pthreads */
12586 pthread_attr_t attr;
12588 status = pthread_attr_init(&attr);
12589 if( status ) return status;
12591 #if HAVE_PTHREADS < 7
12592 status = pthread_attr_setdetachstate(&attr, &detach);
12593 if( status < 0 ) status = errno;
12595 status = pthread_attr_setdetachstate(&attr, detach);
12597 if( status ) return status;
12598 status = pthread_create( &t, &attr, task, NULL );
12599 #if HAVE_PTHREADS < 7
12600 if( status < 0 ) status = errno;
12602 if( status ) return status;
12604 /* Draft 4 pthreads */
12605 status = pthread_create( &t, pthread_attr_default, task, NULL );
12606 if( status ) return errno;
12608 /* give thread a chance to complete */
12609 /* it should remain joinable and hence detachable */
12612 status = pthread_detach( &t );
12613 if( status ) return errno;
12616 #ifdef HAVE_LINUX_THREADS
12617 pthread_kill_other_threads_np();
12625 if ac_fn_c_try_run "$LINENO"; then :
12626 ol_cv_pthread_lpthreads_lmach_lexc=yes
12628 ol_cv_pthread_lpthreads_lmach_lexc=no
12630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12631 conftest.$ac_objext conftest.beam conftest.$ac_ext
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
12640 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
12642 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
12643 ol_link_pthreads="-lpthreads -lmach -lexc"
12644 ol_link_threads=posix
12648 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
12649 if test "$ol_link_threads" = no ; then
12650 # try -lpthreads -lexc
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
12652 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
12653 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
12654 $as_echo_n "(cached) " >&6
12659 LIBS="-lpthreads -lexc $LIBS"
12661 if test "$cross_compiling" = yes; then :
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h. */
12665 /* pthread test headers */
12666 #include <pthread.h>
12667 #if HAVE_PTHREADS < 7
12671 #define NULL (void*)0
12674 static void *task(p)
12677 return (void *) (p == NULL);
12684 /* pthread test function */
12685 #ifndef PTHREAD_CREATE_DETACHED
12686 #define PTHREAD_CREATE_DETACHED 1
12690 int detach = PTHREAD_CREATE_DETACHED;
12692 #if HAVE_PTHREADS > 4
12693 /* Final pthreads */
12694 pthread_attr_t attr;
12696 status = pthread_attr_init(&attr);
12697 if( status ) return status;
12699 #if HAVE_PTHREADS < 7
12700 status = pthread_attr_setdetachstate(&attr, &detach);
12701 if( status < 0 ) status = errno;
12703 status = pthread_attr_setdetachstate(&attr, detach);
12705 if( status ) return status;
12706 status = pthread_create( &t, &attr, task, NULL );
12707 #if HAVE_PTHREADS < 7
12708 if( status < 0 ) status = errno;
12710 if( status ) return status;
12712 /* Draft 4 pthreads */
12713 status = pthread_create( &t, pthread_attr_default, task, NULL );
12714 if( status ) return errno;
12716 /* give thread a chance to complete */
12717 /* it should remain joinable and hence detachable */
12720 status = pthread_detach( &t );
12721 if( status ) return errno;
12724 #ifdef HAVE_LINUX_THREADS
12725 pthread_kill_other_threads_np();
12734 if ac_fn_c_try_link "$LINENO"; then :
12735 ol_cv_pthread_lpthreads_lexc=yes
12737 ol_cv_pthread_lpthreads_lexc=no
12739 rm -f core conftest.err conftest.$ac_objext \
12740 conftest$ac_exeext conftest.$ac_ext
12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h. */
12746 /* pthread test headers */
12747 #include <pthread.h>
12748 #if HAVE_PTHREADS < 7
12752 #define NULL (void*)0
12755 static void *task(p)
12758 return (void *) (p == NULL);
12762 int main(argc, argv)
12767 /* pthread test function */
12768 #ifndef PTHREAD_CREATE_DETACHED
12769 #define PTHREAD_CREATE_DETACHED 1
12773 int detach = PTHREAD_CREATE_DETACHED;
12775 #if HAVE_PTHREADS > 4
12776 /* Final pthreads */
12777 pthread_attr_t attr;
12779 status = pthread_attr_init(&attr);
12780 if( status ) return status;
12782 #if HAVE_PTHREADS < 7
12783 status = pthread_attr_setdetachstate(&attr, &detach);
12784 if( status < 0 ) status = errno;
12786 status = pthread_attr_setdetachstate(&attr, detach);
12788 if( status ) return status;
12789 status = pthread_create( &t, &attr, task, NULL );
12790 #if HAVE_PTHREADS < 7
12791 if( status < 0 ) status = errno;
12793 if( status ) return status;
12795 /* Draft 4 pthreads */
12796 status = pthread_create( &t, pthread_attr_default, task, NULL );
12797 if( status ) return errno;
12799 /* give thread a chance to complete */
12800 /* it should remain joinable and hence detachable */
12803 status = pthread_detach( &t );
12804 if( status ) return errno;
12807 #ifdef HAVE_LINUX_THREADS
12808 pthread_kill_other_threads_np();
12816 if ac_fn_c_try_run "$LINENO"; then :
12817 ol_cv_pthread_lpthreads_lexc=yes
12819 ol_cv_pthread_lpthreads_lexc=no
12821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12822 conftest.$ac_objext conftest.beam conftest.$ac_ext
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
12831 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
12833 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
12834 ol_link_pthreads="-lpthreads -lexc"
12835 ol_link_threads=posix
12840 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
12841 if test "$ol_link_threads" = no ; then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
12844 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
12845 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
12846 $as_echo_n "(cached) " >&6
12851 LIBS="-lpthreads $LIBS"
12853 if test "$cross_compiling" = yes; then :
12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12857 /* pthread test headers */
12858 #include <pthread.h>
12859 #if HAVE_PTHREADS < 7
12863 #define NULL (void*)0
12866 static void *task(p)
12869 return (void *) (p == NULL);
12876 /* pthread test function */
12877 #ifndef PTHREAD_CREATE_DETACHED
12878 #define PTHREAD_CREATE_DETACHED 1
12882 int detach = PTHREAD_CREATE_DETACHED;
12884 #if HAVE_PTHREADS > 4
12885 /* Final pthreads */
12886 pthread_attr_t attr;
12888 status = pthread_attr_init(&attr);
12889 if( status ) return status;
12891 #if HAVE_PTHREADS < 7
12892 status = pthread_attr_setdetachstate(&attr, &detach);
12893 if( status < 0 ) status = errno;
12895 status = pthread_attr_setdetachstate(&attr, detach);
12897 if( status ) return status;
12898 status = pthread_create( &t, &attr, task, NULL );
12899 #if HAVE_PTHREADS < 7
12900 if( status < 0 ) status = errno;
12902 if( status ) return status;
12904 /* Draft 4 pthreads */
12905 status = pthread_create( &t, pthread_attr_default, task, NULL );
12906 if( status ) return errno;
12908 /* give thread a chance to complete */
12909 /* it should remain joinable and hence detachable */
12912 status = pthread_detach( &t );
12913 if( status ) return errno;
12916 #ifdef HAVE_LINUX_THREADS
12917 pthread_kill_other_threads_np();
12926 if ac_fn_c_try_link "$LINENO"; then :
12927 ol_cv_pthread_lib_lpthreads=yes
12929 ol_cv_pthread_lib_lpthreads=no
12931 rm -f core conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h. */
12938 /* pthread test headers */
12939 #include <pthread.h>
12940 #if HAVE_PTHREADS < 7
12944 #define NULL (void*)0
12947 static void *task(p)
12950 return (void *) (p == NULL);
12954 int main(argc, argv)
12959 /* pthread test function */
12960 #ifndef PTHREAD_CREATE_DETACHED
12961 #define PTHREAD_CREATE_DETACHED 1
12965 int detach = PTHREAD_CREATE_DETACHED;
12967 #if HAVE_PTHREADS > 4
12968 /* Final pthreads */
12969 pthread_attr_t attr;
12971 status = pthread_attr_init(&attr);
12972 if( status ) return status;
12974 #if HAVE_PTHREADS < 7
12975 status = pthread_attr_setdetachstate(&attr, &detach);
12976 if( status < 0 ) status = errno;
12978 status = pthread_attr_setdetachstate(&attr, detach);
12980 if( status ) return status;
12981 status = pthread_create( &t, &attr, task, NULL );
12982 #if HAVE_PTHREADS < 7
12983 if( status < 0 ) status = errno;
12985 if( status ) return status;
12987 /* Draft 4 pthreads */
12988 status = pthread_create( &t, pthread_attr_default, task, NULL );
12989 if( status ) return errno;
12991 /* give thread a chance to complete */
12992 /* it should remain joinable and hence detachable */
12995 status = pthread_detach( &t );
12996 if( status ) return errno;
12999 #ifdef HAVE_LINUX_THREADS
13000 pthread_kill_other_threads_np();
13008 if ac_fn_c_try_run "$LINENO"; then :
13009 ol_cv_pthread_lib_lpthreads=yes
13011 ol_cv_pthread_lib_lpthreads=no
13013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13014 conftest.$ac_objext conftest.beam conftest.$ac_ext
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
13023 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
13025 if test $ol_cv_pthread_lib_lpthreads = yes ; then
13026 ol_link_pthreads="-lpthreads"
13027 ol_link_threads=posix
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
13033 $as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
13035 if test $ol_link_threads != no ; then
13036 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
13038 save_CPPFLAGS="$CPPFLAGS"
13040 LIBS="$LTHREAD_LIBS $LIBS"
13042 for ac_func in sched_yield pthread_yield thr_yield
13044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13045 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13046 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13047 cat >>confdefs.h <<_ACEOF
13048 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13055 if test $ac_cv_func_sched_yield = no &&
13056 test $ac_cv_func_pthread_yield = no &&
13057 test $ac_cv_func_thr_yield = no ; then
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
13059 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
13060 if ${ac_cv_lib_rt_sched_yield+:} false; then :
13061 $as_echo_n "(cached) " >&6
13063 ac_check_lib_save_LIBS=$LIBS
13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066 /* end confdefs.h. */
13068 /* Override any GCC internal prototype to avoid an error.
13069 Use char because int might match the return type of a GCC
13070 builtin and then its argument prototype would still apply. */
13074 char sched_yield ();
13078 return sched_yield ();
13083 if ac_fn_c_try_link "$LINENO"; then :
13084 ac_cv_lib_rt_sched_yield=yes
13086 ac_cv_lib_rt_sched_yield=no
13088 rm -f core conftest.err conftest.$ac_objext \
13089 conftest$ac_exeext conftest.$ac_ext
13090 LIBS=$ac_check_lib_save_LIBS
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
13093 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
13094 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
13095 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
13097 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
13099 ac_cv_func_sched_yield=yes
13101 ac_cv_func_sched_yield=no
13105 if test $ac_cv_func_sched_yield = no &&
13106 test $ac_cv_func_pthread_yield = no &&
13107 test "$ac_cv_func_thr_yield" = no ; then
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
13109 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
13112 for ac_func in pthread_kill
13114 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
13115 if test "x$ac_cv_func_pthread_kill" = xyes; then :
13116 cat >>confdefs.h <<_ACEOF
13117 #define HAVE_PTHREAD_KILL 1
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
13125 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
13126 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
13127 $as_echo_n "(cached) " >&6
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13133 #include <pthread.h>
13134 pthread_rwlock_t rwlock;
13139 pthread_rwlock_destroy(&rwlock);
13144 if ac_fn_c_try_link "$LINENO"; then :
13145 ol_cv_func_pthread_rwlock_destroy=yes
13147 ol_cv_func_pthread_rwlock_destroy=no
13149 rm -f core conftest.err conftest.$ac_objext \
13150 conftest$ac_exeext conftest.$ac_ext
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
13154 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
13155 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
13157 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
13162 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
13163 if ${ol_cv_func_pthread_detach+:} false; then :
13164 $as_echo_n "(cached) " >&6
13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13170 #include <pthread.h>
13172 #define NULL (void*)0
13178 pthread_detach(NULL);
13183 if ac_fn_c_try_link "$LINENO"; then :
13184 ol_cv_func_pthread_detach=yes
13186 ol_cv_func_pthread_detach=no
13188 rm -f core conftest.err conftest.$ac_objext \
13189 conftest$ac_exeext conftest.$ac_ext
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
13193 $as_echo "$ol_cv_func_pthread_detach" >&6; }
13195 if test $ol_cv_func_pthread_detach = no ; then
13196 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
13200 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
13204 pthread_setconcurrency \
13205 pthread_getconcurrency \
13206 thr_setconcurrency \
13207 thr_getconcurrency \
13210 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13211 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13212 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13213 cat >>confdefs.h <<_ACEOF
13214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13222 for ac_func in pthread_kill_other_threads_np
13224 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
13225 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
13226 cat >>confdefs.h <<_ACEOF
13227 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
13234 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
13235 if ${ol_cv_sys_linux_threads+:} false; then :
13236 $as_echo_n "(cached) " >&6
13238 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
13241 $as_echo "$ol_cv_sys_linux_threads" >&6; }
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
13247 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
13248 if ${ol_cv_linux_threads+:} false; then :
13249 $as_echo_n "(cached) " >&6
13252 if test $ol_cv_header_linux_threads = yes &&
13253 test $ol_cv_sys_linux_threads = yes; then
13254 ol_cv_linux_threads=yes
13255 elif test $ol_cv_header_linux_threads = no &&
13256 test $ol_cv_sys_linux_threads = no; then
13257 ol_cv_linux_threads=no
13259 ol_cv_linux_threads=error
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
13264 $as_echo "$ol_cv_linux_threads" >&6; }
13267 if test $ol_cv_linux_threads = error; then
13268 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
13272 $as_echo_n "checking if pthread_create() works... " >&6; }
13273 if ${ol_cv_pthread_create_works+:} false; then :
13274 $as_echo_n "(cached) " >&6
13277 if test "$cross_compiling" = yes; then :
13278 ol_cv_pthread_create_works=yes
13280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h. */
13284 /* pthread test headers */
13285 #include <pthread.h>
13286 #if HAVE_PTHREADS < 7
13290 #define NULL (void*)0
13293 static void *task(p)
13296 return (void *) (p == NULL);
13300 int main(argc, argv)
13305 /* pthread test function */
13306 #ifndef PTHREAD_CREATE_DETACHED
13307 #define PTHREAD_CREATE_DETACHED 1
13311 int detach = PTHREAD_CREATE_DETACHED;
13313 #if HAVE_PTHREADS > 4
13314 /* Final pthreads */
13315 pthread_attr_t attr;
13317 status = pthread_attr_init(&attr);
13318 if( status ) return status;
13320 #if HAVE_PTHREADS < 7
13321 status = pthread_attr_setdetachstate(&attr, &detach);
13322 if( status < 0 ) status = errno;
13324 status = pthread_attr_setdetachstate(&attr, detach);
13326 if( status ) return status;
13327 status = pthread_create( &t, &attr, task, NULL );
13328 #if HAVE_PTHREADS < 7
13329 if( status < 0 ) status = errno;
13331 if( status ) return status;
13333 /* Draft 4 pthreads */
13334 status = pthread_create( &t, pthread_attr_default, task, NULL );
13335 if( status ) return errno;
13337 /* give thread a chance to complete */
13338 /* it should remain joinable and hence detachable */
13341 status = pthread_detach( &t );
13342 if( status ) return errno;
13345 #ifdef HAVE_LINUX_THREADS
13346 pthread_kill_other_threads_np();
13354 if ac_fn_c_try_run "$LINENO"; then :
13355 ol_cv_pthread_create_works=yes
13357 ol_cv_pthread_create_works=no
13359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13360 conftest.$ac_objext conftest.beam conftest.$ac_ext
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
13365 $as_echo "$ol_cv_pthread_create_works" >&6; }
13367 if test $ol_cv_pthread_create_works = no ; then
13368 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
13371 ol_replace_broken_yield=no
13373 if test $ol_replace_broken_yield = yes ; then
13375 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
13379 if test x$ol_with_yielding_select = xauto ; then
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
13381 $as_echo_n "checking if select yields when using pthreads... " >&6; }
13382 if ${ol_cv_pthread_select_yields+:} false; then :
13383 $as_echo_n "(cached) " >&6
13386 if test "$cross_compiling" = yes; then :
13387 ol_cv_pthread_select_yields=cross
13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h. */
13392 #include <sys/types.h>
13393 #include <sys/time.h>
13394 #include <unistd.h>
13395 #include <pthread.h>
13397 #define NULL (void*) 0
13400 static int fildes[2];
13402 static void *task(p)
13414 FD_SET(fildes[0], &rfds);
13416 /* we're not interested in any fds */
13417 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
13424 exit(0); /* if we exit here, the select blocked the whole process */
13427 int main(argc, argv)
13433 /* create a pipe to select */
13434 if(pipe(&fildes[0])) {
13439 #ifdef HAVE_PTHREAD_SETCONCURRENCY
13440 (void) pthread_setconcurrency(2);
13442 #ifdef HAVE_THR_SETCONCURRENCY
13443 /* Set Solaris LWP concurrency to 2 */
13444 thr_setconcurrency(2);
13448 #if HAVE_PTHREADS < 6
13449 pthread_create(&t, pthread_attr_default, task, NULL);
13451 pthread_create(&t, NULL, task, NULL);
13454 /* make sure task runs first */
13455 #ifdef HAVE_THR_YIELD
13457 #elif defined( HAVE_SCHED_YIELD )
13459 #elif defined( HAVE_PTHREAD_YIELD )
13466 if ac_fn_c_try_run "$LINENO"; then :
13467 ol_cv_pthread_select_yields=no
13469 ol_cv_pthread_select_yields=yes
13471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13472 conftest.$ac_objext conftest.beam conftest.$ac_ext
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
13477 $as_echo "$ol_cv_pthread_select_yields" >&6; }
13479 if test $ol_cv_pthread_select_yields = cross ; then
13480 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
13483 if test $ol_cv_pthread_select_yields = yes ; then
13484 ol_with_yielding_select=yes
13488 CPPFLAGS="$save_CPPFLAGS"
13491 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
13495 if test $ol_with_threads = posix ; then
13496 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
13501 case $ol_with_threads in auto | yes | mach)
13503 for ac_header in mach/cthreads.h cthreads.h
13505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13506 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13507 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13508 cat >>confdefs.h <<_ACEOF
13509 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13516 if test $ac_cv_header_mach_cthreads_h = yes ; then
13517 ol_with_threads=found
13519 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
13520 if test "x$ac_cv_func_cthread_fork" = xyes; then :
13521 ol_link_threads=yes
13525 if test $ol_link_threads = no ; then
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
13527 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
13528 if ${ol_cv_cthread_all_load+:} false; then :
13529 $as_echo_n "(cached) " >&6
13533 LIBS="-all_load $LIBS"
13534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13535 /* end confdefs.h. */
13536 #include <mach/cthreads.h>
13541 cthread_fork((void *)0, (void *)0);
13547 if ac_fn_c_try_link "$LINENO"; then :
13548 ol_cv_cthread_all_load=yes
13550 ol_cv_cthread_all_load=no
13552 rm -f core conftest.err conftest.$ac_objext \
13553 conftest$ac_exeext conftest.$ac_ext
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
13558 $as_echo "$ol_cv_cthread_all_load" >&6; }
13560 if test $ol_cv_cthread_all_load = yes ; then
13561 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
13562 ol_link_threads=mach
13563 ol_with_threads=found
13567 elif test $ac_cv_header_cthreads_h = yes ; then
13569 ol_with_threads=found
13572 LIBS="$LIBS -lthreads"
13573 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
13574 if test "x$ac_cv_func_cthread_fork" = xyes; then :
13575 ol_link_threads=yes
13580 if test $ol_link_threads = yes ; then
13581 LTHREAD_LIBS="-lthreads"
13582 ol_link_threads=mach
13583 ol_with_threads=found
13585 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
13588 elif test $ol_with_threads = mach ; then
13589 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
13592 if test $ol_link_threads = mach ; then
13594 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
13596 elif test $ol_with_threads = found ; then
13597 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
13602 case $ol_with_threads in auto | yes | pth)
13604 for ac_header in pth.h
13606 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
13607 if test "x$ac_cv_header_pth_h" = xyes; then :
13608 cat >>confdefs.h <<_ACEOF
13609 #define HAVE_PTH_H 1
13617 if test $ac_cv_header_pth_h = yes ; then
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
13619 $as_echo_n "checking for pth_version in -lpth... " >&6; }
13620 if ${ac_cv_lib_pth_pth_version+:} false; then :
13621 $as_echo_n "(cached) " >&6
13623 ac_check_lib_save_LIBS=$LIBS
13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13628 /* Override any GCC internal prototype to avoid an error.
13629 Use char because int might match the return type of a GCC
13630 builtin and then its argument prototype would still apply. */
13634 char pth_version ();
13638 return pth_version ();
13643 if ac_fn_c_try_link "$LINENO"; then :
13644 ac_cv_lib_pth_pth_version=yes
13646 ac_cv_lib_pth_pth_version=no
13648 rm -f core conftest.err conftest.$ac_objext \
13649 conftest$ac_exeext conftest.$ac_ext
13650 LIBS=$ac_check_lib_save_LIBS
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
13653 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
13654 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
13661 if test $have_pth = yes ; then
13663 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
13665 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
13666 ol_link_threads=pth
13667 ol_with_threads=found
13669 if test x$ol_with_yielding_select = xauto ; then
13670 ol_with_yielding_select=yes
13677 case $ol_with_threads in auto | yes | lwp)
13679 for ac_header in thread.h synch.h
13681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13682 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13683 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13684 cat >>confdefs.h <<_ACEOF
13685 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13692 if test $ac_cv_header_thread_h = yes &&
13693 test $ac_cv_header_synch_h = yes ; then
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
13695 $as_echo_n "checking for thr_create in -lthread... " >&6; }
13696 if ${ac_cv_lib_thread_thr_create+:} false; then :
13697 $as_echo_n "(cached) " >&6
13699 ac_check_lib_save_LIBS=$LIBS
13700 LIBS="-lthread $LIBS"
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13704 /* Override any GCC internal prototype to avoid an error.
13705 Use char because int might match the return type of a GCC
13706 builtin and then its argument prototype would still apply. */
13710 char thr_create ();
13714 return thr_create ();
13719 if ac_fn_c_try_link "$LINENO"; then :
13720 ac_cv_lib_thread_thr_create=yes
13722 ac_cv_lib_thread_thr_create=no
13724 rm -f core conftest.err conftest.$ac_objext \
13725 conftest$ac_exeext conftest.$ac_ext
13726 LIBS=$ac_check_lib_save_LIBS
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
13729 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
13730 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
13737 if test $have_thr = yes ; then
13739 $as_echo "#define HAVE_THR 1" >>confdefs.h
13741 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
13742 ol_link_threads=thr
13744 if test x$ol_with_yielding_select = xauto ; then
13745 ol_with_yielding_select=yes
13749 thr_setconcurrency \
13750 thr_getconcurrency \
13753 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13754 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13755 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13756 cat >>confdefs.h <<_ACEOF
13757 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13766 for ac_header in lwp/lwp.h
13768 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
13769 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
13770 cat >>confdefs.h <<_ACEOF
13771 #define HAVE_LWP_LWP_H 1
13778 if test $ac_cv_header_lwp_lwp_h = yes ; then
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
13780 $as_echo_n "checking for lwp_create in -llwp... " >&6; }
13781 if ${ac_cv_lib_lwp_lwp_create+:} false; then :
13782 $as_echo_n "(cached) " >&6
13784 ac_check_lib_save_LIBS=$LIBS
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13789 /* Override any GCC internal prototype to avoid an error.
13790 Use char because int might match the return type of a GCC
13791 builtin and then its argument prototype would still apply. */
13795 char lwp_create ();
13799 return lwp_create ();
13804 if ac_fn_c_try_link "$LINENO"; then :
13805 ac_cv_lib_lwp_lwp_create=yes
13807 ac_cv_lib_lwp_lwp_create=no
13809 rm -f core conftest.err conftest.$ac_objext \
13810 conftest$ac_exeext conftest.$ac_ext
13811 LIBS=$ac_check_lib_save_LIBS
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
13814 $as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
13815 if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
13822 if test $have_lwp = yes ; then
13824 $as_echo "#define HAVE_LWP 1" >>confdefs.h
13826 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
13827 ol_link_threads=lwp
13829 if test x$ol_with_yielding_select = xauto ; then
13830 ol_with_yielding_select=no
13837 if test $ol_with_yielding_select = yes ; then
13839 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
13843 if test $ol_with_threads = manual ; then
13844 ol_link_threads=yes
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
13847 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
13849 for ac_header in pthread.h sched.h
13851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13852 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13853 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13854 cat >>confdefs.h <<_ACEOF
13855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13862 for ac_func in sched_yield pthread_yield
13864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13865 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13866 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13867 cat >>confdefs.h <<_ACEOF
13868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
13876 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
13877 if ${ol_cv_header_linux_threads+:} false; then :
13878 $as_echo_n "(cached) " >&6
13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h. */
13882 #include <pthread.h>
13884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13885 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
13886 ol_cv_header_linux_threads=yes
13888 ol_cv_header_linux_threads=no
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
13895 $as_echo "$ol_cv_header_linux_threads" >&6; }
13896 if test $ol_cv_header_linux_threads = yes; then
13898 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
13903 for ac_header in mach/cthreads.h
13905 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
13906 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
13907 cat >>confdefs.h <<_ACEOF
13908 #define HAVE_MACH_CTHREADS_H 1
13915 for ac_header in lwp/lwp.h
13917 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
13918 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
13919 cat >>confdefs.h <<_ACEOF
13920 #define HAVE_LWP_LWP_H 1
13927 for ac_header in thread.h synch.h
13929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13930 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13931 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13932 cat >>confdefs.h <<_ACEOF
13933 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13942 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
13944 $as_echo "#define REENTRANT 1" >>confdefs.h
13947 $as_echo "#define _REENTRANT 1" >>confdefs.h
13950 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
13953 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
13956 $as_echo "#define THREADSAFE 1" >>confdefs.h
13959 $as_echo "#define _THREADSAFE 1" >>confdefs.h
13962 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
13966 $as_echo_n "checking for thread specific errno... " >&6; }
13967 if ${ol_cv_errno_thread_specific+:} false; then :
13968 $as_echo_n "(cached) " >&6
13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13972 /* end confdefs.h. */
13982 if ac_fn_c_try_link "$LINENO"; then :
13983 ol_cv_errno_thread_specific=yes
13985 ol_cv_errno_thread_specific=no
13987 rm -f core conftest.err conftest.$ac_objext \
13988 conftest$ac_exeext conftest.$ac_ext
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
13992 $as_echo "$ol_cv_errno_thread_specific" >&6; }
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
13995 $as_echo_n "checking for thread specific h_errno... " >&6; }
13996 if ${ol_cv_h_errno_thread_specific+:} false; then :
13997 $as_echo_n "(cached) " >&6
14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h. */
14011 if ac_fn_c_try_link "$LINENO"; then :
14012 ol_cv_h_errno_thread_specific=yes
14014 ol_cv_h_errno_thread_specific=no
14016 rm -f core conftest.err conftest.$ac_objext \
14017 conftest$ac_exeext conftest.$ac_ext
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
14021 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
14023 if test $ol_cv_errno_thread_specific != yes ||
14024 test $ol_cv_h_errno_thread_specific != yes ; then
14025 LIBS="$LTHREAD_LIBS $LIBS"
14031 if test $ol_link_threads = no ; then
14032 if test $ol_with_threads = yes ; then
14033 as_fn_error $? "no suitable thread support" "$LINENO" 5
14036 if test $ol_with_threads = auto ; then
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
14038 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
14043 $as_echo "#define NO_THREADS 1" >>confdefs.h
14051 if test $ol_link_threads != no ; then
14053 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
14057 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14058 case "$ol_with_threads" in
14064 ol_found_pthreads=yes
14069 ac_cpp='$CPP $CPPFLAGS'
14070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14079 case "$ol_found_pthreads" in
14082 LIBS="$LTHREAD_LIBS $LIBS"
14083 saved_CFLAGS="$CFLAGS"
14084 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
14085 for ac_func in sem_timedwait
14087 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14088 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
14089 cat >>confdefs.h <<_ACEOF
14090 #define HAVE_SEM_TIMEDWAIT 1
14097 { saved_LIBS=; unset saved_LIBS;}
14098 CFLAGS="$saved_CFLAGS"
14099 { saved_CFLAGS=; unset saved_CFLAGS;}
14100 case "$ac_cv_func_sem_timedwait" in
14102 PTHREAD_LIBS="$LTHREAD_LIBS"
14108 case "$have_pthreads" in
14110 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
14112 LIBS="$LTHREAD_LIBS $LIBS"
14113 saved_CFLAGS="$CFLAGS"
14114 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
14115 # The cast to long int works around a bug in the HP C Compiler
14116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14118 # This bug is HP SR number 8606223364.
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14120 $as_echo_n "checking size of pthread_t... " >&6; }
14121 if ${ac_cv_sizeof_pthread_t+:} false; then :
14122 $as_echo_n "(cached) " >&6
14124 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
14125 $ac_includes_default
14126 #include <pthread.h>
14132 if test "$ac_cv_type_pthread_t" = yes; then
14133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14135 as_fn_error 77 "cannot compute sizeof (pthread_t)
14136 See \`config.log' for more details" "$LINENO" 5; }
14138 ac_cv_sizeof_pthread_t=0
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14144 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14148 cat >>confdefs.h <<_ACEOF
14149 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14153 LIBISC_PTHREADS_NOTHREADS=pthreads
14155 $as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
14158 # We'd like to use sigwait() too
14160 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
14161 if test "x$ac_cv_func_sigwait" = xyes; then :
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
14165 $as_echo_n "checking for sigwait in -lc... " >&6; }
14166 if ${ac_cv_lib_c_sigwait+:} false; then :
14167 $as_echo_n "(cached) " >&6
14169 ac_check_lib_save_LIBS=$LIBS
14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172 /* end confdefs.h. */
14174 /* Override any GCC internal prototype to avoid an error.
14175 Use char because int might match the return type of a GCC
14176 builtin and then its argument prototype would still apply. */
14189 if ac_fn_c_try_link "$LINENO"; then :
14190 ac_cv_lib_c_sigwait=yes
14192 ac_cv_lib_c_sigwait=no
14194 rm -f core conftest.err conftest.$ac_objext \
14195 conftest$ac_exeext conftest.$ac_ext
14196 LIBS=$ac_check_lib_save_LIBS
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
14199 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
14200 if test "x$ac_cv_lib_c_sigwait" = xyes; then :
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
14204 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
14205 if ${ac_cv_lib_pthread_sigwait+:} false; then :
14206 $as_echo_n "(cached) " >&6
14208 ac_check_lib_save_LIBS=$LIBS
14209 LIBS="-lpthread $LIBS"
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14213 /* Override any GCC internal prototype to avoid an error.
14214 Use char because int might match the return type of a GCC
14215 builtin and then its argument prototype would still apply. */
14228 if ac_fn_c_try_link "$LINENO"; then :
14229 ac_cv_lib_pthread_sigwait=yes
14231 ac_cv_lib_pthread_sigwait=no
14233 rm -f core conftest.err conftest.$ac_objext \
14234 conftest$ac_exeext conftest.$ac_ext
14235 LIBS=$ac_check_lib_save_LIBS
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
14238 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
14239 if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
14243 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
14244 if ${ac_cv_lib_pthread__Psigwait+:} false; then :
14245 $as_echo_n "(cached) " >&6
14247 ac_check_lib_save_LIBS=$LIBS
14248 LIBS="-lpthread $LIBS"
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14252 /* Override any GCC internal prototype to avoid an error.
14253 Use char because int might match the return type of a GCC
14254 builtin and then its argument prototype would still apply. */
14262 return _Psigwait ();
14267 if ac_fn_c_try_link "$LINENO"; then :
14268 ac_cv_lib_pthread__Psigwait=yes
14270 ac_cv_lib_pthread__Psigwait=no
14272 rm -f core conftest.err conftest.$ac_objext \
14273 conftest$ac_exeext conftest.$ac_ext
14274 LIBS=$ac_check_lib_save_LIBS
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
14277 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
14278 if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
14294 case "$host:$have_sigwait" in
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
14297 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
14298 if ${ac_cv_lib_c_r_sigwait+:} false; then :
14299 $as_echo_n "(cached) " >&6
14301 ac_check_lib_save_LIBS=$LIBS
14303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14304 /* end confdefs.h. */
14306 /* Override any GCC internal prototype to avoid an error.
14307 Use char because int might match the return type of a GCC
14308 builtin and then its argument prototype would still apply. */
14321 if ac_fn_c_try_link "$LINENO"; then :
14322 ac_cv_lib_c_r_sigwait=yes
14324 ac_cv_lib_c_r_sigwait=no
14326 rm -f core conftest.err conftest.$ac_objext \
14327 conftest$ac_exeext conftest.$ac_ext
14328 LIBS=$ac_check_lib_save_LIBS
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
14331 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
14332 if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
14338 case "$have_sigwait" in
14340 ac_cv_func_sigwait=yes
14342 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
14346 for ac_func in pthread_attr_getstacksize
14348 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
14349 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
14350 cat >>confdefs.h <<_ACEOF
14351 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
14357 for ac_func in pthread_attr_setstacksize sysconf
14359 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14360 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14361 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14362 cat >>confdefs.h <<_ACEOF
14363 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14371 *-freebsd5.[012]|*-freebsd5.[012].*)
14373 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
14375 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
14378 *-bsdi3.*|*-bsdi4.0*)
14380 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
14385 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
14389 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
14391 for ac_func in pthread_setconcurrency
14393 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
14394 if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
14395 cat >>confdefs.h <<_ACEOF
14396 #define HAVE_PTHREAD_SETCONCURRENCY 1
14402 case "$ac_cv_func_pthread_setconcurrency" in
14405 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
14409 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
14411 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
14415 hack_shutup_pthreadonceinit=no
14418 hack_shutup_pthreadonceinit=yes
14421 hack_shutup_pthreadonceinit=yes
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
14425 $as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
14426 if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
14427 $as_echo_n "(cached) " >&6
14429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h. */
14432 #include <pthread.h>
14438 static pthread_once_t once_test =
14446 if ac_fn_c_try_compile "$LINENO"; then :
14447 ntp_cv_braces_around_pthread_once_init=no
14449 ntp_cv_braces_around_pthread_once_init=yes
14452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
14456 $as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
14457 case "$ntp_cv_braces_around_pthread_once_init" in
14459 hack_shutup_pthreadonceinit=yes
14463 case "$hack_shutup_pthreadonceinit" in
14466 $as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
14470 { saved_LIBS=; unset saved_LIBS;}
14471 CFLAGS="$saved_CFLAGS"
14472 { saved_CFLAGS=; unset saved_CFLAGS;}
14475 LIBISC_PTHREADS_NOTHREADS=nothreads
14479 if test "$have_pthreads" != "no"; then
14493 case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
14496 $as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
14497 if ${ntp_cv_vsnprintf_percent_m+:} false; then :
14498 $as_echo_n "(cached) " >&6
14500 if test "$cross_compiling" = yes; then :
14501 ntp_cv_vsnprintf_percent_m=no
14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505 /* end confdefs.h. */
14507 #include <stdarg.h>
14510 #include <string.h>
14512 int call_vsnprintf(
14519 int call_vsnprintf(
14530 rc = vsnprintf(dst, sz, fmt, ap);
14544 strcpy(sbuf, strerror(ENOENT));
14546 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
14548 return strcmp(sbuf, pbuf);
14555 if ac_fn_c_try_run "$LINENO"; then :
14556 ntp_cv_vsnprintf_percent_m=yes
14558 ntp_cv_vsnprintf_percent_m=no
14560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14561 conftest.$ac_objext conftest.beam conftest.$ac_ext
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
14567 $as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
14568 case "$ntp_cv_vsnprintf_percent_m" in
14571 $as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
14576 for ac_header in sys/clockctl.h
14578 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
14579 if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
14580 cat >>confdefs.h <<_ACEOF
14581 #define HAVE_SYS_CLOCKCTL_H 1
14589 # Check whether --enable-clockctl was given.
14590 if test "${enable_clockctl+set}" = set; then :
14591 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
14593 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
14599 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
14601 $as_echo "$ntp_use_dev_clockctl" >&6; }
14604 for ac_header in sys/capability.h sys/prctl.h
14606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14607 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14608 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14609 cat >>confdefs.h <<_ACEOF
14610 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
14619 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
14621 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
14625 ntp_have_linuxcaps=no
14627 *) ntp_have_linuxcaps=yes
14632 ntp_have_linuxcaps=no
14636 # Check whether --enable-linuxcaps was given.
14637 if test "${enable_linuxcaps+set}" = set; then :
14638 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
14644 $as_echo "$ntp_have_linuxcaps" >&6; }
14646 case "$ntp_have_linuxcaps" in
14649 $as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
14656 for ac_header in priv.h
14658 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
14659 if test "x$ac_cv_header_priv_h" = xyes; then :
14660 cat >>confdefs.h <<_ACEOF
14661 #define HAVE_PRIV_H 1
14668 case "$ac_cv_header_priv_h" in
14672 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
14673 if test "x$ac_cv_func_setppriv" = xyes; then :
14674 ntp_have_solarisprivs=yes
14676 ntp_have_solarisprivs=no
14684 # Check whether --enable-solarisprivs was given.
14685 if test "${enable_solarisprivs+set}" = set; then :
14686 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
14692 $as_echo_n "checking if we have solaris privileges... " >&6; }
14694 case "$ntp_have_solarisprivs" in
14697 $as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
14702 $as_echo "$ntp_have_solarisprivs" >&6; }
14704 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs" in
14707 $as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
14714 $as_echo_n "checking for library containing res_9_init... " >&6; }
14715 if ${ac_cv_search_res_9_init+:} false; then :
14716 $as_echo_n "(cached) " >&6
14718 ac_func_search_save_LIBS=$LIBS
14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14722 /* Override any GCC internal prototype to avoid an error.
14723 Use char because int might match the return type of a GCC
14724 builtin and then its argument prototype would still apply. */
14728 char res_9_init ();
14732 return res_9_init ();
14737 for ac_lib in '' resolv; do
14738 if test -z "$ac_lib"; then
14739 ac_res="none required"
14742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14744 if ac_fn_c_try_link "$LINENO"; then :
14745 ac_cv_search_res_9_init=$ac_res
14747 rm -f core conftest.err conftest.$ac_objext \
14749 if ${ac_cv_search_res_9_init+:} false; then :
14753 if ${ac_cv_search_res_9_init+:} false; then :
14756 ac_cv_search_res_9_init=no
14758 rm conftest.$ac_ext
14759 LIBS=$ac_func_search_save_LIBS
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
14762 $as_echo "$ac_cv_search_res_9_init" >&6; }
14763 ac_res=$ac_cv_search_res_9_init
14764 if test "$ac_res" != no; then :
14765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14770 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
14771 $as_echo_n "checking for library containing res_init... " >&6; }
14772 if ${ac_cv_search_res_init+:} false; then :
14773 $as_echo_n "(cached) " >&6
14775 ac_func_search_save_LIBS=$LIBS
14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777 /* end confdefs.h. */
14779 /* Override any GCC internal prototype to avoid an error.
14780 Use char because int might match the return type of a GCC
14781 builtin and then its argument prototype would still apply. */
14789 return res_init ();
14794 for ac_lib in '' resolv; do
14795 if test -z "$ac_lib"; then
14796 ac_res="none required"
14799 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14801 if ac_fn_c_try_link "$LINENO"; then :
14802 ac_cv_search_res_init=$ac_res
14804 rm -f core conftest.err conftest.$ac_objext \
14806 if ${ac_cv_search_res_init+:} false; then :
14810 if ${ac_cv_search_res_init+:} false; then :
14813 ac_cv_search_res_init=no
14815 rm conftest.$ac_ext
14816 LIBS=$ac_func_search_save_LIBS
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
14819 $as_echo "$ac_cv_search_res_init" >&6; }
14820 ac_res=$ac_cv_search_res_init
14821 if test "$ac_res" != no; then :
14822 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14828 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
14830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14831 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
14832 # include <sys/types.h>
14834 #ifdef HAVE_NETINET_IN_H
14835 # include <netinet/in.h> /* inet_ functions / structs */
14837 #ifdef HAVE_ARPA_NAMESER_H
14838 # include <arpa/nameser.h> /* DNS HEADER struct */
14840 #ifdef HAVE_NETDB_H
14841 # include <netdb.h>
14844 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14845 cat >>confdefs.h <<_ACEOF
14846 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14854 #HMS: Why do we do this check so "early"?
14855 for ac_func in res_init
14857 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
14858 if test "x$ac_cv_func_res_init" = xyes; then :
14859 cat >>confdefs.h <<_ACEOF
14860 #define HAVE_RES_INIT 1
14864 for ac_func in __res_init
14866 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
14867 if test "x$ac_cv_func___res_init" = xyes; then :
14868 cat >>confdefs.h <<_ACEOF
14869 #define HAVE___RES_INIT 1
14879 # We also need -lsocket, but we have tested for that already.
14880 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
14881 if test "x$ac_cv_func_inet_ntop" = xyes; then :
14885 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
14889 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
14890 if test "x$ac_cv_func_inet_pton" = xyes; then :
14894 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
14899 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14900 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14902 cat >>confdefs.h <<_ACEOF
14903 #define HAVE_UINTPTR_T 1
14908 ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
14909 if test "x$ac_cv_type_int32" = xyes; then :
14911 cat >>confdefs.h <<_ACEOF
14912 #define HAVE_INT32 1
14917 ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
14918 if test "x$ac_cv_type_u_int32" = xyes; then :
14920 cat >>confdefs.h <<_ACEOF
14921 #define HAVE_U_INT32 1
14930 case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
14933 $as_echo_n "checking for int32 with DNS headers included... " >&6; }
14934 if ${ntp_cv_type_int32_with_dns+:} false; then :
14935 $as_echo_n "(cached) " >&6
14937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938 /* end confdefs.h. */
14940 #ifdef HAVE_ARPA_NAMESER_H
14941 # include <arpa/nameser.h>
14943 #include <resolv.h>
14949 size_t cb = sizeof(int32);
14956 if ac_fn_c_try_compile "$LINENO"; then :
14957 ntp_cv_type_int32_with_dns=yes
14959 ntp_cv_type_int32_with_dns=no
14962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
14966 $as_echo "$ntp_cv_type_int32_with_dns" >&6; }
14967 case "$ntp_cv_type_int32_with_dns" in
14970 $as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
14975 case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
14978 $as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
14979 if ${ntp_cv_type_u_int32_with_dns+:} false; then :
14980 $as_echo_n "(cached) " >&6
14982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14983 /* end confdefs.h. */
14985 #ifdef HAVE_ARPA_NAMESER_H
14986 # include <arpa/nameser.h>
14988 #include <resolv.h>
14994 size_t cb = sizeof(u_int32);
15001 if ac_fn_c_try_compile "$LINENO"; then :
15002 ntp_cv_type_u_int32_with_dns=yes
15004 ntp_cv_type_u_int32_with_dns=no
15007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
15011 $as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
15012 case "$ntp_cv_type_u_int32_with_dns" in
15015 $as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
15020 for ac_header in sys/timepps.h
15022 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
15023 #ifdef HAVE_SYS_TIME_H
15024 # include <sys/time.h>
15026 #ifdef HAVE_ERRNO_H
15027 # include <errno.h>
15032 if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
15033 cat >>confdefs.h <<_ACEOF
15034 #define HAVE_SYS_TIMEPPS_H 1
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
15043 $as_echo_n "checking for struct timespec... " >&6; }
15044 if ${ntp_cv_struct_timespec+:} false; then :
15045 $as_echo_n "(cached) " >&6
15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15048 /* end confdefs.h. */
15050 #include <sys/time.h>
15051 /* Under SunOS, timespec is in sys/timepps.h,
15052 which needs errno.h and FRAC */
15053 #ifdef HAVE_ERRNO_H
15054 # include <errno.h>
15056 #ifdef HAVE_SYS_TIMEPPS_H
15057 # define FRAC 4294967296
15058 # include <sys/timepps.h>
15072 if ac_fn_c_try_compile "$LINENO"; then :
15073 ntp_cv_struct_timespec=yes
15075 ntp_cv_struct_timespec=no
15078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
15082 $as_echo "$ntp_cv_struct_timespec" >&6; }
15083 case "$ntp_cv_struct_timespec" in
15086 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
15091 $as_echo_n "checking for struct ntptimeval... " >&6; }
15092 if ${ntp_cv_struct_ntptimeval+:} false; then :
15093 $as_echo_n "(cached) " >&6
15095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15096 /* end confdefs.h. */
15098 #include <sys/time.h>
15099 #include <sys/timex.h>
15105 struct ntptimeval n;
15112 if ac_fn_c_try_compile "$LINENO"; then :
15113 ntp_cv_struct_ntptimeval=yes
15115 ntp_cv_struct_ntptimeval=no
15118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
15122 $as_echo "$ntp_cv_struct_ntptimeval" >&6; }
15123 case "$ntp_cv_struct_ntptimeval" in
15126 $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
15130 for ac_header in md5.h
15132 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
15133 #ifdef HAVE_SYS_TYPES_H
15134 # include <sys/types.h>
15139 if test "x$ac_cv_header_md5_h" = xyes; then :
15140 cat >>confdefs.h <<_ACEOF
15141 #define HAVE_MD5_H 1
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
15150 $as_echo_n "checking for library containing MD5Init... " >&6; }
15151 if ${ac_cv_search_MD5Init+:} false; then :
15152 $as_echo_n "(cached) " >&6
15154 ac_func_search_save_LIBS=$LIBS
15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h. */
15158 /* Override any GCC internal prototype to avoid an error.
15159 Use char because int might match the return type of a GCC
15160 builtin and then its argument prototype would still apply. */
15173 for ac_lib in '' md5 md; do
15174 if test -z "$ac_lib"; then
15175 ac_res="none required"
15178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15180 if ac_fn_c_try_link "$LINENO"; then :
15181 ac_cv_search_MD5Init=$ac_res
15183 rm -f core conftest.err conftest.$ac_objext \
15185 if ${ac_cv_search_MD5Init+:} false; then :
15189 if ${ac_cv_search_MD5Init+:} false; then :
15192 ac_cv_search_MD5Init=no
15194 rm conftest.$ac_ext
15195 LIBS=$ac_func_search_save_LIBS
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
15198 $as_echo "$ac_cv_search_MD5Init" >&6; }
15199 ac_res=$ac_cv_search_MD5Init
15200 if test "$ac_res" != no; then :
15201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15205 for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
15207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15208 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15209 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15210 cat >>confdefs.h <<_ACEOF
15211 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
15219 $as_echo_n "checking for SIGIO... " >&6; }
15220 if ${ntp_cv_hdr_def_sigio+:} false; then :
15221 $as_echo_n "(cached) " >&6
15223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15224 /* end confdefs.h. */
15226 #include <signal.h>
15233 if ac_fn_c_try_cpp "$LINENO"; then :
15234 ntp_cv_hdr_def_sigio=yes
15236 ntp_cv_hdr_def_sigio=no
15239 rm -f conftest.err conftest.i conftest.$ac_ext
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
15243 $as_echo "$ntp_cv_hdr_def_sigio" >&6; }
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
15246 $as_echo_n "checking if we want to use SIGIO... " >&6; }
15248 case "$ntp_cv_hdr_def_sigio" in
15252 alpha*-dec-osf4*|alpha*-dec-osf5*)
15297 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15301 $as_echo "$ans" >&6; }
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
15304 $as_echo_n "checking for SIGPOLL... " >&6; }
15305 if ${ntp_cv_hdr_def_sigpoll+:} false; then :
15306 $as_echo_n "(cached) " >&6
15308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15309 /* end confdefs.h. */
15311 #include <signal.h>
15318 if ac_fn_c_try_cpp "$LINENO"; then :
15319 ntp_cv_hdr_def_sigpoll=yes
15321 ntp_cv_hdr_def_sigpoll=no
15324 rm -f conftest.err conftest.i conftest.$ac_ext
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
15328 $as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
15331 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
15333 case "$ntp_cv_hdr_def_sigpoll" in
15352 # XXX Only verified thru AIX6
15390 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15394 $as_echo "$ans" >&6; }
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
15397 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
15399 case "$ntp_cv_hdr_def_sigpoll" in
15418 # XXX Only verified thru AIX6
15453 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15457 $as_echo "$ans" >&6; }
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
15460 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
15461 if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
15462 $as_echo_n "(cached) " >&6
15464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15465 /* end confdefs.h. */
15467 #include <sys/time.h>
15473 gettimeofday(0, 0);
15474 settimeofday(0, 0);
15481 if ac_fn_c_try_compile "$LINENO"; then :
15482 ntp_cv_func_Xettimeofday_nargs=2
15484 ntp_cv_func_Xettimeofday_nargs=1
15487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
15491 $as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
15492 case "$ntp_cv_func_Xettimeofday_nargs" in
15495 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
15499 for ac_func in settimeofday
15501 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
15502 if test "x$ac_cv_func_settimeofday" = xyes; then :
15503 cat >>confdefs.h <<_ACEOF
15504 #define HAVE_SETTIMEOFDAY 1
15510 *-*-mpeix*) ac_cv_func_settimeofday=yes
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
15518 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
15519 ntp_warning='GRONK'
15521 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
15524 ans='clock_settime()'
15527 ntp_warning='But clock_settime() would be better (if we had it)'
15528 ans='settimeofday()'
15531 ntp_warning='Which is the worst of the three'
15537 ntp_warning='Which leaves us with nothing to use!'
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15541 $as_echo "$ans" >&6; }
15542 case "$ntp_warning" in
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
15547 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
15552 LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
15554 { __LIBS=; unset __LIBS;}
15558 # Check whether --enable-shared was given.
15559 if test "${enable_shared+set}" = set; then :
15560 enableval=$enable_shared; p=${PACKAGE-default}
15562 yes) enable_shared=yes ;;
15563 no) enable_shared=no ;;
15566 # Look at the argument we got. We use all the common list separators.
15567 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15568 for pkg in $enableval; do
15570 if test "X$pkg" = "X$p"; then
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
15592 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
15597 macro_version='2.4.6'
15598 macro_revision='2.4.6'
15612 ltmain=$ac_aux_dir/ltmain.sh
15614 # Backslashify metacharacters that are still active within
15615 # double-quoted strings.
15616 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
15618 # Same as above, but do not quote variable references.
15619 double_quote_subst='s/\(["`\\]\)/\\\1/g'
15621 # Sed substitution to delay expansion of an escaped shell variable in a
15622 # double_quote_subst'ed string.
15623 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15625 # Sed substitution to delay expansion of an escaped single quote.
15626 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
15628 # Sed substitution to avoid accidental globbing in evaled expressions
15629 no_glob_subst='s/\*/\\\*/g'
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15632 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15633 if ${lt_cv_path_NM+:} false; then :
15634 $as_echo_n "(cached) " >&6
15636 if test -n "$NM"; then
15637 # Let the user override the test.
15640 lt_nm_to_check=${ac_tool_prefix}nm
15641 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15642 lt_nm_to_check="$lt_nm_to_check nm"
15644 for lt_tmp_nm in $lt_nm_to_check; do
15645 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15646 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
15648 test -z "$ac_dir" && ac_dir=.
15649 tmp_nm=$ac_dir/$lt_tmp_nm
15650 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
15651 # Check to see if the nm accepts a BSD-compat flag.
15652 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
15653 # nm: unknown option "B" ignored
15654 # Tru64's nm complains that /dev/null is an invalid object file
15655 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
15657 mingw*) lt_bad_file=conftest.nm/nofile ;;
15658 *) lt_bad_file=/dev/null ;;
15660 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
15661 *$lt_bad_file* | *'Invalid file or object type'*)
15662 lt_cv_path_NM="$tmp_nm -B"
15666 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
15668 lt_cv_path_NM="$tmp_nm -p"
15672 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15673 continue # so that we can try to find one that supports BSD flags
15682 : ${lt_cv_path_NM=no}
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15686 $as_echo "$lt_cv_path_NM" >&6; }
15687 if test no != "$lt_cv_path_NM"; then
15690 # Didn't find any BSD compatible name lister, look for dumpbin.
15691 if test -n "$DUMPBIN"; then :
15692 # Let the user override the test.
15694 if test -n "$ac_tool_prefix"; then
15695 for ac_prog in dumpbin "link -dump"
15697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15698 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15700 $as_echo_n "checking for $ac_word... " >&6; }
15701 if ${ac_cv_prog_DUMPBIN+:} false; then :
15702 $as_echo_n "(cached) " >&6
15704 if test -n "$DUMPBIN"; then
15705 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
15707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15708 for as_dir in $PATH
15711 test -z "$as_dir" && as_dir=.
15712 for ac_exec_ext in '' $ac_executable_extensions; do
15713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15714 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
15715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15724 DUMPBIN=$ac_cv_prog_DUMPBIN
15725 if test -n "$DUMPBIN"; then
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15727 $as_echo "$DUMPBIN" >&6; }
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15730 $as_echo "no" >&6; }
15734 test -n "$DUMPBIN" && break
15737 if test -z "$DUMPBIN"; then
15738 ac_ct_DUMPBIN=$DUMPBIN
15739 for ac_prog in dumpbin "link -dump"
15741 # Extract the first word of "$ac_prog", so it can be a program name with args.
15742 set dummy $ac_prog; ac_word=$2
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15744 $as_echo_n "checking for $ac_word... " >&6; }
15745 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
15746 $as_echo_n "(cached) " >&6
15748 if test -n "$ac_ct_DUMPBIN"; then
15749 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
15751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15752 for as_dir in $PATH
15755 test -z "$as_dir" && as_dir=.
15756 for ac_exec_ext in '' $ac_executable_extensions; do
15757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15758 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
15759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15768 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
15769 if test -n "$ac_ct_DUMPBIN"; then
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15771 $as_echo "$ac_ct_DUMPBIN" >&6; }
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15774 $as_echo "no" >&6; }
15778 test -n "$ac_ct_DUMPBIN" && break
15781 if test "x$ac_ct_DUMPBIN" = x; then
15784 case $cross_compiling:$ac_tool_warned in
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15788 ac_tool_warned=yes ;;
15790 DUMPBIN=$ac_ct_DUMPBIN
15794 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
15796 DUMPBIN="$DUMPBIN -symbols -headers"
15804 if test : != "$DUMPBIN"; then
15808 test -z "$NM" && NM=nm
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
15816 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
15817 if ${lt_cv_nm_interface+:} false; then :
15818 $as_echo_n "(cached) " >&6
15820 lt_cv_nm_interface="BSD nm"
15821 echo "int some_variable = 0;" > conftest.$ac_ext
15822 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15823 (eval "$ac_compile" 2>conftest.err)
15824 cat conftest.err >&5
15825 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15826 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
15827 cat conftest.err >&5
15828 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
15829 cat conftest.out >&5
15830 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
15831 lt_cv_nm_interface="MS dumpbin"
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
15836 $as_echo "$lt_cv_nm_interface" >&6; }
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15839 $as_echo_n "checking whether ln -s works... " >&6; }
15841 if test "$LN_S" = "ln -s"; then
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15843 $as_echo "yes" >&6; }
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15846 $as_echo "no, using $LN_S" >&6; }
15849 # find the maximum length of command line arguments
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
15851 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
15852 if ${lt_cv_sys_max_cmd_len+:} false; then :
15853 $as_echo_n "(cached) " >&6
15860 # On DJGPP, this test can blow up pretty badly due to problems in libc
15861 # (any single argument exceeding 2000 bytes causes a buffer overrun
15862 # during glob expansion). Even if it were fixed, the result of this
15863 # check would be larger than it should be.
15864 lt_cv_sys_max_cmd_len=12288; # 12K is about right
15868 # Under GNU Hurd, this test is not required because there is
15869 # no limit to the length of command line arguments.
15870 # Libtool will interpret -1 as no limit whatsoever
15871 lt_cv_sys_max_cmd_len=-1;
15874 cygwin* | mingw* | cegcc*)
15875 # On Win9x/ME, this test blows up -- it succeeds, but takes
15876 # about 5 minutes as the teststring grows exponentially.
15877 # Worse, since 9x/ME are not pre-emptively multitasking,
15878 # you end up with a "frozen" computer, even though with patience
15879 # the test eventually succeeds (with a max line length of 256k).
15880 # Instead, let's just punt: use the minimum linelength reported by
15881 # all of the supported platforms: 8192 (on NT/2K/XP).
15882 lt_cv_sys_max_cmd_len=8192;
15886 # On MiNT this can take a long time and run out of memory.
15887 lt_cv_sys_max_cmd_len=8192;
15891 # On AmigaOS with pdksh, this test takes hours, literally.
15892 # So we just punt and use a minimum line length of 8192.
15893 lt_cv_sys_max_cmd_len=8192;
15896 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
15897 # This has been around since 386BSD, at least. Likely further.
15898 if test -x /sbin/sysctl; then
15899 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
15900 elif test -x /usr/sbin/sysctl; then
15901 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
15903 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
15905 # And add a safety zone
15906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15911 # We know the value 262144 and hardcode it with a safety zone (like BSD)
15912 lt_cv_sys_max_cmd_len=196608
15916 # The test takes a long time on OS/2.
15917 lt_cv_sys_max_cmd_len=8192
15921 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15922 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15923 # nice to cause kernel panics so lets avoid the loop below.
15924 # First set a reasonable default.
15925 lt_cv_sys_max_cmd_len=16384
15927 if test -x /sbin/sysconfig; then
15928 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15929 *1*) lt_cv_sys_max_cmd_len=-1 ;;
15934 lt_cv_sys_max_cmd_len=102400
15936 sysv5* | sco5v6* | sysv4.2uw2*)
15937 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15938 if test -n "$kargmax"; then
15939 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
15941 lt_cv_sys_max_cmd_len=32768
15945 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
15946 if test -n "$lt_cv_sys_max_cmd_len" && \
15947 test undefined != "$lt_cv_sys_max_cmd_len"; then
15948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15951 # Make teststring a little bigger before we do anything with it.
15952 # a 1K string should be a reasonable start.
15953 for i in 1 2 3 4 5 6 7 8; do
15954 teststring=$teststring$teststring
15956 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15957 # If test is not a shell built-in, we'll probably end up computing a
15958 # maximum length that is only half of the actual maximum length, but
15960 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
15961 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
15962 test 17 != "$i" # 1/2 MB should be enough
15965 teststring=$teststring$teststring
15967 # Only check the string length outside the loop.
15968 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
15970 # Add a significant safety factor because C++ compilers can tack on
15971 # massive amounts of additional arguments before passing them to the
15972 # linker. It appears as though 1/2 is a usable value.
15973 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
15980 if test -n "$lt_cv_sys_max_cmd_len"; then
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
15982 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
15985 $as_echo "none" >&6; }
15987 max_cmd_len=$lt_cv_sys_max_cmd_len
15998 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16008 # test EBCDIC or ASCII
16009 case `echo X|tr X '\101'` in
16010 A) # ASCII based system
16011 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16012 lt_SP2NL='tr \040 \012'
16013 lt_NL2SP='tr \015\012 \040\040'
16015 *) # EBCDIC based system
16016 lt_SP2NL='tr \100 \n'
16017 lt_NL2SP='tr \r\n \100\100'
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
16030 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
16031 if ${lt_cv_to_host_file_cmd+:} false; then :
16032 $as_echo_n "(cached) " >&6
16037 *-*-mingw* ) # actually msys
16038 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
16041 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
16043 * ) # otherwise, assume *nix
16044 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
16050 *-*-mingw* ) # actually msys
16051 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
16054 lt_cv_to_host_file_cmd=func_convert_file_noop
16056 * ) # otherwise, assume *nix
16057 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
16061 * ) # unhandled hosts (and "normal" native builds)
16062 lt_cv_to_host_file_cmd=func_convert_file_noop
16068 to_host_file_cmd=$lt_cv_to_host_file_cmd
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
16070 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
16077 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
16078 if ${lt_cv_to_tool_file_cmd+:} false; then :
16079 $as_echo_n "(cached) " >&6
16081 #assume ordinary cross tools, or native build.
16082 lt_cv_to_tool_file_cmd=func_convert_file_noop
16086 *-*-mingw* ) # actually msys
16087 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
16095 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
16097 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
16104 $as_echo_n "checking for $LD option to reload object files... " >&6; }
16105 if ${lt_cv_ld_reload_flag+:} false; then :
16106 $as_echo_n "(cached) " >&6
16108 lt_cv_ld_reload_flag='-r'
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
16111 $as_echo "$lt_cv_ld_reload_flag" >&6; }
16112 reload_flag=$lt_cv_ld_reload_flag
16113 case $reload_flag in
16115 *) reload_flag=" $reload_flag" ;;
16117 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16119 cygwin* | mingw* | pw32* | cegcc*)
16120 if test yes != "$GCC"; then
16125 if test yes = "$GCC"; then
16126 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
16128 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16141 if test -n "$ac_tool_prefix"; then
16142 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16143 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16145 $as_echo_n "checking for $ac_word... " >&6; }
16146 if ${ac_cv_prog_OBJDUMP+:} false; then :
16147 $as_echo_n "(cached) " >&6
16149 if test -n "$OBJDUMP"; then
16150 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16153 for as_dir in $PATH
16156 test -z "$as_dir" && as_dir=.
16157 for ac_exec_ext in '' $ac_executable_extensions; do
16158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16159 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16169 OBJDUMP=$ac_cv_prog_OBJDUMP
16170 if test -n "$OBJDUMP"; then
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16172 $as_echo "$OBJDUMP" >&6; }
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16175 $as_echo "no" >&6; }
16180 if test -z "$ac_cv_prog_OBJDUMP"; then
16181 ac_ct_OBJDUMP=$OBJDUMP
16182 # Extract the first word of "objdump", so it can be a program name with args.
16183 set dummy objdump; ac_word=$2
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16185 $as_echo_n "checking for $ac_word... " >&6; }
16186 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16187 $as_echo_n "(cached) " >&6
16189 if test -n "$ac_ct_OBJDUMP"; then
16190 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16193 for as_dir in $PATH
16196 test -z "$as_dir" && as_dir=.
16197 for ac_exec_ext in '' $ac_executable_extensions; do
16198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16199 ac_cv_prog_ac_ct_OBJDUMP="objdump"
16200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16209 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16210 if test -n "$ac_ct_OBJDUMP"; then
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16212 $as_echo "$ac_ct_OBJDUMP" >&6; }
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16215 $as_echo "no" >&6; }
16218 if test "x$ac_ct_OBJDUMP" = x; then
16221 case $cross_compiling:$ac_tool_warned in
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16225 ac_tool_warned=yes ;;
16227 OBJDUMP=$ac_ct_OBJDUMP
16230 OBJDUMP="$ac_cv_prog_OBJDUMP"
16233 test -z "$OBJDUMP" && OBJDUMP=objdump
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
16244 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
16245 if ${lt_cv_deplibs_check_method+:} false; then :
16246 $as_echo_n "(cached) " >&6
16248 lt_cv_file_magic_cmd='$MAGIC_CMD'
16249 lt_cv_file_magic_test_file=
16250 lt_cv_deplibs_check_method='unknown'
16251 # Need to set the preceding variable on all platforms that support
16252 # interlibrary dependencies.
16253 # 'none' -- dependencies not supported.
16254 # 'unknown' -- same as none, but documents that we really don't know.
16255 # 'pass_all' -- all dependencies passed with no checks.
16256 # 'test_compile' -- check by making test program.
16257 # 'file_magic [[regex]]' -- check by looking for files in library path
16258 # that responds to the $file_magic_cmd with a given extended regex.
16259 # If you have 'file' or equivalent on your system and you're not sure
16260 # whether 'pass_all' will *always* work, you probably want this one.
16264 lt_cv_deplibs_check_method=pass_all
16268 lt_cv_deplibs_check_method=pass_all
16272 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16273 lt_cv_file_magic_cmd='/usr/bin/file -L'
16274 lt_cv_file_magic_test_file=/shlib/libc.so
16278 # func_win32_libid is a shell function defined in ltmain.sh
16279 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16280 lt_cv_file_magic_cmd='func_win32_libid'
16284 # Base MSYS/MinGW do not provide the 'file' command needed by
16285 # func_win32_libid shell function, so use a weaker test based on 'objdump',
16286 # unless we find 'file', for example because we are cross-compiling.
16287 if ( file / ) >/dev/null 2>&1; then
16288 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16289 lt_cv_file_magic_cmd='func_win32_libid'
16291 # Keep this pattern in sync with the one in func_win32_libid.
16292 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
16293 lt_cv_file_magic_cmd='$OBJDUMP -f'
16298 # use the weaker test based on 'objdump'. See mingw*.
16299 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16300 lt_cv_file_magic_cmd='$OBJDUMP -f'
16303 darwin* | rhapsody*)
16304 lt_cv_deplibs_check_method=pass_all
16307 freebsd* | dragonfly*)
16308 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16311 # Not sure whether the presence of OpenBSD here was a mistake.
16312 # Let's accept both of them until this is cleared up.
16313 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16314 lt_cv_file_magic_cmd=/usr/bin/file
16315 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16319 lt_cv_deplibs_check_method=pass_all
16324 lt_cv_deplibs_check_method=pass_all
16327 hpux10.20* | hpux11*)
16328 lt_cv_file_magic_cmd=/usr/bin/file
16331 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16332 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16335 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]'
16336 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16339 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
16340 lt_cv_file_magic_test_file=/usr/lib/libc.sl
16346 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
16347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
16350 irix5* | irix6* | nonstopux*)
16352 *-32|*"-32 ") libmagic=32-bit;;
16353 *-n32|*"-n32 ") libmagic=N32;;
16354 *-64|*"-64 ") libmagic=64-bit;;
16355 *) libmagic=never-match;;
16357 lt_cv_deplibs_check_method=pass_all
16360 # This must be glibc/ELF.
16361 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16362 lt_cv_deplibs_check_method=pass_all
16366 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16367 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
16374 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
16375 lt_cv_file_magic_cmd=/usr/bin/file
16376 lt_cv_file_magic_test_file=/usr/lib/libnls.so
16380 lt_cv_deplibs_check_method=pass_all
16383 openbsd* | bitrig*)
16384 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16385 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
16387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16391 osf3* | osf4* | osf5*)
16392 lt_cv_deplibs_check_method=pass_all
16396 lt_cv_deplibs_check_method=pass_all
16400 lt_cv_deplibs_check_method=pass_all
16403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16404 lt_cv_deplibs_check_method=pass_all
16408 case $host_vendor in
16410 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]'
16411 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
16414 lt_cv_deplibs_check_method=pass_all
16417 lt_cv_file_magic_cmd='/bin/file'
16418 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
16421 lt_cv_file_magic_cmd='/bin/file'
16422 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
16423 lt_cv_file_magic_test_file=/lib/libc.so
16426 lt_cv_deplibs_check_method=pass_all
16429 lt_cv_deplibs_check_method=pass_all
16435 lt_cv_deplibs_check_method=pass_all
16438 lt_cv_deplibs_check_method=pass_all
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
16444 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16448 if test "$build" = "$host"; then
16451 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
16452 want_nocaseglob=yes
16454 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
16460 file_magic_cmd=$lt_cv_file_magic_cmd
16461 deplibs_check_method=$lt_cv_deplibs_check_method
16462 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16485 if test -n "$ac_tool_prefix"; then
16486 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
16487 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16489 $as_echo_n "checking for $ac_word... " >&6; }
16490 if ${ac_cv_prog_DLLTOOL+:} false; then :
16491 $as_echo_n "(cached) " >&6
16493 if test -n "$DLLTOOL"; then
16494 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16497 for as_dir in $PATH
16500 test -z "$as_dir" && as_dir=.
16501 for ac_exec_ext in '' $ac_executable_extensions; do
16502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16503 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
16504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16513 DLLTOOL=$ac_cv_prog_DLLTOOL
16514 if test -n "$DLLTOOL"; then
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
16516 $as_echo "$DLLTOOL" >&6; }
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16519 $as_echo "no" >&6; }
16524 if test -z "$ac_cv_prog_DLLTOOL"; then
16525 ac_ct_DLLTOOL=$DLLTOOL
16526 # Extract the first word of "dlltool", so it can be a program name with args.
16527 set dummy dlltool; ac_word=$2
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16529 $as_echo_n "checking for $ac_word... " >&6; }
16530 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
16531 $as_echo_n "(cached) " >&6
16533 if test -n "$ac_ct_DLLTOOL"; then
16534 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16537 for as_dir in $PATH
16540 test -z "$as_dir" && as_dir=.
16541 for ac_exec_ext in '' $ac_executable_extensions; do
16542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16543 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16553 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16554 if test -n "$ac_ct_DLLTOOL"; then
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
16556 $as_echo "$ac_ct_DLLTOOL" >&6; }
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16559 $as_echo "no" >&6; }
16562 if test "x$ac_ct_DLLTOOL" = x; then
16565 case $cross_compiling:$ac_tool_warned in
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16569 ac_tool_warned=yes ;;
16571 DLLTOOL=$ac_ct_DLLTOOL
16574 DLLTOOL="$ac_cv_prog_DLLTOOL"
16577 test -z "$DLLTOOL" && DLLTOOL=dlltool
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
16589 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
16590 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
16591 $as_echo_n "(cached) " >&6
16593 lt_cv_sharedlib_from_linklib_cmd='unknown'
16596 cygwin* | mingw* | pw32* | cegcc*)
16597 # two different shell functions defined in ltmain.sh;
16598 # decide which one to use based on capabilities of $DLLTOOL
16599 case `$DLLTOOL --help 2>&1` in
16600 *--identify-strict*)
16601 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
16604 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
16609 # fallback: assume linklib IS sharedlib
16610 lt_cv_sharedlib_from_linklib_cmd=$ECHO
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
16616 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
16617 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
16618 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
16626 if test -n "$ac_tool_prefix"; then
16629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16632 $as_echo_n "checking for $ac_word... " >&6; }
16633 if ${ac_cv_prog_AR+:} false; then :
16634 $as_echo_n "(cached) " >&6
16636 if test -n "$AR"; then
16637 ac_cv_prog_AR="$AR" # Let the user override the test.
16639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16640 for as_dir in $PATH
16643 test -z "$as_dir" && as_dir=.
16644 for ac_exec_ext in '' $ac_executable_extensions; do
16645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16646 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
16647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16657 if test -n "$AR"; then
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16659 $as_echo "$AR" >&6; }
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16662 $as_echo "no" >&6; }
16666 test -n "$AR" && break
16669 if test -z "$AR"; then
16673 # Extract the first word of "$ac_prog", so it can be a program name with args.
16674 set dummy $ac_prog; ac_word=$2
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16676 $as_echo_n "checking for $ac_word... " >&6; }
16677 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16678 $as_echo_n "(cached) " >&6
16680 if test -n "$ac_ct_AR"; then
16681 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16684 for as_dir in $PATH
16687 test -z "$as_dir" && as_dir=.
16688 for ac_exec_ext in '' $ac_executable_extensions; do
16689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16690 ac_cv_prog_ac_ct_AR="$ac_prog"
16691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16700 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16701 if test -n "$ac_ct_AR"; then
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16703 $as_echo "$ac_ct_AR" >&6; }
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16706 $as_echo "no" >&6; }
16710 test -n "$ac_ct_AR" && break
16713 if test "x$ac_ct_AR" = x; then
16716 case $cross_compiling:$ac_tool_warned in
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16720 ac_tool_warned=yes ;;
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
16740 $as_echo_n "checking for archiver @FILE support... " >&6; }
16741 if ${lt_cv_ar_at_file+:} false; then :
16742 $as_echo_n "(cached) " >&6
16744 lt_cv_ar_at_file=no
16745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16746 /* end confdefs.h. */
16756 if ac_fn_c_try_compile "$LINENO"; then :
16757 echo conftest.$ac_objext > conftest.lst
16758 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
16759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16760 (eval $lt_ar_try) 2>&5
16762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16763 test $ac_status = 0; }
16764 if test 0 -eq "$ac_status"; then
16765 # Ensure the archiver fails upon bogus file names.
16766 rm -f conftest.$ac_objext libconftest.a
16767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16768 (eval $lt_ar_try) 2>&5
16770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16771 test $ac_status = 0; }
16772 if test 0 -ne "$ac_status"; then
16776 rm -f conftest.* libconftest.a
16779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
16783 $as_echo "$lt_cv_ar_at_file" >&6; }
16785 if test no = "$lt_cv_ar_at_file"; then
16786 archiver_list_spec=
16788 archiver_list_spec=$lt_cv_ar_at_file
16797 if test -n "$ac_tool_prefix"; then
16798 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16799 set dummy ${ac_tool_prefix}strip; ac_word=$2
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16801 $as_echo_n "checking for $ac_word... " >&6; }
16802 if ${ac_cv_prog_STRIP+:} false; then :
16803 $as_echo_n "(cached) " >&6
16805 if test -n "$STRIP"; then
16806 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16809 for as_dir in $PATH
16812 test -z "$as_dir" && as_dir=.
16813 for ac_exec_ext in '' $ac_executable_extensions; do
16814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16815 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16825 STRIP=$ac_cv_prog_STRIP
16826 if test -n "$STRIP"; then
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16828 $as_echo "$STRIP" >&6; }
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16831 $as_echo "no" >&6; }
16836 if test -z "$ac_cv_prog_STRIP"; then
16838 # Extract the first word of "strip", so it can be a program name with args.
16839 set dummy strip; ac_word=$2
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16841 $as_echo_n "checking for $ac_word... " >&6; }
16842 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16843 $as_echo_n "(cached) " >&6
16845 if test -n "$ac_ct_STRIP"; then
16846 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16849 for as_dir in $PATH
16852 test -z "$as_dir" && as_dir=.
16853 for ac_exec_ext in '' $ac_executable_extensions; do
16854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16855 ac_cv_prog_ac_ct_STRIP="strip"
16856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16865 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16866 if test -n "$ac_ct_STRIP"; then
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16868 $as_echo "$ac_ct_STRIP" >&6; }
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16871 $as_echo "no" >&6; }
16874 if test "x$ac_ct_STRIP" = x; then
16877 case $cross_compiling:$ac_tool_warned in
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16881 ac_tool_warned=yes ;;
16886 STRIP="$ac_cv_prog_STRIP"
16889 test -z "$STRIP" && STRIP=:
16896 if test -n "$ac_tool_prefix"; then
16897 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16898 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16900 $as_echo_n "checking for $ac_word... " >&6; }
16901 if ${ac_cv_prog_RANLIB+:} false; then :
16902 $as_echo_n "(cached) " >&6
16904 if test -n "$RANLIB"; then
16905 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16908 for as_dir in $PATH
16911 test -z "$as_dir" && as_dir=.
16912 for ac_exec_ext in '' $ac_executable_extensions; do
16913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16914 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16924 RANLIB=$ac_cv_prog_RANLIB
16925 if test -n "$RANLIB"; then
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16927 $as_echo "$RANLIB" >&6; }
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16930 $as_echo "no" >&6; }
16935 if test -z "$ac_cv_prog_RANLIB"; then
16936 ac_ct_RANLIB=$RANLIB
16937 # Extract the first word of "ranlib", so it can be a program name with args.
16938 set dummy ranlib; ac_word=$2
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16940 $as_echo_n "checking for $ac_word... " >&6; }
16941 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16942 $as_echo_n "(cached) " >&6
16944 if test -n "$ac_ct_RANLIB"; then
16945 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16948 for as_dir in $PATH
16951 test -z "$as_dir" && as_dir=.
16952 for ac_exec_ext in '' $ac_executable_extensions; do
16953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16954 ac_cv_prog_ac_ct_RANLIB="ranlib"
16955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16964 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16965 if test -n "$ac_ct_RANLIB"; then
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16967 $as_echo "$ac_ct_RANLIB" >&6; }
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16970 $as_echo "no" >&6; }
16973 if test "x$ac_ct_RANLIB" = x; then
16976 case $cross_compiling:$ac_tool_warned in
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16980 ac_tool_warned=yes ;;
16982 RANLIB=$ac_ct_RANLIB
16985 RANLIB="$ac_cv_prog_RANLIB"
16988 test -z "$RANLIB" && RANLIB=:
16995 # Determine commands to create old-style static archives.
16996 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16997 old_postinstall_cmds='chmod 644 $oldlib'
16998 old_postuninstall_cmds=
17000 if test -n "$RANLIB"; then
17002 bitrig* | openbsd*)
17003 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
17006 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
17009 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
17014 lock_old_archive_extraction=yes ;;
17016 lock_old_archive_extraction=no ;;
17057 # If no C compiler was specified, use CC.
17060 # If no C compiler flags were specified, use CFLAGS.
17061 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17063 # Allow CC to be a program name with arguments.
17067 # Check for command to grab the raw symbol name followed by C symbol from nm.
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
17069 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
17070 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
17071 $as_echo_n "(cached) " >&6
17074 # These are sane defaults that work on at least a few old systems.
17075 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
17077 # Character class describing NM global symbol codes.
17078 symcode='[BCDEGRST]'
17080 # Regexp to match symbols that can be accessed directly from C.
17081 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
17083 # Define system-specific variables.
17088 cygwin* | mingw* | pw32* | cegcc*)
17089 symcode='[ABCDGISTW]'
17092 if test ia64 = "$host_cpu"; then
17093 symcode='[ABCDEGRST]'
17096 irix* | nonstopux*)
17097 symcode='[BCDEGRST]'
17100 symcode='[BCDEGQRST]'
17111 sysv5* | sco5v6* | unixware* | OpenUNIX*)
17119 # If we're using GNU nm, then use its standard symbol codes.
17120 case `$NM -V 2>&1` in
17121 *GNU* | *'with BFD'*)
17122 symcode='[ABCDGIRSTW]' ;;
17125 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17126 # Gets list of data symbols to import.
17127 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
17128 # Adjust the below global symbol transforms to fixup imported variables.
17129 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
17130 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
17131 lt_c_name_lib_hook="\
17132 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
17133 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
17135 # Disable hooks by default.
17136 lt_cv_sys_global_symbol_to_import=
17139 lt_c_name_lib_hook=
17142 # Transform an extracted symbol line into a proper C declaration.
17143 # Some systems (esp. on ia64) link data and code symbols differently,
17144 # so use this general approach.
17145 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
17147 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
17148 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
17150 # Transform an extracted symbol line into symbol name and symbol address
17151 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
17153 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
17154 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
17156 # Transform an extracted symbol line into symbol name with lib prefix and
17158 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
17159 $lt_c_name_lib_hook\
17160 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
17161 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
17162 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
17164 # Handle CRLF in mingw tool chain
17168 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
17172 # Try without a prefix underscore, then with it.
17173 for ac_symprfx in "" "_"; do
17175 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
17176 symxfrm="\\1 $ac_symprfx\\2 \\2"
17178 # Write the raw and C identifiers.
17179 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17180 # Fake it for dumpbin and say T for any non-static function,
17181 # D for any global variable and I for any imported variable.
17182 # Also find C++ and __fastcall symbols from MSVC++,
17183 # which start with @ or ?.
17184 lt_cv_sys_global_symbol_pipe="$AWK '"\
17185 " {last_section=section; section=\$ 3};"\
17186 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
17187 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
17188 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
17189 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
17190 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
17191 " \$ 0!~/External *\|/{next};"\
17192 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
17193 " {if(hide[section]) next};"\
17194 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
17195 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
17196 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
17197 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
17198 " ' prfx=^$ac_symprfx"
17200 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
17202 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
17204 # Check to see that the pipe works correctly.
17208 cat > conftest.$ac_ext <<_LT_EOF
17213 void nm_test_func(void);
17214 void nm_test_func(void){}
17218 int main(){nm_test_var='a';nm_test_func();return(0);}
17221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17222 (eval $ac_compile) 2>&5
17224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17225 test $ac_status = 0; }; then
17226 # Now try to grab the symbols.
17228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
17229 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
17231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17232 test $ac_status = 0; } && test -s "$nlist"; then
17233 # Try sorting and uniquifying the output.
17234 if sort "$nlist" | uniq > "$nlist"T; then
17235 mv -f "$nlist"T "$nlist"
17240 # Make sure that we snagged all the symbols we need.
17241 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
17242 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
17243 cat <<_LT_EOF > conftest.$ac_ext
17244 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
17245 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
17246 /* DATA imports from DLLs on WIN32 can't be const, because runtime
17247 relocations are performed -- see ld's documentation on pseudo-relocs. */
17248 # define LT_DLSYM_CONST
17249 #elif defined __osf__
17250 /* This system does not cope well with relocations in const data. */
17251 # define LT_DLSYM_CONST
17253 # define LT_DLSYM_CONST const
17261 # Now generate the symbol file.
17262 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
17264 cat <<_LT_EOF >> conftest.$ac_ext
17266 /* The mapping between symbol names and symbols. */
17267 LT_DLSYM_CONST struct {
17271 lt__PROGRAM__LTX_preloaded_symbols[] =
17273 { "@PROGRAM@", (void *) 0 },
17275 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
17276 cat <<\_LT_EOF >> conftest.$ac_ext
17280 /* This works around a problem in FreeBSD linker */
17281 #ifdef FREEBSD_WORKAROUND
17282 static const void *lt_preloaded_setup() {
17283 return lt__PROGRAM__LTX_preloaded_symbols;
17291 # Now try linking the two files.
17292 mv conftest.$ac_objext conftstm.$ac_objext
17293 lt_globsym_save_LIBS=$LIBS
17294 lt_globsym_save_CFLAGS=$CFLAGS
17295 LIBS=conftstm.$ac_objext
17296 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
17297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17298 (eval $ac_link) 2>&5
17300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17301 test $ac_status = 0; } && test -s conftest$ac_exeext; then
17304 LIBS=$lt_globsym_save_LIBS
17305 CFLAGS=$lt_globsym_save_CFLAGS
17307 echo "cannot find nm_test_func in $nlist" >&5
17310 echo "cannot find nm_test_var in $nlist" >&5
17313 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
17316 echo "$progname: failed program was:" >&5
17317 cat conftest.$ac_ext >&5
17319 rm -rf conftest* conftst*
17321 # Do not use the global_symbol_pipe unless it works.
17322 if test yes = "$pipe_works"; then
17325 lt_cv_sys_global_symbol_pipe=
17331 if test -z "$lt_cv_sys_global_symbol_pipe"; then
17332 lt_cv_sys_global_symbol_to_cdecl=
17334 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
17336 $as_echo "failed" >&6; }
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17339 $as_echo "ok" >&6; }
17342 # Response file support.
17343 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17344 nm_file_list_spec='@'
17345 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
17346 nm_file_list_spec='@'
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17386 $as_echo_n "checking for sysroot... " >&6; }
17388 # Check whether --with-sysroot was given.
17389 if test "${with_sysroot+set}" = set; then :
17390 withval=$with_sysroot;
17397 case $with_sysroot in #(
17399 if test yes = "$GCC"; then
17400 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
17404 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
17410 $as_echo "$with_sysroot" >&6; }
17411 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
17416 $as_echo "${lt_sysroot:-no}" >&6; }
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
17423 $as_echo_n "checking for a working dd... " >&6; }
17424 if ${ac_cv_path_lt_DD+:} false; then :
17425 $as_echo_n "(cached) " >&6
17427 printf 0123456789abcdef0123456789abcdef >conftest.i
17428 cat conftest.i conftest.i >conftest2.i
17430 if test -z "$lt_DD"; then
17431 ac_path_lt_DD_found=false
17432 # Loop through the user's path and test for each of PROGNAME-LIST
17433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17434 for as_dir in $PATH
17437 test -z "$as_dir" && as_dir=.
17438 for ac_prog in dd; do
17439 for ac_exec_ext in '' $ac_executable_extensions; do
17440 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
17441 as_fn_executable_p "$ac_path_lt_DD" || continue
17442 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
17443 cmp -s conftest.i conftest.out \
17444 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
17446 $ac_path_lt_DD_found && break 3
17451 if test -z "$ac_cv_path_lt_DD"; then
17455 ac_cv_path_lt_DD=$lt_DD
17458 rm -f conftest.i conftest2.i conftest.out
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
17461 $as_echo "$ac_cv_path_lt_DD" >&6; }
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
17465 $as_echo_n "checking how to truncate binary pipes... " >&6; }
17466 if ${lt_cv_truncate_bin+:} false; then :
17467 $as_echo_n "(cached) " >&6
17469 printf 0123456789abcdef0123456789abcdef >conftest.i
17470 cat conftest.i conftest.i >conftest2.i
17471 lt_cv_truncate_bin=
17472 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
17473 cmp -s conftest.i conftest.out \
17474 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
17476 rm -f conftest.i conftest2.i conftest.out
17477 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
17480 $as_echo "$lt_cv_truncate_bin" >&6; }
17488 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17489 func_cc_basename ()
17491 for cc_temp in $*""; do
17493 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17494 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17499 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17502 # Check whether --enable-libtool-lock was given.
17503 if test "${enable_libtool_lock+set}" = set; then :
17504 enableval=$enable_libtool_lock;
17507 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
17509 # Some flags need to be propagated to the compiler or linker for good
17513 # Find out what ABI is being produced by ac_compile, and set mode
17514 # options accordingly.
17515 echo 'int i;' > conftest.$ac_ext
17516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17517 (eval $ac_compile) 2>&5
17519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17520 test $ac_status = 0; }; then
17521 case `/usr/bin/file conftest.$ac_objext` in
17533 # Find out what ABI is being produced by ac_compile, and set linker
17534 # options accordingly.
17535 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
17536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17537 (eval $ac_compile) 2>&5
17539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17540 test $ac_status = 0; }; then
17541 if test yes = "$lt_cv_prog_gnu_ld"; then
17542 case `/usr/bin/file conftest.$ac_objext` in
17544 LD="${LD-ld} -melf32bsmip"
17547 LD="${LD-ld} -melf32bmipn32"
17550 LD="${LD-ld} -melf64bmip"
17554 case `/usr/bin/file conftest.$ac_objext` in
17571 # Find out what ABI is being produced by ac_compile, and set linker
17572 # options accordingly.
17573 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
17574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17575 (eval $ac_compile) 2>&5
17577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17578 test $ac_status = 0; }; then
17580 case `/usr/bin/file conftest.$ac_objext` in
17588 case `/usr/bin/file conftest.$ac_objext` in
17590 emul="${emul}btsmip"
17593 emul="${emul}ltsmip"
17596 case `/usr/bin/file conftest.$ac_objext` in
17601 LD="${LD-ld} -m $emul"
17606 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
17607 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
17608 # Find out what ABI is being produced by ac_compile, and set linker
17609 # options accordingly. Note that the listed cases only cover the
17610 # situations where additional linker options are needed (such as when
17611 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
17612 # vice versa); the common cases where no linker options are needed do
17613 # not appear in the list.
17614 echo 'int i;' > conftest.$ac_ext
17615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17616 (eval $ac_compile) 2>&5
17618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17619 test $ac_status = 0; }; then
17620 case `/usr/bin/file conftest.o` in
17623 x86_64-*kfreebsd*-gnu)
17624 LD="${LD-ld} -m elf_i386_fbsd"
17627 case `/usr/bin/file conftest.o` in
17629 LD="${LD-ld} -m elf32_x86_64"
17632 LD="${LD-ld} -m elf_i386"
17636 powerpc64le-*linux*)
17637 LD="${LD-ld} -m elf32lppclinux"
17640 LD="${LD-ld} -m elf32ppclinux"
17643 LD="${LD-ld} -m elf_s390"
17646 LD="${LD-ld} -m elf32_sparc"
17652 x86_64-*kfreebsd*-gnu)
17653 LD="${LD-ld} -m elf_x86_64_fbsd"
17656 LD="${LD-ld} -m elf_x86_64"
17659 LD="${LD-ld} -m elf64lppc"
17662 LD="${LD-ld} -m elf64ppc"
17664 s390*-*linux*|s390*-*tpf*)
17665 LD="${LD-ld} -m elf64_s390"
17668 LD="${LD-ld} -m elf64_sparc"
17678 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
17679 SAVE_CFLAGS=$CFLAGS
17680 CFLAGS="$CFLAGS -belf"
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
17682 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
17683 if ${lt_cv_cc_needs_belf+:} false; then :
17684 $as_echo_n "(cached) " >&6
17687 ac_cpp='$CPP $CPPFLAGS'
17688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17693 /* end confdefs.h. */
17703 if ac_fn_c_try_link "$LINENO"; then :
17704 lt_cv_cc_needs_belf=yes
17706 lt_cv_cc_needs_belf=no
17708 rm -f core conftest.err conftest.$ac_objext \
17709 conftest$ac_exeext conftest.$ac_ext
17711 ac_cpp='$CPP $CPPFLAGS'
17712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
17718 $as_echo "$lt_cv_cc_needs_belf" >&6; }
17719 if test yes != "$lt_cv_cc_needs_belf"; then
17720 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17721 CFLAGS=$SAVE_CFLAGS
17725 # Find out what ABI is being produced by ac_compile, and set linker
17726 # options accordingly.
17727 echo 'int i;' > conftest.$ac_ext
17728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17729 (eval $ac_compile) 2>&5
17731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17732 test $ac_status = 0; }; then
17733 case `/usr/bin/file conftest.o` in
17735 case $lt_cv_prog_gnu_ld in
17738 i?86-*-solaris*|x86_64-*-solaris*)
17739 LD="${LD-ld} -m elf_x86_64"
17742 LD="${LD-ld} -m elf64_sparc"
17745 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
17746 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
17751 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17763 need_locks=$enable_libtool_lock
17765 if test -n "$ac_tool_prefix"; then
17766 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
17767 set dummy ${ac_tool_prefix}mt; ac_word=$2
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17769 $as_echo_n "checking for $ac_word... " >&6; }
17770 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
17771 $as_echo_n "(cached) " >&6
17773 if test -n "$MANIFEST_TOOL"; then
17774 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
17776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17777 for as_dir in $PATH
17780 test -z "$as_dir" && as_dir=.
17781 for ac_exec_ext in '' $ac_executable_extensions; do
17782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17783 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
17784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17793 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
17794 if test -n "$MANIFEST_TOOL"; then
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
17796 $as_echo "$MANIFEST_TOOL" >&6; }
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17799 $as_echo "no" >&6; }
17804 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
17805 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
17806 # Extract the first word of "mt", so it can be a program name with args.
17807 set dummy mt; ac_word=$2
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17809 $as_echo_n "checking for $ac_word... " >&6; }
17810 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
17811 $as_echo_n "(cached) " >&6
17813 if test -n "$ac_ct_MANIFEST_TOOL"; then
17814 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
17816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17817 for as_dir in $PATH
17820 test -z "$as_dir" && as_dir=.
17821 for ac_exec_ext in '' $ac_executable_extensions; do
17822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17823 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
17824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17833 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
17834 if test -n "$ac_ct_MANIFEST_TOOL"; then
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
17836 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17839 $as_echo "no" >&6; }
17842 if test "x$ac_ct_MANIFEST_TOOL" = x; then
17845 case $cross_compiling:$ac_tool_warned in
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17849 ac_tool_warned=yes ;;
17851 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
17854 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
17857 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
17859 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
17860 if ${lt_cv_path_mainfest_tool+:} false; then :
17861 $as_echo_n "(cached) " >&6
17863 lt_cv_path_mainfest_tool=no
17864 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
17865 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
17866 cat conftest.err >&5
17867 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
17868 lt_cv_path_mainfest_tool=yes
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
17873 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
17874 if test yes != "$lt_cv_path_mainfest_tool"; then
17884 rhapsody* | darwin*)
17885 if test -n "$ac_tool_prefix"; then
17886 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
17887 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17889 $as_echo_n "checking for $ac_word... " >&6; }
17890 if ${ac_cv_prog_DSYMUTIL+:} false; then :
17891 $as_echo_n "(cached) " >&6
17893 if test -n "$DSYMUTIL"; then
17894 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17897 for as_dir in $PATH
17900 test -z "$as_dir" && as_dir=.
17901 for ac_exec_ext in '' $ac_executable_extensions; do
17902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17903 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
17904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17913 DSYMUTIL=$ac_cv_prog_DSYMUTIL
17914 if test -n "$DSYMUTIL"; then
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
17916 $as_echo "$DSYMUTIL" >&6; }
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17919 $as_echo "no" >&6; }
17924 if test -z "$ac_cv_prog_DSYMUTIL"; then
17925 ac_ct_DSYMUTIL=$DSYMUTIL
17926 # Extract the first word of "dsymutil", so it can be a program name with args.
17927 set dummy dsymutil; ac_word=$2
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17929 $as_echo_n "checking for $ac_word... " >&6; }
17930 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17931 $as_echo_n "(cached) " >&6
17933 if test -n "$ac_ct_DSYMUTIL"; then
17934 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17937 for as_dir in $PATH
17940 test -z "$as_dir" && as_dir=.
17941 for ac_exec_ext in '' $ac_executable_extensions; do
17942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17943 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
17944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17953 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17954 if test -n "$ac_ct_DSYMUTIL"; then
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
17956 $as_echo "$ac_ct_DSYMUTIL" >&6; }
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17959 $as_echo "no" >&6; }
17962 if test "x$ac_ct_DSYMUTIL" = x; then
17965 case $cross_compiling:$ac_tool_warned in
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17969 ac_tool_warned=yes ;;
17971 DSYMUTIL=$ac_ct_DSYMUTIL
17974 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
17977 if test -n "$ac_tool_prefix"; then
17978 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
17979 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17981 $as_echo_n "checking for $ac_word... " >&6; }
17982 if ${ac_cv_prog_NMEDIT+:} false; then :
17983 $as_echo_n "(cached) " >&6
17985 if test -n "$NMEDIT"; then
17986 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17989 for as_dir in $PATH
17992 test -z "$as_dir" && as_dir=.
17993 for ac_exec_ext in '' $ac_executable_extensions; do
17994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17995 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
17996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18005 NMEDIT=$ac_cv_prog_NMEDIT
18006 if test -n "$NMEDIT"; then
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
18008 $as_echo "$NMEDIT" >&6; }
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18011 $as_echo "no" >&6; }
18016 if test -z "$ac_cv_prog_NMEDIT"; then
18017 ac_ct_NMEDIT=$NMEDIT
18018 # Extract the first word of "nmedit", so it can be a program name with args.
18019 set dummy nmedit; ac_word=$2
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18021 $as_echo_n "checking for $ac_word... " >&6; }
18022 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
18023 $as_echo_n "(cached) " >&6
18025 if test -n "$ac_ct_NMEDIT"; then
18026 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
18028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18029 for as_dir in $PATH
18032 test -z "$as_dir" && as_dir=.
18033 for ac_exec_ext in '' $ac_executable_extensions; do
18034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18035 ac_cv_prog_ac_ct_NMEDIT="nmedit"
18036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18045 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
18046 if test -n "$ac_ct_NMEDIT"; then
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
18048 $as_echo "$ac_ct_NMEDIT" >&6; }
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18051 $as_echo "no" >&6; }
18054 if test "x$ac_ct_NMEDIT" = x; then
18057 case $cross_compiling:$ac_tool_warned in
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18061 ac_tool_warned=yes ;;
18063 NMEDIT=$ac_ct_NMEDIT
18066 NMEDIT="$ac_cv_prog_NMEDIT"
18069 if test -n "$ac_tool_prefix"; then
18070 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
18071 set dummy ${ac_tool_prefix}lipo; ac_word=$2
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18073 $as_echo_n "checking for $ac_word... " >&6; }
18074 if ${ac_cv_prog_LIPO+:} false; then :
18075 $as_echo_n "(cached) " >&6
18077 if test -n "$LIPO"; then
18078 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
18080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18081 for as_dir in $PATH
18084 test -z "$as_dir" && as_dir=.
18085 for ac_exec_ext in '' $ac_executable_extensions; do
18086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18087 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
18088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18097 LIPO=$ac_cv_prog_LIPO
18098 if test -n "$LIPO"; then
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
18100 $as_echo "$LIPO" >&6; }
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18103 $as_echo "no" >&6; }
18108 if test -z "$ac_cv_prog_LIPO"; then
18110 # Extract the first word of "lipo", so it can be a program name with args.
18111 set dummy lipo; ac_word=$2
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18113 $as_echo_n "checking for $ac_word... " >&6; }
18114 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
18115 $as_echo_n "(cached) " >&6
18117 if test -n "$ac_ct_LIPO"; then
18118 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
18120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18121 for as_dir in $PATH
18124 test -z "$as_dir" && as_dir=.
18125 for ac_exec_ext in '' $ac_executable_extensions; do
18126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18127 ac_cv_prog_ac_ct_LIPO="lipo"
18128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18137 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
18138 if test -n "$ac_ct_LIPO"; then
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
18140 $as_echo "$ac_ct_LIPO" >&6; }
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18143 $as_echo "no" >&6; }
18146 if test "x$ac_ct_LIPO" = x; then
18149 case $cross_compiling:$ac_tool_warned in
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18153 ac_tool_warned=yes ;;
18158 LIPO="$ac_cv_prog_LIPO"
18161 if test -n "$ac_tool_prefix"; then
18162 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
18163 set dummy ${ac_tool_prefix}otool; ac_word=$2
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18165 $as_echo_n "checking for $ac_word... " >&6; }
18166 if ${ac_cv_prog_OTOOL+:} false; then :
18167 $as_echo_n "(cached) " >&6
18169 if test -n "$OTOOL"; then
18170 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
18172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18173 for as_dir in $PATH
18176 test -z "$as_dir" && as_dir=.
18177 for ac_exec_ext in '' $ac_executable_extensions; do
18178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18179 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
18180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18189 OTOOL=$ac_cv_prog_OTOOL
18190 if test -n "$OTOOL"; then
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
18192 $as_echo "$OTOOL" >&6; }
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18195 $as_echo "no" >&6; }
18200 if test -z "$ac_cv_prog_OTOOL"; then
18202 # Extract the first word of "otool", so it can be a program name with args.
18203 set dummy otool; ac_word=$2
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18205 $as_echo_n "checking for $ac_word... " >&6; }
18206 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
18207 $as_echo_n "(cached) " >&6
18209 if test -n "$ac_ct_OTOOL"; then
18210 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
18212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18213 for as_dir in $PATH
18216 test -z "$as_dir" && as_dir=.
18217 for ac_exec_ext in '' $ac_executable_extensions; do
18218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18219 ac_cv_prog_ac_ct_OTOOL="otool"
18220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18229 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
18230 if test -n "$ac_ct_OTOOL"; then
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
18232 $as_echo "$ac_ct_OTOOL" >&6; }
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18235 $as_echo "no" >&6; }
18238 if test "x$ac_ct_OTOOL" = x; then
18241 case $cross_compiling:$ac_tool_warned in
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18245 ac_tool_warned=yes ;;
18250 OTOOL="$ac_cv_prog_OTOOL"
18253 if test -n "$ac_tool_prefix"; then
18254 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
18255 set dummy ${ac_tool_prefix}otool64; ac_word=$2
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18257 $as_echo_n "checking for $ac_word... " >&6; }
18258 if ${ac_cv_prog_OTOOL64+:} false; then :
18259 $as_echo_n "(cached) " >&6
18261 if test -n "$OTOOL64"; then
18262 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
18264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18265 for as_dir in $PATH
18268 test -z "$as_dir" && as_dir=.
18269 for ac_exec_ext in '' $ac_executable_extensions; do
18270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18271 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
18272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18281 OTOOL64=$ac_cv_prog_OTOOL64
18282 if test -n "$OTOOL64"; then
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
18284 $as_echo "$OTOOL64" >&6; }
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18287 $as_echo "no" >&6; }
18292 if test -z "$ac_cv_prog_OTOOL64"; then
18293 ac_ct_OTOOL64=$OTOOL64
18294 # Extract the first word of "otool64", so it can be a program name with args.
18295 set dummy otool64; ac_word=$2
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18297 $as_echo_n "checking for $ac_word... " >&6; }
18298 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
18299 $as_echo_n "(cached) " >&6
18301 if test -n "$ac_ct_OTOOL64"; then
18302 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
18304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18305 for as_dir in $PATH
18308 test -z "$as_dir" && as_dir=.
18309 for ac_exec_ext in '' $ac_executable_extensions; do
18310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18311 ac_cv_prog_ac_ct_OTOOL64="otool64"
18312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18321 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
18322 if test -n "$ac_ct_OTOOL64"; then
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
18324 $as_echo "$ac_ct_OTOOL64" >&6; }
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18327 $as_echo "no" >&6; }
18330 if test "x$ac_ct_OTOOL64" = x; then
18333 case $cross_compiling:$ac_tool_warned in
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18337 ac_tool_warned=yes ;;
18339 OTOOL64=$ac_ct_OTOOL64
18342 OTOOL64="$ac_cv_prog_OTOOL64"
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
18372 $as_echo_n "checking for -single_module linker flag... " >&6; }
18373 if ${lt_cv_apple_cc_single_mod+:} false; then :
18374 $as_echo_n "(cached) " >&6
18376 lt_cv_apple_cc_single_mod=no
18377 if test -z "$LT_MULTI_MODULE"; then
18378 # By default we will add the -single_module flag. You can override
18379 # by either setting the environment variable LT_MULTI_MODULE
18380 # non-empty at configure time, or by adding -multi_module to the
18382 rm -rf libconftest.dylib*
18383 echo "int foo(void){return 1;}" > conftest.c
18384 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
18385 -dynamiclib -Wl,-single_module conftest.c" >&5
18386 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
18387 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
18389 # If there is a non-empty error log, and "single_module"
18390 # appears in it, assume the flag caused a linker warning
18391 if test -s conftest.err && $GREP single_module conftest.err; then
18392 cat conftest.err >&5
18393 # Otherwise, if the output was created with a 0 exit code from
18394 # the compiler, it worked.
18395 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
18396 lt_cv_apple_cc_single_mod=yes
18398 cat conftest.err >&5
18400 rm -rf libconftest.dylib*
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
18405 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
18408 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
18409 if ${lt_cv_ld_exported_symbols_list+:} false; then :
18410 $as_echo_n "(cached) " >&6
18412 lt_cv_ld_exported_symbols_list=no
18413 save_LDFLAGS=$LDFLAGS
18414 echo "_main" > conftest.sym
18415 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
18416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18417 /* end confdefs.h. */
18427 if ac_fn_c_try_link "$LINENO"; then :
18428 lt_cv_ld_exported_symbols_list=yes
18430 lt_cv_ld_exported_symbols_list=no
18432 rm -f core conftest.err conftest.$ac_objext \
18433 conftest$ac_exeext conftest.$ac_ext
18434 LDFLAGS=$save_LDFLAGS
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
18438 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
18441 $as_echo_n "checking for -force_load linker flag... " >&6; }
18442 if ${lt_cv_ld_force_load+:} false; then :
18443 $as_echo_n "(cached) " >&6
18445 lt_cv_ld_force_load=no
18446 cat > conftest.c << _LT_EOF
18447 int forced_loaded() { return 2;}
18449 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
18450 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
18451 echo "$AR cru libconftest.a conftest.o" >&5
18452 $AR cru libconftest.a conftest.o 2>&5
18453 echo "$RANLIB libconftest.a" >&5
18454 $RANLIB libconftest.a 2>&5
18455 cat > conftest.c << _LT_EOF
18456 int main() { return 0;}
18458 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
18459 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
18461 if test -s conftest.err && $GREP force_load conftest.err; then
18462 cat conftest.err >&5
18463 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
18464 lt_cv_ld_force_load=yes
18466 cat conftest.err >&5
18468 rm -f conftest.err libconftest.a conftest conftest.c
18469 rm -rf conftest.dSYM
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
18473 $as_echo "$lt_cv_ld_force_load" >&6; }
18475 rhapsody* | darwin1.[012])
18476 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
18478 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
18479 darwin*) # darwin 5.x on
18480 # if running on 10.5 or later, the deployment target defaults
18481 # to the OS version, if on x86, and 10.4, the deployment
18482 # target defaults to 10.4. Don't you love it?
18483 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
18484 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
18485 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
18487 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
18489 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
18493 if test yes = "$lt_cv_apple_cc_single_mod"; then
18494 _lt_dar_single_mod='$single_module'
18496 if test yes = "$lt_cv_ld_exported_symbols_list"; then
18497 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
18499 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
18501 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
18502 _lt_dsymutil='~$DSYMUTIL $lib || :'
18509 # func_munge_path_list VARIABLE PATH
18510 # -----------------------------------
18511 # VARIABLE is name of variable containing _space_ separated list of
18512 # directories to be munged by the contents of PATH, which is string
18515 # string "DIR[ DIR]" will be prepended to VARIABLE
18517 # string "DIR[ DIR]" will be appended to VARIABLE
18518 # "DIRP[:DIRP]::[DIRA:]DIRA"
18519 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18520 # "DIRA[ DIRA]" will be appended to VARIABLE
18522 # VARIABLE will be replaced by "DIR[ DIR]"
18523 func_munge_path_list ()
18529 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18532 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18535 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18536 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18539 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18544 for ac_header in dlfcn.h
18546 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
18548 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
18549 cat >>confdefs.h <<_ACEOF
18550 #define HAVE_DLFCN_H 1
18568 enable_win32_dll=no
18572 # Check whether --enable-static was given.
18573 if test "${enable_static+set}" = set; then :
18574 enableval=$enable_static; p=${PACKAGE-default}
18576 yes) enable_static=yes ;;
18577 no) enable_static=no ;;
18580 # Look at the argument we got. We use all the common list separators.
18581 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18582 for pkg in $enableval; do
18584 if test "X$pkg" = "X$p"; then
18604 # Check whether --with-pic was given.
18605 if test "${with_pic+set}" = set; then :
18606 withval=$with_pic; lt_p=${PACKAGE-default}
18608 yes|no) pic_mode=$withval ;;
18611 # Look at the argument we got. We use all the common list separators.
18612 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18613 for lt_pkg in $withval; do
18615 if test "X$lt_pkg" = "X$lt_p"; then
18633 # Check whether --enable-fast-install was given.
18634 if test "${enable_fast_install+set}" = set; then :
18635 enableval=$enable_fast_install; p=${PACKAGE-default}
18637 yes) enable_fast_install=yes ;;
18638 no) enable_fast_install=no ;;
18640 enable_fast_install=no
18641 # Look at the argument we got. We use all the common list separators.
18642 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18643 for pkg in $enableval; do
18645 if test "X$pkg" = "X$p"; then
18646 enable_fast_install=yes
18653 enable_fast_install=yes
18663 shared_archive_member_spec=
18664 case $host,$enable_shared in
18665 power*-*-aix[5-9]*,yes)
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
18667 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
18669 # Check whether --with-aix-soname was given.
18670 if test "${with_aix_soname+set}" = set; then :
18671 withval=$with_aix_soname; case $withval in
18675 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
18678 lt_cv_with_aix_soname=$with_aix_soname
18680 if ${lt_cv_with_aix_soname+:} false; then :
18681 $as_echo_n "(cached) " >&6
18683 lt_cv_with_aix_soname=aix
18686 with_aix_soname=$lt_cv_with_aix_soname
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
18690 $as_echo "$with_aix_soname" >&6; }
18691 if test aix != "$with_aix_soname"; then
18692 # For the AIX way of multilib, we name the shared archive member
18693 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
18694 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
18695 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
18696 # the AIX toolchain works better with OBJECT_MODE set (default 32).
18697 if test 64 = "${OBJECT_MODE-32}"; then
18698 shared_archive_member_spec=shr_64
18700 shared_archive_member_spec=shr
18705 with_aix_soname=aix
18718 # This can be used to rebuild libtool when needed
18719 LIBTOOL_DEPS=$ltmain
18721 # Always use our own libtool.
18722 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18753 test -z "$LN_S" && LN_S="ln -s"
18768 if test -n "${ZSH_VERSION+set}"; then
18769 setopt NO_GLOB_SUBST
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
18773 $as_echo_n "checking for objdir... " >&6; }
18774 if ${lt_cv_objdir+:} false; then :
18775 $as_echo_n "(cached) " >&6
18777 rm -f .libs 2>/dev/null
18778 mkdir .libs 2>/dev/null
18779 if test -d .libs; then
18782 # MS-DOS does not allow filenames that begin with a dot.
18785 rmdir .libs 2>/dev/null
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
18788 $as_echo "$lt_cv_objdir" >&6; }
18789 objdir=$lt_cv_objdir
18795 cat >>confdefs.h <<_ACEOF
18796 #define LT_OBJDIR "$lt_cv_objdir/"
18804 # AIX sometimes has problems with the GCC collect2 program. For some
18805 # reason, if we set the COLLECT_NAMES environment variable, the problems
18806 # vanish in a puff of smoke.
18807 if test set != "${COLLECT_NAMES+set}"; then
18809 export COLLECT_NAMES
18814 # Global variables:
18816 can_build_shared=yes
18818 # All known linkers require a '.a' archive for static linking (except MSVC,
18819 # which needs '.lib').
18822 with_gnu_ld=$lt_cv_prog_gnu_ld
18827 # Set sane defaults for various variables
18828 test -z "$CC" && CC=cc
18829 test -z "$LTCC" && LTCC=$CC
18830 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18831 test -z "$LD" && LD=ld
18832 test -z "$ac_objext" && ac_objext=o
18834 func_cc_basename $compiler
18835 cc_basename=$func_cc_basename_result
18838 # Only perform the check for file, if the check method requires it
18839 test -z "$MAGIC_CMD" && MAGIC_CMD=file
18840 case $deplibs_check_method in
18842 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
18844 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
18845 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18846 $as_echo_n "(cached) " >&6
18850 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
18853 lt_save_MAGIC_CMD=$MAGIC_CMD
18854 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18855 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18856 for ac_dir in $ac_dummy; do
18858 test -z "$ac_dir" && ac_dir=.
18859 if test -f "$ac_dir/${ac_tool_prefix}file"; then
18860 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
18861 if test -n "$file_magic_test_file"; then
18862 case $deplibs_check_method in
18864 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18865 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18866 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18867 $EGREP "$file_magic_regex" > /dev/null; then
18872 *** Warning: the command libtool uses to detect shared libraries,
18873 *** $file_magic_cmd, produces output that libtool cannot recognize.
18874 *** The result is that libtool may fail to recognize shared libraries
18875 *** as such. This will affect the creation of libtool libraries that
18876 *** depend on shared libraries, but programs linked with such libtool
18877 *** libraries will work regardless of this problem. Nevertheless, you
18878 *** may want to report the problem to your system manager and/or to
18879 *** bug-libtool@gnu.org
18889 MAGIC_CMD=$lt_save_MAGIC_CMD
18894 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18895 if test -n "$MAGIC_CMD"; then
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18897 $as_echo "$MAGIC_CMD" >&6; }
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18900 $as_echo "no" >&6; }
18907 if test -z "$lt_cv_path_MAGIC_CMD"; then
18908 if test -n "$ac_tool_prefix"; then
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
18910 $as_echo_n "checking for file... " >&6; }
18911 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18912 $as_echo_n "(cached) " >&6
18916 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
18919 lt_save_MAGIC_CMD=$MAGIC_CMD
18920 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18921 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18922 for ac_dir in $ac_dummy; do
18924 test -z "$ac_dir" && ac_dir=.
18925 if test -f "$ac_dir/file"; then
18926 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
18927 if test -n "$file_magic_test_file"; then
18928 case $deplibs_check_method in
18930 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18931 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18932 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18933 $EGREP "$file_magic_regex" > /dev/null; then
18938 *** Warning: the command libtool uses to detect shared libraries,
18939 *** $file_magic_cmd, produces output that libtool cannot recognize.
18940 *** The result is that libtool may fail to recognize shared libraries
18941 *** as such. This will affect the creation of libtool libraries that
18942 *** depend on shared libraries, but programs linked with such libtool
18943 *** libraries will work regardless of this problem. Nevertheless, you
18944 *** may want to report the problem to your system manager and/or to
18945 *** bug-libtool@gnu.org
18955 MAGIC_CMD=$lt_save_MAGIC_CMD
18960 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18961 if test -n "$MAGIC_CMD"; then
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18963 $as_echo "$MAGIC_CMD" >&6; }
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18966 $as_echo "no" >&6; }
18979 # Use C for the default configuration in the libtool script
18983 ac_cpp='$CPP $CPPFLAGS'
18984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18989 # Source file extension for C test sources.
18992 # Object file extension for compiled C test sources.
18996 # Code to be used in simple compile tests
18997 lt_simple_compile_test_code="int some_variable = 0;"
18999 # Code to be used in simple link tests
19000 lt_simple_link_test_code='int main(){return(0);}'
19008 # If no C compiler was specified, use CC.
19011 # If no C compiler flags were specified, use CFLAGS.
19012 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19014 # Allow CC to be a program name with arguments.
19017 # Save the default compiler, since it gets overwritten when the other
19018 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
19019 compiler_DEFAULT=$CC
19021 # save warnings/boilerplate of simple test code
19022 ac_outfile=conftest.$ac_objext
19023 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19024 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19025 _lt_compiler_boilerplate=`cat conftest.err`
19028 ac_outfile=conftest.$ac_objext
19029 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19030 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19031 _lt_linker_boilerplate=`cat conftest.err`
19036 ## There is no encapsulation within the following macros, do not change
19037 ## the running order or otherwise move them around unless you know exactly
19038 ## what you are doing...
19039 if test -n "$compiler"; then
19041 lt_prog_compiler_no_builtin_flag=
19043 if test yes = "$GCC"; then
19044 case $cc_basename in
19046 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
19048 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19052 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
19053 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
19054 $as_echo_n "(cached) " >&6
19056 lt_cv_prog_compiler_rtti_exceptions=no
19057 ac_outfile=conftest.$ac_objext
19058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19059 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
19060 # Insert the option either (1) after the last *FLAGS variable, or
19061 # (2) before a word containing "conftest.", or (3) at the end.
19062 # Note that $ac_compile itself does not contain backslashes and begins
19063 # with a dollar sign (not a hyphen), so the echo should work correctly.
19064 # The option is referenced via a variable to avoid confusing sed.
19065 lt_compile=`echo "$ac_compile" | $SED \
19066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19068 -e 's:$: $lt_compiler_flag:'`
19069 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19070 (eval "$lt_compile" 2>conftest.err)
19072 cat conftest.err >&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 if (exit $ac_status) && test -s "$ac_outfile"; then
19075 # The compiler can only warn and ignore the option if not recognized
19076 # So say no if there are warnings other than the usual output.
19077 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19079 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19080 lt_cv_prog_compiler_rtti_exceptions=yes
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19087 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19089 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
19090 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
19102 lt_prog_compiler_wl=
19103 lt_prog_compiler_pic=
19104 lt_prog_compiler_static=
19107 if test yes = "$GCC"; then
19108 lt_prog_compiler_wl='-Wl,'
19109 lt_prog_compiler_static='-static'
19113 # All AIX code is PIC.
19114 if test ia64 = "$host_cpu"; then
19115 # AIX 5 now supports IA64 processor
19116 lt_prog_compiler_static='-Bstatic'
19118 lt_prog_compiler_pic='-fPIC'
19124 # see comment about AmigaOS4 .so support
19125 lt_prog_compiler_pic='-fPIC'
19128 # FIXME: we need at least 68020 code to build shared libraries, but
19129 # adding the '-m68020' flag to GCC prevents building anything better,
19131 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
19136 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19137 # PIC is the default for these OSes.
19140 mingw* | cygwin* | pw32* | os2* | cegcc*)
19141 # This hack is so that the source file can tell whether it is being
19142 # built for inclusion in a dll (and should export symbols for example).
19143 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19144 # (--disable-auto-import) libraries
19145 lt_prog_compiler_pic='-DDLL_EXPORT'
19148 lt_prog_compiler_static='$wl-static'
19153 darwin* | rhapsody*)
19154 # PIC is the default on this platform
19155 # Common symbols not allowed in MH_DYLIB files
19156 lt_prog_compiler_pic='-fno-common'
19160 # PIC is the default for Haiku.
19161 # The "-static" flag exists, but is broken.
19162 lt_prog_compiler_static=
19166 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19167 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19168 # sets the default TLS model and affects inlining.
19174 lt_prog_compiler_pic='-fPIC'
19180 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19181 # Instead, we relocate shared libraries at runtime.
19185 # Just because we use GCC doesn't mean we suddenly get shared libraries
19186 # on systems that don't support them.
19187 lt_prog_compiler_can_build_shared=no
19192 # QNX uses GNU C++, but need to define -shared option too, otherwise
19193 # it will coredump.
19194 lt_prog_compiler_pic='-fPIC -shared'
19198 if test -d /usr/nec; then
19199 lt_prog_compiler_pic=-Kconform_pic
19204 lt_prog_compiler_pic='-fPIC'
19208 case $cc_basename in
19209 nvcc*) # Cuda Compiler Driver 2.2
19210 lt_prog_compiler_wl='-Xlinker '
19211 if test -n "$lt_prog_compiler_pic"; then
19212 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
19217 # PORTME Check for flag to pass linker flags through the system compiler.
19220 lt_prog_compiler_wl='-Wl,'
19221 if test ia64 = "$host_cpu"; then
19222 # AIX 5 now supports IA64 processor
19223 lt_prog_compiler_static='-Bstatic'
19225 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
19229 darwin* | rhapsody*)
19230 # PIC is the default on this platform
19231 # Common symbols not allowed in MH_DYLIB files
19232 lt_prog_compiler_pic='-fno-common'
19233 case $cc_basename in
19235 # NAG Fortran compiler
19236 lt_prog_compiler_wl='-Wl,-Wl,,'
19237 lt_prog_compiler_pic='-PIC'
19238 lt_prog_compiler_static='-Bstatic'
19243 mingw* | cygwin* | pw32* | os2* | cegcc*)
19244 # This hack is so that the source file can tell whether it is being
19245 # built for inclusion in a dll (and should export symbols for example).
19246 lt_prog_compiler_pic='-DDLL_EXPORT'
19249 lt_prog_compiler_static='$wl-static'
19254 hpux9* | hpux10* | hpux11*)
19255 lt_prog_compiler_wl='-Wl,'
19256 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19257 # not for PA HP-UX.
19263 lt_prog_compiler_pic='+Z'
19266 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19267 lt_prog_compiler_static='$wl-a ${wl}archive'
19270 irix5* | irix6* | nonstopux*)
19271 lt_prog_compiler_wl='-Wl,'
19272 # PIC (with -KPIC) is the default.
19273 lt_prog_compiler_static='-non_shared'
19276 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19277 case $cc_basename in
19278 # old Intel for x86_64, which still supported -KPIC.
19280 lt_prog_compiler_wl='-Wl,'
19281 lt_prog_compiler_pic='-KPIC'
19282 lt_prog_compiler_static='-static'
19284 # icc used to be incompatible with GCC.
19285 # ICC 10 doesn't accept -KPIC any more.
19287 lt_prog_compiler_wl='-Wl,'
19288 lt_prog_compiler_pic='-fPIC'
19289 lt_prog_compiler_static='-static'
19291 # Lahey Fortran 8.1.
19293 lt_prog_compiler_wl='-Wl,'
19294 lt_prog_compiler_pic='--shared'
19295 lt_prog_compiler_static='--static'
19298 # NAG Fortran compiler
19299 lt_prog_compiler_wl='-Wl,-Wl,,'
19300 lt_prog_compiler_pic='-PIC'
19301 lt_prog_compiler_static='-Bstatic'
19304 # Fabrice Bellard et al's Tiny C Compiler
19305 lt_prog_compiler_wl='-Wl,'
19306 lt_prog_compiler_pic='-fPIC'
19307 lt_prog_compiler_static='-static'
19309 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
19310 # Portland Group compilers (*not* the Pentium gcc compiler,
19311 # which looks to be a dead project)
19312 lt_prog_compiler_wl='-Wl,'
19313 lt_prog_compiler_pic='-fpic'
19314 lt_prog_compiler_static='-Bstatic'
19317 lt_prog_compiler_wl='-Wl,'
19318 # All Alpha code is PIC.
19319 lt_prog_compiler_static='-non_shared'
19321 xl* | bgxl* | bgf* | mpixl*)
19322 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
19323 lt_prog_compiler_wl='-Wl,'
19324 lt_prog_compiler_pic='-qpic'
19325 lt_prog_compiler_static='-qstaticlink'
19328 case `$CC -V 2>&1 | sed 5q` in
19329 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
19330 # Sun Fortran 8.3 passes all unrecognized flags to the linker
19331 lt_prog_compiler_pic='-KPIC'
19332 lt_prog_compiler_static='-Bstatic'
19333 lt_prog_compiler_wl=''
19335 *Sun\ F* | *Sun*Fortran*)
19336 lt_prog_compiler_pic='-KPIC'
19337 lt_prog_compiler_static='-Bstatic'
19338 lt_prog_compiler_wl='-Qoption ld '
19342 lt_prog_compiler_pic='-KPIC'
19343 lt_prog_compiler_static='-Bstatic'
19344 lt_prog_compiler_wl='-Wl,'
19346 *Intel*\ [CF]*Compiler*)
19347 lt_prog_compiler_wl='-Wl,'
19348 lt_prog_compiler_pic='-fPIC'
19349 lt_prog_compiler_static='-static'
19352 lt_prog_compiler_wl='-Wl,'
19353 lt_prog_compiler_pic='-fpic'
19354 lt_prog_compiler_static='-Bstatic'
19362 lt_prog_compiler_pic='-KPIC'
19363 lt_prog_compiler_static='-Bstatic'
19367 # QNX uses GNU C++, but need to define -shared option too, otherwise
19368 # it will coredump.
19369 lt_prog_compiler_pic='-fPIC -shared'
19372 osf3* | osf4* | osf5*)
19373 lt_prog_compiler_wl='-Wl,'
19374 # All OSF/1 code is PIC.
19375 lt_prog_compiler_static='-non_shared'
19379 lt_prog_compiler_static='-non_shared'
19383 lt_prog_compiler_pic='-KPIC'
19384 lt_prog_compiler_static='-Bstatic'
19385 case $cc_basename in
19386 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
19387 lt_prog_compiler_wl='-Qoption ld ';;
19389 lt_prog_compiler_wl='-Wl,';;
19394 lt_prog_compiler_wl='-Qoption ld '
19395 lt_prog_compiler_pic='-PIC'
19396 lt_prog_compiler_static='-Bstatic'
19399 sysv4 | sysv4.2uw2* | sysv4.3*)
19400 lt_prog_compiler_wl='-Wl,'
19401 lt_prog_compiler_pic='-KPIC'
19402 lt_prog_compiler_static='-Bstatic'
19406 if test -d /usr/nec; then
19407 lt_prog_compiler_pic='-Kconform_pic'
19408 lt_prog_compiler_static='-Bstatic'
19412 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19413 lt_prog_compiler_wl='-Wl,'
19414 lt_prog_compiler_pic='-KPIC'
19415 lt_prog_compiler_static='-Bstatic'
19419 lt_prog_compiler_wl='-Wl,'
19420 lt_prog_compiler_can_build_shared=no
19424 lt_prog_compiler_pic='-pic'
19425 lt_prog_compiler_static='-Bstatic'
19429 lt_prog_compiler_can_build_shared=no
19435 # For platforms that do not support PIC, -DPIC is meaningless:
19437 lt_prog_compiler_pic=
19440 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19445 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19446 if ${lt_cv_prog_compiler_pic+:} false; then :
19447 $as_echo_n "(cached) " >&6
19449 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
19452 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
19453 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
19456 # Check to make sure the PIC flag actually works.
19458 if test -n "$lt_prog_compiler_pic"; then
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
19460 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
19461 if ${lt_cv_prog_compiler_pic_works+:} false; then :
19462 $as_echo_n "(cached) " >&6
19464 lt_cv_prog_compiler_pic_works=no
19465 ac_outfile=conftest.$ac_objext
19466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19467 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
19468 # Insert the option either (1) after the last *FLAGS variable, or
19469 # (2) before a word containing "conftest.", or (3) at the end.
19470 # Note that $ac_compile itself does not contain backslashes and begins
19471 # with a dollar sign (not a hyphen), so the echo should work correctly.
19472 # The option is referenced via a variable to avoid confusing sed.
19473 lt_compile=`echo "$ac_compile" | $SED \
19474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19476 -e 's:$: $lt_compiler_flag:'`
19477 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19478 (eval "$lt_compile" 2>conftest.err)
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 if (exit $ac_status) && test -s "$ac_outfile"; then
19483 # The compiler can only warn and ignore the option if not recognized
19484 # So say no if there are warnings other than the usual output.
19485 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19487 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19488 lt_cv_prog_compiler_pic_works=yes
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
19495 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
19497 if test yes = "$lt_cv_prog_compiler_pic_works"; then
19498 case $lt_prog_compiler_pic in
19500 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
19503 lt_prog_compiler_pic=
19504 lt_prog_compiler_can_build_shared=no
19520 # Check to make sure the static flag actually works.
19522 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19524 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19525 if ${lt_cv_prog_compiler_static_works+:} false; then :
19526 $as_echo_n "(cached) " >&6
19528 lt_cv_prog_compiler_static_works=no
19529 save_LDFLAGS=$LDFLAGS
19530 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19531 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19532 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19533 # The linker can only warn and ignore the option if not recognized
19534 # So say no if there are warnings
19535 if test -s conftest.err; then
19536 # Append any errors to the config.log.
19537 cat conftest.err 1>&5
19538 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19540 if diff conftest.exp conftest.er2 >/dev/null; then
19541 lt_cv_prog_compiler_static_works=yes
19544 lt_cv_prog_compiler_static_works=yes
19548 LDFLAGS=$save_LDFLAGS
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
19552 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
19554 if test yes = "$lt_cv_prog_compiler_static_works"; then
19557 lt_prog_compiler_static=
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19567 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19568 if ${lt_cv_prog_compiler_c_o+:} false; then :
19569 $as_echo_n "(cached) " >&6
19571 lt_cv_prog_compiler_c_o=no
19572 $RM -r conftest 2>/dev/null
19576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19578 lt_compiler_flag="-o out/conftest2.$ac_objext"
19579 # Insert the option either (1) after the last *FLAGS variable, or
19580 # (2) before a word containing "conftest.", or (3) at the end.
19581 # Note that $ac_compile itself does not contain backslashes and begins
19582 # with a dollar sign (not a hyphen), so the echo should work correctly.
19583 lt_compile=`echo "$ac_compile" | $SED \
19584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19586 -e 's:$: $lt_compiler_flag:'`
19587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19588 (eval "$lt_compile" 2>out/conftest.err)
19590 cat out/conftest.err >&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19594 # The compiler can only warn and ignore the option if not recognized
19595 # So say no if there are warnings
19596 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19597 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19598 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19599 lt_cv_prog_compiler_c_o=yes
19604 # SGI C++ compiler will create directory out/ii_files/ for
19605 # template instantiation
19606 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19607 $RM out/* && rmdir out
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19614 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19622 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19623 if ${lt_cv_prog_compiler_c_o+:} false; then :
19624 $as_echo_n "(cached) " >&6
19626 lt_cv_prog_compiler_c_o=no
19627 $RM -r conftest 2>/dev/null
19631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19633 lt_compiler_flag="-o out/conftest2.$ac_objext"
19634 # Insert the option either (1) after the last *FLAGS variable, or
19635 # (2) before a word containing "conftest.", or (3) at the end.
19636 # Note that $ac_compile itself does not contain backslashes and begins
19637 # with a dollar sign (not a hyphen), so the echo should work correctly.
19638 lt_compile=`echo "$ac_compile" | $SED \
19639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19641 -e 's:$: $lt_compiler_flag:'`
19642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19643 (eval "$lt_compile" 2>out/conftest.err)
19645 cat out/conftest.err >&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19649 # The compiler can only warn and ignore the option if not recognized
19650 # So say no if there are warnings
19651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19652 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19653 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19654 lt_cv_prog_compiler_c_o=yes
19659 # SGI C++ compiler will create directory out/ii_files/ for
19660 # template instantiation
19661 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19662 $RM out/* && rmdir out
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19669 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19674 hard_links=nottested
19675 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
19676 # do not overwrite the value of need_locks provided by the user
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19678 $as_echo_n "checking if we can lock with hard links... " >&6; }
19681 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19683 ln conftest.a conftest.b 2>&5 || hard_links=no
19684 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19686 $as_echo "$hard_links" >&6; }
19687 if test no = "$hard_links"; then
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
19689 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19702 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19705 allow_undefined_flag=
19706 always_export_symbols=no
19708 archive_expsym_cmds=
19709 compiler_needs_object=no
19710 enable_shared_with_static_runtimes=no
19711 export_dynamic_flag_spec=
19712 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19713 hardcode_automatic=no
19715 hardcode_direct_absolute=no
19716 hardcode_libdir_flag_spec=
19717 hardcode_libdir_separator=
19718 hardcode_minus_L=no
19719 hardcode_shlibpath_var=unsupported
19721 link_all_deplibs=unknown
19723 module_expsym_cmds=
19724 old_archive_from_new_cmds=
19725 old_archive_from_expsyms_cmds=
19726 thread_safe_flag_spec=
19727 whole_archive_flag_spec=
19728 # include_expsyms should be a list of space-separated symbols to be *always*
19729 # included in the symbol list
19731 # exclude_expsyms can be an extended regexp of symbols to exclude
19732 # it will be wrapped by ' (' and ')$', so one must not match beginning or
19733 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
19734 # as well as any symbol that contains 'd'.
19735 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19736 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19737 # platforms (ab)use it in PIC code, but their linkers get confused if
19738 # the symbol is explicitly referenced. Since portable code cannot
19739 # rely on this symbol name, it's probably fine to never include it in
19740 # preloaded symbol tables.
19741 # Exclude shared library initialization/finalization symbols.
19742 extract_expsyms_cmds=
19745 cygwin* | mingw* | pw32* | cegcc*)
19746 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19747 # When not using gcc, we currently assume that we are using
19748 # Microsoft Visual C++.
19749 if test yes != "$GCC"; then
19754 # we just hope/assume this is gcc and not c89 (= MSVC++)
19757 openbsd* | bitrig*)
19764 # On some targets, GNU ld is compatible enough with the native linker
19765 # that we're better off using the native interface for both.
19766 lt_use_gnu_ld_interface=no
19767 if test yes = "$with_gnu_ld"; then
19770 # The AIX port of GNU ld has always aspired to compatibility
19771 # with the native linker. However, as the warning in the GNU ld
19772 # block says, versions before 2.19.5* couldn't really create working
19773 # shared libraries, regardless of the interface used.
19774 case `$LD -v 2>&1` in
19775 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19776 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19777 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19779 lt_use_gnu_ld_interface=yes
19784 lt_use_gnu_ld_interface=yes
19789 if test yes = "$lt_use_gnu_ld_interface"; then
19790 # If archive_cmds runs LD, not CC, wlarc should be empty
19793 # Set some defaults for GNU ld with shared library support. These
19794 # are reset later if shared libraries are not supported. Putting them
19795 # here allows them to be overridden if necessary.
19796 runpath_var=LD_RUN_PATH
19797 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19798 export_dynamic_flag_spec='$wl--export-dynamic'
19799 # ancient GNU ld didn't support --whole-archive et. al.
19800 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19801 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
19803 whole_archive_flag_spec=
19805 supports_anon_versioning=no
19806 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
19807 *GNU\ gold*) supports_anon_versioning=yes ;;
19808 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19809 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19810 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19811 *\ 2.11.*) ;; # other 2.11 versions
19812 *) supports_anon_versioning=yes ;;
19815 # See if GNU ld supports shared libraries.
19818 # On AIX/PPC, the GNU linker is very broken
19819 if test ia64 != "$host_cpu"; then
19823 *** Warning: the GNU linker, at least up to release 2.19, is reported
19824 *** to be unable to reliably create shared libraries on AIX.
19825 *** Therefore, libtool is disabling shared libraries support. If you
19826 *** really care for shared libraries, you may want to install binutils
19827 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19828 *** You will then need to restart the configuration process.
19837 # see comment about AmigaOS4 .so support
19838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19839 archive_expsym_cmds=''
19842 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)'
19843 hardcode_libdir_flag_spec='-L$libdir'
19844 hardcode_minus_L=yes
19850 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19851 allow_undefined_flag=unsupported
19852 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19853 # support --undefined. This deserves some investigation. FIXME
19854 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19860 cygwin* | mingw* | pw32* | cegcc*)
19861 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19862 # as there is no search path for DLLs.
19863 hardcode_libdir_flag_spec='-L$libdir'
19864 export_dynamic_flag_spec='$wl--export-all-symbols'
19865 allow_undefined_flag=unsupported
19866 always_export_symbols=no
19867 enable_shared_with_static_runtimes=yes
19868 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'
19869 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19871 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19873 # If the export-symbols file already is a .def file, use it as
19874 # is; otherwise, prepend EXPORTS...
19875 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
19876 cp $export_symbols $output_objdir/$soname.def;
19878 echo EXPORTS > $output_objdir/$soname.def;
19879 cat $export_symbols >> $output_objdir/$soname.def;
19881 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19889 link_all_deplibs=yes
19893 hardcode_libdir_flag_spec='-L$libdir'
19894 hardcode_minus_L=yes
19895 allow_undefined_flag=unsupported
19897 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19898 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19899 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19900 $ECHO EXPORTS >> $output_objdir/$libname.def~
19901 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19902 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19903 emximp -o $lib $output_objdir/$libname.def'
19904 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19905 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19906 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19907 $ECHO EXPORTS >> $output_objdir/$libname.def~
19908 prefix_cmds="$SED"~
19909 if test EXPORTS = "`$SED 1q $export_symbols`"; then
19910 prefix_cmds="$prefix_cmds -e 1d";
19912 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19913 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19914 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19915 emximp -o $lib $output_objdir/$libname.def'
19916 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19917 enable_shared_with_static_runtimes=yes
19922 hardcode_shlibpath_var=no
19923 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
19924 export_dynamic_flag_spec='$wl-E'
19925 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19926 # Instead, shared libraries are loaded at an image base (0x10000000 by
19927 # default) and relocated if they conflict, which is a slow very memory
19928 # consuming and fragmenting process. To avoid this, we pick a random,
19929 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19930 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19931 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19932 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'
19935 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
19937 if test linux-dietlibc = "$host_os"; then
19938 case $cc_basename in
19939 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
19942 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19943 && test no = "$tmp_diet"
19945 tmp_addflag=' $pic_flag'
19946 tmp_sharedflag='-shared'
19947 case $cc_basename,$host_cpu in
19948 pgcc*) # Portland Group C compiler
19949 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'
19950 tmp_addflag=' $pic_flag'
19952 pgf77* | pgf90* | pgf95* | pgfortran*)
19953 # Portland Group f77 and f90 compilers
19954 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'
19955 tmp_addflag=' $pic_flag -Mnomain' ;;
19956 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19957 tmp_addflag=' -i_dynamic' ;;
19958 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19959 tmp_addflag=' -i_dynamic -nofor_main' ;;
19960 ifc* | ifort*) # Intel Fortran compiler
19961 tmp_addflag=' -nofor_main' ;;
19962 lf95*) # Lahey Fortran 8.1
19963 whole_archive_flag_spec=
19964 tmp_sharedflag='--shared' ;;
19965 nagfor*) # NAGFOR 5.3
19966 tmp_sharedflag='-Wl,-shared' ;;
19967 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19968 tmp_sharedflag='-qmkshrobj'
19970 nvcc*) # Cuda Compiler Driver 2.2
19971 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'
19972 compiler_needs_object=yes
19975 case `$CC -V 2>&1 | sed 5q` in
19976 *Sun\ C*) # Sun C 5.9
19977 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'
19978 compiler_needs_object=yes
19979 tmp_sharedflag='-G' ;;
19980 *Sun\ F*) # Sun Fortran 8.3
19981 tmp_sharedflag='-G' ;;
19983 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19985 if test yes = "$supports_anon_versioning"; then
19986 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19987 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19988 echo "local: *; };" >> $output_objdir/$libname.ver~
19989 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
19992 case $cc_basename in
19994 export_dynamic_flag_spec='-rdynamic'
19996 xlf* | bgf* | bgxlf* | mpixlf*)
19997 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19998 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
19999 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20000 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
20001 if test yes = "$supports_anon_versioning"; then
20002 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
20003 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20004 echo "local: *; };" >> $output_objdir/$libname.ver~
20005 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
20015 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20016 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20019 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20020 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20025 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
20029 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20030 *** create shared libraries on Solaris systems. Therefore, libtool
20031 *** is disabling shared libraries support. We urge you to upgrade GNU
20032 *** binutils to release 2.9.1 or newer. Another option is to modify
20033 *** your PATH or compiler configuration so that the native linker is
20034 *** used, and then restart.
20037 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20038 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20039 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20045 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20046 case `$LD -v 2>&1` in
20047 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20051 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
20052 *** reliably create shared libraries on SCO systems. Therefore, libtool
20053 *** is disabling shared libraries support. We urge you to upgrade GNU
20054 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20055 *** your PATH or compiler configuration so that the native linker is
20056 *** used, and then restart.
20061 # For security reasons, it is highly recommended that you always
20062 # use absolute paths for naming shared libraries, and exclude the
20063 # DT_RUNPATH tag from executables and libraries. But doing so
20064 # requires that you compile everything twice, which is a pain.
20065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20066 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20068 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20077 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20079 hardcode_direct=yes
20080 hardcode_shlibpath_var=no
20084 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20085 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20086 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20093 if test no = "$ld_shlibs"; then
20095 hardcode_libdir_flag_spec=
20096 export_dynamic_flag_spec=
20097 whole_archive_flag_spec=
20100 # PORTME fill in a description of your system's linker (not GNU ld)
20103 allow_undefined_flag=unsupported
20104 always_export_symbols=yes
20105 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'
20106 # Note: this linker hardcodes the directories in LIBPATH if there
20107 # are no directories specified by -L.
20108 hardcode_minus_L=yes
20109 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
20110 # Neither direct hardcoding nor static linking is supported with a
20112 hardcode_direct=unsupported
20117 if test ia64 = "$host_cpu"; then
20118 # On IA64, the linker does run time linking by default, so we don't
20119 # have to do anything special.
20120 aix_use_runtimelinking=no
20121 exp_sym_flag='-Bexport'
20124 # If we're using GNU nm, then we don't want the "-C" option.
20125 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
20126 # Without the "-l" option, or with the "-B" option, AIX nm treats
20127 # weak defined symbols like other global defined symbols, whereas
20128 # GNU nm marks them as "W".
20129 # While the 'weak' keyword is ignored in the Export File, we need
20130 # it in the Import File for the 'aix-soname' feature, so we have
20131 # to replace the "-B" option with "-P" for AIX nm.
20132 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20133 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'
20135 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'
20137 aix_use_runtimelinking=no
20139 # Test if we are trying to use run time linking or normal
20140 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20141 # have runtime linking enabled, and use it for executables.
20142 # For shared libraries, we enable/disable runtime linking
20143 # depending on the kind of the shared library created -
20144 # when "with_aix_soname,aix_use_runtimelinking" is:
20145 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
20146 # "aix,yes" lib.so shared, rtl:yes, for executables
20147 # lib.a static archive
20148 # "both,no" lib.so.V(shr.o) shared, rtl:yes
20149 # lib.a(lib.so.V) shared, rtl:no, for executables
20150 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
20151 # lib.a(lib.so.V) shared, rtl:no
20152 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
20153 # lib.a static archive
20154 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20155 for ld_flag in $LDFLAGS; do
20156 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
20157 aix_use_runtimelinking=yes
20161 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
20162 # With aix-soname=svr4, we create the lib.so.V shared archives only,
20163 # so we don't have lib.a shared libs to link our executables.
20164 # We have to force runtime linking in this case.
20165 aix_use_runtimelinking=yes
20166 LDFLAGS="$LDFLAGS -Wl,-brtl"
20171 exp_sym_flag='-bexport'
20172 no_entry_flag='-bnoentry'
20175 # When large executables or shared objects are built, AIX ld can
20176 # have problems creating the table of contents. If linking a library
20177 # or program results in "error TOC overflow" add -mminimal-toc to
20178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20182 hardcode_direct=yes
20183 hardcode_direct_absolute=yes
20184 hardcode_libdir_separator=':'
20185 link_all_deplibs=yes
20186 file_list_spec='$wl-f,'
20187 case $with_aix_soname,$aix_use_runtimelinking in
20188 aix,*) ;; # traditional, no import file
20189 svr4,* | *,yes) # use import file
20190 # The Import File defines what to hardcode.
20192 hardcode_direct_absolute=no
20196 if test yes = "$GCC"; then
20197 case $host_os in aix4.[012]|aix4.[012].*)
20198 # We only want to do this on AIX 4.2 and lower, the check
20199 # below for broken collect2 doesn't work under 4.3+
20200 collect2name=`$CC -print-prog-name=collect2`
20201 if test -f "$collect2name" &&
20202 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20204 # We have reworked collect2
20207 # We have old collect2
20208 hardcode_direct=unsupported
20209 # It fails to find uninstalled libraries when the uninstalled
20210 # path is not listed in the libpath. Setting hardcode_minus_L
20211 # to unsupported forces relinking
20212 hardcode_minus_L=yes
20213 hardcode_libdir_flag_spec='-L$libdir'
20214 hardcode_libdir_separator=
20218 shared_flag='-shared'
20219 if test yes = "$aix_use_runtimelinking"; then
20220 shared_flag="$shared_flag "'$wl-G'
20222 # Need to ensure runtime linking is disabled for the traditional
20223 # shared library, or the linker may eventually find shared libraries
20224 # /with/ Import File - we do not want to mix them.
20225 shared_flag_aix='-shared'
20226 shared_flag_svr4='-shared $wl-G'
20229 if test ia64 = "$host_cpu"; then
20230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20231 # chokes on -Wl,-G. The following line is correct:
20234 if test yes = "$aix_use_runtimelinking"; then
20235 shared_flag='$wl-G'
20237 shared_flag='$wl-bM:SRE'
20239 shared_flag_aix='$wl-bM:SRE'
20240 shared_flag_svr4='$wl-G'
20244 export_dynamic_flag_spec='$wl-bexpall'
20245 # It seems that -bexpall does not export symbols beginning with
20246 # underscore (_), so it is better to generate a list of symbols to export.
20247 always_export_symbols=yes
20248 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
20249 # Warning - without using the other runtime loading flags (-brtl),
20250 # -berok will link without error, but may produce a broken library.
20251 allow_undefined_flag='-berok'
20252 # Determine the default libpath from the value encoded in an
20253 # empty executable.
20254 if test set = "${lt_cv_aix_libpath+set}"; then
20255 aix_libpath=$lt_cv_aix_libpath
20257 if ${lt_cv_aix_libpath_+:} false; then :
20258 $as_echo_n "(cached) " >&6
20260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20261 /* end confdefs.h. */
20271 if ac_fn_c_try_link "$LINENO"; then :
20273 lt_aix_libpath_sed='
20274 /Import File Strings/,/^$/ {
20276 s/^0 *\([^ ]*\) *$/\1/
20280 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20281 # Check for a 64-bit object if we didn't find anything.
20282 if test -z "$lt_cv_aix_libpath_"; then
20283 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20286 rm -f core conftest.err conftest.$ac_objext \
20287 conftest$ac_exeext conftest.$ac_ext
20288 if test -z "$lt_cv_aix_libpath_"; then
20289 lt_cv_aix_libpath_=/usr/lib:/lib
20294 aix_libpath=$lt_cv_aix_libpath_
20297 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
20298 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
20300 if test ia64 = "$host_cpu"; then
20301 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
20302 allow_undefined_flag="-z nodefs"
20303 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"
20305 # Determine the default libpath from the value encoded in an
20306 # empty executable.
20307 if test set = "${lt_cv_aix_libpath+set}"; then
20308 aix_libpath=$lt_cv_aix_libpath
20310 if ${lt_cv_aix_libpath_+:} false; then :
20311 $as_echo_n "(cached) " >&6
20313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20314 /* end confdefs.h. */
20324 if ac_fn_c_try_link "$LINENO"; then :
20326 lt_aix_libpath_sed='
20327 /Import File Strings/,/^$/ {
20329 s/^0 *\([^ ]*\) *$/\1/
20333 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20334 # Check for a 64-bit object if we didn't find anything.
20335 if test -z "$lt_cv_aix_libpath_"; then
20336 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20339 rm -f core conftest.err conftest.$ac_objext \
20340 conftest$ac_exeext conftest.$ac_ext
20341 if test -z "$lt_cv_aix_libpath_"; then
20342 lt_cv_aix_libpath_=/usr/lib:/lib
20347 aix_libpath=$lt_cv_aix_libpath_
20350 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
20351 # Warning - without using the other run time loading flags,
20352 # -berok will link without error, but may produce a broken library.
20353 no_undefined_flag=' $wl-bernotok'
20354 allow_undefined_flag=' $wl-berok'
20355 if test yes = "$with_gnu_ld"; then
20356 # We only use this code for GNU lds that support --whole-archive.
20357 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
20359 # Exported symbols can be pulled into shared objects from archives
20360 whole_archive_flag_spec='$convenience'
20362 archive_cmds_need_lc=yes
20363 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
20364 # -brtl affects multiple linker settings, -berok does not and is overridden later
20365 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
20366 if test svr4 != "$with_aix_soname"; then
20367 # This is similar to how AIX traditionally builds its shared libraries.
20368 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'
20370 if test aix != "$with_aix_soname"; then
20371 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'
20373 # used by -dlpreopen to get the symbols
20374 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
20376 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
20384 # see comment about AmigaOS4 .so support
20385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20386 archive_expsym_cmds=''
20389 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)'
20390 hardcode_libdir_flag_spec='-L$libdir'
20391 hardcode_minus_L=yes
20397 export_dynamic_flag_spec=-rdynamic
20400 cygwin* | mingw* | pw32* | cegcc*)
20401 # When not using gcc, we currently assume that we are using
20402 # Microsoft Visual C++.
20403 # hardcode_libdir_flag_spec is actually meaningless, as there is
20404 # no search path for DLLs.
20405 case $cc_basename in
20408 hardcode_libdir_flag_spec=' '
20409 allow_undefined_flag=unsupported
20410 always_export_symbols=yes
20412 # Tell ltmain to make .lib files, not .a files.
20414 # Tell ltmain to make .dll files, not .so files.
20416 # FIXME: Setting linknames here is a bad hack.
20417 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
20418 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
20419 cp "$export_symbols" "$output_objdir/$soname.def";
20420 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
20422 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
20424 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
20426 # The linker will not automatically build a static lib if we build a DLL.
20427 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
20428 enable_shared_with_static_runtimes=yes
20429 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20430 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20432 old_postinstall_cmds='chmod 644 $oldlib'
20433 postlink_cmds='lt_outputfile="@OUTPUT@"~
20434 lt_tool_outputfile="@TOOL_OUTPUT@"~
20435 case $lt_outputfile in
20438 lt_outputfile=$lt_outputfile.exe
20439 lt_tool_outputfile=$lt_tool_outputfile.exe
20442 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
20443 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
20444 $RM "$lt_outputfile.manifest";
20448 # Assume MSVC wrapper
20449 hardcode_libdir_flag_spec=' '
20450 allow_undefined_flag=unsupported
20451 # Tell ltmain to make .lib files, not .a files.
20453 # Tell ltmain to make .dll files, not .so files.
20455 # FIXME: Setting linknames here is a bad hack.
20456 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
20457 # The linker will automatically build a .lib file if we build a DLL.
20458 old_archive_from_new_cmds='true'
20459 # FIXME: Should let the user specify the lib program.
20460 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
20461 enable_shared_with_static_runtimes=yes
20466 darwin* | rhapsody*)
20469 archive_cmds_need_lc=no
20471 hardcode_automatic=yes
20472 hardcode_shlibpath_var=unsupported
20473 if test yes = "$lt_cv_ld_force_load"; then
20474 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\"`'
20477 whole_archive_flag_spec=''
20479 link_all_deplibs=yes
20480 allow_undefined_flag=$_lt_dar_allow_undefined
20481 case $cc_basename in
20482 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
20483 *) _lt_dar_can_shared=$GCC ;;
20485 if test yes = "$_lt_dar_can_shared"; then
20486 output_verbose_link_cmd=func_echo_all
20487 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
20488 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
20489 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"
20490 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"
20499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20500 hardcode_libdir_flag_spec='-L$libdir'
20501 hardcode_shlibpath_var=no
20504 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20505 # support. Future versions do this automatically, but an explicit c++rt0.o
20506 # does not break anything, and helps significantly (at the cost of a little
20509 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20510 hardcode_libdir_flag_spec='-R$libdir'
20511 hardcode_direct=yes
20512 hardcode_shlibpath_var=no
20515 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20518 hardcode_direct=yes
20519 hardcode_minus_L=yes
20520 hardcode_shlibpath_var=no
20523 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20524 freebsd* | dragonfly*)
20525 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20526 hardcode_libdir_flag_spec='-R$libdir'
20527 hardcode_direct=yes
20528 hardcode_shlibpath_var=no
20532 if test yes = "$GCC"; then
20533 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'
20535 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'
20537 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
20538 hardcode_libdir_separator=:
20539 hardcode_direct=yes
20541 # hardcode_minus_L: Not really in the search PATH,
20542 # but as the default location of the library.
20543 hardcode_minus_L=yes
20544 export_dynamic_flag_spec='$wl-E'
20548 if test yes,no = "$GCC,$with_gnu_ld"; then
20549 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20551 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20553 if test no = "$with_gnu_ld"; then
20554 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
20555 hardcode_libdir_separator=:
20556 hardcode_direct=yes
20557 hardcode_direct_absolute=yes
20558 export_dynamic_flag_spec='$wl-E'
20559 # hardcode_minus_L: Not really in the search PATH,
20560 # but as the default location of the library.
20561 hardcode_minus_L=yes
20566 if test yes,no = "$GCC,$with_gnu_ld"; then
20569 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20572 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20575 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20581 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20584 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20588 # Older versions of the 11.00 compiler do not understand -b yet
20589 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
20591 $as_echo_n "checking if $CC understands -b... " >&6; }
20592 if ${lt_cv_prog_compiler__b+:} false; then :
20593 $as_echo_n "(cached) " >&6
20595 lt_cv_prog_compiler__b=no
20596 save_LDFLAGS=$LDFLAGS
20597 LDFLAGS="$LDFLAGS -b"
20598 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20599 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20600 # The linker can only warn and ignore the option if not recognized
20601 # So say no if there are warnings
20602 if test -s conftest.err; then
20603 # Append any errors to the config.log.
20604 cat conftest.err 1>&5
20605 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20607 if diff conftest.exp conftest.er2 >/dev/null; then
20608 lt_cv_prog_compiler__b=yes
20611 lt_cv_prog_compiler__b=yes
20615 LDFLAGS=$save_LDFLAGS
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
20619 $as_echo "$lt_cv_prog_compiler__b" >&6; }
20621 if test yes = "$lt_cv_prog_compiler__b"; then
20622 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20624 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20630 if test no = "$with_gnu_ld"; then
20631 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
20632 hardcode_libdir_separator=:
20637 hardcode_shlibpath_var=no
20640 hardcode_direct=yes
20641 hardcode_direct_absolute=yes
20642 export_dynamic_flag_spec='$wl-E'
20644 # hardcode_minus_L: Not really in the search PATH,
20645 # but as the default location of the library.
20646 hardcode_minus_L=yes
20652 irix5* | irix6* | nonstopux*)
20653 if test yes = "$GCC"; then
20654 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'
20655 # Try to use the -exported_symbol ld option, if it does not
20656 # work, assume that -exports_file does not work either and
20657 # implicitly export all symbols.
20658 # This should be the same for all languages, so no per-tag cache variable.
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
20660 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
20661 if ${lt_cv_irix_exported_symbol+:} false; then :
20662 $as_echo_n "(cached) " >&6
20664 save_LDFLAGS=$LDFLAGS
20665 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
20666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20667 /* end confdefs.h. */
20668 int foo (void) { return 0; }
20670 if ac_fn_c_try_link "$LINENO"; then :
20671 lt_cv_irix_exported_symbol=yes
20673 lt_cv_irix_exported_symbol=no
20675 rm -f core conftest.err conftest.$ac_objext \
20676 conftest$ac_exeext conftest.$ac_ext
20677 LDFLAGS=$save_LDFLAGS
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
20680 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
20681 if test yes = "$lt_cv_irix_exported_symbol"; then
20682 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'
20685 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'
20686 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'
20688 archive_cmds_need_lc='no'
20689 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20690 hardcode_libdir_separator=:
20692 link_all_deplibs=yes
20696 case $cc_basename in
20698 # Fabrice Bellard et al's Tiny C Compiler
20700 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20709 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20711 hardcode_libdir_flag_spec='-R$libdir'
20712 hardcode_direct=yes
20713 hardcode_shlibpath_var=no
20717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20718 hardcode_direct=yes
20719 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20720 hardcode_libdir_separator=:
20721 hardcode_shlibpath_var=no
20727 openbsd* | bitrig*)
20728 if test -f /usr/libexec/ld.so; then
20729 hardcode_direct=yes
20730 hardcode_shlibpath_var=no
20731 hardcode_direct_absolute=yes
20732 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20733 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20734 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
20735 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
20736 export_dynamic_flag_spec='$wl-E'
20738 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20739 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
20747 hardcode_libdir_flag_spec='-L$libdir'
20748 hardcode_minus_L=yes
20749 allow_undefined_flag=unsupported
20751 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20752 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20753 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20754 $ECHO EXPORTS >> $output_objdir/$libname.def~
20755 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
20756 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20757 emximp -o $lib $output_objdir/$libname.def'
20758 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20759 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20760 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20761 $ECHO EXPORTS >> $output_objdir/$libname.def~
20762 prefix_cmds="$SED"~
20763 if test EXPORTS = "`$SED 1q $export_symbols`"; then
20764 prefix_cmds="$prefix_cmds -e 1d";
20766 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
20767 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
20768 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20769 emximp -o $lib $output_objdir/$libname.def'
20770 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
20771 enable_shared_with_static_runtimes=yes
20775 if test yes = "$GCC"; then
20776 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
20777 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'
20779 allow_undefined_flag=' -expect_unresolved \*'
20780 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'
20782 archive_cmds_need_lc='no'
20783 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20784 hardcode_libdir_separator=:
20787 osf4* | osf5*) # as osf3* with the addition of -msym flag
20788 if test yes = "$GCC"; then
20789 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
20790 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'
20791 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20793 allow_undefined_flag=' -expect_unresolved \*'
20794 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'
20795 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~
20796 $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'
20798 # Both c and cxx compiler support -rpath directly
20799 hardcode_libdir_flag_spec='-rpath $libdir'
20801 archive_cmds_need_lc='no'
20802 hardcode_libdir_separator=:
20806 no_undefined_flag=' -z defs'
20807 if test yes = "$GCC"; then
20809 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20810 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20811 $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'
20813 case `$CC -V 2>&1` in
20816 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
20817 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20818 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
20822 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
20823 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20824 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20828 hardcode_libdir_flag_spec='-R$libdir'
20829 hardcode_shlibpath_var=no
20831 solaris2.[0-5] | solaris2.[0-5].*) ;;
20833 # The compiler driver will combine and reorder linker options,
20834 # but understands '-z linker_flag'. GCC discards it without '$wl',
20835 # but is careful enough not to reorder.
20836 # Supported since Solaris 2.6 (maybe 2.5.1?)
20837 if test yes = "$GCC"; then
20838 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
20840 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
20844 link_all_deplibs=yes
20848 if test sequent = "$host_vendor"; then
20849 # Use $CC to link under sequent, because it throws in some extra .o
20850 # files that make .init and .fini sections work.
20851 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20853 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20855 hardcode_libdir_flag_spec='-L$libdir'
20856 hardcode_direct=yes
20857 hardcode_minus_L=yes
20858 hardcode_shlibpath_var=no
20862 case $host_vendor in
20864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20865 hardcode_direct=yes # is this really true???
20868 ## LD is ld it makes a PLAMLIB
20869 ## CC just makes a GrossModule.
20870 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20871 reload_cmds='$CC -r -o $output$reload_objs'
20875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20876 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
20879 runpath_var='LD_RUN_PATH'
20880 hardcode_shlibpath_var=no
20884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20885 hardcode_shlibpath_var=no
20886 export_dynamic_flag_spec='-Bexport'
20890 if test -d /usr/nec; then
20891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20892 hardcode_shlibpath_var=no
20893 runpath_var=LD_RUN_PATH
20894 hardcode_runpath_var=yes
20899 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20900 no_undefined_flag='$wl-z,text'
20901 archive_cmds_need_lc=no
20902 hardcode_shlibpath_var=no
20903 runpath_var='LD_RUN_PATH'
20905 if test yes = "$GCC"; then
20906 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20907 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20909 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20910 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20914 sysv5* | sco3.2v5* | sco5v6*)
20915 # Note: We CANNOT use -z defs as we might desire, because we do not
20916 # link with -lc, and that would cause any symbols used from libc to
20917 # always be unresolved, which means just about no library would
20918 # ever link correctly. If we're not using GNU ld we use -z text
20919 # though, which does catch some bad symbols but isn't as heavy-handed
20921 no_undefined_flag='$wl-z,text'
20922 allow_undefined_flag='$wl-z,nodefs'
20923 archive_cmds_need_lc=no
20924 hardcode_shlibpath_var=no
20925 hardcode_libdir_flag_spec='$wl-R,$libdir'
20926 hardcode_libdir_separator=':'
20927 link_all_deplibs=yes
20928 export_dynamic_flag_spec='$wl-Bexport'
20929 runpath_var='LD_RUN_PATH'
20931 if test yes = "$GCC"; then
20932 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20933 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20935 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20936 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20942 hardcode_libdir_flag_spec='-L$libdir'
20943 hardcode_shlibpath_var=no
20951 if test sni = "$host_vendor"; then
20953 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20954 export_dynamic_flag_spec='$wl-Blargedynsym'
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20961 $as_echo "$ld_shlibs" >&6; }
20962 test no = "$ld_shlibs" && can_build_shared=no
20964 with_gnu_ld=$with_gnu_ld
20981 # Do we need to explicitly link libc?
20983 case "x$archive_cmds_need_lc" in
20985 # Assume -lc should be added
20986 archive_cmds_need_lc=yes
20988 if test yes,yes = "$GCC,$enable_shared"; then
20989 case $archive_cmds in
20991 # FIXME: we may have to deal with multi-command sequences.
20994 # Test whether the compiler implicitly links with -lc since on some
20995 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20996 # to ld, don't add -lc before -lgcc.
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20998 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20999 if ${lt_cv_archive_cmds_need_lc+:} false; then :
21000 $as_echo_n "(cached) " >&6
21003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21006 (eval $ac_compile) 2>&5
21008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21009 test $ac_status = 0; } 2>conftest.err; then
21012 libobjs=conftest.$ac_objext
21014 wl=$lt_prog_compiler_wl
21015 pic_flag=$lt_prog_compiler_pic
21021 lt_save_allow_undefined_flag=$allow_undefined_flag
21022 allow_undefined_flag=
21023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21024 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21027 test $ac_status = 0; }
21029 lt_cv_archive_cmds_need_lc=no
21031 lt_cv_archive_cmds_need_lc=yes
21033 allow_undefined_flag=$lt_save_allow_undefined_flag
21035 cat conftest.err 1>&5
21040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
21041 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
21042 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21201 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21203 if test yes = "$GCC"; then
21205 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
21206 *) lt_awk_arg='/^libraries:/' ;;
21209 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
21210 *) lt_sed_strip_eq='s|=/|/|g' ;;
21212 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
21213 case $lt_search_path_spec in
21215 # if the path contains ";" then we assume it to be the separator
21216 # otherwise default to the standard path separator (i.e. ":") - it is
21217 # assumed that no part of a normal pathname contains ";" but that should
21218 # okay in the real world where ";" in dirpaths is itself problematic.
21219 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
21222 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
21225 # Ok, now we have the path, separated by spaces, we can step through it
21226 # and add multilib dir if necessary...
21227 lt_tmp_lt_search_path_spec=
21228 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
21229 # ...but if some path component already ends with the multilib dir we assume
21230 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
21231 case "$lt_multi_os_dir; $lt_search_path_spec " in
21232 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
21236 for lt_sys_path in $lt_search_path_spec; do
21237 if test -d "$lt_sys_path$lt_multi_os_dir"; then
21238 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
21239 elif test -n "$lt_multi_os_dir"; then
21240 test -d "$lt_sys_path" && \
21241 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
21244 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
21245 BEGIN {RS = " "; FS = "/|\n";} {
21248 for (lt_i = NF; lt_i > 0; lt_i--) {
21249 if ($lt_i != "" && $lt_i != ".") {
21250 if ($lt_i == "..") {
21253 if (lt_count == 0) {
21254 lt_foo = "/" $lt_i lt_foo;
21261 if (lt_foo != "") { lt_freq[lt_foo]++; }
21262 if (lt_freq[lt_foo] == 1) { print lt_foo; }
21264 # AWK program above erroneously prepends '/' to C:/dos/paths
21267 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
21268 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
21270 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
21272 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21274 library_names_spec=
21275 libname_spec='lib$name'
21279 postuninstall_cmds=
21283 shlibpath_overrides_runpath=unknown
21285 dynamic_linker="$host_os ld.so"
21286 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21287 need_lib_prefix=unknown
21288 hardcode_into_libs=no
21290 # when you set need_version to no, make sure it does not cause -set_version
21291 # flags to be left without arguments
21292 need_version=unknown
21298 version_type=linux # correct to gnu/linux during the next big refactor
21299 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
21300 shlibpath_var=LIBPATH
21302 # AIX 3 has no versioning support, so we append a major version to the name.
21303 soname_spec='$libname$release$shared_ext$major'
21307 version_type=linux # correct to gnu/linux during the next big refactor
21310 hardcode_into_libs=yes
21311 if test ia64 = "$host_cpu"; then
21312 # AIX 5 supports IA64
21313 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
21314 shlibpath_var=LD_LIBRARY_PATH
21316 # With GCC up to 2.95.x, collect2 would create an import file
21317 # for dependence libraries. The import file would start with
21318 # the line '#! .'. This would cause the generated library to
21319 # depend on '.', always an invalid library. This was fixed in
21320 # development snapshots of GCC prior to 3.0.
21322 aix4 | aix4.[01] | aix4.[01].*)
21323 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21325 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
21328 can_build_shared=no
21332 # Using Import Files as archive members, it is possible to support
21333 # filename-based versioning of shared library archives on AIX. While
21334 # this would work for both with and without runtime linking, it will
21335 # prevent static linking of such archives. So we do filename-based
21336 # shared library versioning with .so extension only, which is used
21337 # when both runtime linking and shared linking is enabled.
21338 # Unfortunately, runtime linking may impact performance, so we do
21339 # not want this to be the default eventually. Also, we use the
21340 # versioned .so libs for executables only if there is the -brtl
21341 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
21342 # To allow for filename-based versioning support, we need to create
21343 # libNAME.so.V as an archive file, containing:
21344 # *) an Import File, referring to the versioned filename of the
21345 # archive as well as the shared archive member, telling the
21346 # bitwidth (32 or 64) of that shared object, and providing the
21347 # list of exported symbols of that shared object, eventually
21348 # decorated with the 'weak' keyword
21349 # *) the shared object with the F_LOADONLY flag set, to really avoid
21350 # it being seen by the linker.
21351 # At run time we better use the real file rather than another symlink,
21352 # but for link time we create the symlink libNAME.so -> libNAME.so.V
21354 case $with_aix_soname,$aix_use_runtimelinking in
21355 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
21356 # soname into executable. Probably we can add versioning support to
21357 # collect2, so additional links can be useful in future.
21358 aix,yes) # traditional libtool
21359 dynamic_linker='AIX unversionable lib.so'
21360 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21361 # instead of lib<name>.a to let people know that these are not
21362 # typical AIX shared libraries.
21363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21365 aix,no) # traditional AIX only
21366 dynamic_linker='AIX lib.a(lib.so.V)'
21367 # We preserve .a as extension for shared libraries through AIX4.2
21368 # and later when we are not doing run time linking.
21369 library_names_spec='$libname$release.a $libname.a'
21370 soname_spec='$libname$release$shared_ext$major'
21372 svr4,*) # full svr4 only
21373 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
21374 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21375 # We do not specify a path in Import Files, so LIBPATH fires.
21376 shlibpath_overrides_runpath=yes
21378 *,yes) # both, prefer svr4
21379 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
21380 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21381 # unpreferred sharedlib libNAME.a needs extra handling
21382 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"'
21383 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"'
21384 # We do not specify a path in Import Files, so LIBPATH fires.
21385 shlibpath_overrides_runpath=yes
21387 *,no) # both, prefer aix
21388 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
21389 library_names_spec='$libname$release.a $libname.a'
21390 soname_spec='$libname$release$shared_ext$major'
21391 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
21392 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)'
21393 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"'
21396 shlibpath_var=LIBPATH
21403 # Since July 2007 AmigaOS4 officially supports .so libraries.
21404 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21408 library_names_spec='$libname.ixlibrary $libname.a'
21409 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21410 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'
21416 library_names_spec='$libname$shared_ext'
21417 dynamic_linker="$host_os ld.so"
21418 shlibpath_var=LIBRARY_PATH
21422 version_type=linux # correct to gnu/linux during the next big refactor
21424 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21425 soname_spec='$libname$release$shared_ext$major'
21426 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21427 shlibpath_var=LD_LIBRARY_PATH
21428 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21429 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21430 # the default ld.so.conf also contains /usr/contrib/lib and
21431 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21432 # libtool to hard-code these into programs
21435 cygwin* | mingw* | pw32* | cegcc*)
21436 version_type=windows
21441 case $GCC,$cc_basename in
21444 library_names_spec='$libname.dll.a'
21445 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21446 postinstall_cmds='base_file=`basename \$file`~
21447 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21448 dldir=$destdir/`dirname \$dlpath`~
21449 test -d \$dldir || mkdir -p \$dldir~
21450 $install_prog $dir/$dlname \$dldir/$dlname~
21451 chmod a+x \$dldir/$dlname~
21452 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21453 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21455 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21456 dlpath=$dir/\$dldll~
21458 shlibpath_overrides_runpath=yes
21462 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21463 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21465 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
21468 # MinGW DLLs use traditional 'lib' prefix
21469 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21472 # pw32 DLLs use 'pw' prefix rather than 'lib'
21473 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21476 dynamic_linker='Win32 ld.exe'
21481 libname_spec='$name'
21482 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21483 library_names_spec='$libname.dll.lib'
21487 sys_lib_search_path_spec=
21490 for lt_path in $LIB
21493 # Let DOS variable expansion print the short 8.3 style file name.
21494 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21495 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21498 # Convert to MSYS style.
21499 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21502 # Convert to unix form, then to dos form, then back to unix form
21503 # but this time dos style (no spaces!) so that the unix form looks
21504 # like /cygdrive/c/PROGRA~1:/cygdr...
21505 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21506 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21507 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21510 sys_lib_search_path_spec=$LIB
21511 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21512 # It is most probably a Windows format PATH.
21513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21515 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21517 # FIXME: find the short name or the path components, as spaces are
21518 # common. (e.g. "Program Files" -> "PROGRA~1")
21522 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21523 postinstall_cmds='base_file=`basename \$file`~
21524 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21525 dldir=$destdir/`dirname \$dlpath`~
21526 test -d \$dldir || mkdir -p \$dldir~
21527 $install_prog $dir/$dlname \$dldir/$dlname'
21528 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21529 dlpath=$dir/\$dldll~
21531 shlibpath_overrides_runpath=yes
21532 dynamic_linker='Win32 link.exe'
21536 # Assume MSVC wrapper
21537 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
21538 dynamic_linker='Win32 ld.exe'
21541 # FIXME: first we should search . and the directory the executable is in
21545 darwin* | rhapsody*)
21546 dynamic_linker="$host_os dyld"
21547 version_type=darwin
21550 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
21551 soname_spec='$libname$release$major$shared_ext'
21552 shlibpath_overrides_runpath=yes
21553 shlibpath_var=DYLD_LIBRARY_PATH
21554 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21556 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
21557 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21561 version_type=linux # correct to gnu/linux during the next big refactor
21564 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21565 soname_spec='$libname$release$shared_ext$major'
21566 shlibpath_var=LD_LIBRARY_PATH
21569 freebsd* | dragonfly*)
21570 # DragonFly does not have aout. When/if they implement a new
21571 # versioning mechanism, adjust this.
21572 if test -x /usr/bin/objformat; then
21573 objformat=`/usr/bin/objformat`
21576 freebsd[23].*) objformat=aout ;;
21577 *) objformat=elf ;;
21580 version_type=freebsd-$objformat
21581 case $version_type in
21583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21584 soname_spec='$libname$release$shared_ext$major'
21589 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21593 shlibpath_var=LD_LIBRARY_PATH
21596 shlibpath_overrides_runpath=yes
21598 freebsd3.[01]* | freebsdelf3.[01]*)
21599 shlibpath_overrides_runpath=yes
21600 hardcode_into_libs=yes
21602 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21603 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21604 shlibpath_overrides_runpath=no
21605 hardcode_into_libs=yes
21607 *) # from 4.6 on, and DragonFly
21608 shlibpath_overrides_runpath=yes
21609 hardcode_into_libs=yes
21615 version_type=linux # correct to gnu/linux during the next big refactor
21618 dynamic_linker="$host_os runtime_loader"
21619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21620 soname_spec='$libname$release$shared_ext$major'
21621 shlibpath_var=LIBRARY_PATH
21622 shlibpath_overrides_runpath=no
21623 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21624 hardcode_into_libs=yes
21627 hpux9* | hpux10* | hpux11*)
21628 # Give a soname corresponding to the major version so that dld.sl refuses to
21629 # link against other versions.
21636 hardcode_into_libs=yes
21637 dynamic_linker="$host_os dld.so"
21638 shlibpath_var=LD_LIBRARY_PATH
21639 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21641 soname_spec='$libname$release$shared_ext$major'
21642 if test 32 = "$HPUX_IA64_MODE"; then
21643 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21644 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
21646 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21647 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
21652 hardcode_into_libs=yes
21653 dynamic_linker="$host_os dld.sl"
21654 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21657 soname_spec='$libname$release$shared_ext$major'
21658 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21659 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21663 dynamic_linker="$host_os dld.sl"
21664 shlibpath_var=SHLIB_PATH
21665 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21667 soname_spec='$libname$release$shared_ext$major'
21670 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21671 postinstall_cmds='chmod 555 $lib'
21672 # or fails outright, so override atomically:
21673 install_override_mode=555
21677 version_type=linux # correct to gnu/linux during the next big refactor
21680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21681 soname_spec='$libname$release$shared_ext$major'
21682 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21683 shlibpath_var=LD_LIBRARY_PATH
21684 shlibpath_overrides_runpath=no
21685 hardcode_into_libs=yes
21688 irix5* | irix6* | nonstopux*)
21690 nonstopux*) version_type=nonstopux ;;
21692 if test yes = "$lt_cv_prog_gnu_ld"; then
21693 version_type=linux # correct to gnu/linux during the next big refactor
21700 soname_spec='$libname$release$shared_ext$major'
21701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
21703 irix5* | nonstopux*)
21704 libsuff= shlibsuff=
21707 case $LD in # libtool.m4 will add one of these switches to LD
21708 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21709 libsuff= shlibsuff= libmagic=32-bit;;
21710 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21711 libsuff=32 shlibsuff=N32 libmagic=N32;;
21712 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21713 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21714 *) libsuff= shlibsuff= libmagic=never-match;;
21718 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21719 shlibpath_overrides_runpath=no
21720 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
21721 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
21722 hardcode_into_libs=yes
21725 # No shared lib support for Linux oldld, aout, or coff.
21726 linux*oldld* | linux*aout* | linux*coff*)
21731 version_type=none # Android doesn't support versioned libraries.
21734 library_names_spec='$libname$release$shared_ext'
21735 soname_spec='$libname$release$shared_ext'
21737 shlibpath_var=LD_LIBRARY_PATH
21738 shlibpath_overrides_runpath=yes
21740 # This implies no fast_install, which is unacceptable.
21741 # Some rework will be needed to allow for fast_install
21742 # before this can be enabled.
21743 hardcode_into_libs=yes
21745 dynamic_linker='Android linker'
21746 # Don't embed -rpath directories since the linker doesn't support them.
21747 hardcode_libdir_flag_spec='-L$libdir'
21750 # This must be glibc/ELF.
21751 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21752 version_type=linux # correct to gnu/linux during the next big refactor
21755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21756 soname_spec='$libname$release$shared_ext$major'
21757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21758 shlibpath_var=LD_LIBRARY_PATH
21759 shlibpath_overrides_runpath=no
21761 # Some binutils ld are patched to set DT_RUNPATH
21762 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21763 $as_echo_n "(cached) " >&6
21765 lt_cv_shlibpath_overrides_runpath=no
21766 save_LDFLAGS=$LDFLAGS
21767 save_libdir=$libdir
21768 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
21769 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
21770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21771 /* end confdefs.h. */
21781 if ac_fn_c_try_link "$LINENO"; then :
21782 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21783 lt_cv_shlibpath_overrides_runpath=yes
21786 rm -f core conftest.err conftest.$ac_objext \
21787 conftest$ac_exeext conftest.$ac_ext
21788 LDFLAGS=$save_LDFLAGS
21789 libdir=$save_libdir
21793 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21795 # This implies no fast_install, which is unacceptable.
21796 # Some rework will be needed to allow for fast_install
21797 # before this can be enabled.
21798 hardcode_into_libs=yes
21800 # Ideally, we could use ldconfig to report *all* directores which are
21801 # searched for libraries, however this is still not possible. Aside from not
21802 # being certain /sbin/ldconfig is available, command
21803 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
21804 # even though it is searched at run-time. Try to do the best guess by
21805 # appending ld.so.conf contents (and includes) to the search path.
21806 if test -f /etc/ld.so.conf; then
21807 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' ' '`
21808 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21811 # We used to test for /lib/ld.so.1 and disable shared libraries on
21812 # powerpc, because MkLinux only supported shared libraries with the
21813 # GNU dynamic linker. Since this was broken with cross compilers,
21814 # most powerpc-linux boxes support dynamic linking these days and
21815 # people can always --disable-shared, the test was removed, and we
21816 # assume the GNU/Linux dynamic linker is in use.
21817 dynamic_linker='GNU/Linux ld.so'
21824 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21825 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21827 dynamic_linker='NetBSD (a.out) ld.so'
21829 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21830 soname_spec='$libname$release$shared_ext$major'
21831 dynamic_linker='NetBSD ld.elf_so'
21833 shlibpath_var=LD_LIBRARY_PATH
21834 shlibpath_overrides_runpath=yes
21835 hardcode_into_libs=yes
21839 version_type=linux # correct to gnu/linux during the next big refactor
21840 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21841 shlibpath_var=LD_LIBRARY_PATH
21842 shlibpath_overrides_runpath=yes
21849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21850 soname_spec='$libname$release$shared_ext$major'
21851 shlibpath_var=LD_LIBRARY_PATH
21852 shlibpath_overrides_runpath=no
21853 hardcode_into_libs=yes
21854 dynamic_linker='ldqnx.so'
21857 openbsd* | bitrig*)
21859 sys_lib_dlsearch_path_spec=/usr/lib
21861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
21866 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21867 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21868 shlibpath_var=LD_LIBRARY_PATH
21869 shlibpath_overrides_runpath=yes
21873 libname_spec='$name'
21874 version_type=windows
21878 # OS/2 can only load a DLL with a base name of 8 characters or less.
21879 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
21880 v=$($ECHO $release$versuffix | tr -d .-);
21881 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
21882 $ECHO $n$v`$shared_ext'
21883 library_names_spec='${libname}_dll.$libext'
21884 dynamic_linker='OS/2 ld.exe'
21885 shlibpath_var=BEGINLIBPATH
21886 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21888 postinstall_cmds='base_file=`basename \$file`~
21889 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
21890 dldir=$destdir/`dirname \$dlpath`~
21891 test -d \$dldir || mkdir -p \$dldir~
21892 $install_prog $dir/$dlname \$dldir/$dlname~
21893 chmod a+x \$dldir/$dlname~
21894 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21895 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
21898 dlpath=$dir/\$dldll~
21902 osf3* | osf4* | osf5*)
21906 soname_spec='$libname$release$shared_ext$major'
21907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21908 shlibpath_var=LD_LIBRARY_PATH
21909 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21918 version_type=linux # correct to gnu/linux during the next big refactor
21921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21922 soname_spec='$libname$release$shared_ext$major'
21923 shlibpath_var=LD_LIBRARY_PATH
21924 shlibpath_overrides_runpath=yes
21925 hardcode_into_libs=yes
21926 # ldd complains unless libraries are executable
21927 postinstall_cmds='chmod +x $lib'
21932 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21933 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21934 shlibpath_var=LD_LIBRARY_PATH
21935 shlibpath_overrides_runpath=yes
21936 if test yes = "$with_gnu_ld"; then
21943 version_type=linux # correct to gnu/linux during the next big refactor
21944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21945 soname_spec='$libname$release$shared_ext$major'
21946 shlibpath_var=LD_LIBRARY_PATH
21947 case $host_vendor in
21949 shlibpath_overrides_runpath=no
21951 runpath_var=LD_RUN_PATH
21959 shlibpath_overrides_runpath=no
21960 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21966 if test -d /usr/nec; then
21967 version_type=linux # correct to gnu/linux during the next big refactor
21968 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
21969 soname_spec='$libname$shared_ext.$major'
21970 shlibpath_var=LD_LIBRARY_PATH
21974 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
21979 soname_spec='$libname$release$shared_ext$major'
21980 shlibpath_var=LD_LIBRARY_PATH
21981 shlibpath_overrides_runpath=yes
21982 hardcode_into_libs=yes
21983 if test yes = "$with_gnu_ld"; then
21984 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21986 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21989 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21993 sys_lib_dlsearch_path_spec='/usr/lib'
21997 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21998 version_type=linux # correct to gnu/linux during the next big refactor
22001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22002 shlibpath_var=LD_LIBRARY_PATH
22003 shlibpath_overrides_runpath=no
22004 hardcode_into_libs=yes
22008 version_type=linux # correct to gnu/linux during the next big refactor
22009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22010 soname_spec='$libname$release$shared_ext$major'
22011 shlibpath_var=LD_LIBRARY_PATH
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22019 $as_echo "$dynamic_linker" >&6; }
22020 test no = "$dynamic_linker" && can_build_shared=no
22022 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22023 if test yes = "$GCC"; then
22024 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22027 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
22028 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
22031 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
22032 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
22035 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
22036 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
22038 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
22039 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
22041 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
22042 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22141 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22143 if test -n "$hardcode_libdir_flag_spec" ||
22144 test -n "$runpath_var" ||
22145 test yes = "$hardcode_automatic"; then
22147 # We can hardcode non-existent directories.
22148 if test no != "$hardcode_direct" &&
22149 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22150 # have to relink, otherwise we might link with an installed library
22151 # when we should be linking with a yet-to-be-installed one
22152 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
22153 test no != "$hardcode_minus_L"; then
22154 # Linking always hardcodes the temporary library directory.
22155 hardcode_action=relink
22157 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22158 hardcode_action=immediate
22161 # We cannot hardcode anything, or else we can only hardcode existing
22163 hardcode_action=unsupported
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
22166 $as_echo "$hardcode_action" >&6; }
22168 if test relink = "$hardcode_action" ||
22169 test yes = "$inherit_rpath"; then
22170 # Fast installation is not supported
22171 enable_fast_install=no
22172 elif test yes = "$shlibpath_overrides_runpath" ||
22173 test no = "$enable_shared"; then
22174 # Fast installation is not necessary
22175 enable_fast_install=needless
22183 if test yes != "$enable_dlopen"; then
22184 enable_dlopen=unknown
22185 enable_dlopen_self=unknown
22186 enable_dlopen_self_static=unknown
22193 lt_cv_dlopen=load_add_on
22195 lt_cv_dlopen_self=yes
22198 mingw* | pw32* | cegcc*)
22199 lt_cv_dlopen=LoadLibrary
22204 lt_cv_dlopen=dlopen
22209 # if libdl is installed we need to link against it
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22211 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22212 if ${ac_cv_lib_dl_dlopen+:} false; then :
22213 $as_echo_n "(cached) " >&6
22215 ac_check_lib_save_LIBS=$LIBS
22217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22218 /* end confdefs.h. */
22220 /* Override any GCC internal prototype to avoid an error.
22221 Use char because int might match the return type of a GCC
22222 builtin and then its argument prototype would still apply. */
22235 if ac_fn_c_try_link "$LINENO"; then :
22236 ac_cv_lib_dl_dlopen=yes
22238 ac_cv_lib_dl_dlopen=no
22240 rm -f core conftest.err conftest.$ac_objext \
22241 conftest$ac_exeext conftest.$ac_ext
22242 LIBS=$ac_check_lib_save_LIBS
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22245 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22246 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22247 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
22252 lt_cv_dlopen_self=yes
22259 # Don't try to run any link tests for TPF. We know it's impossible
22260 # because TPF is a cross-compiler, and we know how we open DSOs.
22261 lt_cv_dlopen=dlopen
22263 lt_cv_dlopen_self=no
22267 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22268 if test "x$ac_cv_func_shl_load" = xyes; then :
22269 lt_cv_dlopen=shl_load
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
22272 $as_echo_n "checking for shl_load in -ldld... " >&6; }
22273 if ${ac_cv_lib_dld_shl_load+:} false; then :
22274 $as_echo_n "(cached) " >&6
22276 ac_check_lib_save_LIBS=$LIBS
22278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22279 /* end confdefs.h. */
22281 /* Override any GCC internal prototype to avoid an error.
22282 Use char because int might match the return type of a GCC
22283 builtin and then its argument prototype would still apply. */
22291 return shl_load ();
22296 if ac_fn_c_try_link "$LINENO"; then :
22297 ac_cv_lib_dld_shl_load=yes
22299 ac_cv_lib_dld_shl_load=no
22301 rm -f core conftest.err conftest.$ac_objext \
22302 conftest$ac_exeext conftest.$ac_ext
22303 LIBS=$ac_check_lib_save_LIBS
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
22306 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22307 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
22308 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
22310 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22311 if test "x$ac_cv_func_dlopen" = xyes; then :
22312 lt_cv_dlopen=dlopen
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22315 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22316 if ${ac_cv_lib_dl_dlopen+:} false; then :
22317 $as_echo_n "(cached) " >&6
22319 ac_check_lib_save_LIBS=$LIBS
22321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22322 /* end confdefs.h. */
22324 /* Override any GCC internal prototype to avoid an error.
22325 Use char because int might match the return type of a GCC
22326 builtin and then its argument prototype would still apply. */
22339 if ac_fn_c_try_link "$LINENO"; then :
22340 ac_cv_lib_dl_dlopen=yes
22342 ac_cv_lib_dl_dlopen=no
22344 rm -f core conftest.err conftest.$ac_objext \
22345 conftest$ac_exeext conftest.$ac_ext
22346 LIBS=$ac_check_lib_save_LIBS
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22349 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22350 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22351 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
22354 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
22355 if ${ac_cv_lib_svld_dlopen+:} false; then :
22356 $as_echo_n "(cached) " >&6
22358 ac_check_lib_save_LIBS=$LIBS
22359 LIBS="-lsvld $LIBS"
22360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22361 /* end confdefs.h. */
22363 /* Override any GCC internal prototype to avoid an error.
22364 Use char because int might match the return type of a GCC
22365 builtin and then its argument prototype would still apply. */
22378 if ac_fn_c_try_link "$LINENO"; then :
22379 ac_cv_lib_svld_dlopen=yes
22381 ac_cv_lib_svld_dlopen=no
22383 rm -f core conftest.err conftest.$ac_objext \
22384 conftest$ac_exeext conftest.$ac_ext
22385 LIBS=$ac_check_lib_save_LIBS
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
22388 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22389 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
22390 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
22393 $as_echo_n "checking for dld_link in -ldld... " >&6; }
22394 if ${ac_cv_lib_dld_dld_link+:} false; then :
22395 $as_echo_n "(cached) " >&6
22397 ac_check_lib_save_LIBS=$LIBS
22399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22400 /* end confdefs.h. */
22402 /* Override any GCC internal prototype to avoid an error.
22403 Use char because int might match the return type of a GCC
22404 builtin and then its argument prototype would still apply. */
22412 return dld_link ();
22417 if ac_fn_c_try_link "$LINENO"; then :
22418 ac_cv_lib_dld_dld_link=yes
22420 ac_cv_lib_dld_dld_link=no
22422 rm -f core conftest.err conftest.$ac_objext \
22423 conftest$ac_exeext conftest.$ac_ext
22424 LIBS=$ac_check_lib_save_LIBS
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
22427 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22428 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
22429 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
22450 if test no = "$lt_cv_dlopen"; then
22456 case $lt_cv_dlopen in
22458 save_CPPFLAGS=$CPPFLAGS
22459 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
22461 save_LDFLAGS=$LDFLAGS
22462 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
22465 LIBS="$lt_cv_dlopen_libs $LIBS"
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
22468 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
22469 if ${lt_cv_dlopen_self+:} false; then :
22470 $as_echo_n "(cached) " >&6
22472 if test yes = "$cross_compiling"; then :
22473 lt_cv_dlopen_self=cross
22475 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22476 lt_status=$lt_dlunknown
22477 cat > conftest.$ac_ext <<_LT_EOF
22478 #line $LINENO "configure"
22479 #include "confdefs.h"
22488 # define LT_DLGLOBAL RTLD_GLOBAL
22491 # define LT_DLGLOBAL DL_GLOBAL
22493 # define LT_DLGLOBAL 0
22497 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22498 find out it does not work in some platform. */
22499 #ifndef LT_DLLAZY_OR_NOW
22501 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22504 # define LT_DLLAZY_OR_NOW DL_LAZY
22507 # define LT_DLLAZY_OR_NOW RTLD_NOW
22510 # define LT_DLLAZY_OR_NOW DL_NOW
22512 # define LT_DLLAZY_OR_NOW 0
22519 /* When -fvisibility=hidden is used, assume the code has been annotated
22520 correspondingly for the symbols needed. */
22521 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22522 int fnord () __attribute__((visibility("default")));
22525 int fnord () { return 42; }
22528 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22529 int status = $lt_dlunknown;
22533 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22536 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22537 else puts (dlerror ());
22539 /* dlclose (self); */
22547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22548 (eval $ac_link) 2>&5
22550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22551 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
22552 (./conftest; exit; ) >&5 2>/dev/null
22554 case x$lt_status in
22555 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
22556 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
22557 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
22560 # compilation failed
22561 lt_cv_dlopen_self=no
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
22569 $as_echo "$lt_cv_dlopen_self" >&6; }
22571 if test yes = "$lt_cv_dlopen_self"; then
22572 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
22574 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22575 if ${lt_cv_dlopen_self_static+:} false; then :
22576 $as_echo_n "(cached) " >&6
22578 if test yes = "$cross_compiling"; then :
22579 lt_cv_dlopen_self_static=cross
22581 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22582 lt_status=$lt_dlunknown
22583 cat > conftest.$ac_ext <<_LT_EOF
22584 #line $LINENO "configure"
22585 #include "confdefs.h"
22594 # define LT_DLGLOBAL RTLD_GLOBAL
22597 # define LT_DLGLOBAL DL_GLOBAL
22599 # define LT_DLGLOBAL 0
22603 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22604 find out it does not work in some platform. */
22605 #ifndef LT_DLLAZY_OR_NOW
22607 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22610 # define LT_DLLAZY_OR_NOW DL_LAZY
22613 # define LT_DLLAZY_OR_NOW RTLD_NOW
22616 # define LT_DLLAZY_OR_NOW DL_NOW
22618 # define LT_DLLAZY_OR_NOW 0
22625 /* When -fvisibility=hidden is used, assume the code has been annotated
22626 correspondingly for the symbols needed. */
22627 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22628 int fnord () __attribute__((visibility("default")));
22631 int fnord () { return 42; }
22634 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22635 int status = $lt_dlunknown;
22639 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22642 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22643 else puts (dlerror ());
22645 /* dlclose (self); */
22653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22654 (eval $ac_link) 2>&5
22656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22657 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
22658 (./conftest; exit; ) >&5 2>/dev/null
22660 case x$lt_status in
22661 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
22662 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
22663 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
22666 # compilation failed
22667 lt_cv_dlopen_self_static=no
22674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
22675 $as_echo "$lt_cv_dlopen_self_static" >&6; }
22678 CPPFLAGS=$save_CPPFLAGS
22679 LDFLAGS=$save_LDFLAGS
22684 case $lt_cv_dlopen_self in
22685 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
22686 *) enable_dlopen_self=unknown ;;
22689 case $lt_cv_dlopen_self_static in
22690 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
22691 *) enable_dlopen_self_static=unknown ;;
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
22714 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
22715 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
22716 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22717 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22719 $as_echo "yes" >&6; }
22721 # FIXME - insert some real tests, host_os isn't really good enough
22724 if test -n "$STRIP"; then
22725 striplib="$STRIP -x"
22726 old_striplib="$STRIP -S"
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22728 $as_echo "yes" >&6; }
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22731 $as_echo "no" >&6; }
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22736 $as_echo "no" >&6; }
22752 # Report what library types will actually be built
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
22754 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
22756 $as_echo "$can_build_shared" >&6; }
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
22759 $as_echo_n "checking whether to build shared libraries... " >&6; }
22760 test no = "$can_build_shared" && enable_shared=no
22762 # On AIX, shared libraries and static libraries use the same namespace, and
22763 # are all built from PIC.
22766 test yes = "$enable_shared" && enable_static=no
22767 if test -n "$RANLIB"; then
22768 archive_cmds="$archive_cmds~\$RANLIB \$lib"
22769 postinstall_cmds='$RANLIB $lib'
22774 if test ia64 != "$host_cpu"; then
22775 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
22776 yes,aix,yes) ;; # shared object as lib.so file only
22777 yes,svr4,*) ;; # shared object as lib.so archive member only
22778 yes,*) enable_static=no ;; # shared object in lib.a archive as well
22783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
22784 $as_echo "$enable_shared" >&6; }
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
22787 $as_echo_n "checking whether to build static libraries... " >&6; }
22788 # Make sure either enable_shared or enable_static is yes.
22789 test yes = "$enable_shared" || enable_static=yes
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
22791 $as_echo "$enable_static" >&6; }
22798 ac_cpp='$CPP $CPPFLAGS'
22799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22819 ac_config_commands="$ac_config_commands libtool"
22824 # Only expand once:
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
22832 $as_echo_n "checking if sntp will be built... " >&6; }
22834 # Check whether --with-sntp was given.
22835 if test "${with_sntp+set}" = set; then :
22836 withval=$with_sntp;
22838 with_sntp="${withsntp=yes}"
22842 case "$with_sntp" in
22851 if test -n "$SNTP"; then
22853 BUILD_SNTP_FALSE='#'
22855 BUILD_SNTP_TRUE='#'
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
22860 $as_echo "$with_sntp" >&6; }
22874 # NTP has (so far) been relying on leading-edge autogen.
22875 # Therefore, by default:
22876 # - use the version we ship with
22877 # - do not install it
22878 # - build a static copy (AC_DISABLE_SHARED - done earlier)
22879 case "${enable_local_libopts+set}" in
22881 *) enable_local_libopts=yes ;;
22883 case "${enable_libopts_install+set}" in
22885 *) enable_libopts_install=no ;;
22890 ac_header_dirent=no
22891 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22892 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22894 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22895 if eval \${$as_ac_Header+:} false; then :
22896 $as_echo_n "(cached) " >&6
22898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22899 /* end confdefs.h. */
22900 #include <sys/types.h>
22912 if ac_fn_c_try_compile "$LINENO"; then :
22913 eval "$as_ac_Header=yes"
22915 eval "$as_ac_Header=no"
22917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22919 eval ac_res=\$$as_ac_Header
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22921 $as_echo "$ac_res" >&6; }
22922 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22923 cat >>confdefs.h <<_ACEOF
22924 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22927 ac_header_dirent=$ac_hdr; break
22931 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22932 if test $ac_header_dirent = dirent.h; then
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22934 $as_echo_n "checking for library containing opendir... " >&6; }
22935 if ${ac_cv_search_opendir+:} false; then :
22936 $as_echo_n "(cached) " >&6
22938 ac_func_search_save_LIBS=$LIBS
22939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22940 /* end confdefs.h. */
22942 /* Override any GCC internal prototype to avoid an error.
22943 Use char because int might match the return type of a GCC
22944 builtin and then its argument prototype would still apply. */
22957 for ac_lib in '' dir; do
22958 if test -z "$ac_lib"; then
22959 ac_res="none required"
22962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22964 if ac_fn_c_try_link "$LINENO"; then :
22965 ac_cv_search_opendir=$ac_res
22967 rm -f core conftest.err conftest.$ac_objext \
22969 if ${ac_cv_search_opendir+:} false; then :
22973 if ${ac_cv_search_opendir+:} false; then :
22976 ac_cv_search_opendir=no
22978 rm conftest.$ac_ext
22979 LIBS=$ac_func_search_save_LIBS
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22982 $as_echo "$ac_cv_search_opendir" >&6; }
22983 ac_res=$ac_cv_search_opendir
22984 if test "$ac_res" != no; then :
22985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22991 $as_echo_n "checking for library containing opendir... " >&6; }
22992 if ${ac_cv_search_opendir+:} false; then :
22993 $as_echo_n "(cached) " >&6
22995 ac_func_search_save_LIBS=$LIBS
22996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22997 /* end confdefs.h. */
22999 /* Override any GCC internal prototype to avoid an error.
23000 Use char because int might match the return type of a GCC
23001 builtin and then its argument prototype would still apply. */
23014 for ac_lib in '' x; do
23015 if test -z "$ac_lib"; then
23016 ac_res="none required"
23019 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23021 if ac_fn_c_try_link "$LINENO"; then :
23022 ac_cv_search_opendir=$ac_res
23024 rm -f core conftest.err conftest.$ac_objext \
23026 if ${ac_cv_search_opendir+:} false; then :
23030 if ${ac_cv_search_opendir+:} false; then :
23033 ac_cv_search_opendir=no
23035 rm conftest.$ac_ext
23036 LIBS=$ac_func_search_save_LIBS
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23039 $as_echo "$ac_cv_search_opendir" >&6; }
23040 ac_res=$ac_cv_search_opendir
23041 if test "$ac_res" != no; then :
23042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23049 # =================
23051 # =================
23053 sys/mman.h sys/param.h sys/poll.h sys/procset.h \
23054 sys/select.h sys/socket.h sys/stropts.h sys/time.h \
23055 sys/un.h sys/wait.h dlfcn.h errno.h \
23056 fcntl.h libgen.h libintl.h memory.h \
23057 netinet/in.h setjmp.h stdbool.h sysexits.h \
23060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23061 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23062 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23063 cat >>confdefs.h <<_ACEOF
23064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23072 for ac_header in stdarg.h varargs.h
23074 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23075 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23076 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23077 cat >>confdefs.h <<_ACEOF
23078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23080 lo_have_arg_hdr=true;break
23082 lo_have_arg_hdr=false
23088 for ac_header in string.h strings.h
23090 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23091 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23092 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23093 cat >>confdefs.h <<_ACEOF
23094 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23096 lo_have_str_hdr=true;break
23098 lo_have_str_hdr=false
23104 for ac_header in limits.h sys/limits.h values.h
23106 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23107 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23108 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23109 cat >>confdefs.h <<_ACEOF
23110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23112 lo_have_lim_hdr=true;break
23114 lo_have_lim_hdr=false
23120 for ac_header in inttypes.h stdint.h
23122 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23123 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23124 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23125 cat >>confdefs.h <<_ACEOF
23126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23128 lo_have_typ_hdr=true;break
23130 lo_have_typ_hdr=false
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
23137 $as_echo_n "checking for working stdnoreturn.h... " >&6; }
23138 if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
23139 $as_echo_n "(cached) " >&6
23141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23142 /* end confdefs.h. */
23143 #include <stdlib.h>
23144 #include <stdnoreturn.h>
23145 /* Do not check for 'noreturn' after the return type.
23146 C11 allows it, but it's rarely done that way
23147 and circa-2012 bleeding-edge GCC rejects it when given
23148 -Werror=old-style-declaration. */
23149 noreturn void foo1 (void) { exit (0); }
23150 _Noreturn void foo2 (void) { exit (0); }
23151 int testit (int argc, char **argv) {
23154 (argv[0][0] ? foo1 : foo2) ();
23165 if ac_fn_c_try_compile "$LINENO"; then :
23166 gl_cv_header_working_stdnoreturn_h=yes
23168 gl_cv_header_working_stdnoreturn_h=no
23170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
23173 $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
23175 if test $gl_cv_header_working_stdnoreturn_h = yes; then
23178 STDNORETURN_H='stdnoreturn.h'
23182 if test -n "$STDNORETURN_H"; then
23183 GL_GENERATE_STDNORETURN_H_TRUE=
23184 GL_GENERATE_STDNORETURN_H_FALSE='#'
23186 GL_GENERATE_STDNORETURN_H_TRUE='#'
23187 GL_GENERATE_STDNORETURN_H_FALSE=
23192 # ----------------------------------------------------------------------
23193 # check for various programs used during the build.
23194 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
23195 # ----------------------------------------------------------------------
23196 for ac_header in runetype.h wchar.h
23198 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23199 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
23200 $ac_includes_default
23201 #if HAVE_RUNETYPE_H
23202 # include <runetype.h>
23206 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23207 cat >>confdefs.h <<_ACEOF
23208 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23216 # Check whether --enable-nls was given.
23217 if test "${enable_nls+set}" = set; then :
23218 enableval=$enable_nls;
23221 if test "x$enable_nls" != "xno" && \
23222 test "X${ac_cv_header_libintl_h}" = Xyes; then :
23225 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
23229 # --------------------------------------------
23230 # Verify certain entries from AC_CHECK_HEADERS
23231 # --------------------------------------------
23232 ${lo_have_arg_hdr} || \
23233 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
23235 ${lo_have_str_hdr} || \
23236 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
23238 ${lo_have_lim_hdr} || \
23239 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
23241 ${lo_have_typ_hdr} || \
23242 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
23244 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
23245 do eval as_ac_var=\${ac_cv_header_${f}_h}
23246 test "X${as_ac_var}" = Xyes || {
23247 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
23250 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
23251 echo '#include <stdint.h>' > inttypes.h
23253 # ----------------------------------------------------------------------
23254 # Checks for typedefs
23255 # ----------------------------------------------------------------------
23256 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
23257 if test "x$ac_cv_type_wchar_t" = xyes; then :
23259 cat >>confdefs.h <<_ACEOF
23260 #define HAVE_WCHAR_T 1
23266 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
23267 $ac_includes_default
23268 #if HAVE_RUNETYPE_H
23269 # include <runetype.h>
23272 # include <wchar.h>
23276 if test "x$ac_cv_type_wint_t" = xyes; then :
23278 cat >>confdefs.h <<_ACEOF
23279 #define HAVE_WINT_T 1
23285 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
23286 if test "x$ac_cv_type_int8_t" = xyes; then :
23288 cat >>confdefs.h <<_ACEOF
23289 #define HAVE_INT8_T 1
23294 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
23295 if test "x$ac_cv_type_uint8_t" = xyes; then :
23297 cat >>confdefs.h <<_ACEOF
23298 #define HAVE_UINT8_T 1
23303 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
23304 if test "x$ac_cv_type_int16_t" = xyes; then :
23306 cat >>confdefs.h <<_ACEOF
23307 #define HAVE_INT16_T 1
23312 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
23313 if test "x$ac_cv_type_uint16_t" = xyes; then :
23315 cat >>confdefs.h <<_ACEOF
23316 #define HAVE_UINT16_T 1
23321 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
23322 if test "x$ac_cv_type_int32_t" = xyes; then :
23324 cat >>confdefs.h <<_ACEOF
23325 #define HAVE_INT32_T 1
23330 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
23331 if test "x$ac_cv_type_uint32_t" = xyes; then :
23333 cat >>confdefs.h <<_ACEOF
23334 #define HAVE_UINT32_T 1
23339 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23340 if test "x$ac_cv_type_intptr_t" = xyes; then :
23342 cat >>confdefs.h <<_ACEOF
23343 #define HAVE_INTPTR_T 1
23348 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23349 if test "x$ac_cv_type_uintptr_t" = xyes; then :
23351 cat >>confdefs.h <<_ACEOF
23352 #define HAVE_UINTPTR_T 1
23357 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
23358 if test "x$ac_cv_type_uint_t" = xyes; then :
23360 cat >>confdefs.h <<_ACEOF
23361 #define HAVE_UINT_T 1
23366 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23367 if test "x$ac_cv_type_pid_t" = xyes; then :
23369 cat >>confdefs.h <<_ACEOF
23370 #define HAVE_PID_T 1
23375 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23376 if test "x$ac_cv_type_size_t" = xyes; then :
23378 cat >>confdefs.h <<_ACEOF
23379 #define HAVE_SIZE_T 1
23384 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23385 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
23387 cat >>confdefs.h <<_ACEOF
23388 #define HAVE_PTRDIFF_T 1
23394 # The cast to long int works around a bug in the HP C Compiler
23395 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23396 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23397 # This bug is HP SR number 8606223364.
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
23399 $as_echo_n "checking size of char *... " >&6; }
23400 if ${ac_cv_sizeof_char_p+:} false; then :
23401 $as_echo_n "(cached) " >&6
23403 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
23406 if test "$ac_cv_type_char_p" = yes; then
23407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23409 as_fn_error 77 "cannot compute sizeof (char *)
23410 See \`config.log' for more details" "$LINENO" 5; }
23412 ac_cv_sizeof_char_p=0
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
23418 $as_echo "$ac_cv_sizeof_char_p" >&6; }
23422 cat >>confdefs.h <<_ACEOF
23423 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
23427 # The cast to long int works around a bug in the HP C Compiler
23428 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23429 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23430 # This bug is HP SR number 8606223364.
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23432 $as_echo_n "checking size of int... " >&6; }
23433 if ${ac_cv_sizeof_int+:} false; then :
23434 $as_echo_n "(cached) " >&6
23436 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23439 if test "$ac_cv_type_int" = yes; then
23440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23442 as_fn_error 77 "cannot compute sizeof (int)
23443 See \`config.log' for more details" "$LINENO" 5; }
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23451 $as_echo "$ac_cv_sizeof_int" >&6; }
23455 cat >>confdefs.h <<_ACEOF
23456 #define SIZEOF_INT $ac_cv_sizeof_int
23460 # The cast to long int works around a bug in the HP C Compiler
23461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23463 # This bug is HP SR number 8606223364.
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23465 $as_echo_n "checking size of long... " >&6; }
23466 if ${ac_cv_sizeof_long+:} false; then :
23467 $as_echo_n "(cached) " >&6
23469 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23472 if test "$ac_cv_type_long" = yes; then
23473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23475 as_fn_error 77 "cannot compute sizeof (long)
23476 See \`config.log' for more details" "$LINENO" 5; }
23478 ac_cv_sizeof_long=0
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23484 $as_echo "$ac_cv_sizeof_long" >&6; }
23488 cat >>confdefs.h <<_ACEOF
23489 #define SIZEOF_LONG $ac_cv_sizeof_long
23493 # The cast to long int works around a bug in the HP C Compiler
23494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23496 # This bug is HP SR number 8606223364.
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23498 $as_echo_n "checking size of short... " >&6; }
23499 if ${ac_cv_sizeof_short+:} false; then :
23500 $as_echo_n "(cached) " >&6
23502 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23505 if test "$ac_cv_type_short" = yes; then
23506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23508 as_fn_error 77 "cannot compute sizeof (short)
23509 See \`config.log' for more details" "$LINENO" 5; }
23511 ac_cv_sizeof_short=0
23516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23517 $as_echo "$ac_cv_sizeof_short" >&6; }
23521 cat >>confdefs.h <<_ACEOF
23522 #define SIZEOF_SHORT $ac_cv_sizeof_short
23530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
23531 $as_echo_n "checking for pathfind in -lgen... " >&6; }
23532 if ${ac_cv_lib_gen_pathfind+:} false; then :
23533 $as_echo_n "(cached) " >&6
23535 ac_check_lib_save_LIBS=$LIBS
23537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23538 /* end confdefs.h. */
23540 /* Override any GCC internal prototype to avoid an error.
23541 Use char because int might match the return type of a GCC
23542 builtin and then its argument prototype would still apply. */
23550 return pathfind ();
23555 if ac_fn_c_try_link "$LINENO"; then :
23556 ac_cv_lib_gen_pathfind=yes
23558 ac_cv_lib_gen_pathfind=no
23560 rm -f core conftest.err conftest.$ac_objext \
23561 conftest$ac_exeext conftest.$ac_ext
23562 LIBS=$ac_check_lib_save_LIBS
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
23565 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
23566 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
23567 cat >>confdefs.h <<_ACEOF
23568 #define HAVE_LIBGEN 1
23575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
23576 $as_echo_n "checking for gettext in -lintl... " >&6; }
23577 if ${ac_cv_lib_intl_gettext+:} false; then :
23578 $as_echo_n "(cached) " >&6
23580 ac_check_lib_save_LIBS=$LIBS
23581 LIBS="-lintl $LIBS"
23582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23583 /* end confdefs.h. */
23585 /* Override any GCC internal prototype to avoid an error.
23586 Use char because int might match the return type of a GCC
23587 builtin and then its argument prototype would still apply. */
23600 if ac_fn_c_try_link "$LINENO"; then :
23601 ac_cv_lib_intl_gettext=yes
23603 ac_cv_lib_intl_gettext=no
23605 rm -f core conftest.err conftest.$ac_objext \
23606 conftest$ac_exeext conftest.$ac_ext
23607 LIBS=$ac_check_lib_save_LIBS
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
23610 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
23611 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
23612 cat >>confdefs.h <<_ACEOF
23613 #define HAVE_LIBINTL 1
23616 LIBS="-lintl $LIBS"
23620 for ac_func in vprintf
23622 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23623 if test "x$ac_cv_func_vprintf" = xyes; then :
23624 cat >>confdefs.h <<_ACEOF
23625 #define HAVE_VPRINTF 1
23628 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23629 if test "x$ac_cv_func__doprnt" = xyes; then :
23631 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23639 for ac_header in vfork.h
23641 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
23642 if test "x$ac_cv_header_vfork_h" = xyes; then :
23643 cat >>confdefs.h <<_ACEOF
23644 #define HAVE_VFORK_H 1
23651 for ac_func in fork vfork
23653 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23654 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23655 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23656 cat >>confdefs.h <<_ACEOF
23657 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23663 if test "x$ac_cv_func_fork" = xyes; then
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
23665 $as_echo_n "checking for working fork... " >&6; }
23666 if ${ac_cv_func_fork_works+:} false; then :
23667 $as_echo_n "(cached) " >&6
23669 if test "$cross_compiling" = yes; then :
23670 ac_cv_func_fork_works=cross
23672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23673 /* end confdefs.h. */
23674 $ac_includes_default
23679 /* By Ruediger Kuhlmann. */
23680 return fork () < 0;
23686 if ac_fn_c_try_run "$LINENO"; then :
23687 ac_cv_func_fork_works=yes
23689 ac_cv_func_fork_works=no
23691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23692 conftest.$ac_objext conftest.beam conftest.$ac_ext
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
23697 $as_echo "$ac_cv_func_fork_works" >&6; }
23700 ac_cv_func_fork_works=$ac_cv_func_fork
23702 if test "x$ac_cv_func_fork_works" = xcross; then
23704 *-*-amigaos* | *-*-msdosdjgpp*)
23705 # Override, as these systems have only a dummy fork() stub
23706 ac_cv_func_fork_works=no
23709 ac_cv_func_fork_works=yes
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23713 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23715 ac_cv_func_vfork_works=$ac_cv_func_vfork
23716 if test "x$ac_cv_func_vfork" = xyes; then
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
23718 $as_echo_n "checking for working vfork... " >&6; }
23719 if ${ac_cv_func_vfork_works+:} false; then :
23720 $as_echo_n "(cached) " >&6
23722 if test "$cross_compiling" = yes; then :
23723 ac_cv_func_vfork_works=cross
23725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23726 /* end confdefs.h. */
23727 /* Thanks to Paul Eggert for this test. */
23728 $ac_includes_default
23729 #include <sys/wait.h>
23730 #ifdef HAVE_VFORK_H
23731 # include <vfork.h>
23733 /* On some sparc systems, changes by the child to local and incoming
23734 argument registers are propagated back to the parent. The compiler
23735 is told about this with #include <vfork.h>, but some compilers
23736 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23737 static variable whose address is put into a register that is
23738 clobbered by the vfork. */
23741 sparc_address_test (int arg)
23743 sparc_address_test (arg) int arg;
23746 static pid_t child;
23764 pid_t parent = getpid ();
23767 sparc_address_test (0);
23772 /* Here is another test for sparc vfork register problems. This
23773 test uses lots of local variables, at least as many local
23774 variables as main has allocated so far including compiler
23775 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23776 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23777 reuse the register of parent for one of the local variables,
23778 since it will think that parent can't possibly be used any more
23779 in this routine. Assigning to the local variable will thus
23780 munge parent in the parent process. */
23782 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23783 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23784 /* Convince the compiler that p..p7 are live; otherwise, it might
23785 use the same hardware register for all 8 local variables. */
23786 if (p != p1 || p != p2 || p != p3 || p != p4
23787 || p != p5 || p != p6 || p != p7)
23790 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23791 from child file descriptors. If the child closes a descriptor
23792 before it execs or exits, this munges the parent's descriptor
23793 as well. Test for this by closing stdout in the child. */
23794 _exit(close(fileno(stdout)) != 0);
23799 while (wait(&status) != child)
23802 /* Was there some problem with vforking? */
23805 /* Did the child fail? (This shouldn't happen.) */
23808 /* Did the vfork/compiler bug occur? */
23809 || parent != getpid()
23811 /* Did the file descriptor bug occur? */
23812 || fstat(fileno(stdout), &st) != 0
23817 if ac_fn_c_try_run "$LINENO"; then :
23818 ac_cv_func_vfork_works=yes
23820 ac_cv_func_vfork_works=no
23822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23823 conftest.$ac_objext conftest.beam conftest.$ac_ext
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
23828 $as_echo "$ac_cv_func_vfork_works" >&6; }
23831 if test "x$ac_cv_func_fork_works" = xcross; then
23832 ac_cv_func_vfork_works=$ac_cv_func_vfork
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23834 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23837 if test "x$ac_cv_func_vfork_works" = xyes; then
23839 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
23843 $as_echo "#define vfork fork" >>confdefs.h
23846 if test "x$ac_cv_func_fork_works" = xyes; then
23848 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
23852 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
23853 strrchr strsignal fchmod fstat chmod
23855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23856 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23857 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23858 cat >>confdefs.h <<_ACEOF
23859 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
23866 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
23867 if ${ac_cv_path_SED+:} false; then :
23868 $as_echo_n "(cached) " >&6
23870 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
23871 for ac_i in 1 2 3 4 5 6 7; do
23872 ac_script="$ac_script$as_nl$ac_script"
23874 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
23875 { ac_script=; unset ac_script;}
23876 if test -z "$SED"; then
23877 ac_path_SED_found=false
23878 # Loop through the user's path and test for each of PROGNAME-LIST
23879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23880 for as_dir in $PATH
23883 test -z "$as_dir" && as_dir=.
23884 for ac_prog in sed gsed; do
23885 for ac_exec_ext in '' $ac_executable_extensions; do
23886 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
23887 as_fn_executable_p "$ac_path_SED" || continue
23888 # Check for GNU ac_path_SED and select it if it is found.
23889 # Check for GNU $ac_path_SED
23890 case `"$ac_path_SED" --version 2>&1` in
23892 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
23895 $as_echo_n 0123456789 >"conftest.in"
23898 cat "conftest.in" "conftest.in" >"conftest.tmp"
23899 mv "conftest.tmp" "conftest.in"
23900 cp "conftest.in" "conftest.nl"
23901 $as_echo '' >> "conftest.nl"
23902 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
23903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
23904 as_fn_arith $ac_count + 1 && ac_count=$as_val
23905 if test $ac_count -gt ${ac_path_SED_max-0}; then
23906 # Best one so far, save it but keep looking for a better one
23907 ac_cv_path_SED="$ac_path_SED"
23908 ac_path_SED_max=$ac_count
23910 # 10*(2^10) chars as input seems more than enough
23911 test $ac_count -gt 10 && break
23913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
23916 $ac_path_SED_found && break 3
23921 if test -z "$ac_cv_path_SED"; then
23922 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
23925 ac_cv_path_SED=$SED
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
23930 $as_echo "$ac_cv_path_SED" >&6; }
23931 SED="$ac_cv_path_SED"
23936 POSIX_SHELL=`which bash`
23937 test -x "$POSIX_SHELL" && break
23938 POSIX_SHELL=`which dash`
23939 test -x "$POSIX_SHELL" && break
23940 POSIX_SHELL=/usr/xpg4/bin/sh
23941 test -x "$POSIX_SHELL" && break
23942 POSIX_SHELL=`/bin/sh -c '
23944 if ! true ; then exit 1 ; fi
23946 test -x "$POSIX_SHELL" && break
23947 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
23950 cat >>confdefs.h <<_ACEOF
23951 #define POSIX_SHELL "${POSIX_SHELL}"
23958 LIBOPTS_BUILD_BLOCKED=''
23961 NEED_LIBOPTS_DIR=''
23963 # Check whether --enable-local-libopts was given.
23964 if test "${enable_local_libopts+set}" = set; then :
23965 enableval=$enable_local_libopts;
23966 if test x$enableval = xyes ; then
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
23968 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
23969 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
23970 NEED_LIBOPTS_DIR=true
23971 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
23976 # Check whether --enable-libopts-install was given.
23977 if test "${enable_libopts_install+set}" = set; then :
23978 enableval=$enable_libopts_install;
23981 if test "X${enable_libopts_install}" = Xyes; then
23982 INSTALL_LIBOPTS_TRUE=
23983 INSTALL_LIBOPTS_FALSE='#'
23985 INSTALL_LIBOPTS_TRUE='#'
23986 INSTALL_LIBOPTS_FALSE=
23990 if test -z "${NEED_LIBOPTS_DIR}" ; then
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
23992 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
23994 # Check whether --with-autoopts-config was given.
23995 if test "${with_autoopts_config+set}" = set; then :
23996 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
23999 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
24000 if ${lo_cv_with_autoopts_config+:} false; then :
24001 $as_echo_n "(cached) " >&6
24003 if autoopts-config --help 2>/dev/null 1>&2
24004 then lo_cv_with_autoopts_config=autoopts-config
24005 elif libopts-config --help 2>/dev/null 1>&2
24006 then lo_cv_with_autoopts_config=libopts-config
24007 else lo_cv_with_autoopts_config=no ; fi
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
24010 $as_echo "$lo_cv_with_autoopts_config" >&6; }
24013 # end of AC_ARG_WITH
24015 if ${lo_cv_test_autoopts+:} false; then :
24016 $as_echo_n "(cached) " >&6
24019 if test -z "${lo_cv_with_autoopts_config}" \
24020 -o X"${lo_cv_with_autoopts_config}" = Xno
24022 if autoopts-config --help 2>/dev/null 1>&2
24023 then lo_cv_with_autoopts_config=autoopts-config
24024 elif libopts-config --help 2>/dev/null 1>&2
24025 then lo_cv_with_autoopts_config=libopts-config
24026 else lo_cv_with_autoopts_config=false ; fi
24028 lo_cv_test_autoopts=`
24029 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
24030 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
24031 then lo_cv_test_autoopts=no ; fi
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
24036 $as_echo "${lo_cv_test_autoopts}" >&6; }
24038 if test "X${lo_cv_test_autoopts}" != Xno
24040 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
24041 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
24043 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
24044 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
24045 NEED_LIBOPTS_DIR=true
24047 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
24048 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
24049 NEED_LIBOPTS_DIR=''
24051 if test -n "${NEED_LIBOPTS_DIR}"; then
24053 NEED_LIBOPTS_FALSE='#'
24055 NEED_LIBOPTS_TRUE='#'
24056 NEED_LIBOPTS_FALSE=
24061 LIBOPTS_DIR=libopts
24064 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
24067 if test -z "$NEED_LIBOPTS_TRUE"; then :
24071 # Check to see if a reg expr header is specified.
24074 # Check whether --with-regex-header was given.
24075 if test "${with_regex_header+set}" = set; then :
24076 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
24079 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
24080 if ${libopts_cv_with_regex_header+:} false; then :
24081 $as_echo_n "(cached) " >&6
24083 libopts_cv_with_regex_header=no
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
24086 $as_echo "$libopts_cv_with_regex_header" >&6; }
24089 # end of AC_ARG_WITH
24090 if test "X${libopts_cv_with_regex_header}" != Xno
24092 cat >>confdefs.h <<_ACEOF
24093 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
24098 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
24104 # Check to see if a working libregex can be found.
24107 # Check whether --with-libregex was given.
24108 if test "${with_libregex+set}" = set; then :
24109 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
24111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
24112 $as_echo_n "checking whether with-libregex was specified... " >&6; }
24113 if ${libopts_cv_with_libregex_root+:} false; then :
24114 $as_echo_n "(cached) " >&6
24116 libopts_cv_with_libregex_root=no
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
24119 $as_echo "$libopts_cv_with_libregex_root" >&6; }
24122 # end of AC_ARG_WITH libregex
24124 if test "${with_libregex+set}" = set && \
24125 test "X${withval}" = Xno
24126 then ## disabled by request
24127 libopts_cv_with_libregex_root=no
24128 libopts_cv_with_libregex_cflags=no
24129 libopts_cv_with_libregex_libs=no
24133 # Check whether --with-libregex-cflags was given.
24134 if test "${with_libregex_cflags+set}" = set; then :
24135 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
24138 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
24139 if ${libopts_cv_with_libregex_cflags+:} false; then :
24140 $as_echo_n "(cached) " >&6
24142 libopts_cv_with_libregex_cflags=no
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
24145 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
24148 # end of AC_ARG_WITH libregex-cflags
24151 # Check whether --with-libregex-libs was given.
24152 if test "${with_libregex_libs+set}" = set; then :
24153 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
24155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
24156 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
24157 if ${libopts_cv_with_libregex_libs+:} false; then :
24158 $as_echo_n "(cached) " >&6
24160 libopts_cv_with_libregex_libs=no
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
24163 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
24166 # end of AC_ARG_WITH libregex-libs
24168 case "X${libopts_cv_with_libregex_cflags}" in
24170 case "X${libopts_cv_with_libregex_root}" in
24171 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
24172 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
24175 case "X${libopts_cv_with_libregex_libs}" in
24177 case "X${libopts_cv_with_libregex_root}" in
24178 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
24179 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
24182 libopts_save_CPPFLAGS="${CPPFLAGS}"
24183 libopts_save_LIBS="${LIBS}"
24184 case "X${libopts_cv_with_libregex_cflags}" in
24186 libopts_cv_with_libregex_cflags="" ;;
24187 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
24189 case "X${libopts_cv_with_libregex_libs}" in
24191 libopts_cv_with_libregex_libs="" ;;
24193 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
24197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
24198 $as_echo_n "checking whether libregex functions properly... " >&6; }
24199 if ${libopts_cv_with_libregex+:} false; then :
24200 $as_echo_n "(cached) " >&6
24203 if test "$cross_compiling" = yes; then :
24204 libopts_cv_with_libregex=no
24206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24207 /* end confdefs.h. */
24209 #include <stdlib.h>
24210 #include <sys/types.h>
24211 #include REGEX_HEADER
24213 void comp_re(char const * pzPat) {
24214 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
24215 if (res == 0) return;
24219 comp_re( "^.*\$" );
24220 comp_re( "()|no.*" );
24222 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
24223 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
24224 fputs( "error: regex -->.<-- did not match\n", stderr );
24229 if ac_fn_c_try_run "$LINENO"; then :
24230 libopts_cv_with_libregex=yes
24232 libopts_cv_with_libregex=no
24234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24235 conftest.$ac_objext conftest.beam conftest.$ac_ext
24237 # end of AC_RUN_IFELSE
24240 # end of AC_CACHE_VAL for libopts_cv_with_libregex
24241 fi ## disabled by request
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
24243 $as_echo "${libopts_cv_with_libregex}" >&6; }
24244 if test "X${libopts_cv_with_libregex}" != Xno
24247 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
24250 CPPFLAGS="${libopts_save_CPPFLAGS}"
24251 LIBS="${libopts_save_LIBS}"
24252 libopts_cv_with_libregex_root=no
24253 libopts_cv_with_libregex_cflags=no
24254 libopts_cv_with_libregex_libs=no
24255 libopts_cv_with_libregex=no
24260 # Check to see if pathfind(3) works.
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
24263 $as_echo_n "checking whether pathfind(3) works... " >&6; }
24264 if ${libopts_cv_run_pathfind+:} false; then :
24265 $as_echo_n "(cached) " >&6
24268 if test "$cross_compiling" = yes; then :
24269 libopts_cv_run_pathfind=no
24272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24273 /* end confdefs.h. */
24274 #include <string.h>
24275 #include <stdlib.h>
24276 int main (int argc, char ** argv) {
24277 char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
24278 return (pz == 0) ? 1 : 0;
24281 if ac_fn_c_try_run "$LINENO"; then :
24282 libopts_cv_run_pathfind=yes
24284 libopts_cv_run_pathfind=no
24286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24287 conftest.$ac_objext conftest.beam conftest.$ac_ext
24289 # end of RUN_IFELSE
24292 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
24294 $as_echo "${libopts_cv_run_pathfind}" >&6; }
24295 if test "X${libopts_cv_run_pathfind}" != Xno
24298 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
24304 # Check to see if /dev/zero is readable device.
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
24307 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
24308 if ${libopts_cv_test_dev_zero+:} false; then :
24309 $as_echo_n "(cached) " >&6
24312 libopts_cv_test_dev_zero=`exec 2> /dev/null
24313 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
24314 test -z "${dzero}" && exit 1
24316 if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
24317 then libopts_cv_test_dev_zero=no
24321 # end of CACHE_VAL of libopts_cv_test_dev_zero
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
24323 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
24324 if test "X${libopts_cv_test_dev_zero}" != Xno
24327 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
24333 # Check to see if we have a functional realpath(3C).
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
24336 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
24337 if ${libopts_cv_run_realpath+:} false; then :
24338 $as_echo_n "(cached) " >&6
24341 if test "$cross_compiling" = yes; then :
24342 libopts_cv_run_realpath=no
24345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24346 /* end confdefs.h. */
24347 #include <limits.h>
24348 #include <stdlib.h>
24349 int main (int argc, char ** argv) {
24353 char zPath[PATH_MAX+1];
24355 char *pz = realpath(argv[0], zPath);
24356 return (pz == zPath) ? 0 : 1;
24359 if ac_fn_c_try_run "$LINENO"; then :
24360 libopts_cv_run_realpath=yes
24362 libopts_cv_run_realpath=no
24364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24365 conftest.$ac_objext conftest.beam conftest.$ac_ext
24367 # end of RUN_IFELSE
24370 # end of AC_CACHE_VAL for libopts_cv_run_realpath
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
24372 $as_echo "${libopts_cv_run_realpath}" >&6; }
24373 if test "X${libopts_cv_run_realpath}" != Xno
24376 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
24382 # Check to see if strftime() works.
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
24385 $as_echo_n "checking whether strftime() works... " >&6; }
24386 if ${libopts_cv_run_strftime+:} false; then :
24387 $as_echo_n "(cached) " >&6
24390 if test "$cross_compiling" = yes; then :
24391 libopts_cv_run_strftime=no
24394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24395 /* end confdefs.h. */
24397 #include <string.h>
24400 static char const z[] = "Thursday Aug 28 240";
24402 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
24403 tm.tm_min = 44; /* minutes after the hour [0, 59] */
24404 tm.tm_hour = 12; /* hour since midnight [0, 23] */
24405 tm.tm_mday = 28; /* day of the month [1, 31] */
24406 tm.tm_mon = 7; /* months since January [0, 11] */
24407 tm.tm_year = 86; /* years since 1900 */
24408 tm.tm_wday = 4; /* days since Sunday [0, 6] */
24409 tm.tm_yday = 239; /* days since January 1 [0, 365] */
24410 tm.tm_isdst = 1; /* flag for daylight savings time */
24411 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
24412 return (strcmp( t_buf, z ) != 0); }
24414 if ac_fn_c_try_run "$LINENO"; then :
24415 libopts_cv_run_strftime=yes
24417 libopts_cv_run_strftime=no
24419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24420 conftest.$ac_objext conftest.beam conftest.$ac_ext
24422 # end of RUN_IFELSE
24425 # end of AC_CACHE_VAL for libopts_cv_run_strftime
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
24427 $as_echo "${libopts_cv_run_strftime}" >&6; }
24428 if test "X${libopts_cv_run_strftime}" != Xno
24431 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
24437 # Check to see if fopen accepts "b" mode.
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
24440 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
24441 if ${libopts_cv_run_fopen_binary+:} false; then :
24442 $as_echo_n "(cached) " >&6
24445 if test "$cross_compiling" = yes; then :
24446 libopts_cv_run_fopen_binary=no
24449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24450 /* end confdefs.h. */
24452 int main (int argc, char ** argv) {
24453 FILE * fp = fopen("conftest.$ac_ext", "rb");
24454 return (fp == NULL) ? 1 : fclose(fp); }
24456 if ac_fn_c_try_run "$LINENO"; then :
24457 libopts_cv_run_fopen_binary=yes
24459 libopts_cv_run_fopen_binary=no
24461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24462 conftest.$ac_objext conftest.beam conftest.$ac_ext
24464 # end of RUN_IFELSE
24467 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
24469 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
24470 if test "X${libopts_cv_run_fopen_binary}" != Xno
24473 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
24477 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
24483 # Check to see if fopen accepts "t" mode.
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
24486 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
24487 if ${libopts_cv_run_fopen_text+:} false; then :
24488 $as_echo_n "(cached) " >&6
24491 if test "$cross_compiling" = yes; then :
24492 libopts_cv_run_fopen_text=no
24495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24496 /* end confdefs.h. */
24498 int main (int argc, char ** argv) {
24499 FILE * fp = fopen("conftest.$ac_ext", "rt");
24500 return (fp == NULL) ? 1 : fclose(fp); }
24502 if ac_fn_c_try_run "$LINENO"; then :
24503 libopts_cv_run_fopen_text=yes
24505 libopts_cv_run_fopen_text=no
24507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24508 conftest.$ac_objext conftest.beam conftest.$ac_ext
24510 # end of RUN_IFELSE
24513 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
24515 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
24516 if test "X${libopts_cv_run_fopen_text}" != Xno
24519 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
24523 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
24529 # Check to see if not wanting optional option args.
24531 # Check whether --enable-optional-args was given.
24532 if test "${enable_optional_args+set}" = set; then :
24533 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
24536 $as_echo_n "checking whether not wanting optional option args... " >&6; }
24537 if ${libopts_cv_enable_optional_args+:} false; then :
24538 $as_echo_n "(cached) " >&6
24540 libopts_cv_enable_optional_args=yes
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
24543 $as_echo "$libopts_cv_enable_optional_args" >&6; }
24546 # end of AC_ARG_ENABLE
24547 if test "X${libopts_cv_enable_optional_args}" = Xno
24550 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
24559 ac_config_files="$ac_config_files libopts/Makefile"
24561 # end of AC_DEFUN of LIBOPTS_CHECK
24564 # From when we only used libevent for sntp:
24567 # [NTP_LIBEVENT_CHECK],
24568 # [NTP_LIBEVENT_CHECK_NOBUILD]
24573 ntp_pkgconfig_min_version='0.15.0'
24574 if test -n "$ac_tool_prefix"; then
24575 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24576 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24578 $as_echo_n "checking for $ac_word... " >&6; }
24579 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24580 $as_echo_n "(cached) " >&6
24582 case $PKG_CONFIG in
24584 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24588 for as_dir in $PATH
24591 test -z "$as_dir" && as_dir=.
24592 for ac_exec_ext in '' $ac_executable_extensions; do
24593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24594 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24605 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24606 if test -n "$PKG_CONFIG"; then
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24608 $as_echo "$PKG_CONFIG" >&6; }
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24611 $as_echo "no" >&6; }
24616 if test -z "$ac_cv_path_PKG_CONFIG"; then
24617 ac_pt_PKG_CONFIG=$PKG_CONFIG
24618 # Extract the first word of "pkg-config", so it can be a program name with args.
24619 set dummy pkg-config; ac_word=$2
24620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24621 $as_echo_n "checking for $ac_word... " >&6; }
24622 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24623 $as_echo_n "(cached) " >&6
24625 case $ac_pt_PKG_CONFIG in
24627 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24631 for as_dir in $PATH
24634 test -z "$as_dir" && as_dir=.
24635 for ac_exec_ext in '' $ac_executable_extensions; do
24636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24637 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24648 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24649 if test -n "$ac_pt_PKG_CONFIG"; then
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24651 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24654 $as_echo "no" >&6; }
24657 if test "x$ac_pt_PKG_CONFIG" = x; then
24660 case $cross_compiling:$ac_tool_warned in
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24664 ac_tool_warned=yes ;;
24666 PKG_CONFIG=$ac_pt_PKG_CONFIG
24669 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24672 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
24673 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
24675 case "$PKG_CONFIG" in
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
24678 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
24679 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
24680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24681 $as_echo "yes" >&6; }
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24684 $as_echo "no" >&6; }
24693 # Check whether --enable-local-libevent was given.
24694 if test "${enable_local_libevent+set}" = set; then :
24695 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
24697 ntp_use_local_libevent=${ntp_use_local_libevent-detect}
24710 ntp_libevent_min_version=2
24711 ntp_libevent_tearoff=libevent
24717 case "$ntp_use_local_libevent" in
24720 *) # If we have (a good enough) pkg-config, see if it can find libevent
24721 case "$PKG_CONFIG" in
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
24724 $as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
24725 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
24727 ntp_use_local_libevent=no
24728 ntp_libevent_version="`$PKG_CONFIG --modversion libevent`"
24729 case "$ntp_libevent_version" in
24731 *) ntp_libevent_version='(unknown)' ;;
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_libevent_version" >&5
24734 $as_echo "yes, version $ntp_libevent_version" >&6; }
24735 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
24736 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
24737 # HMS: I hope the following is accurate.
24738 # We don't need -levent, we only need -levent_core.
24739 # While we could grab only the -L stuff, there *might* be
24740 # other flags there we want. Originally we just removed -levent
24741 # but then somebody decided to install -levent-2.0
24742 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
24743 # So now we dance...
24745 for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
24750 *) case "$LDADD_LIBEVENT" in
24751 '') LDADD_LIBEVENT="$i" ;;
24752 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
24757 case "$LIBISC_PTHREADS_NOTHREADS" in
24759 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
24761 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
24763 ntp_use_local_libevent=yes
24764 # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
24766 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24768 $as_echo "no" >&6; }
24772 ntp_use_local_libevent=yes
24778 case "$ntp_use_local_libevent" in
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
24781 $as_echo "$as_me: Using libevent tearoff" >&6;}
24782 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
24783 case "$LIBISC_PTHREADS_NOTHREADS" in
24785 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
24788 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
24793 if test "x$ntp_use_local_libevent" = "xyes"; then
24794 BUILD_LIBEVENT_TRUE=
24795 BUILD_LIBEVENT_FALSE='#'
24797 BUILD_LIBEVENT_TRUE='#'
24798 BUILD_LIBEVENT_FALSE=
24804 case "$ntp_libevent_tearoff" in
24808 as_fn_error $? "ntp_libevent.m4 dir must be libevent, not $ntp_libevent_tearoff" "$LINENO" 5
24812 case "$ntp_use_local_libevent" in
24814 ac_configure_args=" --disable-openssl${ac_configure_args}"
24815 ac_configure_args=" --disable-shared${ac_configure_args}"
24816 ac_configure_args=" --disable-libevent-regress${ac_configure_args}"
24817 ac_configure_args=" --disable-libevent-install${ac_configure_args}"
24818 ac_configure_args=" --enable-silent-rules${ac_configure_args}"
24819 ac_configure_args=" --enable-function-sections${ac_configure_args}"
24820 ac_configure_args=" LEP_CFLAGS='${NTP_HARD_CFLAGS}'${ac_configure_args}"
24821 ac_configure_args=" LEP_CPPFLAGS='${NTP_HARD_CPPFLAGS}'${ac_configure_args}"
24822 ac_configure_args=" LEP_LDFLAGS='${NTP_HARD_LDFLAGS}'${ac_configure_args}"
24823 subdirs="$subdirs libevent"
24827 NTP_FORCE_LIBEVENT_DIST=libevent
24833 # Checks for libraries.
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
24839 $as_echo_n "checking for library containing openlog... " >&6; }
24840 if ${ac_cv_search_openlog+:} false; then :
24841 $as_echo_n "(cached) " >&6
24843 ac_func_search_save_LIBS=$LIBS
24844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24845 /* end confdefs.h. */
24847 /* Override any GCC internal prototype to avoid an error.
24848 Use char because int might match the return type of a GCC
24849 builtin and then its argument prototype would still apply. */
24862 for ac_lib in '' gen syslog; do
24863 if test -z "$ac_lib"; then
24864 ac_res="none required"
24867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24869 if ac_fn_c_try_link "$LINENO"; then :
24870 ac_cv_search_openlog=$ac_res
24872 rm -f core conftest.err conftest.$ac_objext \
24874 if ${ac_cv_search_openlog+:} false; then :
24878 if ${ac_cv_search_openlog+:} false; then :
24881 ac_cv_search_openlog=no
24883 rm conftest.$ac_ext
24884 LIBS=$ac_func_search_save_LIBS
24886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
24887 $as_echo "$ac_cv_search_openlog" >&6; }
24888 ac_res=$ac_cv_search_openlog
24889 if test "$ac_res" != no; then :
24890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24891 case "$ac_cv_search_openlog" in
24892 'none required') ;;
24894 *) LIB_SYSLOG="$ac_cv_search_openlog $LIB_SYSLOG" ;;
24900 # Checks for header files.
24901 for ac_header in netdb.h string.h strings.h syslog.h
24903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24904 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24905 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24906 cat >>confdefs.h <<_ACEOF
24907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24916 for ac_header in sysexits.h
24918 ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
24919 if test "x$ac_cv_header_sysexits_h" = xyes; then :
24920 cat >>confdefs.h <<_ACEOF
24921 #define HAVE_SYSEXITS_H 1
24927 $as_echo "#define EX_OK 0" >>confdefs.h
24930 $as_echo "#define EX_SOFTWARE 70" >>confdefs.h
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
24940 $as_echo_n "checking for facilitynames in syslog.h... " >&6; }
24941 if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
24942 $as_echo_n "(cached) " >&6
24945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24946 /* end confdefs.h. */
24948 #define SYSLOG_NAMES
24949 #include <stdlib.h>
24950 #include <syslog.h>
24955 void *fnames; fnames = facilitynames;
24960 if ac_fn_c_try_compile "$LINENO"; then :
24961 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
24963 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
24965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
24968 $as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
24969 case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
24972 $as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
24977 $as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
24981 $as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
24986 # Checks for typedefs, structures, and compiler characteristics.
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
24988 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
24989 if ${ac_cv_header_stdbool_h+:} false; then :
24990 $as_echo_n "(cached) " >&6
24992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24993 /* end confdefs.h. */
24995 #include <stdbool.h>
24997 "error: bool is not defined"
25000 "error: false is not defined"
25003 "error: false is not 0"
25006 "error: true is not defined"
25009 "error: true is not 1"
25011 #ifndef __bool_true_false_are_defined
25012 "error: __bool_true_false_are_defined is not defined"
25015 struct s { _Bool s: 1; _Bool t; } s;
25017 char a[true == 1 ? 1 : -1];
25018 char b[false == 0 ? 1 : -1];
25019 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
25020 char d[(bool) 0.5 == true ? 1 : -1];
25021 /* See body of main program for 'e'. */
25022 char f[(_Bool) 0.0 == false ? 1 : -1];
25024 char h[sizeof (_Bool)];
25025 char i[sizeof s.t];
25026 enum { j = false, k = true, l = false * true, m = true * 256 };
25027 /* The following fails for
25028 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
25030 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
25031 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
25032 /* Catch a bug in an HP-UX C compiler. See
25033 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
25034 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
25046 /* Refer to every declared value, to avoid compiler optimizations. */
25047 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
25048 + !m + !n + !o + !p + !q + !pq);
25054 if ac_fn_c_try_compile "$LINENO"; then :
25055 ac_cv_header_stdbool_h=yes
25057 ac_cv_header_stdbool_h=no
25059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
25062 $as_echo "$ac_cv_header_stdbool_h" >&6; }
25063 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
25064 if test "x$ac_cv_type__Bool" = xyes; then :
25066 cat >>confdefs.h <<_ACEOF
25067 #define HAVE__BOOL 1
25074 if test $ac_cv_header_stdbool_h = yes; then
25076 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
25089 # Check whether --with-crypto was given.
25090 if test "${with_crypto+set}" = set; then :
25091 withval=$with_crypto;
25095 # Check whether --with-openssl-libdir was given.
25096 if test "${with_openssl_libdir+set}" = set; then :
25097 withval=$with_openssl_libdir;
25101 # Check whether --with-openssl-incdir was given.
25102 if test "${with_openssl_incdir+set}" = set; then :
25103 withval=$with_openssl_incdir;
25107 # Check whether --with-rpath was given.
25108 if test "${with_rpath+set}" = set; then :
25109 withval=$with_rpath;
25114 ntp_openssl_from_pkg_config=no
25116 with_crypto=${with_crypto:-openssl,libcrypto}
25117 case "$with_crypto" in
25119 with_crypto=openssl,libcrypto
25123 case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
25125 *:notempty:notgiven:notgiven)
25126 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
25128 $as_echo_n "checking pkg-config for $pkg... " >&6; }
25129 if $PKG_CONFIG --exists $pkg ; then
25130 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
25131 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
25132 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
25133 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
25134 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
25137 ntp_openssl_from_pkg_config=yes
25138 ntp_openssl_version="`$PKG_CONFIG --modversion $pkg`"
25139 case "$ntp_openssl_version" in
25141 *) ntp_openssl_version='(unknown)' ;;
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_openssl_version" >&5
25144 $as_echo "yes, version $ntp_openssl_version" >&6; }
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25149 $as_echo "no" >&6; }
25152 case "$with_crypto:$ntp_openssl" in
25157 case "${with_rpath-notgiven}" in
25159 # Lame - what to do if we need -Wl... but not -R?
25165 # This may really only be true for gcc
25166 need_dash_Wlrpath=1
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
25179 $as_echo_n "checking for openssl library directory... " >&6; }
25180 with_openssl_libdir=${with_openssl_libdir-notgiven}
25181 case "$with_openssl_libdir" in
25185 with_openssl_libdir=default
25188 with_openssl_libdir=no
25192 case "$with_openssl_libdir" in
25195 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
25196 with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
25197 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
25199 case "$with_openssl_libdir" in
25202 *) # Look for libcrypto.a and libssl.a:
25203 for i in $with_openssl_libdir no
25207 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
25210 test -f $i/libcrypto.so -a -f $i/libssl.so && break
25211 test -f $i/libcrypto.a -a -f $i/libssl.a && break
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
25219 $as_echo "$openssl_libdir" >&6; }
25220 case "$openssl_libdir" in
25223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
25224 $as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
25227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
25228 $as_echo_n "checking for openssl include directory... " >&6; }
25229 with_openssl_incdir=${with_openssl_incdir-notgiven}
25230 case "$with_openssl_incdir" in
25233 with_openssl_incdir="/usr/include /usr/sfw/include"
25234 with_openssl_incdir="$with_openssl_incdir /usr/local/include"
25235 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
25237 case "$with_openssl_incdir" in
25240 *) # look for openssl/evp.h:
25241 for i in $with_openssl_incdir no
25243 test -f $i/openssl/evp.h && break
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
25250 $as_echo "$openssl_incdir" >&6; }
25251 case "$openssl_incdir" in
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
25255 $as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
25257 if test -z "$openssl_libdir" -o -z "$openssl_incdir"
25264 case "$ntp_openssl" in
25266 # We have OpenSSL inc/lib dirs - use them.
25267 case "$openssl_incdir" in
25271 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
25274 case "$openssl_libdir" in
25278 LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
25279 case "$need_dash_r" in
25281 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
25283 case "$need_dash_Wlrpath" in
25285 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
25289 LDADD_NTP="$LDADD_NTP -lcrypto"
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
25294 $as_echo_n "checking if we will use crypto... " >&6; }
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
25296 $as_echo "$ntp_openssl" >&6; }
25298 case "$ntp_openssl" in
25301 $as_echo "#define OPENSSL /**/" >>confdefs.h
25303 case "$VER_SUFFIX" in
25305 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
25310 NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
25311 CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
25312 NTPO_SAVED_LIBS="$LIBS"
25315 # check for linking with -lcrypto failure, and try -lcrypto -lz.
25316 # Helps m68k-atari-mint
25318 case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
25320 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
25322 $as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
25323 if ${ntp_cv_bare_lcrypto+:} false; then :
25324 $as_echo_n "(cached) " >&6
25326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25327 /* end confdefs.h. */
25329 #include "openssl/err.h"
25330 #include "openssl/evp.h"
25336 ERR_load_crypto_strings();
25337 OpenSSL_add_all_algorithms();
25344 if ac_fn_c_try_link "$LINENO"; then :
25345 ntp_cv_bare_lcrypto=yes
25347 ntp_cv_bare_lcrypto=no
25350 rm -f core conftest.err conftest.$ac_objext \
25351 conftest$ac_exeext conftest.$ac_ext
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
25355 $as_echo "$ntp_cv_bare_lcrypto" >&6; }
25356 case "$ntp_cv_bare_lcrypto" in
25358 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
25360 $as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
25361 if ${ntp_cv_lcrypto_lz+:} false; then :
25362 $as_echo_n "(cached) " >&6
25364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25365 /* end confdefs.h. */
25367 #include "openssl/err.h"
25368 #include "openssl/evp.h"
25374 ERR_load_crypto_strings();
25375 OpenSSL_add_all_algorithms();
25382 if ac_fn_c_try_link "$LINENO"; then :
25383 ntp_cv_lcrypto_lz=yes
25385 ntp_cv_lcrypto_lz=no
25388 rm -f core conftest.err conftest.$ac_objext \
25389 conftest$ac_exeext conftest.$ac_ext
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
25393 $as_echo "$ntp_cv_lcrypto_lz" >&6; }
25394 case "$ntp_cv_lcrypto_lz" in
25396 LDADD_NTP="$LDADD_NTP -lz"
25402 # Older OpenSSL headers have a number of callback prototypes inside
25403 # other function prototypes which trigger copious warnings with gcc's
25404 # -Wstrict-prototypes, which is included in -Wall.
25408 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
25409 # int (*cb)(), int sgckey);
25414 openssl_triggers_warnings=unknown
25415 NTPO_SAVED_CFLAGS="$CFLAGS"
25417 case "$ntp_openssl:$GCC" in
25419 CFLAGS="$CFLAGS -Werror"
25420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25421 /* end confdefs.h. */
25428 /* see if -Werror breaks gcc */
25435 if ac_fn_c_try_compile "$LINENO"; then :
25436 gcc_handles_Werror=yes
25438 gcc_handles_Werror=no
25441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25442 case "$gcc_handles_Werror" in
25444 # if this gcc doesn't do -Werror go ahead and use
25445 # -Wstrict-prototypes.
25446 openssl_triggers_warnings=yes
25449 CFLAGS="$CFLAGS -Wstrict-prototypes"
25450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25451 /* end confdefs.h. */
25453 #include "openssl/asn1_mac.h"
25454 #include "openssl/bn.h"
25455 #include "openssl/err.h"
25456 #include "openssl/evp.h"
25457 #include "openssl/pem.h"
25458 #include "openssl/rand.h"
25459 #include "openssl/x509v3.h"
25472 if ac_fn_c_try_compile "$LINENO"; then :
25473 openssl_triggers_warnings=no
25475 openssl_triggers_warnings=yes
25478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25480 case "$openssl_triggers_warnings" in
25482 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
25485 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
25489 # gcc without OpenSSL
25490 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
25493 # Because we don't want -Werror for the EVP_MD_do_all_sorted check
25494 CFLAGS="$NTPO_SAVED_CFLAGS"
25496 case "$ntp_openssl" in
25498 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
25499 for ac_func in EVP_MD_do_all_sorted
25501 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
25502 if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
25503 cat >>confdefs.h <<_ACEOF
25504 #define HAVE_EVP_MD_DO_ALL_SORTED 1
25514 CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
25515 LIBS="$NTPO_SAVED_LIBS"
25516 { NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
25517 { NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
25518 { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
25519 { openssl_triggers_warnings=; unset openssl_triggers_warnings;}
25520 { ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
25525 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
25526 if ${ntp_cv_sockaddr_storage+:} false; then :
25527 $as_echo_n "(cached) " >&6
25529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25530 /* end confdefs.h. */
25532 #ifdef HAVE_SYS_TYPES_H
25533 # include <sys/types.h>
25535 #ifdef HAVE_SYS_SOCKET_H
25536 # include <sys/socket.h>
25538 #ifdef HAVE_NETINET_IN_H
25539 # include <netinet/in.h>
25546 struct sockaddr_storage n;
25553 if ac_fn_c_try_compile "$LINENO"; then :
25554 ntp_cv_sockaddr_storage=yes
25556 ntp_cv_sockaddr_storage=no
25559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
25563 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
25564 case "$ntp_cv_sockaddr_storage" in
25567 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
25569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
25570 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
25571 if ${ntp_cv_have___ss_family+:} false; then :
25572 $as_echo_n "(cached) " >&6
25574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25575 /* end confdefs.h. */
25577 #ifdef HAVE_SYS_TYPES_H
25578 # include <sys/types.h>
25580 #ifdef HAVE_SYS_SOCKET_H
25581 # include <sys/socket.h>
25583 #ifdef HAVE_NETINET_IN_H
25584 # include <netinet/in.h>
25591 struct sockaddr_storage s;
25599 if ac_fn_c_try_compile "$LINENO"; then :
25600 ntp_cv_have___ss_family=yes
25602 ntp_cv_have___ss_family=no
25605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
25609 $as_echo "$ntp_cv_have___ss_family" >&6; }
25610 case "$ntp_cv_have___ss_family" in
25613 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
25621 # Look for in_port_t.
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
25624 $as_echo_n "checking for in_port_t... " >&6; }
25625 if ${isc_cv_have_in_port_t+:} false; then :
25626 $as_echo_n "(cached) " >&6
25628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25629 /* end confdefs.h. */
25631 #include <sys/types.h>
25632 #include <netinet/in.h>
25638 in_port_t port = 25;
25646 if ac_fn_c_try_compile "$LINENO"; then :
25647 isc_cv_have_in_port_t=yes
25649 isc_cv_have_in_port_t=no
25652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
25656 $as_echo "$isc_cv_have_in_port_t" >&6; }
25657 case "$isc_cv_have_in_port_t" in
25660 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
25665 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
25666 if ${ntp_cv_getsockname_socklen_type+:} false; then :
25667 $as_echo_n "(cached) " >&6
25670 getsockname_socklen_type_found=no
25671 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
25672 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
25673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25674 /* end confdefs.h. */
25676 #ifdef HAVE_SYS_TYPES_H
25677 # include <sys/types.h>
25679 #ifdef HAVE_SYS_SOCKET_H
25680 # include <sys/socket.h>
25688 getsockname(int, $getsockname_arg2,
25689 $ntp_cv_getsockname_socklen_type *);
25696 if ac_fn_c_try_compile "$LINENO"; then :
25697 getsockname_socklen_type_found=yes ; break 2
25699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25702 case "$getsockname_socklen_type_found" in
25704 ntp_cv_getsockname_socklen_type='socklen_t'
25706 { getsockname_arg2=; unset getsockname_arg2;}
25707 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
25712 $as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
25714 cat >>confdefs.h <<_ACEOF
25715 #define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
25720 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
25721 if ${isc_cv_platform_havesalen+:} false; then :
25722 $as_echo_n "(cached) " >&6
25724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25725 /* end confdefs.h. */
25727 #include <sys/types.h>
25728 #include <sys/socket.h>
25734 extern struct sockaddr *ps;
25742 if ac_fn_c_try_compile "$LINENO"; then :
25743 isc_cv_platform_havesalen=yes
25745 isc_cv_platform_havesalen=no
25748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
25752 $as_echo "$isc_cv_platform_havesalen" >&6; }
25753 case "$isc_cv_platform_havesalen" in
25756 $as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
25760 # Check whether --enable-ipv6 was given.
25761 if test "${enable_ipv6+set}" = set; then :
25762 enableval=$enable_ipv6;
25766 case "$enable_ipv6" in
25773 $as_echo "#define WANT_IPV6 1" >>confdefs.h
25786 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
25792 $as_echo_n "checking for IPv6 structures... " >&6; }
25793 if ${isc_cv_found_ipv6+:} false; then :
25794 $as_echo_n "(cached) " >&6
25796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25797 /* end confdefs.h. */
25799 #include <sys/types.h>
25800 #include <sys/socket.h>
25801 #include <netinet/in.h>
25807 struct sockaddr_in6 sin6;
25814 if ac_fn_c_try_compile "$LINENO"; then :
25815 isc_cv_found_ipv6=yes
25817 isc_cv_found_ipv6=no
25820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
25824 $as_echo "$isc_cv_found_ipv6" >&6; }
25827 # See whether IPv6 support is provided via a Kame add-on.
25828 # This is done before other IPv6 linking tests so LIBS is properly set.
25830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
25831 $as_echo_n "checking for Kame IPv6 support... " >&6; }
25833 # Check whether --with-kame was given.
25834 if test "${with_kame+set}" = set; then :
25835 withval=$with_kame; use_kame="$withval"
25841 case "$use_kame" in
25845 kame_path=/usr/local/v6
25848 kame_path="$use_kame"
25851 case "$use_kame" in
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25854 $as_echo "no" >&6; }
25857 if test -f $kame_path/lib/libinet6.a; then
25858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
25859 $as_echo "$kame_path/lib/libinet6.a" >&6; }
25860 LIBS="-L$kame_path/lib -linet6 $LIBS"
25862 as_fn_error $? "$kame_path/lib/libinet6.a not found.
25864 Please choose the proper path with the following command:
25866 configure --with-kame=PATH
25873 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
25874 # Including it on Kame-using platforms is very bad, though, because
25875 # Kame uses #error against direct inclusion. So include it on only
25876 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
25877 # This is done before the in6_pktinfo check because that's what
25878 # netinet6/in6.h is needed for.
25883 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
25885 isc_netinet6in6_hack="#include <netinet6/in6.h>"
25888 isc_netinet6in6_hack=""
25893 # This is similar to the netinet6/in6.h issue.
25896 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
25898 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
25900 isc_netinetin6_hack="#include <netinet/in6.h>"
25903 isc_netinetin6_hack=""
25908 case "$isc_cv_found_ipv6" in
25911 $as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
25914 $as_echo_n "checking for in6_pktinfo... " >&6; }
25915 if ${isc_cv_have_in6_pktinfo+:} false; then :
25916 $as_echo_n "(cached) " >&6
25918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25919 /* end confdefs.h. */
25921 #include <sys/types.h>
25922 #include <sys/socket.h>
25923 #include <netinet/in.h>
25924 $isc_netinetin6_hack
25925 $isc_netinet6in6_hack
25931 struct in6_pktinfo xyzzy;
25938 if ac_fn_c_try_compile "$LINENO"; then :
25939 isc_cv_have_in6_pktinfo=yes
25941 isc_cv_have_in6_pktinfo=no
25944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
25948 $as_echo "$isc_cv_have_in6_pktinfo" >&6; }
25949 case "$isc_cv_have_in6_pktinfo" in
25952 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
25957 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
25958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
25959 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
25960 if ${isc_cv_have_sin6_scope_id+:} false; then :
25961 $as_echo_n "(cached) " >&6
25963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25964 /* end confdefs.h. */
25966 #include <sys/types.h>
25967 #include <sys/socket.h>
25968 #include <netinet/in.h>
25969 $isc_netinetin6_hack
25970 $isc_netinet6in6_hack
25976 struct sockaddr_in6 xyzzy;
25977 xyzzy.sin6_scope_id = 0;
25984 if ac_fn_c_try_compile "$LINENO"; then :
25985 isc_cv_have_sin6_scope_id=yes
25987 isc_cv_have_sin6_scope_id=no
25990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
25994 $as_echo "$isc_cv_have_sin6_scope_id" >&6; }
25996 case "$isc_cv_have_sin6_scope_id" in
25999 $as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
26005 # We need this check run even without isc_cv_found_ipv6=yes
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
26008 $as_echo_n "checking for in6addr_any... " >&6; }
26009 if ${isc_cv_in6addr_any_links+:} false; then :
26010 $as_echo_n "(cached) " >&6
26014 LIBS="$LDADD_LIBNTP $LIBS"
26015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26016 /* end confdefs.h. */
26017 $ac_includes_default
26018 #include <sys/socket.h>
26019 #include <netinet/in.h>
26020 $isc_netinetin6_hack
26021 $isc_netinet6in6_hack
26027 printf("%x", in6addr_any.s6_addr[15]);
26034 if ac_fn_c_try_link "$LINENO"; then :
26035 isc_cv_in6addr_any_links=yes
26037 isc_cv_in6addr_any_links=no
26040 rm -f core conftest.err conftest.$ac_objext \
26041 conftest$ac_exeext conftest.$ac_ext
26043 { SAVED_LIBS=; unset SAVED_LIBS;}
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
26048 $as_echo "$isc_cv_in6addr_any_links" >&6; }
26050 case "$isc_cv_in6addr_any_links" in
26053 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
26059 $as_echo_n "checking for struct if_laddrconf... " >&6; }
26060 if ${isc_cv_struct_if_laddrconf+:} false; then :
26061 $as_echo_n "(cached) " >&6
26063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26064 /* end confdefs.h. */
26066 #include <sys/types.h>
26067 #include <net/if6.h>
26073 struct if_laddrconf a;
26080 if ac_fn_c_try_compile "$LINENO"; then :
26081 isc_cv_struct_if_laddrconf=yes
26083 isc_cv_struct_if_laddrconf=no
26086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
26090 $as_echo "$isc_cv_struct_if_laddrconf" >&6; }
26092 case "$isc_cv_struct_if_laddrconf" in
26095 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
26100 $as_echo_n "checking for struct if_laddrreq... " >&6; }
26101 if ${isc_cv_struct_if_laddrreq+:} false; then :
26102 $as_echo_n "(cached) " >&6
26104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26105 /* end confdefs.h. */
26107 #include <sys/types.h>
26108 #include <net/if6.h>
26114 struct if_laddrreq a;
26121 if ac_fn_c_try_compile "$LINENO"; then :
26122 isc_cv_struct_if_laddrreq=yes
26124 isc_cv_struct_if_laddrreq=no
26127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
26131 $as_echo "$isc_cv_struct_if_laddrreq" >&6; }
26133 case "$isc_cv_struct_if_laddrreq" in
26136 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
26141 $as_echo_n "checking for multicast IP support... " >&6; }
26142 if ${ntp_cv_multicast+:} false; then :
26143 $as_echo_n "(cached) " >&6
26146 ntp_cv_multicast=no
26148 i386-sequent-sysv4)
26151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26152 /* end confdefs.h. */
26154 #ifdef HAVE_NETINET_IN_H
26155 # include <netinet/in.h>
26162 struct ip_mreq ipmr;
26163 ipmr.imr_interface.s_addr = 0;
26170 if ac_fn_c_try_compile "$LINENO"; then :
26171 ntp_cv_multicast=yes
26173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
26180 $as_echo "$ntp_cv_multicast" >&6; }
26181 case "$ntp_cv_multicast" in
26184 $as_echo "#define MCAST 1" >>confdefs.h
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
26187 $as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
26188 if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
26189 $as_echo_n "(cached) " >&6
26193 *-*-netbsd*|*-*-*linux*)
26194 ntp_cv_typeof_ip_multicast_loop=u_int
26197 ntp_cv_typeof_ip_multicast_loop=u_char
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
26204 $as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
26206 cat >>confdefs.h <<_ACEOF
26207 #define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
26212 # Check whether --enable-getifaddrs was given.
26213 if test "${enable_getifaddrs+set}" = set; then :
26214 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
26216 want_getifaddrs="yes"
26221 case $want_getifaddrs in
26223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
26224 $as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
26226 case $want_getifaddrs in
26231 LIBS="$LDADD_LIBNTP $LIBS"
26232 for ac_func in getifaddrs
26234 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
26235 if test "x$ac_cv_func_getifaddrs" = xyes; then :
26236 cat >>confdefs.h <<_ACEOF
26237 #define HAVE_GETIFADDRS 1
26244 { SAVED_LIBS=; unset SAVED_LIBS;}
26249 # Check for if_nametoindex() for IPv6 scoped addresses support
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
26254 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
26255 if ${ac_cv_search_if_nametoindex+:} false; then :
26256 $as_echo_n "(cached) " >&6
26258 ac_func_search_save_LIBS=$LIBS
26259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26260 /* end confdefs.h. */
26262 /* Override any GCC internal prototype to avoid an error.
26263 Use char because int might match the return type of a GCC
26264 builtin and then its argument prototype would still apply. */
26268 char if_nametoindex ();
26272 return if_nametoindex ();
26277 for ac_lib in '' ipv6; do
26278 if test -z "$ac_lib"; then
26279 ac_res="none required"
26282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26284 if ac_fn_c_try_link "$LINENO"; then :
26285 ac_cv_search_if_nametoindex=$ac_res
26287 rm -f core conftest.err conftest.$ac_objext \
26289 if ${ac_cv_search_if_nametoindex+:} false; then :
26293 if ${ac_cv_search_if_nametoindex+:} false; then :
26296 ac_cv_search_if_nametoindex=no
26298 rm conftest.$ac_ext
26299 LIBS=$ac_func_search_save_LIBS
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
26302 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
26303 ac_res=$ac_cv_search_if_nametoindex
26304 if test "$ac_res" != no; then :
26305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26311 LIBS="$LDADD_LIBNTP $LIBS"
26312 for ac_func in if_nametoindex
26314 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
26315 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
26316 cat >>confdefs.h <<_ACEOF
26317 #define HAVE_IF_NAMETOINDEX 1
26324 { SAVED_LIBS=; unset SAVED_LIBS;}
26325 case "$ac_cv_func_if_nametoindex" in
26328 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
26337 # these need work if we're to move libntp under sntp
26339 $as_echo "#define HAVE_NO_NICE 1" >>confdefs.h
26342 $as_echo "#define HAVE_TERMIOS 1" >>confdefs.h
26345 # Checks for library functions.
26346 for ac_func in socket
26348 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
26349 if test "x$ac_cv_func_socket" = xyes; then :
26350 cat >>confdefs.h <<_ACEOF
26351 #define HAVE_SOCKET 1
26359 # We may not need have_unity
26361 # Extract the first word of "ruby", so it can be a program name with args.
26362 set dummy ruby; ac_word=$2
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26364 $as_echo_n "checking for $ac_word... " >&6; }
26365 if ${ac_cv_path_PATH_RUBY+:} false; then :
26366 $as_echo_n "(cached) " >&6
26370 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
26373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26374 for as_dir in $PATH
26377 test -z "$as_dir" && as_dir=.
26378 for ac_exec_ext in '' $ac_executable_extensions; do
26379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26380 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
26381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26391 PATH_RUBY=$ac_cv_path_PATH_RUBY
26392 if test -n "$PATH_RUBY"; then
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
26394 $as_echo "$PATH_RUBY" >&6; }
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26397 $as_echo "no" >&6; }
26401 case "$PATH_RUBY" in
26405 *) PATH_RUBY="false"
26408 # We may not need UNITYBUILD_AVAILABLE
26409 if $have_unity; then
26410 UNITYBUILD_AVAILABLE_TRUE=
26411 UNITYBUILD_AVAILABLE_FALSE='#'
26413 UNITYBUILD_AVAILABLE_TRUE='#'
26414 UNITYBUILD_AVAILABLE_FALSE=
26419 ## HMS: if we don't find c++ we should not look for gtest.
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
26430 $as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
26431 # Check whether --enable-problem-tests was given.
26432 if test "${enable_problem_tests+set}" = set; then :
26433 enableval=$enable_problem_tests; sntp_ept=$enableval
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_ept" >&5
26440 $as_echo "$sntp_ept" >&6; }
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-kodDatabase" >&5
26443 $as_echo_n "checking if we can run test-kodDatabase... " >&6; }
26444 sntp_test_kodDatabase="no"
26445 case "$sntp_ept:$cross:$host" in
26446 no:0:*-apple-darwin12.6.0) ;;
26447 *) sntp_test_kodDatabase="yes" ;;
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_test_kodDatabase" >&5
26450 $as_echo "$sntp_test_kodDatabase" >&6; }
26451 if test x$sntp_test_kodDatabase = xyes; then
26452 BUILD_TEST_KODDATABASE_TRUE=
26453 BUILD_TEST_KODDATABASE_FALSE='#'
26455 BUILD_TEST_KODDATABASE_TRUE='#'
26456 BUILD_TEST_KODDATABASE_FALSE=
26460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-kodFile" >&5
26461 $as_echo_n "checking if we can run test-kodFile... " >&6; }
26462 sntp_test_kodFile="no"
26463 case "$sntp_ept:$cross:$host" in
26464 no:0:*-apple-darwin12.6.0) ;;
26465 *) sntp_test_kodFile="yes" ;;
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_test_kodFile" >&5
26468 $as_echo "$sntp_test_kodFile" >&6; }
26469 if test x$sntp_test_kodFile = xyes; then
26470 BUILD_TEST_KODFILE_TRUE=
26471 BUILD_TEST_KODFILE_FALSE='#'
26473 BUILD_TEST_KODFILE_TRUE='#'
26474 BUILD_TEST_KODFILE_FALSE=
26480 # All libraries should be in various LIB_* variables now.
26482 # Sadly not. There is a gettext() check somewhere, and on Solaris this pulls
26483 # in -lintl -lgen, outside our "scope".
26485 ac_config_files="$ac_config_files Makefile"
26487 ac_config_files="$ac_config_files include/Makefile"
26489 ac_config_files="$ac_config_files scripts/Makefile"
26491 ac_config_files="$ac_config_files tests/Makefile"
26493 ac_config_files="$ac_config_files tests/fileHandlingTest.h"
26495 ac_config_files="$ac_config_files unity/Makefile"
26498 cat >confcache <<\_ACEOF
26499 # This file is a shell script that caches the results of configure
26500 # tests run on this system so they can be shared between configure
26501 # scripts and configure runs, see configure's option --config-cache.
26502 # It is not useful on other systems. If it contains results you don't
26503 # want to keep, you may remove or edit it.
26505 # config.status only pays attention to the cache file if you give it
26506 # the --recheck option to rerun configure.
26508 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26510 # following values.
26514 # The following way of writing the cache mishandles newlines in values,
26515 # but we know of no workaround that is simple, portable, and efficient.
26516 # So, we kill variables containing newlines.
26517 # Ultrix sh set writes to stderr and can't be redirected directly,
26518 # and sets the high bit in the cache file unless we assign to the vars.
26520 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26521 eval ac_val=\$$ac_var
26525 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26526 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26529 _ | IFS | as_nl) ;; #(
26530 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26531 *) { eval $ac_var=; unset $ac_var;} ;;
26537 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26538 *${as_nl}ac_space=\ *)
26539 # `set' does not quote correctly, so add quotes: double-quote
26540 # substitution turns \\\\ into \\, and sed turns \\ into \.
26543 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26546 # `set' quotes correctly as required by POSIX, so do not add quotes.
26547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26556 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26558 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26560 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26561 if test -w "$cache_file"; then
26562 if test "x$cache_file" != "x/dev/null"; then
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26564 $as_echo "$as_me: updating cache $cache_file" >&6;}
26565 if test ! -f "$cache_file" || test -h "$cache_file"; then
26566 cat confcache >"$cache_file"
26568 case $cache_file in #(
26570 mv -f confcache "$cache_file"$$ &&
26571 mv -f "$cache_file"$$ "$cache_file" ;; #(
26573 mv -f confcache "$cache_file" ;;
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26579 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26584 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26585 # Let make expand exec_prefix.
26586 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26588 DEFS=-DHAVE_CONFIG_H
26593 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26594 # 1. Remove the extension, and $U if already installed.
26595 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26596 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26597 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26598 # will be set to the directory where LIBOBJS objects are built.
26599 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26600 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26602 LIBOBJS=$ac_libobjs
26604 LTLIBOBJS=$ac_ltlibobjs
26607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26608 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26609 if test -n "$am_sleep_pid"; then
26610 # Hide warnings about reused PIDs.
26611 wait $am_sleep_pid 2>/dev/null
26613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26614 $as_echo "done" >&6; }
26615 if test -n "$EXEEXT"; then
26617 am__EXEEXT_FALSE='#'
26619 am__EXEEXT_TRUE='#'
26623 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26624 as_fn_error $? "conditional \"AMDEP\" was never defined.
26625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26627 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26628 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26632 if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
26633 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
26634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26636 if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
26637 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
26638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26640 if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
26641 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
26642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26644 if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
26645 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
26646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26648 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
26649 as_fn_error $? "conditional \"PTHREADS\" was never defined.
26650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26652 if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
26653 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
26654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26656 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
26657 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
26658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26660 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
26661 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
26662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26664 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
26665 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
26666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26668 if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
26669 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
26670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26672 if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
26673 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
26674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26676 if test -z "${BUILD_TEST_KODDATABASE_TRUE}" && test -z "${BUILD_TEST_KODDATABASE_FALSE}"; then
26677 as_fn_error $? "conditional \"BUILD_TEST_KODDATABASE\" was never defined.
26678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26680 if test -z "${BUILD_TEST_KODFILE_TRUE}" && test -z "${BUILD_TEST_KODFILE_FALSE}"; then
26681 as_fn_error $? "conditional \"BUILD_TEST_KODFILE\" was never defined.
26682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26685 : "${CONFIG_STATUS=./config.status}"
26687 ac_clean_files_save=$ac_clean_files
26688 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26690 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26692 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26694 # Generated by $as_me.
26695 # Run this file to recreate the current configuration.
26696 # Compiler output produced by configure, useful for debugging
26697 # configure, is in config.log if it exists.
26700 ac_cs_recheck=false
26703 SHELL=\${CONFIG_SHELL-$SHELL}
26706 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26707 ## -------------------- ##
26708 ## M4sh Initialization. ##
26709 ## -------------------- ##
26711 # Be more Bourne compatible
26712 DUALCASE=1; export DUALCASE # for MKS sh
26713 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26716 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26717 # is contrary to our usage. Disable this feature.
26718 alias -g '${1+"$@"}'='"$@"'
26719 setopt NO_GLOB_SUBST
26721 case `(set -o) 2>/dev/null` in #(
26733 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26734 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26735 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26736 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26737 # Prefer a ksh shell builtin over an external printf program on Solaris,
26738 # but without wasting forks for bash or zsh.
26739 if test -z "$BASH_VERSION$ZSH_VERSION" \
26740 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26741 as_echo='print -r --'
26742 as_echo_n='print -rn --'
26743 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26744 as_echo='printf %s\n'
26745 as_echo_n='printf %s'
26747 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26748 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26749 as_echo_n='/usr/ucb/echo -n'
26751 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26752 as_echo_n_body='eval
26756 expr "X$arg" : "X\\(.*\\)$as_nl";
26757 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26759 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26761 export as_echo_n_body
26762 as_echo_n='sh -c $as_echo_n_body as_echo'
26764 export as_echo_body
26765 as_echo='sh -c $as_echo_body as_echo'
26768 # The user is always right.
26769 if test "${PATH_SEPARATOR+set}" != set; then
26771 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26772 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26779 # We need space, tab and new line, in precisely that order. Quoting is
26780 # there to prevent editors from complaining about space-tab.
26781 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26782 # splitting by setting IFS to empty value.)
26785 # Find who we are. Look in the path if we contain no directory separator.
26788 *[\\/]* ) as_myself=$0 ;;
26789 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26790 for as_dir in $PATH
26793 test -z "$as_dir" && as_dir=.
26794 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26800 # We did not find ourselves, most probably we were run as `sh COMMAND'
26801 # in which case we are not to be found in the path.
26802 if test "x$as_myself" = x; then
26805 if test ! -f "$as_myself"; then
26806 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26810 # Unset variables that we do not need and which cause bugs (e.g. in
26811 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26812 # suppresses any "Segmentation fault" message there. '((' could
26813 # trigger a bug in pdksh 5.2.14.
26814 for as_var in BASH_ENV ENV MAIL MAILPATH
26815 do eval test x\${$as_var+set} = xset \
26816 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26829 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26832 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26833 # ----------------------------------------
26834 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26835 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26836 # script with STATUS, using 1 if that was 0.
26839 as_status=$1; test $as_status -eq 0 && as_status=1
26841 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26842 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26844 $as_echo "$as_me: error: $2" >&2
26845 as_fn_exit $as_status
26849 # as_fn_set_status STATUS
26850 # -----------------------
26851 # Set $? to STATUS, without forking.
26852 as_fn_set_status ()
26855 } # as_fn_set_status
26857 # as_fn_exit STATUS
26858 # -----------------
26859 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26863 as_fn_set_status $1
26869 # Portably unset VAR.
26872 { eval $1=; unset $1;}
26874 as_unset=as_fn_unset
26875 # as_fn_append VAR VALUE
26876 # ----------------------
26877 # Append the text in VALUE to the end of the definition contained in VAR. Take
26878 # advantage of any shell optimizations that allow amortized linear growth over
26879 # repeated appends, instead of the typical quadratic growth present in naive
26881 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26882 eval 'as_fn_append ()
26893 # as_fn_arith ARG...
26894 # ------------------
26895 # Perform arithmetic evaluation on the ARGs, and store the result in the
26896 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26897 # must be portable across $(()) and expr.
26898 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26899 eval 'as_fn_arith ()
26906 as_val=`expr "$@" || test $? -eq 1`
26911 if expr a : '\(a\)' >/dev/null 2>&1 &&
26912 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26918 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26919 as_basename=basename
26924 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26930 as_me=`$as_basename -- "$0" ||
26931 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26932 X"$0" : 'X\(//\)$' \| \
26933 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26935 sed '/^.*\/\([^/][^/]*\)\/*$/{
26949 # Avoid depending upon Character Ranges.
26950 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26951 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26952 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26953 as_cr_digits='0123456789'
26954 as_cr_alnum=$as_cr_Letters$as_cr_digits
26956 ECHO_C= ECHO_N= ECHO_T=
26957 case `echo -n x` in #(((((
26959 case `echo 'xy\c'` in
26960 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26962 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26969 rm -f conf$$ conf$$.exe conf$$.file
26970 if test -d conf$$.dir; then
26971 rm -f conf$$.dir/conf$$.file
26974 mkdir conf$$.dir 2>/dev/null
26976 if (echo >conf$$.file) 2>/dev/null; then
26977 if ln -s conf$$.file conf$$ 2>/dev/null; then
26979 # ... but there are two gotchas:
26980 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26981 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26982 # In both cases, we have to default to `cp -pR'.
26983 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26985 elif ln conf$$.file conf$$ 2>/dev/null; then
26993 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26994 rmdir conf$$.dir 2>/dev/null
26999 # Create "$as_dir" as a directory, including parents if necessary.
27004 -*) as_dir=./$as_dir;;
27006 test -d "$as_dir" || eval $as_mkdir_p || {
27010 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27011 *) as_qdir=$as_dir;;
27013 as_dirs="'$as_qdir' $as_dirs"
27014 as_dir=`$as_dirname -- "$as_dir" ||
27015 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27016 X"$as_dir" : 'X\(//\)[^/]' \| \
27017 X"$as_dir" : 'X\(//\)$' \| \
27018 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27019 $as_echo X"$as_dir" |
27020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27024 /^X\(\/\/\)[^/].*/{
27037 test -d "$as_dir" && break
27039 test -z "$as_dirs" || eval "mkdir $as_dirs"
27040 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27044 if mkdir -p . 2>/dev/null; then
27045 as_mkdir_p='mkdir -p "$as_dir"'
27047 test -d ./-p && rmdir ./-p
27052 # as_fn_executable_p FILE
27053 # -----------------------
27054 # Test if FILE is an executable regular file.
27055 as_fn_executable_p ()
27057 test -f "$1" && test -x "$1"
27058 } # as_fn_executable_p
27059 as_test_x='test -x'
27060 as_executable_p=as_fn_executable_p
27062 # Sed expression to map a string onto a valid CPP name.
27063 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27065 # Sed expression to map a string onto a valid variable name.
27066 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27070 ## ----------------------------------- ##
27071 ## Main body of $CONFIG_STATUS script. ##
27072 ## ----------------------------------- ##
27074 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27077 # Save the log message, to keep $0 and so on meaningful, and to
27078 # report actual input values of CONFIG_FILES etc. instead of their
27079 # values after options handling.
27081 This file was extended by sntp $as_me 4.2.8p11, which was
27082 generated by GNU Autoconf 2.69. Invocation command line was
27084 CONFIG_FILES = $CONFIG_FILES
27085 CONFIG_HEADERS = $CONFIG_HEADERS
27086 CONFIG_LINKS = $CONFIG_LINKS
27087 CONFIG_COMMANDS = $CONFIG_COMMANDS
27090 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27095 case $ac_config_files in *"
27096 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27099 case $ac_config_headers in *"
27100 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27105 # Files that config.status was made for.
27106 config_files="$ac_config_files"
27107 config_headers="$ac_config_headers"
27108 config_commands="$ac_config_commands"
27112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27114 \`$as_me' instantiates files and other configuration actions
27115 from templates according to the current configuration. Unless the files
27116 and actions are specified as TAGs, all are instantiated by default.
27118 Usage: $0 [OPTION]... [TAG]...
27120 -h, --help print this help, then exit
27121 -V, --version print version number and configuration settings, then exit
27122 --config print configuration, then exit
27123 -q, --quiet, --silent
27124 do not print progress messages
27125 -d, --debug don't remove temporary files
27126 --recheck update $as_me by reconfiguring in the same conditions
27127 --file=FILE[:TEMPLATE]
27128 instantiate the configuration file FILE
27129 --header=FILE[:TEMPLATE]
27130 instantiate the configuration header FILE
27132 Configuration files:
27135 Configuration headers:
27138 Configuration commands:
27141 Report bugs to <http://bugs.ntp.org./>.
27142 sntp home page: <http://www.ntp.org./>."
27145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27146 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27148 sntp config.status 4.2.8p11
27149 configured by $0, generated by GNU Autoconf 2.69,
27150 with options \\"\$ac_cs_config\\"
27152 Copyright (C) 2012 Free Software Foundation, Inc.
27153 This config.status script is free software; the Free Software Foundation
27154 gives unlimited permission to copy, distribute and modify it."
27161 test -n "\$AWK" || AWK=awk
27164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27165 # The default lists apply if the user does not specify any file.
27171 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27172 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27176 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27188 # Handling of the options.
27189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27191 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27192 $as_echo "$ac_cs_version"; exit ;;
27193 --config | --confi | --conf | --con | --co | --c )
27194 $as_echo "$ac_cs_config"; exit ;;
27195 --debug | --debu | --deb | --de | --d | -d )
27197 --file | --fil | --fi | --f )
27200 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27201 '') as_fn_error $? "missing file argument" ;;
27203 as_fn_append CONFIG_FILES " '$ac_optarg'"
27204 ac_need_defaults=false;;
27205 --header | --heade | --head | --hea )
27208 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27210 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27211 ac_need_defaults=false;;
27213 # Conflict between --help and --header
27214 as_fn_error $? "ambiguous option: \`$1'
27215 Try \`$0 --help' for more information.";;
27216 --help | --hel | -h )
27217 $as_echo "$ac_cs_usage"; exit ;;
27218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27219 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27222 # This is an error.
27223 -*) as_fn_error $? "unrecognized option: \`$1'
27224 Try \`$0 --help' for more information." ;;
27226 *) as_fn_append ac_config_targets " $1"
27227 ac_need_defaults=false ;;
27233 ac_configure_extra_args=
27235 if $ac_cs_silent; then
27237 ac_configure_extra_args="$ac_configure_extra_args --silent"
27241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27242 if \$ac_cs_recheck; then
27243 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27245 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27246 CONFIG_SHELL='$SHELL'
27247 export CONFIG_SHELL
27252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27256 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27257 ## Running $as_me. ##
27263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27267 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27270 # The HP-UX ksh and POSIX shell print the target directory to stdout
27271 # if CDPATH is set.
27272 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27274 sed_quote_subst='$sed_quote_subst'
27275 double_quote_subst='$double_quote_subst'
27276 delay_variable_subst='$delay_variable_subst'
27277 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27278 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27279 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27280 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27281 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27282 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27283 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27284 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27285 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27286 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27287 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27288 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27289 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27290 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27291 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27292 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27293 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27294 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27295 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27296 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27297 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27298 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27299 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27300 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27301 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27302 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27303 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27304 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27305 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27306 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27307 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27308 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27309 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27310 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27311 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27312 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27313 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27314 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27315 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27316 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27317 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27318 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27319 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27320 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27321 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27322 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27323 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27324 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27325 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27326 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27327 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27328 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27329 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27330 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27331 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27332 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27333 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27334 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27335 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"`'
27336 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27337 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27338 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27339 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27340 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27341 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27342 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27343 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27344 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27345 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27346 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27347 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27348 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27349 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27350 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27351 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27352 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27353 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27354 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27355 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27356 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27357 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27358 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27359 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27360 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27361 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27362 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27363 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27364 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27365 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27366 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27367 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27368 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27369 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27370 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27371 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27372 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27373 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27374 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27375 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27376 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27377 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27378 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27379 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27380 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27381 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27382 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27383 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27384 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27385 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27386 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27387 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27388 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27389 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27390 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27391 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27392 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27393 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27394 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27395 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27396 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27397 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27398 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27399 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27400 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27401 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27402 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27403 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27404 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27405 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27406 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27407 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27408 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27409 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27410 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27411 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27414 LTCFLAGS='$LTCFLAGS'
27415 compiler='$compiler_DEFAULT'
27417 # A function that is used when there is no print builtin or printf.
27418 func_fallback_echo ()
27420 eval 'cat <<_LTECHO_EOF
27425 # Quote evaled strings.
27440 deplibs_check_method \
27445 sharedlib_from_linklib_cmd \
27448 archiver_list_spec \
27454 lt_cv_sys_global_symbol_pipe \
27455 lt_cv_sys_global_symbol_to_cdecl \
27456 lt_cv_sys_global_symbol_to_import \
27457 lt_cv_sys_global_symbol_to_c_name_address \
27458 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27459 lt_cv_nm_interface \
27460 nm_file_list_spec \
27461 lt_cv_truncate_bin \
27462 lt_prog_compiler_no_builtin_flag \
27463 lt_prog_compiler_pic \
27464 lt_prog_compiler_wl \
27465 lt_prog_compiler_static \
27466 lt_cv_prog_compiler_c_o \
27475 export_dynamic_flag_spec \
27476 whole_archive_flag_spec \
27477 compiler_needs_object \
27479 allow_undefined_flag \
27480 no_undefined_flag \
27481 hardcode_libdir_flag_spec \
27482 hardcode_libdir_separator \
27486 variables_saved_for_relink \
27488 library_names_spec \
27490 install_override_mode \
27494 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27495 *[\\\\\\\`\\"\\\$]*)
27496 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27499 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27504 # Double-quote double-evaled strings.
27505 for var in reload_cmds \
27506 old_postinstall_cmds \
27507 old_postuninstall_cmds \
27509 extract_expsyms_cmds \
27510 old_archive_from_new_cmds \
27511 old_archive_from_expsyms_cmds \
27513 archive_expsym_cmds \
27515 module_expsym_cmds \
27516 export_symbols_cmds \
27520 postuninstall_cmds \
27522 sys_lib_search_path_spec \
27523 configure_time_dlsearch_path \
27524 configure_time_lt_sys_library_path; do
27525 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27526 *[\\\\\\\`\\"\\\$]*)
27527 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27530 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27535 ac_aux_dir='$ac_aux_dir'
27537 # See if we are running on zsh, and set the options that allow our
27538 # commands through without removal of \ escapes INIT.
27539 if test -n "\${ZSH_VERSION+set}"; then
27540 setopt NO_GLOB_SUBST
27554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27556 # Handling of arguments.
27557 for ac_config_target in $ac_config_targets
27559 case $ac_config_target in
27560 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27561 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27562 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27563 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
27564 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27565 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27566 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
27567 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27568 "tests/fileHandlingTest.h") CONFIG_FILES="$CONFIG_FILES tests/fileHandlingTest.h" ;;
27569 "unity/Makefile") CONFIG_FILES="$CONFIG_FILES unity/Makefile" ;;
27571 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27576 # If the user did not use the arguments to specify the items to instantiate,
27577 # then the envvar interface is used. Set only those that are not.
27578 # We use the long form for the default assignment because of an extremely
27579 # bizarre bug on SunOS 4.1.3.
27580 if $ac_need_defaults; then
27581 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27582 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27583 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27586 # Have a temporary directory for convenience. Make it in the build tree
27587 # simply because there is no reason against having it here, and in addition,
27588 # creating and moving files from /tmp can sometimes cause problems.
27589 # Hook for its removal unless debugging.
27590 # Note that there is a small window in which the directory will not be cleaned:
27591 # after its creation but before its name has been assigned to `$tmp'.
27595 trap 'exit_status=$?
27596 : "${ac_tmp:=$tmp}"
27597 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27599 trap 'as_fn_exit 1' 1 2 13 15
27601 # Create a (secure) tmp directory for tmp files.
27604 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27608 tmp=./conf$$-$RANDOM
27609 (umask 077 && mkdir "$tmp")
27610 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27613 # Set up the scripts for CONFIG_FILES section.
27614 # No need to generate them if there are no CONFIG_FILES.
27615 # This happens for instance with `./config.status config.h'.
27616 if test -n "$CONFIG_FILES"; then
27619 ac_cr=`echo X | tr X '\015'`
27620 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27621 # But we know of no other shell where ac_cr would be empty at this
27622 # point, so we can use a bashism as a fallback.
27623 if test "x$ac_cr" = x; then
27624 eval ac_cr=\$\'\\r\'
27626 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27627 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27630 ac_cs_awk_cr=$ac_cr
27633 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27638 echo "cat >conf$$subs.awk <<_ACEOF" &&
27639 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27641 } >conf$$subs.sh ||
27642 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27643 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27645 for ac_last_try in false false false false false :; do
27646 . ./conf$$subs.sh ||
27647 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27649 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27650 if test $ac_delim_n = $ac_delim_num; then
27652 elif $ac_last_try; then
27653 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27655 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27658 rm -f conf$$subs.sh
27660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27661 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27665 s/^/S["/; s/!.*/"]=/
27675 s/\(.\{148\}\)..*/\1/
27677 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27682 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27689 s/\(.\{148\}\)..*/\1/
27691 s/["\\]/\\&/g; s/^/"/; s/$/"/
27695 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27700 ' <conf$$subs.awk | sed '
27705 ' >>$CONFIG_STATUS || ac_write_fail=1
27706 rm -f conf$$subs.awk
27707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27709 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27710 for (key in S) S_is_set[key] = 1
27716 nfields = split(line, field, "@")
27718 len = length(field[1])
27719 for (i = 2; i < nfields; i++) {
27721 keylen = length(key)
27722 if (S_is_set[key]) {
27724 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27725 len += length(value) + length(field[++i])
27736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27737 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27738 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27741 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27742 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27745 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27746 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27747 # trailing colons and then remove the whole line if VPATH becomes empty
27748 # (actually we leave an empty line to preserve line numbers).
27749 if test "x$srcdir" = x.; then
27750 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27769 fi # test -n "$CONFIG_FILES"
27771 # Set up the scripts for CONFIG_HEADERS section.
27772 # No need to generate them if there are no CONFIG_HEADERS.
27773 # This happens for instance with `./config.status Makefile'.
27774 if test -n "$CONFIG_HEADERS"; then
27775 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27779 # Transform confdefs.h into an awk script `defines.awk', embedded as
27780 # here-document in config.status, that substitutes the proper values into
27781 # config.h.in to produce config.h.
27783 # Create a delimiter string that does not exist in confdefs.h, to ease
27784 # handling of long lines.
27786 for ac_last_try in false false :; do
27787 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27788 if test -z "$ac_tt"; then
27790 elif $ac_last_try; then
27791 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27797 # For the awk script, D is an array of macro values keyed by name,
27798 # likewise P contains macro parameters if any. Preserve backslash
27799 # newline sequences.
27801 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27803 s/.\{148\}/&'"$ac_delim"'/g
27806 s/^[ ]*#[ ]*define[ ][ ]*/ /
27813 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27815 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27819 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27820 D["\1"]=" \3\\\\\\n"\\/p
27822 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27827 s/.\{148\}/&'"$ac_delim"'/g
27832 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27835 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27837 ' <confdefs.h | sed '
27838 s/'"$ac_delim"'/"\\\
27839 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27842 for (key in D) D_is_set[key] = 1
27845 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27847 split(line, arg, " ")
27848 if (arg[1] == "#") {
27852 defundef = substr(arg[1], 2)
27855 split(mac1, mac2, "(") #)
27857 prefix = substr(line, 1, index(line, defundef) - 1)
27858 if (D_is_set[macro]) {
27859 # Preserve the white space surrounding the "#".
27860 print prefix "define", macro P[macro] D[macro]
27863 # Replace #undef with comments. This is necessary, for example,
27864 # in the case of _POSIX_SOURCE, which is predefined and required
27865 # on some systems where configure will not decide to define it.
27866 if (defundef == "undef") {
27867 print "/*", prefix defundef, macro, "*/"
27875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27876 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27877 fi # test -n "$CONFIG_HEADERS"
27880 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27885 :[FHLC]) ac_mode=$ac_tag; continue;;
27887 case $ac_mode$ac_tag in
27889 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27890 :[FH]-) ac_tag=-:-;;
27891 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27908 -) ac_f="$ac_tmp/stdin";;
27909 *) # Look for the file first in the build tree, then in the source tree
27910 # (if the path is not absolute). The absolute path cannot be DOS-style,
27911 # because $ac_f cannot contain `:'.
27915 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27917 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27919 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27920 as_fn_append ac_file_inputs " '$ac_f'"
27923 # Let's still pretend it is `configure' which instantiates (i.e., don't
27924 # use $as_me), people would be surprised to read:
27925 # /* config.h. Generated by config.status. */
27926 configure_input='Generated from '`
27927 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27929 if test x"$ac_file" != x-; then
27930 configure_input="$ac_file. $configure_input"
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27932 $as_echo "$as_me: creating $ac_file" >&6;}
27934 # Neutralize special characters interpreted by sed in replacement strings.
27935 case $configure_input in #(
27936 *\&* | *\|* | *\\* )
27937 ac_sed_conf_input=`$as_echo "$configure_input" |
27938 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27939 *) ac_sed_conf_input=$configure_input;;
27943 *:-:* | *:-) cat >"$ac_tmp/stdin" \
27944 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27949 ac_dir=`$as_dirname -- "$ac_file" ||
27950 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27951 X"$ac_file" : 'X\(//\)[^/]' \| \
27952 X"$ac_file" : 'X\(//\)$' \| \
27953 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27954 $as_echo X"$ac_file" |
27955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27959 /^X\(\/\/\)[^/].*/{
27972 as_dir="$ac_dir"; as_fn_mkdir_p
27976 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27978 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27979 # A ".." for each directory in $ac_dir_suffix.
27980 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27981 case $ac_top_builddir_sub in
27982 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27983 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27986 ac_abs_top_builddir=$ac_pwd
27987 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27988 # for backward compatibility:
27989 ac_top_builddir=$ac_top_build_prefix
27992 .) # We are building in place.
27994 ac_top_srcdir=$ac_top_builddir_sub
27995 ac_abs_top_srcdir=$ac_pwd ;;
27996 [\\/]* | ?:[\\/]* ) # Absolute name.
27997 ac_srcdir=$srcdir$ac_dir_suffix;
27998 ac_top_srcdir=$srcdir
27999 ac_abs_top_srcdir=$srcdir ;;
28000 *) # Relative name.
28001 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28002 ac_top_srcdir=$ac_top_build_prefix$srcdir
28003 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28005 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28015 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28016 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28018 ac_MKDIR_P=$MKDIR_P
28020 [\\/$]* | ?:[\\/]* ) ;;
28021 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28026 # If the template does not know about datarootdir, expand it.
28027 # FIXME: This hack should be removed a few years after 2.60.
28028 ac_datarootdir_hack=; ac_datarootdir_seen=
28039 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28040 *datarootdir*) ac_datarootdir_seen=yes;;
28041 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28043 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28046 ac_datarootdir_hack='
28047 s&@datadir@&$datadir&g
28048 s&@docdir@&$docdir&g
28049 s&@infodir@&$infodir&g
28050 s&@localedir@&$localedir&g
28051 s&@mandir@&$mandir&g
28052 s&\\\${datarootdir}&$datarootdir&g' ;;
28056 # Neutralize VPATH when `$srcdir' = `.'.
28057 # Shell code in configure.ac might set extrasub.
28058 # FIXME: do we really want to maintain this feature?
28059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28060 ac_sed_extra="$ac_vpsub
28063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28065 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28066 s|@configure_input@|$ac_sed_conf_input|;t t
28067 s&@top_builddir@&$ac_top_builddir_sub&;t t
28068 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28069 s&@srcdir@&$ac_srcdir&;t t
28070 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28071 s&@top_srcdir@&$ac_top_srcdir&;t t
28072 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28073 s&@builddir@&$ac_builddir&;t t
28074 s&@abs_builddir@&$ac_abs_builddir&;t t
28075 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28076 s&@INSTALL@&$ac_INSTALL&;t t
28077 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28078 $ac_datarootdir_hack
28080 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28081 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28083 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28084 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28085 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28086 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28088 which seems to be undefined. Please make sure it is defined" >&5
28089 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28090 which seems to be undefined. Please make sure it is defined" >&2;}
28092 rm -f "$ac_tmp/stdin"
28094 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28095 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28097 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28103 if test x"$ac_file" != x-; then
28105 $as_echo "/* $configure_input */" \
28106 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28107 } >"$ac_tmp/config.h" \
28108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28109 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28110 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28111 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28114 mv "$ac_tmp/config.h" "$ac_file" \
28115 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28118 $as_echo "/* $configure_input */" \
28119 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28120 || as_fn_error $? "could not create -" "$LINENO" 5
28122 # Compute "$ac_file"'s index in $config_headers.
28125 for _am_header in $config_headers :; do
28126 case $_am_header in
28127 $_am_arg | $_am_arg:* )
28130 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28133 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28134 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28135 X"$_am_arg" : 'X\(//\)[^/]' \| \
28136 X"$_am_arg" : 'X\(//\)$' \| \
28137 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28138 $as_echo X"$_am_arg" |
28139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28143 /^X\(\/\/\)[^/].*/{
28155 s/.*/./; q'`/stamp-h$_am_stamp_count
28158 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28159 $as_echo "$as_me: executing $ac_file commands" >&6;}
28164 case $ac_file$ac_mode in
28165 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28166 # Older Autoconf quotes --file arguments for eval, but not when files
28167 # are listed without --file. Let's play safe and only enable the eval
28168 # if we detect the quoting.
28169 case $CONFIG_FILES in
28170 *\'*) eval set x "$CONFIG_FILES" ;;
28171 *) set x $CONFIG_FILES ;;
28176 # Strip MF so we end up with the name of the file.
28177 mf=`echo "$mf" | sed -e 's/:.*$//'`
28178 # Check whether this is an Automake generated Makefile or not.
28179 # We used to match only the files named 'Makefile.in', but
28180 # some people rename them; so instead we look at the file content.
28181 # Grep'ing the first line is not enough: some people post-process
28182 # each Makefile.in and add a new line on top of each file to say so.
28183 # Grep'ing the whole file is not good either: AIX grep has a line
28184 # limit of 2048, but all sed's we know have understand at least 4000.
28185 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28186 dirpart=`$as_dirname -- "$mf" ||
28187 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28188 X"$mf" : 'X\(//\)[^/]' \| \
28189 X"$mf" : 'X\(//\)$' \| \
28190 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28196 /^X\(\/\/\)[^/].*/{
28212 # Extract the definition of DEPDIR, am__include, and am__quote
28213 # from the Makefile without running 'make'.
28214 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28215 test -z "$DEPDIR" && continue
28216 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28217 test -z "$am__include" && continue
28218 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28219 # Find all dependency output files, they are included files with
28220 # $(DEPDIR) in their names. We invoke sed twice because it is the
28221 # simplest approach to changing $(DEPDIR) to its actual value in the
28223 for file in `sed -n "
28224 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28225 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28226 # Make sure the directory exists.
28227 test -f "$dirpart/$file" && continue
28228 fdir=`$as_dirname -- "$file" ||
28229 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28230 X"$file" : 'X\(//\)[^/]' \| \
28231 X"$file" : 'X\(//\)$' \| \
28232 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28233 $as_echo X"$file" |
28234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28238 /^X\(\/\/\)[^/].*/{
28251 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28252 # echo "creating $dirpart/$file"
28253 echo '# dummy' > "$dirpart/$file"
28260 # See if we are running on zsh, and set the options that allow our
28261 # commands through without removal of \ escapes.
28262 if test -n "${ZSH_VERSION+set}"; then
28263 setopt NO_GLOB_SUBST
28267 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28270 cat <<_LT_EOF >> "$cfgfile"
28272 # Generated automatically by $as_me ($PACKAGE) $VERSION
28273 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28274 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28276 # Provide generalized library-building support services.
28277 # Written by Gordon Matzigkeit, 1996
28279 # Copyright (C) 2014 Free Software Foundation, Inc.
28280 # This is free software; see the source for copying conditions. There is NO
28281 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28283 # GNU Libtool is free software; you can redistribute it and/or modify
28284 # it under the terms of the GNU General Public License as published by
28285 # the Free Software Foundation; either version 2 of of the License, or
28286 # (at your option) any later version.
28288 # As a special exception to the GNU General Public License, if you
28289 # distribute this file as part of a program or library that is built
28290 # using GNU Libtool, you may include this file under the same
28291 # distribution terms that you use for the rest of that program.
28293 # GNU Libtool is distributed in the hope that it will be useful, but
28294 # WITHOUT ANY WARRANTY; without even the implied warranty of
28295 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28296 # GNU General Public License for more details.
28298 # You should have received a copy of the GNU General Public License
28299 # along with this program. If not, see <http://www.gnu.org/licenses/>.
28302 # The names of the tagged configurations supported by this script.
28305 # Configured defaults for sys_lib_dlsearch_path munging.
28306 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28308 # ### BEGIN LIBTOOL CONFIG
28310 # A sed program that does not truncate output.
28313 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28314 Xsed="\$SED -e 1s/^X//"
28316 # A grep program that handles long lines.
28322 # A literal string matcher.
28325 # Shell to use when invoking shell scripts.
28328 # An echo program that protects backslashes.
28331 # Whether or not to build shared libraries.
28332 build_libtool_libs=$enable_shared
28334 # Which release of libtool.m4 was used?
28335 macro_version=$macro_version
28336 macro_revision=$macro_revision
28338 # Whether or not to build static libraries.
28339 build_old_libs=$enable_static
28341 # What type of objects to build.
28344 # Whether or not to optimize for fast installation.
28345 fast_install=$enable_fast_install
28347 # Shared archive member basename,for filename based shared library versioning on AIX.
28348 shared_archive_member_spec=$shared_archive_member_spec
28350 # The PATH separator for the build system.
28351 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28354 host_alias=$host_alias
28358 # The build system.
28359 build_alias=$build_alias
28363 # A BSD- or MS-compatible name lister.
28366 # Whether we need soft or hard links.
28369 # What is the maximum length of a command?
28370 max_cmd_len=$max_cmd_len
28372 # Object file suffix (normally "o").
28375 # Executable file suffix (normally "").
28378 # whether the shell understands "unset".
28381 # turn spaces into newlines.
28384 # turn newlines into spaces.
28387 # convert \$build file names to \$host format.
28388 to_host_file_cmd=$lt_cv_to_host_file_cmd
28390 # convert \$build files to toolchain format.
28391 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28393 # An object symbol dumper.
28394 OBJDUMP=$lt_OBJDUMP
28396 # Method to check whether dependent libraries are shared objects.
28397 deplibs_check_method=$lt_deplibs_check_method
28399 # Command to use when deplibs_check_method = "file_magic".
28400 file_magic_cmd=$lt_file_magic_cmd
28402 # How to find potential files when deplibs_check_method = "file_magic".
28403 file_magic_glob=$lt_file_magic_glob
28405 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28406 want_nocaseglob=$lt_want_nocaseglob
28408 # DLL creation program.
28409 DLLTOOL=$lt_DLLTOOL
28411 # Command to associate shared and link libraries.
28412 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28417 # Flags to create an archive.
28418 AR_FLAGS=$lt_AR_FLAGS
28420 # How to feed a file listing to the archiver.
28421 archiver_list_spec=$lt_archiver_list_spec
28423 # A symbol stripping program.
28426 # Commands used to install an old-style archive.
28428 old_postinstall_cmds=$lt_old_postinstall_cmds
28429 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28431 # Whether to use a lock for old archive extraction.
28432 lock_old_archive_extraction=$lock_old_archive_extraction
28437 # LTCC compiler flags.
28438 LTCFLAGS=$lt_CFLAGS
28440 # Take the output of nm and produce a listing of raw symbols and C names.
28441 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28443 # Transform the output of nm in a proper C declaration.
28444 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28446 # Transform the output of nm into a list of symbols to manually relocate.
28447 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28449 # Transform the output of nm in a C name address pair.
28450 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28452 # Transform the output of nm in a C name address pair when lib prefix is needed.
28453 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28455 # The name lister interface.
28456 nm_interface=$lt_lt_cv_nm_interface
28458 # Specify filename containing input files for \$NM.
28459 nm_file_list_spec=$lt_nm_file_list_spec
28461 # The root where to search for dependent libraries,and where our libraries should be installed.
28462 lt_sysroot=$lt_sysroot
28464 # Command to truncate a binary pipe.
28465 lt_truncate_bin=$lt_lt_cv_truncate_bin
28467 # The name of the directory that contains temporary libtool files.
28470 # Used to examine libraries when file_magic_cmd begins with "file".
28471 MAGIC_CMD=$MAGIC_CMD
28473 # Must we lock files when doing compilation?
28474 need_locks=$lt_need_locks
28477 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28479 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28480 DSYMUTIL=$lt_DSYMUTIL
28482 # Tool to change global to local symbols on Mac OS X.
28485 # Tool to manipulate fat objects and archives on Mac OS X.
28488 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28491 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28492 OTOOL64=$lt_OTOOL64
28494 # Old archive suffix (normally "a").
28497 # Shared library suffix (normally ".so").
28498 shrext_cmds=$lt_shrext_cmds
28500 # The commands to extract the exported symbol list from a shared archive.
28501 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28503 # Variables whose values should be saved in libtool wrapper scripts and
28504 # restored at link time.
28505 variables_saved_for_relink=$lt_variables_saved_for_relink
28507 # Do we need the "lib" prefix for modules?
28508 need_lib_prefix=$need_lib_prefix
28510 # Do we need a version for libraries?
28511 need_version=$need_version
28513 # Library versioning type.
28514 version_type=$version_type
28516 # Shared library runtime path variable.
28517 runpath_var=$runpath_var
28519 # Shared library path variable.
28520 shlibpath_var=$shlibpath_var
28522 # Is shlibpath searched before the hard-coded library search path?
28523 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28525 # Format of library name prefix.
28526 libname_spec=$lt_libname_spec
28528 # List of archive names. First name is the real one, the rest are links.
28529 # The last name is the one that the linker finds with -lNAME
28530 library_names_spec=$lt_library_names_spec
28532 # The coded name of the library, if different from the real name.
28533 soname_spec=$lt_soname_spec
28535 # Permission mode override for installation of shared libraries.
28536 install_override_mode=$lt_install_override_mode
28538 # Command to use after installation of a shared archive.
28539 postinstall_cmds=$lt_postinstall_cmds
28541 # Command to use after uninstallation of a shared archive.
28542 postuninstall_cmds=$lt_postuninstall_cmds
28544 # Commands used to finish a libtool library installation in a directory.
28545 finish_cmds=$lt_finish_cmds
28547 # As "finish_cmds", except a single script fragment to be evaled but
28549 finish_eval=$lt_finish_eval
28551 # Whether we should hardcode library paths into libraries.
28552 hardcode_into_libs=$hardcode_into_libs
28554 # Compile-time system search path for libraries.
28555 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28557 # Detected run-time system search path for libraries.
28558 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28560 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28561 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28563 # Whether dlopen is supported.
28564 dlopen_support=$enable_dlopen
28566 # Whether dlopen of programs is supported.
28567 dlopen_self=$enable_dlopen_self
28569 # Whether dlopen of statically linked programs is supported.
28570 dlopen_self_static=$enable_dlopen_self_static
28572 # Commands to strip libraries.
28573 old_striplib=$lt_old_striplib
28574 striplib=$lt_striplib
28577 # The linker used to build libraries.
28580 # How to create reloadable object files.
28581 reload_flag=$lt_reload_flag
28582 reload_cmds=$lt_reload_cmds
28584 # Commands used to build an old-style archive.
28585 old_archive_cmds=$lt_old_archive_cmds
28587 # A language specific compiler.
28590 # Is the compiler the GNU compiler?
28593 # Compiler flag to turn off builtin functions.
28594 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28596 # Additional compiler flags for building library objects.
28597 pic_flag=$lt_lt_prog_compiler_pic
28599 # How to pass a linker flag through the compiler.
28600 wl=$lt_lt_prog_compiler_wl
28602 # Compiler flag to prevent dynamic linking.
28603 link_static_flag=$lt_lt_prog_compiler_static
28605 # Does compiler simultaneously support -c and -o options?
28606 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28608 # Whether or not to add -lc for building shared libraries.
28609 build_libtool_need_lc=$archive_cmds_need_lc
28611 # Whether or not to disallow shared libs when runtime libs are static.
28612 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28614 # Compiler flag to allow reflexive dlopens.
28615 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28617 # Compiler flag to generate shared objects directly from archives.
28618 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28620 # Whether the compiler copes with passing no objects directly.
28621 compiler_needs_object=$lt_compiler_needs_object
28623 # Create an old-style archive from a shared archive.
28624 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28626 # Create a temporary old-style archive to link instead of a shared archive.
28627 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28629 # Commands used to build a shared archive.
28630 archive_cmds=$lt_archive_cmds
28631 archive_expsym_cmds=$lt_archive_expsym_cmds
28633 # Commands used to build a loadable module if different from building
28634 # a shared archive.
28635 module_cmds=$lt_module_cmds
28636 module_expsym_cmds=$lt_module_expsym_cmds
28638 # Whether we are building with GNU ld or not.
28639 with_gnu_ld=$lt_with_gnu_ld
28641 # Flag that allows shared libraries with undefined symbols to be built.
28642 allow_undefined_flag=$lt_allow_undefined_flag
28644 # Flag that enforces no undefined symbols.
28645 no_undefined_flag=$lt_no_undefined_flag
28647 # Flag to hardcode \$libdir into a binary during linking.
28648 # This must work even if \$libdir does not exist
28649 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28651 # Whether we need a single "-rpath" flag with a separated argument.
28652 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28654 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28655 # DIR into the resulting binary.
28656 hardcode_direct=$hardcode_direct
28658 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28659 # DIR into the resulting binary and the resulting library dependency is
28660 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28661 # library is relocated.
28662 hardcode_direct_absolute=$hardcode_direct_absolute
28664 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28665 # into the resulting binary.
28666 hardcode_minus_L=$hardcode_minus_L
28668 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28669 # into the resulting binary.
28670 hardcode_shlibpath_var=$hardcode_shlibpath_var
28672 # Set to "yes" if building a shared library automatically hardcodes DIR
28673 # into the library and all subsequent libraries and executables linked
28675 hardcode_automatic=$hardcode_automatic
28677 # Set to yes if linker adds runtime paths of dependent libraries
28678 # to runtime path list.
28679 inherit_rpath=$inherit_rpath
28681 # Whether libtool must link a program against all its dependency libraries.
28682 link_all_deplibs=$link_all_deplibs
28684 # Set to "yes" if exported symbols are required.
28685 always_export_symbols=$always_export_symbols
28687 # The commands to list exported symbols.
28688 export_symbols_cmds=$lt_export_symbols_cmds
28690 # Symbols that should not be listed in the preloaded symbols.
28691 exclude_expsyms=$lt_exclude_expsyms
28693 # Symbols that must always be exported.
28694 include_expsyms=$lt_include_expsyms
28696 # Commands necessary for linking programs (against libraries) with templates.
28697 prelink_cmds=$lt_prelink_cmds
28699 # Commands necessary for finishing linking programs.
28700 postlink_cmds=$lt_postlink_cmds
28702 # Specify filename containing input files.
28703 file_list_spec=$lt_file_list_spec
28705 # How to hardcode a shared library path into an executable.
28706 hardcode_action=$hardcode_action
28708 # ### END LIBTOOL CONFIG
28712 cat <<'_LT_EOF' >> "$cfgfile"
28714 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28716 # func_munge_path_list VARIABLE PATH
28717 # -----------------------------------
28718 # VARIABLE is name of variable containing _space_ separated list of
28719 # directories to be munged by the contents of PATH, which is string
28722 # string "DIR[ DIR]" will be prepended to VARIABLE
28724 # string "DIR[ DIR]" will be appended to VARIABLE
28725 # "DIRP[:DIRP]::[DIRA:]DIRA"
28726 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28727 # "DIRA[ DIRA]" will be appended to VARIABLE
28729 # VARIABLE will be replaced by "DIR[ DIR]"
28730 func_munge_path_list ()
28736 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28739 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
28742 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
28743 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
28746 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
28752 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
28753 func_cc_basename ()
28755 for cc_temp in $*""; do
28757 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28758 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28763 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
28767 # ### END FUNCTIONS SHARED WITH CONFIGURE
28773 cat <<\_LT_EOF >> "$cfgfile"
28774 # AIX sometimes has problems with the GCC collect2 program. For some
28775 # reason, if we set the COLLECT_NAMES environment variable, the problems
28776 # vanish in a puff of smoke.
28777 if test set != "${COLLECT_NAMES+set}"; then
28779 export COLLECT_NAMES
28786 ltmain=$ac_aux_dir/ltmain.sh
28789 # We use sed instead of cat because bash on DJGPP gets confused if
28790 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28791 # text mode, it properly converts lines to CR/LF. This bash problem
28792 # is reportedly fixed, but why not run on old versions too?
28793 sed '$q' "$ltmain" >> "$cfgfile" \
28794 || (rm -f "$cfgfile"; exit 1)
28796 mv -f "$cfgfile" "$ofile" ||
28797 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28808 ac_clean_files=$ac_clean_files_save
28810 test $ac_write_fail = 0 ||
28811 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28814 # configure is writing to config.log, and then calls config.status.
28815 # config.status does its own redirection, appending to config.log.
28816 # Unfortunately, on DOS this fails, as config.log is still kept open
28817 # by configure, so config.status won't be able to write to it; its
28818 # output is simply discarded. So we exec the FD to /dev/null,
28819 # effectively closing config.log, so it can be properly (re)opened and
28820 # appended to by config.status. When coming back to configure, we
28821 # need to make the FD available again.
28822 if test "$no_create" != yes; then
28824 ac_config_status_args=
28825 test "$silent" = yes &&
28826 ac_config_status_args="$ac_config_status_args --quiet"
28828 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28830 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28831 # would make configure fail if this is the last instruction.
28832 $ac_cs_success || as_fn_exit 1
28836 # CONFIG_SUBDIRS section.
28838 if test "$no_recursion" != yes; then
28840 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28841 # so they do not pile up.
28842 ac_sub_configure_args=
28844 eval "set x $ac_configure_args"
28848 if test -n "$ac_prev"; then
28853 -cache-file | --cache-file | --cache-fil | --cache-fi \
28854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28855 ac_prev=cache_file ;;
28856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28860 --config-cache | -C)
28862 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28864 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28866 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28868 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28870 --disable-option-checking)
28874 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28876 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28880 # Always prepend --prefix to ensure using the same prefix
28881 # in subdir configurations.
28882 ac_arg="--prefix=$prefix"
28884 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28886 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28889 if test "$silent" = yes; then
28890 ac_sub_configure_args="--silent $ac_sub_configure_args"
28893 # Always prepend --disable-option-checking to silence warnings, since
28894 # different subdirs can have different --enable and --with options.
28895 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28898 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28900 # Do not complain, so a configure script can configure whichever
28901 # parts of a large source tree are present.
28902 test -d "$srcdir/$ac_dir" || continue
28904 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28905 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28906 $as_echo "$ac_msg" >&6
28907 as_dir="$ac_dir"; as_fn_mkdir_p
28911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28913 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28914 # A ".." for each directory in $ac_dir_suffix.
28915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28916 case $ac_top_builddir_sub in
28917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28921 ac_abs_top_builddir=$ac_pwd
28922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28923 # for backward compatibility:
28924 ac_top_builddir=$ac_top_build_prefix
28927 .) # We are building in place.
28929 ac_top_srcdir=$ac_top_builddir_sub
28930 ac_abs_top_srcdir=$ac_pwd ;;
28931 [\\/]* | ?:[\\/]* ) # Absolute name.
28932 ac_srcdir=$srcdir$ac_dir_suffix;
28933 ac_top_srcdir=$srcdir
28934 ac_abs_top_srcdir=$srcdir ;;
28935 *) # Relative name.
28936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28937 ac_top_srcdir=$ac_top_build_prefix$srcdir
28938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28945 # Check for guested configure; otherwise get Cygnus style configure.
28946 if test -f "$ac_srcdir/configure.gnu"; then
28947 ac_sub_configure=$ac_srcdir/configure.gnu
28948 elif test -f "$ac_srcdir/configure"; then
28949 ac_sub_configure=$ac_srcdir/configure
28950 elif test -f "$ac_srcdir/configure.in"; then
28951 # This should be Cygnus configure.
28952 ac_sub_configure=$ac_aux_dir/configure
28954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28955 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28959 # The recursion is here.
28960 if test -n "$ac_sub_configure"; then
28961 # Make the cache file name correct relative to the subdirectory.
28962 case $cache_file in
28963 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28964 *) # Relative name.
28965 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28968 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28969 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28970 # The eval makes quoting arguments work.
28971 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28972 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28973 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28979 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28981 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}