2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sntp 4.2.8p12.
5 # Report bugs to <http://bugs.ntp.org./>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.ntp.org./ about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
592 PACKAGE_TARNAME='sntp'
593 PACKAGE_VERSION='4.2.8p12'
594 PACKAGE_STRING='sntp 4.2.8p12'
595 PACKAGE_BUGREPORT='http://bugs.ntp.org./'
596 PACKAGE_URL='http://www.ntp.org./'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
635 enable_option_checking=no
636 ac_subst_vars='am__EXEEXT_FALSE
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
910 enable_trustedbsd_mac
921 enable_libopts_install
928 enable_local_libevent
938 ac_precious_vars='build_alias
948 ac_subdirs_all='libevent'
950 # Initialize some variables set by options.
952 ac_init_version=false
953 ac_unrecognized_opts=
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
964 program_transform_name=s,x,x,
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989 infodir='${datarootdir}/info'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
1004 eval $ac_prev=\$ac_option
1010 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 # Accept the important Cygnus configure options, so we can diagnose typos.
1017 case $ac_dashdash$ac_option in
1021 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024 bindir=$ac_optarg ;;
1026 -build | --build | --buil | --bui | --bu)
1027 ac_prev=build_alias ;;
1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029 build_alias=$ac_optarg ;;
1031 -cache-file | --cache-file | --cache-fil | --cache-fi \
1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033 ac_prev=cache_file ;;
1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036 cache_file=$ac_optarg ;;
1038 --config-cache | -C)
1039 cache_file=config.cache ;;
1041 -datadir | --datadir | --datadi | --datad)
1043 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044 datadir=$ac_optarg ;;
1046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047 | --dataroo | --dataro | --datar)
1048 ac_prev=datarootdir ;;
1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051 datarootdir=$ac_optarg ;;
1053 -disable-* | --disable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid feature name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_$ac_useropt"
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1067 eval enable_$ac_useropt=no ;;
1069 -docdir | --docdir | --docdi | --doc | --do)
1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072 docdir=$ac_optarg ;;
1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077 dvidir=$ac_optarg ;;
1079 -enable-* | --enable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error $? "invalid feature name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_$ac_useropt"
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1093 eval enable_$ac_useropt=\$ac_optarg ;;
1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097 | --exec | --exe | --ex)
1098 ac_prev=exec_prefix ;;
1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101 | --exec=* | --exe=* | --ex=*)
1102 exec_prefix=$ac_optarg ;;
1104 -gas | --gas | --ga | --g)
1105 # Obsolete; use --with-gas.
1108 -help | --help | --hel | --he | -h)
1109 ac_init_help=long ;;
1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111 ac_init_help=recursive ;;
1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113 ac_init_help=short ;;
1115 -host | --host | --hos | --ho)
1116 ac_prev=host_alias ;;
1117 -host=* | --host=* | --hos=* | --ho=*)
1118 host_alias=$ac_optarg ;;
1120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1124 htmldir=$ac_optarg ;;
1126 -includedir | --includedir | --includedi | --included | --include \
1127 | --includ | --inclu | --incl | --inc)
1128 ac_prev=includedir ;;
1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130 | --includ=* | --inclu=* | --incl=* | --inc=*)
1131 includedir=$ac_optarg ;;
1133 -infodir | --infodir | --infodi | --infod | --info | --inf)
1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136 infodir=$ac_optarg ;;
1138 -libdir | --libdir | --libdi | --libd)
1140 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141 libdir=$ac_optarg ;;
1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144 | --libexe | --libex | --libe)
1145 ac_prev=libexecdir ;;
1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147 | --libexe=* | --libex=* | --libe=*)
1148 libexecdir=$ac_optarg ;;
1150 -localedir | --localedir | --localedi | --localed | --locale)
1151 ac_prev=localedir ;;
1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153 localedir=$ac_optarg ;;
1155 -localstatedir | --localstatedir | --localstatedi | --localstated \
1156 | --localstate | --localstat | --localsta | --localst | --locals)
1157 ac_prev=localstatedir ;;
1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160 localstatedir=$ac_optarg ;;
1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165 mandir=$ac_optarg ;;
1167 -nfp | --nfp | --nf)
1168 # Obsolete; use --without-fp.
1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172 | --no-cr | --no-c | -n)
1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181 | --oldin | --oldi | --old | --ol | --o)
1182 ac_prev=oldincludedir ;;
1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186 oldincludedir=$ac_optarg ;;
1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191 prefix=$ac_optarg ;;
1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194 | --program-pre | --program-pr | --program-p)
1195 ac_prev=program_prefix ;;
1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198 program_prefix=$ac_optarg ;;
1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201 | --program-suf | --program-su | --program-s)
1202 ac_prev=program_suffix ;;
1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205 program_suffix=$ac_optarg ;;
1207 -program-transform-name | --program-transform-name \
1208 | --program-transform-nam | --program-transform-na \
1209 | --program-transform-n | --program-transform- \
1210 | --program-transform | --program-transfor \
1211 | --program-transfo | --program-transf \
1212 | --program-trans | --program-tran \
1213 | --progr-tra | --program-tr | --program-t)
1214 ac_prev=program_transform_name ;;
1215 -program-transform-name=* | --program-transform-name=* \
1216 | --program-transform-nam=* | --program-transform-na=* \
1217 | --program-transform-n=* | --program-transform-=* \
1218 | --program-transform=* | --program-transfor=* \
1219 | --program-transfo=* | --program-transf=* \
1220 | --program-trans=* | --program-tran=* \
1221 | --progr-tra=* | --program-tr=* | --program-t=*)
1222 program_transform_name=$ac_optarg ;;
1224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227 pdfdir=$ac_optarg ;;
1229 -psdir | --psdir | --psdi | --psd | --ps)
1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1242 sbindir=$ac_optarg ;;
1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246 | --sharedst | --shareds | --shared | --share | --shar \
1248 ac_prev=sharedstatedir ;;
1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1253 sharedstatedir=$ac_optarg ;;
1255 -site | --site | --sit)
1257 -site=* | --site=* | --sit=*)
1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263 srcdir=$ac_optarg ;;
1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266 | --syscon | --sysco | --sysc | --sys | --sy)
1267 ac_prev=sysconfdir ;;
1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270 sysconfdir=$ac_optarg ;;
1272 -target | --target | --targe | --targ | --tar | --ta | --t)
1273 ac_prev=target_alias ;;
1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275 target_alias=$ac_optarg ;;
1277 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280 -version | --version | --versio | --versi | --vers | -V)
1281 ac_init_version=: ;;
1284 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287 as_fn_error $? "invalid package name: $ac_useropt"
1288 ac_useropt_orig=$ac_useropt
1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290 case $ac_user_opts in
1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1295 ac_unrecognized_sep=', ';;
1297 eval with_$ac_useropt=\$ac_optarg ;;
1299 -without-* | --without-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303 as_fn_error $? "invalid package name: $ac_useropt"
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1313 eval with_$ac_useropt=no ;;
1316 # Obsolete; use --with-x.
1319 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1320 | --x-incl | --x-inc | --x-in | --x-i)
1321 ac_prev=x_includes ;;
1322 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1323 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1324 x_includes=$ac_optarg ;;
1326 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1327 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1328 ac_prev=x_libraries ;;
1329 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1330 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1331 x_libraries=$ac_optarg ;;
1333 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1334 Try \`$0 --help' for more information"
1338 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339 # Reject names that are not valid shell variable names.
1340 case $ac_envvar in #(
1341 '' | [0-9]* | *[!_$as_cr_alnum]* )
1342 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1344 eval $ac_envvar=\$ac_optarg
1345 export $ac_envvar ;;
1348 # FIXME: should be removed in autoconf 3.0.
1349 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1350 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1351 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1352 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1358 if test -n "$ac_prev"; then
1359 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1360 as_fn_error $? "missing argument to $ac_option"
1363 if test -n "$ac_unrecognized_opts"; then
1364 case $enable_option_checking in
1366 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1367 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1371 # Check all directory arguments for consistency.
1372 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1373 datadir sysconfdir sharedstatedir localstatedir includedir \
1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1375 libdir localedir mandir
1377 eval ac_val=\$$ac_var
1378 # Remove trailing slashes.
1381 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1382 eval $ac_var=\$ac_val;;
1384 # Be sure to have absolute directory names.
1386 [\\/$]* | ?:[\\/]* ) continue;;
1387 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1389 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1392 # There might be people who depend on the old broken behavior: `$host'
1393 # used to hold the argument of --host etc.
1394 # FIXME: To remove some day.
1397 target=$target_alias
1399 # FIXME: To remove some day.
1400 if test "x$host_alias" != x; then
1401 if test "x$build_alias" = x; then
1402 cross_compiling=maybe
1403 elif test "x$build_alias" != "x$host_alias"; then
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411 test "$silent" = yes && exec 6>/dev/null
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error $? "working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error $? "pwd does not report name of working directory"
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1454 ac_srcdir_defaulted=no
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1460 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474 for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1482 # Report the --help message.
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1488 \`configure' configures sntp 4.2.8p12 to adapt to many kinds of systems.
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1495 Defaults for the options are specified in brackets.
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking ...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1519 For better control, use the options below.
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/sntp]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1546 --program-prefix=PREFIX prepend PREFIX to installed program names
1547 --program-suffix=SUFFIX append SUFFIX to installed program names
1548 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1551 --build=BUILD configure for building on BUILD [guessed]
1552 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1556 if test -n "$ac_init_help"; then
1557 case $ac_init_help in
1558 short | recursive ) echo "Configuration of sntp 4.2.8p12:";;
1563 --disable-option-checking ignore unrecognized --enable/--with options
1564 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1565 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1566 --enable-silent-rules less verbose build output (undo: "make V=1")
1567 --disable-silent-rules verbose build output (undo: "make V=0")
1568 --enable-dependency-tracking
1569 do not reject slow dependency extractors
1570 --disable-dependency-tracking
1571 speeds up one-time build
1572 defaults: + yes, - no, s system-specific
1573 --enable-debugging + include ntpd debugging code
1574 --enable-thread-support s use threads (+ if available)
1575 --enable-c99-snprintf s force replacement
1576 --enable-clockctl s Use /dev/clockctl for non-root clock control
1577 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1578 --enable-solarisprivs + Use Solaris privileges for non-root clock control
1579 --enable-trustedbsd-mac s Use TrustedBSD MAC policy for non-root clock
1581 --enable-shared[=PKGS] build shared libraries [default=no]
1582 --enable-static[=PKGS] build static libraries [default=yes]
1583 --enable-fast-install[=PKGS]
1584 optimize for fast installation [default=yes]
1585 --disable-libtool-lock avoid locking (might break parallel builds)
1586 --disable-nls disable nls support in libopts
1587 --enable-local-libopts Use the supplied libopts tearoff code
1588 --enable-libopts-install
1589 Install libopts with client installation
1590 --disable-optional-args not wanting optional option args
1591 --enable-local-libevent Force using the supplied libevent tearoff code
1592 --enable-ipv6 s use IPv6?
1594 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]].
1595 --enable-problem-tests + enable tests with undiagnosed problems
1598 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1599 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1600 --with-hardenfile=XXX os-specific or "/dev/null"
1601 --with-locfile=XXX os-specific or "legacy"
1602 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1603 --with-lineeditlibs edit,editline (readline may be specified if desired)
1604 --with-threads with threads [auto]
1605 --with-yielding-select with yielding select [auto]
1606 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1608 --with-aix-soname=aix|svr4|both
1609 shared library versioning (aka "SONAME") variant to
1610 provide on AIX, [default=aix].
1611 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1612 compiler's sysroot if not specified).
1613 --without-sntp - disable building sntp and sntp/tests
1614 --with-autoopts-config specify the config-info script
1615 --with-regex-header a reg expr header is specified
1616 --with-libregex libregex installation prefix
1617 --with-libregex-cflags libregex compile flags
1618 --with-libregex-libs libregex link command arguments
1619 --with-crypto + =openssl,libcrypto
1621 --with-openssl-libdir + =/something/reasonable
1623 --with-openssl-incdir + =/something/reasonable
1625 --without-rpath s Disable auto-added -R linker paths
1627 --with-kame - =/usr/local/v6
1629 Some influential environment variables:
1630 CC C compiler command
1631 CFLAGS C compiler flags
1632 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1633 nonstandard directory <lib dir>
1634 LIBS libraries to pass to the linker, e.g. -l<library>
1635 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1636 you have headers in a nonstandard directory <include dir>
1639 User-defined run-time library search path.
1641 Use these variables to override the choices made by `configure' or to help
1642 it to find libraries and programs with nonstandard names/locations.
1644 Report bugs to <http://bugs.ntp.org./>.
1645 sntp home page: <http://www.ntp.org./>.
1650 if test "$ac_init_help" = "recursive"; then
1651 # If there are subdirs, report their specific --help.
1652 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1653 test -d "$ac_dir" ||
1654 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1662 # A ".." for each directory in $ac_dir_suffix.
1663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1664 case $ac_top_builddir_sub in
1665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669 ac_abs_top_builddir=$ac_pwd
1670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671 # for backward compatibility:
1672 ac_top_builddir=$ac_top_build_prefix
1675 .) # We are building in place.
1677 ac_top_srcdir=$ac_top_builddir_sub
1678 ac_abs_top_srcdir=$ac_pwd ;;
1679 [\\/]* | ?:[\\/]* ) # Absolute name.
1680 ac_srcdir=$srcdir$ac_dir_suffix;
1681 ac_top_srcdir=$srcdir
1682 ac_abs_top_srcdir=$srcdir ;;
1684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685 ac_top_srcdir=$ac_top_build_prefix$srcdir
1686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1690 cd "$ac_dir" || { ac_status=$?; continue; }
1691 # Check for guested configure.
1692 if test -f "$ac_srcdir/configure.gnu"; then
1694 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695 elif test -f "$ac_srcdir/configure"; then
1697 $SHELL "$ac_srcdir/configure" --help=recursive
1699 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1701 cd "$ac_pwd" || { ac_status=$?; break; }
1705 test -n "$ac_init_help" && exit $ac_status
1706 if $ac_init_version; then
1708 sntp configure 4.2.8p12
1709 generated by GNU Autoconf 2.69
1711 Copyright (C) 2012 Free Software Foundation, Inc.
1712 This configure script is free software; the Free Software Foundation
1713 gives unlimited permission to copy, distribute and modify it.
1718 ## ------------------------ ##
1719 ## Autoconf initialization. ##
1720 ## ------------------------ ##
1722 # ac_fn_c_try_compile LINENO
1723 # --------------------------
1724 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1725 ac_fn_c_try_compile ()
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext
1729 if { { ac_try="$ac_compile"
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_compile") 2>conftest.err
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest.$ac_objext; then :
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1758 } # ac_fn_c_try_compile
1760 # ac_fn_c_try_cpp LINENO
1761 # ----------------------
1762 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 if { { ac_try="$ac_cpp conftest.$ac_ext"
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } > conftest.i && {
1782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1797 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1798 # -------------------------------------------------------
1799 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1800 # the include files in INCLUDES and setting the cache variable VAR
1802 ac_fn_c_check_header_mongrel ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if eval \${$3+:} false; then :
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if eval \${$3+:} false; then :
1809 $as_echo_n "(cached) " >&6
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1815 # Is the header compilable?
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1817 $as_echo_n "checking $2 usability... " >&6; }
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1823 if ac_fn_c_try_compile "$LINENO"; then :
1824 ac_header_compiler=yes
1826 ac_header_compiler=no
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1830 $as_echo "$ac_header_compiler" >&6; }
1832 # Is the header present?
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1834 $as_echo_n "checking $2 presence... " >&6; }
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1839 if ac_fn_c_try_cpp "$LINENO"; then :
1840 ac_header_preproc=yes
1842 ac_header_preproc=no
1844 rm -f conftest.err conftest.i conftest.$ac_ext
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1846 $as_echo "$ac_header_preproc" >&6; }
1848 # So? What about this header?
1849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1852 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1858 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1860 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1862 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1864 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1866 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1867 ( $as_echo "## ------------------------------------ ##
1868 ## Report this to http://bugs.ntp.org./ ##
1869 ## ------------------------------------ ##"
1870 ) | sed "s/^/$as_me: WARNING: /" >&2
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if eval \${$3+:} false; then :
1876 $as_echo_n "(cached) " >&6
1878 eval "$3=\$ac_header_compiler"
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 } # ac_fn_c_check_header_mongrel
1888 # ac_fn_c_try_run LINENO
1889 # ----------------------
1890 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1891 # that executables *can* be run.
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if { { ac_try="$ac_link"
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_link") 2>&5
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1906 { { case "(($ac_try" in
1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908 *) ac_try_echo=$ac_try;;
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 $as_echo "$ac_try_echo"; } >&5
1912 (eval "$ac_try") 2>&5
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; }; }; then :
1918 $as_echo "$as_me: program exited with status $ac_status" >&5
1919 $as_echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1922 ac_retval=$ac_status
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1930 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1931 # -------------------------------------------------------
1932 # Tests whether HEADER exists and can be compiled using the include files in
1933 # INCLUDES, setting the cache variable VAR accordingly.
1934 ac_fn_c_check_header_compile ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1947 if ac_fn_c_try_compile "$LINENO"; then :
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 } # ac_fn_c_check_header_compile
1961 # ac_fn_c_try_link LINENO
1962 # -----------------------
1963 # Try to link conftest.$ac_ext, and return whether this succeeded.
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 rm -f conftest.$ac_objext conftest$ac_exeext
1968 if { { ac_try="$ac_link"
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_link") 2>conftest.err
1977 if test -s conftest.err; then
1978 grep -v '^ *+' conftest.err >conftest.er1
1979 cat conftest.er1 >&5
1980 mv -f conftest.er1 conftest.err
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; } && {
1984 test -z "$ac_c_werror_flag" ||
1985 test ! -s conftest.err
1986 } && test -s conftest$ac_exeext && {
1987 test "$cross_compiling" = yes ||
1988 test -x conftest$ac_exeext
1992 $as_echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1997 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1998 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1999 # interfere with the next link command; also delete a directory that is
2000 # left behind by Apple's compiler. We do this before executing the actions.
2001 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 as_fn_set_status $ac_retval
2005 } # ac_fn_c_try_link
2007 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2008 # -------------------------------------------
2009 # Tests whether TYPE exists after having included INCLUDES, setting cache
2010 # variable VAR accordingly.
2011 ac_fn_c_check_type ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2045 if ac_fn_c_try_compile "$LINENO"; then :
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 } # ac_fn_c_check_type
2061 # ac_fn_c_check_func LINENO FUNC VAR
2062 # ----------------------------------
2063 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2064 ac_fn_c_check_func ()
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068 $as_echo_n "checking for $2... " >&6; }
2069 if eval \${$3+:} false; then :
2070 $as_echo_n "(cached) " >&6
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2076 #define $2 innocuous_$2
2078 /* System header to define __stub macros and hopefully few prototypes,
2079 which can conflict with char $2 (); below.
2080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2081 <limits.h> exists even on freestanding compilers. */
2084 # include <limits.h>
2086 # include <assert.h>
2091 /* Override any GCC internal prototype to avoid an error.
2092 Use char because int might match the return type of a GCC
2093 builtin and then its argument prototype would still apply. */
2098 /* The GNU C library defines this for functions which it implements
2099 to always fail with ENOSYS. Some functions are actually named
2100 something starting with __ and the normal name is an alias. */
2101 #if defined __stub_$2 || defined __stub___$2
2113 if ac_fn_c_try_link "$LINENO"; then :
2118 rm -f core conftest.err conftest.$ac_objext \
2119 conftest$ac_exeext conftest.$ac_ext
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 $as_echo "$ac_res" >&6; }
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 } # ac_fn_c_check_func
2128 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2129 # ---------------------------------------------
2130 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2132 ac_fn_c_check_decl ()
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 as_decl_name=`echo $2|sed 's/ *(.*//'`
2136 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2138 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2139 if eval \${$3+:} false; then :
2140 $as_echo_n "(cached) " >&6
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2148 #ifndef $as_decl_name
2150 (void) $as_decl_use;
2152 (void) $as_decl_name;
2160 if ac_fn_c_try_compile "$LINENO"; then :
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169 $as_echo "$ac_res" >&6; }
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2172 } # ac_fn_c_check_decl
2174 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2175 # --------------------------------------------
2176 # Tries to find the compile-time value of EXPR in a program that includes
2177 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2179 ac_fn_c_compute_int ()
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 if test "$cross_compiling" = yes; then
2183 # Depending upon the size, compute the lo and hi bounds.
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2190 static int test_array [1 - 2 * !(($2) >= 0)];
2192 return test_array [0];
2198 if ac_fn_c_try_compile "$LINENO"; then :
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2207 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2209 return test_array [0];
2215 if ac_fn_c_try_compile "$LINENO"; then :
2216 ac_hi=$ac_mid; break
2218 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2219 if test $ac_lo -le $ac_mid; then
2223 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2234 static int test_array [1 - 2 * !(($2) < 0)];
2236 return test_array [0];
2242 if ac_fn_c_try_compile "$LINENO"; then :
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2251 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2253 return test_array [0];
2259 if ac_fn_c_try_compile "$LINENO"; then :
2260 ac_lo=$ac_mid; break
2262 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2263 if test $ac_mid -le $ac_hi; then
2267 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 # Binary search between lo and hi bounds.
2278 while test "x$ac_lo" != "x$ac_hi"; do
2279 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2286 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2288 return test_array [0];
2294 if ac_fn_c_try_compile "$LINENO"; then :
2297 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307 /* end confdefs.h. */
2309 static long int longval () { return $2; }
2310 static unsigned long int ulongval () { return $2; }
2317 FILE *f = fopen ("conftest.val", "w");
2322 long int i = longval ();
2325 fprintf (f, "%ld", i);
2329 unsigned long int i = ulongval ();
2332 fprintf (f, "%lu", i);
2334 /* Do not output a trailing newline, as this causes \r\n confusion
2335 on some platforms. */
2336 return ferror (f) || fclose (f) != 0;
2342 if ac_fn_c_try_run "$LINENO"; then :
2343 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2348 conftest.$ac_objext conftest.beam conftest.$ac_ext
2352 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353 as_fn_set_status $ac_retval
2355 } # ac_fn_c_compute_int
2357 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2358 # ----------------------------------------------------
2359 # Tries to find if the field MEMBER exists in type AGGR, after including
2360 # INCLUDES, setting cache variable VAR accordingly.
2361 ac_fn_c_check_member ()
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2365 $as_echo_n "checking for $2.$3... " >&6; }
2366 if eval \${$4+:} false; then :
2367 $as_echo_n "(cached) " >&6
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h. */
2382 if ac_fn_c_try_compile "$LINENO"; then :
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2392 if (sizeof ac_aggr.$3)
2398 if ac_fn_c_try_compile "$LINENO"; then :
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2409 $as_echo "$ac_res" >&6; }
2410 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2412 } # ac_fn_c_check_member
2413 cat >config.log <<_ACEOF
2414 This file contains any messages produced by compilers while
2415 running configure, to aid debugging if configure makes a mistake.
2417 It was created by sntp $as_me 4.2.8p12, which was
2418 generated by GNU Autoconf 2.69. Invocation command line was
2430 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2431 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2432 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2433 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2434 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2436 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2437 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2439 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2440 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2441 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2442 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2443 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2444 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2445 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 test -z "$as_dir" && as_dir=.
2454 $as_echo "PATH: $as_dir"
2470 # Keep a trace of the command line.
2471 # Strip out --no-create and --no-recursion so they do not pile up.
2472 # Strip out --silent because we don't want to record it for future runs.
2473 # Also quote any args containing shell meta-characters.
2474 # Make two passes to allow for proper duplicate-argument suppression.
2478 ac_must_keep_next=false
2484 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2486 | -silent | --silent | --silen | --sile | --sil)
2489 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2492 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2494 as_fn_append ac_configure_args1 " '$ac_arg'"
2495 if test $ac_must_keep_next = true; then
2496 ac_must_keep_next=false # Got value, back to normal.
2499 *=* | --config-cache | -C | -disable-* | --disable-* \
2500 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2501 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2502 | -with-* | --with-* | -without-* | --without-* | --x)
2503 case "$ac_configure_args0 " in
2504 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2507 -* ) ac_must_keep_next=true ;;
2510 as_fn_append ac_configure_args " '$ac_arg'"
2515 { ac_configure_args0=; unset ac_configure_args0;}
2516 { ac_configure_args1=; unset ac_configure_args1;}
2518 # When interrupted or exit'd, cleanup temporary files, and complete
2519 # config.log. We remove comments because anyway the quotes in there
2520 # would cause problems or look ugly.
2521 # WARNING: Use '\'' to represent an apostrophe within the trap.
2522 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2523 trap 'exit_status=$?
2524 # Save into config.log some information that might help in debugging.
2528 $as_echo "## ---------------- ##
2529 ## Cache variables. ##
2530 ## ---------------- ##"
2532 # The following way of writing the cache mishandles newlines in values,
2534 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2535 eval ac_val=\$$ac_var
2539 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2540 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2543 _ | IFS | as_nl) ;; #(
2544 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2545 *) { eval $ac_var=; unset $ac_var;} ;;
2550 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2551 *${as_nl}ac_space=\ *)
2553 "s/'\''/'\''\\\\'\'''\''/g;
2554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2564 $as_echo "## ----------------- ##
2565 ## Output variables. ##
2566 ## ----------------- ##"
2568 for ac_var in $ac_subst_vars
2570 eval ac_val=\$$ac_var
2572 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2574 $as_echo "$ac_var='\''$ac_val'\''"
2578 if test -n "$ac_subst_files"; then
2579 $as_echo "## ------------------- ##
2580 ## File substitutions. ##
2581 ## ------------------- ##"
2583 for ac_var in $ac_subst_files
2585 eval ac_val=\$$ac_var
2587 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2589 $as_echo "$ac_var='\''$ac_val'\''"
2594 if test -s confdefs.h; then
2595 $as_echo "## ----------- ##
2602 test "$ac_signal" != 0 &&
2603 $as_echo "$as_me: caught signal $ac_signal"
2604 $as_echo "$as_me: exit $exit_status"
2606 rm -f core *.core core.conftest.* &&
2607 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2610 for ac_signal in 1 2 13 15; do
2611 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2615 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2616 rm -f -r conftest* confdefs.h
2618 $as_echo "/* confdefs.h */" > confdefs.h
2620 # Predefined preprocessor variables.
2622 cat >>confdefs.h <<_ACEOF
2623 #define PACKAGE_NAME "$PACKAGE_NAME"
2626 cat >>confdefs.h <<_ACEOF
2627 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2630 cat >>confdefs.h <<_ACEOF
2631 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2634 cat >>confdefs.h <<_ACEOF
2635 #define PACKAGE_STRING "$PACKAGE_STRING"
2638 cat >>confdefs.h <<_ACEOF
2639 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2642 cat >>confdefs.h <<_ACEOF
2643 #define PACKAGE_URL "$PACKAGE_URL"
2647 # Let the site file select an alternate cache file if it wants to.
2648 # Prefer an explicitly selected file to automatically selected ones.
2651 if test -n "$CONFIG_SITE"; then
2652 # We do not want a PATH search for config.site.
2653 case $CONFIG_SITE in #((
2654 -*) ac_site_file1=./$CONFIG_SITE;;
2655 */*) ac_site_file1=$CONFIG_SITE;;
2656 *) ac_site_file1=./$CONFIG_SITE;;
2658 elif test "x$prefix" != xNONE; then
2659 ac_site_file1=$prefix/share/config.site
2660 ac_site_file2=$prefix/etc/config.site
2662 ac_site_file1=$ac_default_prefix/share/config.site
2663 ac_site_file2=$ac_default_prefix/etc/config.site
2665 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2667 test "x$ac_site_file" = xNONE && continue
2668 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2670 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2671 sed 's/^/| /' "$ac_site_file" >&5
2673 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2675 as_fn_error $? "failed to load site script $ac_site_file
2676 See \`config.log' for more details" "$LINENO" 5; }
2680 if test -r "$cache_file"; then
2681 # Some versions of bash will fail to source /dev/null (special files
2682 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2683 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2685 $as_echo "$as_me: loading cache $cache_file" >&6;}
2687 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2688 *) . "./$cache_file";;
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2693 $as_echo "$as_me: creating cache $cache_file" >&6;}
2697 as_fn_append ac_header_list " stdarg.h"
2698 # Check that the precious variables saved in the cache have kept the same
2700 ac_cache_corrupted=false
2701 for ac_var in $ac_precious_vars; do
2702 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2703 eval ac_new_set=\$ac_env_${ac_var}_set
2704 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2705 eval ac_new_val=\$ac_env_${ac_var}_value
2706 case $ac_old_set,$ac_new_set in
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2709 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2710 ac_cache_corrupted=: ;;
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2713 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2714 ac_cache_corrupted=: ;;
2717 if test "x$ac_old_val" != "x$ac_new_val"; then
2718 # differences in whitespace do not lead to failure.
2719 ac_old_val_w=`echo x $ac_old_val`
2720 ac_new_val_w=`echo x $ac_new_val`
2721 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2723 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2724 ac_cache_corrupted=:
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2727 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2728 eval $ac_var=\$ac_old_val
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2731 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2733 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2736 # Pass precious variables to config.status.
2737 if test "$ac_new_set" = set; then
2739 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2740 *) ac_arg=$ac_var=$ac_new_val ;;
2742 case " $ac_configure_args " in
2743 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2744 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2748 if $ac_cache_corrupted; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2752 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2753 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2755 ## -------------------- ##
2756 ## Main body of script. ##
2757 ## -------------------- ##
2760 ac_cpp='$CPP $CPPFLAGS'
2761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768 for ac_dir in libevent/build-aux "$srcdir"/libevent/build-aux; do
2769 if test -f "$ac_dir/install-sh"; then
2771 ac_install_sh="$ac_aux_dir/install-sh -c"
2773 elif test -f "$ac_dir/install.sh"; then
2775 ac_install_sh="$ac_aux_dir/install.sh -c"
2777 elif test -f "$ac_dir/shtool"; then
2779 ac_install_sh="$ac_aux_dir/shtool install -c"
2783 if test -z "$ac_aux_dir"; then
2784 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libevent/build-aux \"$srcdir\"/libevent/build-aux" "$LINENO" 5
2787 # These three variables are undocumented and unsupported,
2788 # and are intended to be withdrawn in a future Autoconf release.
2789 # They can cause serious problems if a builder's source tree is in a directory
2790 # whose full name contains unusual characters.
2791 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2792 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2793 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2797 ac_cpp='$CPP $CPPFLAGS'
2798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803 # Bump sntp_configure_cache_version for each change to configure.ac or
2804 # .m4 files which invalidates cached values from previous configure
2807 # If the change affects cache variables used only by the main NTP
2808 # configure.ac, then only its version number should be bumped, while
2809 # the subdir configure.ac version numbers should be unchanged. The
2810 # same is true for a test/variable that is used only by one subdir
2811 # being changed incompatibly; only that subdir's cache version needs
2814 # If a change affects variables shared by all NTP configure scripts,
2815 # please bump the version numbers of each. If you are not sure, the
2816 # safe choice is to bump all on any cache-invalidating change.
2818 # In order to avoid the risk of version stamp collision between -stable
2819 # and -dev branches, do not simply increment the version, instead use
2820 # the date YYYYMMDD optionally with -HHMM if there is more than one
2823 sntp_configure_cache_version=20120806
2825 # When the version of config.cache and configure do not
2826 # match, NTP_CACHEVERSION will flush the cache.
2832 case "$ntp_cv_sntp_cache_version" in
2833 $sntp_configure_cache_version)
2834 # same version, good
2838 # No cache, predates ntp_cv_sntp_cache_version, or is empty.
2839 case "$cache_file" in
2844 case "$NTP_CACHEVERSION_PARENT" in
2846 # Do not clear the cache immediately after it is created
2847 # empty as it is noisy. Differentiate a newly-created
2848 # config.cache from one predating the cache version
2849 # mechanism by looking for the first cached variable set
2851 case "$ac_cv_path_install" in
2853 # empty config.cache file
2858 # Parent configure just created cache from empty,
2859 # flushing would be counterproductive.
2866 # configure cache version mismatches config.cache version
2870 case "$ntp_cache_flush" in
2872 c_version="${ntp_cv_sntp_cache_version:-(no version found)}"
2874 # Do we flush all variables or exclude others' version stamps?
2876 case "$NTP_CACHEVERSION_PARENT" in
2878 # Clear all *_cv_* variables including our child subdirs'
2879 # ntp_cv_*_cache_version variables. This prevents subdir
2880 # configure scripts from noticing a version mismatch just
2881 # after the top configure in the invocation cleared and
2882 # recreated the cache.
2884 c_varname_list=`set |
2885 sed -n -e 's/=.*$//' \
2890 # This is not the top configure this particular invocation.
2891 # Clear all *_cv_* variables sparing the version stamps
2892 # of other configure scripts, so we don't trigger
2893 # useless repeated clearings.
2895 c_varname_list=`set |
2896 sed -n -e 's/=.*$//' \
2897 -e '/ntp_cv_.*_cache_version/d' \
2902 for c_varname in $c_varname_list
2904 { eval $c_varname=; unset $c_varname; }
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
2908 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $sntp_configure_cache_version" >&5
2910 $as_echo "$as_me: configure script cache version: $sntp_configure_cache_version" >&6;}
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
2912 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
2913 { c_varname=; unset c_varname;}
2914 { c_varname_list=; unset c_varname_list;}
2915 { c_version=; unset c_version;}
2918 { ntp_cache_flush=; unset ntp_cache_flush;}
2920 # save configure version in config.cache for next time
2921 ntp_cv_sntp_cache_version="$sntp_configure_cache_version"
2923 # let any subdir configure.ac NTP_CACHEVERSION invocations
2924 # know they are not the top level.
2925 NTP_CACHEVERSION_PARENT='sntp' ; export NTP_CACHEVERSION_PARENT
2928 am__api_version='1.15'
2930 # Find a good install program. We prefer a C program (faster),
2931 # so one script is as good as another. But avoid the broken or
2932 # incompatible versions:
2933 # SysV /etc/install, /usr/sbin/install
2934 # SunOS /usr/etc/install
2935 # IRIX /sbin/install
2937 # AmigaOS /C/install, which installs bootblocks on floppy discs
2938 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2939 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2940 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2941 # OS/2's system install, which has a completely different semantic
2942 # ./install, which can be erroneously created by make from ./install.sh.
2943 # Reject install programs that cannot install multiple files.
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2945 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2946 if test -z "$INSTALL"; then
2947 if ${ac_cv_path_install+:} false; then :
2948 $as_echo_n "(cached) " >&6
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir=.
2955 # Account for people who put trailing slashes in PATH elements.
2956 case $as_dir/ in #((
2957 ./ | .// | /[cC]/* | \
2958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2959 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2962 # OSF1 and SCO ODT 3.0 have their own names for install.
2963 # Don't use installbsd from OSF since it installs stuff as root
2965 for ac_prog in ginstall scoinst install; do
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2968 if test $ac_prog = install &&
2969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2970 # AIX install. It has an incompatible calling convention.
2972 elif test $ac_prog = install &&
2973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2974 # program-specific install script used by HP pwplus--don't use.
2977 rm -rf conftest.one conftest.two conftest.dir
2978 echo one > conftest.one
2979 echo two > conftest.two
2981 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2982 test -s conftest.one && test -s conftest.two &&
2983 test -s conftest.dir/conftest.one &&
2984 test -s conftest.dir/conftest.two
2986 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2999 rm -rf conftest.one conftest.two conftest.dir
3002 if test "${ac_cv_path_install+set}" = set; then
3003 INSTALL=$ac_cv_path_install
3005 # As a last resort, use the slow shell script. Don't cache a
3006 # value for INSTALL within a source directory, because that will
3007 # break other packages using the cache if that directory is
3008 # removed, or if the value is a relative name.
3009 INSTALL=$ac_install_sh
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3013 $as_echo "$INSTALL" >&6; }
3015 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3016 # It thinks the first close brace ends the variable substitution.
3017 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3019 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3021 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3024 $as_echo_n "checking whether build environment is sane... " >&6; }
3025 # Reject unsafe characters in $srcdir or the absolute working directory
3026 # name. Accept space and tab only in the latter.
3030 *[\\\"\#\$\&\'\`$am_lf]*)
3031 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3034 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3035 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3038 # Do 'set' in a subshell so we don't clobber the current shell's
3039 # arguments. Must try -L first in case configure is actually a
3040 # symlink; some systems play weird games with the mod time of symlinks
3041 # (eg FreeBSD returns the mod time of the symlink's containing
3045 for am_try in 1 2; do
3046 echo "timestamp, slept: $am_has_slept" > conftest.file
3047 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3048 if test "$*" = "X"; then
3050 set X `ls -t "$srcdir/configure" conftest.file`
3052 if test "$*" != "X $srcdir/configure conftest.file" \
3053 && test "$*" != "X conftest.file $srcdir/configure"; then
3055 # If neither matched, then we have a broken ls. This can happen
3056 # if, for instance, CONFIG_SHELL is bash and it inherits a
3057 # broken ls alias from the environment. This has actually
3058 # happened. Such a system could not be considered "sane".
3059 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3060 alias in your environment" "$LINENO" 5
3062 if test "$2" = conftest.file || test $am_try -eq 2; then
3069 test "$2" = conftest.file
3075 as_fn_error $? "newly created file is older than distributed files!
3076 Check your system clock" "$LINENO" 5
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3079 $as_echo "yes" >&6; }
3080 # If we didn't sleep, we still need to ensure time stamps of config.status and
3081 # generated files are strictly newer.
3083 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3090 test "$program_prefix" != NONE &&
3091 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3092 # Use a double $ so make ignores it.
3093 test "$program_suffix" != NONE &&
3094 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3095 # Double any \ or $.
3096 # By default was `s,x,x', remove it if useless.
3097 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3098 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3100 # Expand $ac_aux_dir to an absolute path.
3101 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3103 if test x"${MISSING+set}" != xset; then
3106 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3108 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3111 # Use eval to expand $SHELL
3112 if eval "$MISSING --is-lightweight"; then
3113 am_missing_run="$MISSING "
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3117 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3120 if test x"${install_sh+set}" != xset; then
3123 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3125 install_sh="\${SHELL} $am_aux_dir/install-sh"
3129 # Installed binaries are usually stripped using 'strip' when the user
3130 # run "make install-strip". However 'strip' might not be the right
3131 # tool to use in cross-compilation environments, therefore Automake
3132 # will honor the 'STRIP' environment variable to overrule this program.
3133 if test "$cross_compiling" != no; then
3134 if test -n "$ac_tool_prefix"; then
3135 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}strip; ac_word=$2
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if ${ac_cv_prog_STRIP+:} false; then :
3140 $as_echo_n "(cached) " >&6
3142 if test -n "$STRIP"; then
3143 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 STRIP=$ac_cv_prog_STRIP
3163 if test -n "$STRIP"; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3165 $as_echo "$STRIP" >&6; }
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3173 if test -z "$ac_cv_prog_STRIP"; then
3175 # Extract the first word of "strip", so it can be a program name with args.
3176 set dummy strip; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3180 $as_echo_n "(cached) " >&6
3182 if test -n "$ac_ct_STRIP"; then
3183 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192 ac_cv_prog_ac_ct_STRIP="strip"
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3203 if test -n "$ac_ct_STRIP"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3205 $as_echo "$ac_ct_STRIP" >&6; }
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3211 if test "x$ac_ct_STRIP" = x; then
3214 case $cross_compiling:$ac_tool_warned in
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3218 ac_tool_warned=yes ;;
3223 STRIP="$ac_cv_prog_STRIP"
3227 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3230 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3231 if test -z "$MKDIR_P"; then
3232 if ${ac_cv_path_mkdir+:} false; then :
3233 $as_echo_n "(cached) " >&6
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3239 test -z "$as_dir" && as_dir=.
3240 for ac_prog in mkdir gmkdir; do
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3243 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3244 'mkdir (GNU coreutils) '* | \
3245 'mkdir (coreutils) '* | \
3246 'mkdir (fileutils) '4.1*)
3247 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3257 test -d ./--version && rmdir ./--version
3258 if test "${ac_cv_path_mkdir+set}" = set; then
3259 MKDIR_P="$ac_cv_path_mkdir -p"
3261 # As a last resort, use the slow shell script. Don't cache a
3262 # value for MKDIR_P within a source directory, because that will
3263 # break other packages using the cache if that directory is
3264 # removed, or if the value is a relative name.
3265 MKDIR_P="$ac_install_sh -d"
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3269 $as_echo "$MKDIR_P" >&6; }
3271 for ac_prog in gawk mawk nawk awk
3273 # Extract the first word of "$ac_prog", so it can be a program name with args.
3274 set dummy $ac_prog; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_AWK+:} false; then :
3278 $as_echo_n "(cached) " >&6
3280 if test -n "$AWK"; then
3281 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_AWK="$ac_prog"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 if test -n "$AWK"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3303 $as_echo "$AWK" >&6; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3310 test -n "$AWK" && break
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3314 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3316 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3317 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3318 $as_echo_n "(cached) " >&6
3320 cat >conftest.make <<\_ACEOF
3323 @echo '@@@%%%=$(MAKE)=@@@%%%'
3325 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3326 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3328 eval ac_cv_prog_make_${ac_make}_set=yes;;
3330 eval ac_cv_prog_make_${ac_make}_set=no;;
3334 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336 $as_echo "yes" >&6; }
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3341 SET_MAKE="MAKE=${MAKE-make}"
3344 rm -rf .tst 2>/dev/null
3345 mkdir .tst 2>/dev/null
3346 if test -d .tst; then
3351 rmdir .tst 2>/dev/null
3353 # Check whether --enable-silent-rules was given.
3354 if test "${enable_silent_rules+set}" = set; then :
3355 enableval=$enable_silent_rules;
3358 case $enable_silent_rules in # (((
3359 yes) AM_DEFAULT_VERBOSITY=0;;
3360 no) AM_DEFAULT_VERBOSITY=1;;
3361 *) AM_DEFAULT_VERBOSITY=1;;
3363 am_make=${MAKE-make}
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3365 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3366 if ${am_cv_make_support_nested_variables+:} false; then :
3367 $as_echo_n "(cached) " >&6
3369 if $as_echo 'TRUE=$(BAR$(V))
3375 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3376 am_cv_make_support_nested_variables=yes
3378 am_cv_make_support_nested_variables=no
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3382 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3383 if test $am_cv_make_support_nested_variables = yes; then
3385 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3387 AM_V=$AM_DEFAULT_VERBOSITY
3388 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3392 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3393 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3394 # is not polluted with repeated "-I."
3395 am__isrc=' -I$(srcdir)'
3396 # test to see if srcdir already configured
3397 if test -f $srcdir/config.status; then
3398 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3402 # test whether we have cygpath
3403 if test -z "$CYGPATH_W"; then
3404 if (cygpath --version) >/dev/null 2>/dev/null; then
3405 CYGPATH_W='cygpath -w'
3412 # Define the identity of the package.
3417 cat >>confdefs.h <<_ACEOF
3418 #define PACKAGE "$PACKAGE"
3422 cat >>confdefs.h <<_ACEOF
3423 #define VERSION "$VERSION"
3426 # Some tools Automake needs.
3428 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3431 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3434 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3437 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3440 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3442 # For better backward compatibility. To be removed once Automake 1.9.x
3443 # dies out for good. For more background, see:
3444 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3445 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3446 mkdir_p='$(MKDIR_P)'
3448 # We need awk for the "check" target (and possibly the TAP driver). The
3449 # system "awk" is bad on some platforms.
3450 # Always define AMTAR for backward compatibility. Yes, it's still used
3451 # in the wild :-( We should find a proper way to deprecate it ...
3455 # We'll loop over all known methods to create a tar archive until one works.
3456 _am_tools='gnutar pax cpio none'
3458 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3465 # POSIX will say in a future version that running "rm -f" with no argument
3466 # is OK; and we want to be able to make that assumption in our Makefile
3467 # recipes. So use an aggressive probe to check that the usage we want is
3468 # actually supported "in the wild" to an acceptable degree.
3469 # See automake bug#10828.
3470 # To make any issue more visible, cause the running configure to be aborted
3471 # by default if the 'rm' program in use doesn't match our expectations; the
3472 # user can still override this though.
3473 if rm -f && rm -fr && rm -rf; then : OK; else
3477 Your 'rm' program seems unable to run without file operands specified
3478 on the command line, even when the '-f' option is present. This is contrary
3479 to the behaviour of most rm programs out there, and not conforming with
3480 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3482 Please tell bug-automake@gnu.org about your system, including the value
3483 of your $PATH and any error possibly output before this message. This
3484 can help us improve future automake versions.
3487 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3488 echo 'Configuration will proceed anyway, since you have set the' >&2
3489 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3493 Aborting the configuration process, to ensure you take notice of the issue.
3495 You can download and install GNU coreutils to get an 'rm' implementation
3496 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3498 If you want to complete the configuration process using your problematic
3499 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3500 to "yes", and re-run configure.
3503 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3507 # Check whether --enable-silent-rules was given.
3508 if test "${enable_silent_rules+set}" = set; then :
3509 enableval=$enable_silent_rules;
3512 case $enable_silent_rules in # (((
3513 yes) AM_DEFAULT_VERBOSITY=0;;
3514 no) AM_DEFAULT_VERBOSITY=1;;
3515 *) AM_DEFAULT_VERBOSITY=0;;
3517 am_make=${MAKE-make}
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3519 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3520 if ${am_cv_make_support_nested_variables+:} false; then :
3521 $as_echo_n "(cached) " >&6
3523 if $as_echo 'TRUE=$(BAR$(V))
3529 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3530 am_cv_make_support_nested_variables=yes
3532 am_cv_make_support_nested_variables=no
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3536 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3537 if test $am_cv_make_support_nested_variables = yes; then
3539 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3541 AM_V=$AM_DEFAULT_VERBOSITY
3542 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3547 # Make sure we can run config.sub.
3548 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3549 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3552 $as_echo_n "checking build system type... " >&6; }
3553 if ${ac_cv_build+:} false; then :
3554 $as_echo_n "(cached) " >&6
3556 ac_build_alias=$build_alias
3557 test "x$ac_build_alias" = x &&
3558 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3559 test "x$ac_build_alias" = x &&
3560 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3561 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3562 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3566 $as_echo "$ac_cv_build" >&6; }
3567 case $ac_cv_build in
3569 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3572 ac_save_IFS=$IFS; IFS='-'
3578 # Remember, the first character of IFS is used to create $*,
3579 # except with old shells:
3582 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3586 $as_echo_n "checking host system type... " >&6; }
3587 if ${ac_cv_host+:} false; then :
3588 $as_echo_n "(cached) " >&6
3590 if test "x$host_alias" = x; then
3591 ac_cv_host=$ac_cv_build
3593 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3594 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3599 $as_echo "$ac_cv_host" >&6; }
3602 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3605 ac_save_IFS=$IFS; IFS='-'
3611 # Remember, the first character of IFS is used to create $*,
3612 # except with old shells:
3615 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3619 cat >>confdefs.h <<_ACEOF
3620 #define STR_SYSTEM "$host"
3623 ac_config_headers="$ac_config_headers config.h"
3626 DEPDIR="${am__leading_dot}deps"
3628 ac_config_commands="$ac_config_commands depfiles"
3631 am_make=${MAKE-make}
3632 cat > confinc << 'END'
3634 @echo this is the am__doit target
3637 # If we don't find an include directive, just comment out the code.
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3639 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3643 # First try GNU make style include.
3644 echo "include confinc" > confmf
3645 # Ignore all kinds of additional output from 'make'.
3646 case `$am_make -s -f confmf 2> /dev/null` in #(
3647 *the\ am__doit\ target*)
3653 # Now try BSD make style include.
3654 if test "$am__include" = "#"; then
3655 echo '.include "confinc"' > confmf
3656 case `$am_make -s -f confmf 2> /dev/null` in #(
3657 *the\ am__doit\ target*)
3658 am__include=.include
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3667 $as_echo "$_am_result" >&6; }
3668 rm -f confinc confmf
3670 # Check whether --enable-dependency-tracking was given.
3671 if test "${enable_dependency_tracking+set}" = set; then :
3672 enableval=$enable_dependency_tracking;
3675 if test "x$enable_dependency_tracking" != xno; then
3676 am_depcomp="$ac_aux_dir/depcomp"
3680 if test "x$enable_dependency_tracking" != xno; then
3700 #AC_USE_SYSTEM_EXTENSIONS
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707 if test -n "$ac_tool_prefix"; then
3708 for ac_prog in $cclist
3710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 $as_echo_n "checking for $ac_word... " >&6; }
3714 if ${ac_cv_prog_CC+:} false; then :
3715 $as_echo_n "(cached) " >&6
3717 if test -n "$CC"; then
3718 ac_cv_prog_CC="$CC" # Let the user override the test.
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 if test -n "$CC"; then
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740 $as_echo "$CC" >&6; }
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743 $as_echo "no" >&6; }
3747 test -n "$CC" && break
3750 if test -z "$CC"; then
3752 for ac_prog in $cclist
3754 # Extract the first word of "$ac_prog", so it can be a program name with args.
3755 set dummy $ac_prog; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3759 $as_echo_n "(cached) " >&6
3761 if test -n "$ac_ct_CC"; then
3762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3771 ac_cv_prog_ac_ct_CC="$ac_prog"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3782 if test -n "$ac_ct_CC"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3784 $as_echo "$ac_ct_CC" >&6; }
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3791 test -n "$ac_ct_CC" && break
3794 if test "x$ac_ct_CC" = x; then
3797 case $cross_compiling:$ac_tool_warned in
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3801 ac_tool_warned=yes ;;
3808 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3810 as_fn_error $? "no acceptable C compiler found in \$PATH
3811 See \`config.log' for more details" "$LINENO" 5; }
3813 # Provide some information about the compiler.
3814 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3817 for ac_option in --version -v -V -qversion; do
3818 { { ac_try="$ac_compiler $ac_option >&5"
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824 $as_echo "$ac_try_echo"; } >&5
3825 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3827 if test -s conftest.err; then
3829 ... rest of stderr output deleted ...
3830 10q' conftest.err >conftest.er1
3831 cat conftest.er1 >&5
3833 rm -f conftest.er1 conftest.err
3834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835 test $ac_status = 0; }
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3849 ac_clean_files_save=$ac_clean_files
3850 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3851 # Try to create an executable without -o first, disregard a.out.
3852 # It will help us diagnose broken compilers, and finding out an intuition
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3855 $as_echo_n "checking whether the C compiler works... " >&6; }
3856 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3858 # The possible output files:
3859 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3862 for ac_file in $ac_files
3865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3866 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3871 if { { ac_try="$ac_link_default"
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877 $as_echo "$ac_try_echo"; } >&5
3878 (eval "$ac_link_default") 2>&5
3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881 test $ac_status = 0; }; then :
3882 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3883 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3884 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3885 # so that the user can short-circuit this test for compilers unknown to
3887 for ac_file in $ac_files ''
3889 test -f "$ac_file" || continue
3891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3894 # We found the default executable, but exeext='' is most
3898 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3900 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3902 # We set ac_cv_exeext here because the later test for it is not
3903 # safe: cross compilers may not add the suffix if given an `-o'
3904 # argument, so we may need to know it at that point already.
3905 # Even if this section looks crufty: it has the advantage of
3912 test "$ac_cv_exeext" = no && ac_cv_exeext=
3917 if test -z "$ac_file"; then :
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919 $as_echo "no" >&6; }
3920 $as_echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error 77 "C compiler cannot create executables
3926 See \`config.log' for more details" "$LINENO" 5; }
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3929 $as_echo "yes" >&6; }
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3932 $as_echo_n "checking for C compiler default output file name... " >&6; }
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3934 $as_echo "$ac_file" >&6; }
3935 ac_exeext=$ac_cv_exeext
3937 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3938 ac_clean_files=$ac_clean_files_save
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3940 $as_echo_n "checking for suffix of executables... " >&6; }
3941 if { { ac_try="$ac_link"
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3947 $as_echo "$ac_try_echo"; } >&5
3948 (eval "$ac_link") 2>&5
3950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3951 test $ac_status = 0; }; then :
3952 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3953 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3954 # work properly (i.e., refer to `conftest.exe'), while it won't with
3956 for ac_file in conftest.exe conftest conftest.*; do
3957 test -f "$ac_file" || continue
3959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3960 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3968 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3969 See \`config.log' for more details" "$LINENO" 5; }
3971 rm -f conftest conftest$ac_cv_exeext
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3973 $as_echo "$ac_cv_exeext" >&6; }
3975 rm -f conftest.$ac_ext
3976 EXEEXT=$ac_cv_exeext
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3984 FILE *f = fopen ("conftest.out", "w");
3985 return ferror (f) || fclose (f) != 0;
3991 ac_clean_files="$ac_clean_files conftest.out"
3992 # Check that the compiler produces executables we can run. If not, either
3993 # the compiler is broken, or we cross compile.
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3995 $as_echo_n "checking whether we are cross compiling... " >&6; }
3996 if test "$cross_compiling" != yes; then
3997 { { ac_try="$ac_link"
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_link") 2>&5
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }
4008 if { ac_try='./conftest$ac_cv_exeext'
4009 { { case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015 (eval "$ac_try") 2>&5
4017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018 test $ac_status = 0; }; }; then
4021 if test "$cross_compiling" = maybe; then
4024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error $? "cannot run C compiled programs.
4027 If you meant to cross compile, use \`--host'.
4028 See \`config.log' for more details" "$LINENO" 5; }
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4033 $as_echo "$cross_compiling" >&6; }
4035 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4036 ac_clean_files=$ac_clean_files_save
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4038 $as_echo_n "checking for suffix of object files... " >&6; }
4039 if ${ac_cv_objext+:} false; then :
4040 $as_echo_n "(cached) " >&6
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4053 rm -f conftest.o conftest.obj
4054 if { { ac_try="$ac_compile"
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4060 $as_echo "$ac_try_echo"; } >&5
4061 (eval "$ac_compile") 2>&5
4063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4064 test $ac_status = 0; }; then :
4065 for ac_file in conftest.o conftest.obj conftest.*; do
4066 test -f "$ac_file" || continue;
4068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4069 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4074 $as_echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4079 as_fn_error $? "cannot compute suffix of object files: cannot compile
4080 See \`config.log' for more details" "$LINENO" 5; }
4082 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4085 $as_echo "$ac_cv_objext" >&6; }
4086 OBJEXT=$ac_cv_objext
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4089 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4090 if ${ac_cv_c_compiler_gnu+:} false; then :
4091 $as_echo_n "(cached) " >&6
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4107 if ac_fn_c_try_compile "$LINENO"; then :
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4117 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4118 if test $ac_compiler_gnu = yes; then
4123 ac_test_CFLAGS=${CFLAGS+set}
4124 ac_save_CFLAGS=$CFLAGS
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4126 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4127 if ${ac_cv_prog_cc_g+:} false; then :
4128 $as_echo_n "(cached) " >&6
4130 ac_save_c_werror_flag=$ac_c_werror_flag
4131 ac_c_werror_flag=yes
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4145 if ac_fn_c_try_compile "$LINENO"; then :
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4160 if ac_fn_c_try_compile "$LINENO"; then :
4163 ac_c_werror_flag=$ac_save_c_werror_flag
4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h. */
4176 if ac_fn_c_try_compile "$LINENO"; then :
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184 ac_c_werror_flag=$ac_save_c_werror_flag
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4187 $as_echo "$ac_cv_prog_cc_g" >&6; }
4188 if test "$ac_test_CFLAGS" = set; then
4189 CFLAGS=$ac_save_CFLAGS
4190 elif test $ac_cv_prog_cc_g = yes; then
4191 if test "$GCC" = yes; then
4197 if test "$GCC" = yes; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4204 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4205 if ${ac_cv_prog_cc_c89+:} false; then :
4206 $as_echo_n "(cached) " >&6
4208 ac_cv_prog_cc_c89=no
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4215 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4216 struct buf { int x; };
4217 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4218 static char *e (p, i)
4224 static char *f (char * (*g) (char **, int), char **p, ...)
4229 s = g (p, va_arg (v,int));
4234 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4235 function prototypes and stuff, but not '\xHH' hex character constants.
4236 These don't provoke an error unfortunately, instead are silently treated
4237 as 'x'. The following induces an error, until -std is added to get
4238 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4239 array size at least. It's necessary to write '\x00'==0 to get something
4240 that's true only with -std. */
4241 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4243 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4244 inside strings and character constants. */
4246 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4248 int test (int i, double x);
4249 struct s1 {int (*f) (int a);};
4250 struct s2 {int (*f) (double a);};
4251 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4257 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4262 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4263 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4265 CC="$ac_save_CC $ac_arg"
4266 if ac_fn_c_try_compile "$LINENO"; then :
4267 ac_cv_prog_cc_c89=$ac_arg
4269 rm -f core conftest.err conftest.$ac_objext
4270 test "x$ac_cv_prog_cc_c89" != "xno" && break
4272 rm -f conftest.$ac_ext
4277 case "x$ac_cv_prog_cc_c89" in
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4280 $as_echo "none needed" >&6; } ;;
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4283 $as_echo "unsupported" >&6; } ;;
4285 CC="$CC $ac_cv_prog_cc_c89"
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4287 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4289 if test "x$ac_cv_prog_cc_c89" != xno; then :
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4300 ac_cpp='$CPP $CPPFLAGS'
4301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4305 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4306 if ${am_cv_prog_cc_c_o+:} false; then :
4307 $as_echo_n "(cached) " >&6
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4320 # Make sure it works both with $CC and with simple cc.
4321 # Following AC_PROG_CC_C_O, we do the test twice because some
4322 # compilers refuse to overwrite an existing .o file with -o,
4323 # though they will create one.
4324 am_cv_prog_cc_c_o=yes
4326 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4327 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } \
4331 && test -f conftest2.$ac_objext; then
4334 am_cv_prog_cc_c_o=no
4338 rm -f core conftest*
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4342 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4343 if test "$am_cv_prog_cc_c_o" != yes; then
4344 # Losing compiler, so override with the script.
4345 # FIXME: It is wrong to rewrite CC.
4346 # But if we don't then we get into trouble of one sort or another.
4347 # A longer-term fix would be to have automake use am__CC in this case,
4348 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4349 CC="$am_aux_dir/compile $CC"
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4358 depcc="$CC" am_compiler_list=
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4361 $as_echo_n "checking dependency style of $depcc... " >&6; }
4362 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4363 $as_echo_n "(cached) " >&6
4365 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4366 # We make a subdir and do the tests there. Otherwise we can end up
4367 # making bogus files that we don't know about and never remove. For
4368 # instance it was reported that on HP-UX the gcc test will end up
4369 # making a dummy file named 'D' -- because '-MD' means "put the output
4373 # Copy depcomp to subdir because otherwise we won't find it if we're
4374 # using a relative directory.
4375 cp "$am_depcomp" conftest.dir
4377 # We will build objects and dependencies in a subdirectory because
4378 # it helps to detect inapplicable dependency modes. For instance
4379 # both Tru64's cc and ICC support -MD to output dependencies as a
4380 # side effect of compilation, but ICC will put the dependencies in
4381 # the current directory while Tru64 will put them in the object
4385 am_cv_CC_dependencies_compiler_type=none
4386 if test "$am_compiler_list" = ""; then
4387 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4390 case " $depcc " in #(
4391 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4394 for depmode in $am_compiler_list; do
4395 # Setup a source with many dependencies, because some compilers
4396 # like to wrap large dependency lists on column 80 (with \), and
4397 # we should not choose a depcomp mode which is confused by this.
4399 # We need to recreate these files for each test, as the compiler may
4400 # overwrite some of them when testing with obscure command lines.
4401 # This happens at least with the AIX C compiler.
4403 for i in 1 2 3 4 5 6; do
4404 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4405 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4406 # Solaris 10 /bin/sh.
4407 echo '/* dummy */' > sub/conftst$i.h
4409 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4411 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4412 # mode. It turns out that the SunPro C++ compiler does not properly
4413 # handle '-M -o', and we need to detect this. Also, some Intel
4414 # versions had trouble with output in subdirs.
4415 am__obj=sub/conftest.${OBJEXT-o}
4416 am__minus_obj="-o $am__obj"
4419 # This depmode causes a compiler race in universal mode.
4420 test "$am__universal" = false || continue
4423 # After this tag, mechanisms are not by side-effect, so they'll
4424 # only be used when explicitly requested.
4425 if test "x$enable_dependency_tracking" = xyes; then
4431 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4432 # This compiler won't grok '-c -o', but also, the minuso test has
4433 # not run yet. These depmodes are late enough in the game, and
4434 # so weak that their functioning should not be impacted.
4435 am__obj=conftest.${OBJEXT-o}
4440 if depmode=$depmode \
4441 source=sub/conftest.c object=$am__obj \
4442 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4443 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4444 >/dev/null 2>conftest.err &&
4445 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4446 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4447 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4448 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4449 # icc doesn't choke on unknown options, it will just issue warnings
4450 # or remarks (even with -Werror). So we grep stderr for any message
4451 # that says an option was ignored or not supported.
4452 # When given -MP, icc 7.0 and 7.1 complain thusly:
4453 # icc: Command line warning: ignoring option '-M'; no argument required
4454 # The diagnosis changed in icc 8.0:
4455 # icc: Command line remark: option '-MP' not supported
4456 if (grep 'ignoring option' conftest.err ||
4457 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4458 am_cv_CC_dependencies_compiler_type=$depmode
4467 am_cv_CC_dependencies_compiler_type=none
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4472 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4473 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4476 test "x$enable_dependency_tracking" != xno \
4477 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4479 am__fastdepCC_FALSE='#'
4481 am__fastdepCC_TRUE='#'
4482 am__fastdepCC_FALSE=
4490 ac_cpp='$CPP $CPPFLAGS'
4491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4495 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4496 # On Suns, sometimes $CPP names a directory.
4497 if test -n "$CPP" && test -d "$CPP"; then
4500 if test -z "$CPP"; then
4501 if ${ac_cv_prog_CPP+:} false; then :
4502 $as_echo_n "(cached) " >&6
4504 # Double quotes because CPP needs to be expanded
4505 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4508 for ac_c_preproc_warn_flag in '' yes
4510 # Use a header file that comes with gcc, so configuring glibc
4511 # with a fresh cross-compiler works.
4512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4513 # <limits.h> exists even on freestanding compilers.
4514 # On the NeXT, cc -E runs the code through the compiler's parser,
4515 # not just through cpp. "Syntax error" is here to catch this case.
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4519 # include <limits.h>
4521 # include <assert.h>
4525 if ac_fn_c_try_cpp "$LINENO"; then :
4528 # Broken: fails on valid input.
4531 rm -f conftest.err conftest.i conftest.$ac_ext
4533 # OK, works on sane cases. Now check whether nonexistent headers
4534 # can be detected and how.
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4537 #include <ac_nonexistent.h>
4539 if ac_fn_c_try_cpp "$LINENO"; then :
4540 # Broken: success on invalid input.
4543 # Passes both tests.
4547 rm -f conftest.err conftest.i conftest.$ac_ext
4550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4551 rm -f conftest.i conftest.err conftest.$ac_ext
4552 if $ac_preproc_ok; then :
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4565 $as_echo "$CPP" >&6; }
4567 for ac_c_preproc_warn_flag in '' yes
4569 # Use a header file that comes with gcc, so configuring glibc
4570 # with a fresh cross-compiler works.
4571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4572 # <limits.h> exists even on freestanding compilers.
4573 # On the NeXT, cc -E runs the code through the compiler's parser,
4574 # not just through cpp. "Syntax error" is here to catch this case.
4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4578 # include <limits.h>
4580 # include <assert.h>
4584 if ac_fn_c_try_cpp "$LINENO"; then :
4587 # Broken: fails on valid input.
4590 rm -f conftest.err conftest.i conftest.$ac_ext
4592 # OK, works on sane cases. Now check whether nonexistent headers
4593 # can be detected and how.
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596 #include <ac_nonexistent.h>
4598 if ac_fn_c_try_cpp "$LINENO"; then :
4599 # Broken: success on invalid input.
4602 # Passes both tests.
4606 rm -f conftest.err conftest.i conftest.$ac_ext
4609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4610 rm -f conftest.i conftest.err conftest.$ac_ext
4611 if $ac_preproc_ok; then :
4614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4616 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4617 See \`config.log' for more details" "$LINENO" 5; }
4621 ac_cpp='$CPP $CPPFLAGS'
4622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4628 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4629 if ${ac_cv_path_GREP+:} false; then :
4630 $as_echo_n "(cached) " >&6
4632 if test -z "$GREP"; then
4633 ac_path_GREP_found=false
4634 # Loop through the user's path and test for each of PROGNAME-LIST
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4639 test -z "$as_dir" && as_dir=.
4640 for ac_prog in grep ggrep; do
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4643 as_fn_executable_p "$ac_path_GREP" || continue
4644 # Check for GNU ac_path_GREP and select it if it is found.
4645 # Check for GNU $ac_path_GREP
4646 case `"$ac_path_GREP" --version 2>&1` in
4648 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4651 $as_echo_n 0123456789 >"conftest.in"
4654 cat "conftest.in" "conftest.in" >"conftest.tmp"
4655 mv "conftest.tmp" "conftest.in"
4656 cp "conftest.in" "conftest.nl"
4657 $as_echo 'GREP' >> "conftest.nl"
4658 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4659 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4660 as_fn_arith $ac_count + 1 && ac_count=$as_val
4661 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4662 # Best one so far, save it but keep looking for a better one
4663 ac_cv_path_GREP="$ac_path_GREP"
4664 ac_path_GREP_max=$ac_count
4666 # 10*(2^10) chars as input seems more than enough
4667 test $ac_count -gt 10 && break
4669 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4672 $ac_path_GREP_found && break 3
4677 if test -z "$ac_cv_path_GREP"; then
4678 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4681 ac_cv_path_GREP=$GREP
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4686 $as_echo "$ac_cv_path_GREP" >&6; }
4687 GREP="$ac_cv_path_GREP"
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4691 $as_echo_n "checking for egrep... " >&6; }
4692 if ${ac_cv_path_EGREP+:} false; then :
4693 $as_echo_n "(cached) " >&6
4695 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4696 then ac_cv_path_EGREP="$GREP -E"
4698 if test -z "$EGREP"; then
4699 ac_path_EGREP_found=false
4700 # Loop through the user's path and test for each of PROGNAME-LIST
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4705 test -z "$as_dir" && as_dir=.
4706 for ac_prog in egrep; do
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4709 as_fn_executable_p "$ac_path_EGREP" || continue
4710 # Check for GNU ac_path_EGREP and select it if it is found.
4711 # Check for GNU $ac_path_EGREP
4712 case `"$ac_path_EGREP" --version 2>&1` in
4714 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4717 $as_echo_n 0123456789 >"conftest.in"
4720 cat "conftest.in" "conftest.in" >"conftest.tmp"
4721 mv "conftest.tmp" "conftest.in"
4722 cp "conftest.in" "conftest.nl"
4723 $as_echo 'EGREP' >> "conftest.nl"
4724 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4725 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4726 as_fn_arith $ac_count + 1 && ac_count=$as_val
4727 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4728 # Best one so far, save it but keep looking for a better one
4729 ac_cv_path_EGREP="$ac_path_EGREP"
4730 ac_path_EGREP_max=$ac_count
4732 # 10*(2^10) chars as input seems more than enough
4733 test $ac_count -gt 10 && break
4735 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4738 $ac_path_EGREP_found && break 3
4743 if test -z "$ac_cv_path_EGREP"; then
4744 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4747 ac_cv_path_EGREP=$EGREP
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4753 $as_echo "$ac_cv_path_EGREP" >&6; }
4754 EGREP="$ac_cv_path_EGREP"
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4758 $as_echo_n "checking for ANSI C header files... " >&6; }
4759 if ${ac_cv_header_stdc+:} false; then :
4760 $as_echo_n "(cached) " >&6
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4777 if ac_fn_c_try_compile "$LINENO"; then :
4778 ac_cv_header_stdc=yes
4780 ac_cv_header_stdc=no
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 if test $ac_cv_header_stdc = yes; then
4785 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4792 $EGREP "memchr" >/dev/null 2>&1; then :
4795 ac_cv_header_stdc=no
4801 if test $ac_cv_header_stdc = yes; then
4802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4809 $EGREP "free" >/dev/null 2>&1; then :
4812 ac_cv_header_stdc=no
4818 if test $ac_cv_header_stdc = yes; then
4819 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4820 if test "$cross_compiling" = yes; then :
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4827 #if ((' ' & 0x0FF) == 0x020)
4828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4831 # define ISLOWER(c) \
4832 (('a' <= (c) && (c) <= 'i') \
4833 || ('j' <= (c) && (c) <= 'r') \
4834 || ('s' <= (c) && (c) <= 'z'))
4835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4843 for (i = 0; i < 256; i++)
4844 if (XOR (islower (i), ISLOWER (i))
4845 || toupper (i) != TOUPPER (i))
4850 if ac_fn_c_try_run "$LINENO"; then :
4853 ac_cv_header_stdc=no
4855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4856 conftest.$ac_objext conftest.beam conftest.$ac_ext
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4862 $as_echo "$ac_cv_header_stdc" >&6; }
4863 if test $ac_cv_header_stdc = yes; then
4865 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4869 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4870 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4871 inttypes.h stdint.h unistd.h
4873 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4874 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4876 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4877 cat >>confdefs.h <<_ACEOF
4878 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4889 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4890 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4897 if test "$MINIX" = yes; then
4899 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4902 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4905 $as_echo "#define _MINIX 1" >>confdefs.h
4912 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4919 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4920 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4921 $as_echo_n "(cached) " >&6
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4926 # define __EXTENSIONS__ 1
4927 $ac_includes_default
4936 if ac_fn_c_try_compile "$LINENO"; then :
4937 ac_cv_safe_to_define___extensions__=yes
4939 ac_cv_safe_to_define___extensions__=no
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4944 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4945 test $ac_cv_safe_to_define___extensions__ = yes &&
4946 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4948 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4950 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4952 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4954 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4958 case $ac_cv_prog_cc_stdc in #(
4960 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4963 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4964 if ${ac_cv_prog_cc_c99+:} false; then :
4965 $as_echo_n "(cached) " >&6
4967 ac_cv_prog_cc_c99=no
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4972 #include <stdbool.h>
4977 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4978 #define debug(...) fprintf (stderr, __VA_ARGS__)
4979 #define showlist(...) puts (#__VA_ARGS__)
4980 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4982 test_varargs_macros (void)
4987 debug ("X = %d\n", x);
4988 showlist (The first, second, and third items.);
4989 report (x>y, "x is %d but y is %d", x, y);
4992 // Check long long types.
4993 #define BIG64 18446744073709551615ull
4994 #define BIG32 4294967295ul
4995 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4997 your preprocessor is broken;
5001 your preprocessor is broken;
5003 static long long int bignum = -9223372036854775807LL;
5004 static unsigned long long int ubignum = BIG64;
5006 struct incomplete_array
5014 const wchar_t *name;
5018 typedef const char *ccp;
5021 test_restrict (ccp restrict text)
5023 // See if C++-style comments work.
5024 // Iterate through items via the restricted pointer.
5025 // Also check for declarations in for loops.
5026 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5031 // Check varargs and va_copy.
5033 test_varargs (const char *format, ...)
5036 va_start (args, format);
5038 va_copy (args_copy, args);
5049 str = va_arg (args_copy, const char *);
5052 number = va_arg (args_copy, int);
5055 fnumber = va_arg (args_copy, double);
5070 _Bool success = false;
5073 if (test_restrict ("String literal") == 0)
5075 char *restrict newvar = "Another string";
5078 test_varargs ("s, d' f .", "string", 65, 34.234);
5079 test_varargs_macros ();
5081 // Check flexible array members.
5082 struct incomplete_array *ia =
5083 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5085 for (int i = 0; i < ia->datasize; ++i)
5086 ia->data[i] = i * 1.234;
5088 // Check named initializers.
5089 struct named_init ni = {
5091 .name = L"Test wide string",
5092 .average = 543.34343,
5097 int dynamic_array[ni.number];
5098 dynamic_array[ni.number - 1] = 543;
5100 // work around unused variable warnings
5101 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5102 || dynamic_array[ni.number - 1] != 543);
5108 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5110 CC="$ac_save_CC $ac_arg"
5111 if ac_fn_c_try_compile "$LINENO"; then :
5112 ac_cv_prog_cc_c99=$ac_arg
5114 rm -f core conftest.err conftest.$ac_objext
5115 test "x$ac_cv_prog_cc_c99" != "xno" && break
5117 rm -f conftest.$ac_ext
5122 case "x$ac_cv_prog_cc_c99" in
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5125 $as_echo "none needed" >&6; } ;;
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5128 $as_echo "unsupported" >&6; } ;;
5130 CC="$CC $ac_cv_prog_cc_c99"
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5132 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5134 if test "x$ac_cv_prog_cc_c99" != xno; then :
5135 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5138 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5139 if ${ac_cv_prog_cc_c89+:} false; then :
5140 $as_echo_n "(cached) " >&6
5142 ac_cv_prog_cc_c89=no
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5149 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5150 struct buf { int x; };
5151 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5152 static char *e (p, i)
5158 static char *f (char * (*g) (char **, int), char **p, ...)
5163 s = g (p, va_arg (v,int));
5168 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5169 function prototypes and stuff, but not '\xHH' hex character constants.
5170 These don't provoke an error unfortunately, instead are silently treated
5171 as 'x'. The following induces an error, until -std is added to get
5172 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5173 array size at least. It's necessary to write '\x00'==0 to get something
5174 that's true only with -std. */
5175 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5177 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5178 inside strings and character constants. */
5180 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5182 int test (int i, double x);
5183 struct s1 {int (*f) (int a);};
5184 struct s2 {int (*f) (double a);};
5185 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5191 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5196 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5197 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5199 CC="$ac_save_CC $ac_arg"
5200 if ac_fn_c_try_compile "$LINENO"; then :
5201 ac_cv_prog_cc_c89=$ac_arg
5203 rm -f core conftest.err conftest.$ac_objext
5204 test "x$ac_cv_prog_cc_c89" != "xno" && break
5206 rm -f conftest.$ac_ext
5211 case "x$ac_cv_prog_cc_c89" in
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5214 $as_echo "none needed" >&6; } ;;
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5217 $as_echo "unsupported" >&6; } ;;
5219 CC="$CC $ac_cv_prog_cc_c89"
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5221 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5223 if test "x$ac_cv_prog_cc_c89" != xno; then :
5224 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5226 ac_cv_prog_cc_stdc=no
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5233 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5234 if ${ac_cv_prog_cc_stdc+:} false; then :
5235 $as_echo_n "(cached) " >&6
5238 case $ac_cv_prog_cc_stdc in #(
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5241 $as_echo "unsupported" >&6; } ;; #(
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5244 $as_echo "none needed" >&6; } ;; #(
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5247 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5254 # Ralf Wildenhues: With per-target flags we need CC_C_O
5255 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
5257 if test $ac_cv_c_compiler_gnu = yes; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5259 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5260 if ${ac_cv_prog_gcc_traditional+:} false; then :
5261 $as_echo_n "(cached) " >&6
5263 ac_pattern="Autoconf.*'x'"
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5270 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5271 ac_cv_prog_gcc_traditional=yes
5273 ac_cv_prog_gcc_traditional=no
5278 if test $ac_cv_prog_gcc_traditional = no; then
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5285 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5286 ac_cv_prog_gcc_traditional=yes
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5293 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5294 if test $ac_cv_prog_gcc_traditional = yes; then
5295 CC="$CC -traditional"
5310 case "$ac_cv_prog_cc_c89" in
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5313 version 4.2.5 and higher." >&5
5314 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5315 version 4.2.5 and higher." >&2;}
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
5320 $as_echo_n "checking if $CC can handle #warning... " >&6; }
5321 if ${ntp_cv_cpp_warning+:} false; then :
5322 $as_echo_n "(cached) " >&6
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5335 if ac_fn_c_try_compile "$LINENO"; then :
5336 ntp_cv_cpp_warning=yes
5338 ntp_cv_cpp_warning=no
5341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
5345 $as_echo "$ntp_cv_cpp_warning" >&6; }
5346 case "$ntp_cv_cpp_warning" in
5349 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
5354 $as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
5355 if ${ntp_cv_cc_attribute+:} false; then :
5356 $as_echo_n "(cached) " >&6
5358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5364 void foo(void) __attribute__((__noreturn__));
5370 if ac_fn_c_try_compile "$LINENO"; then :
5371 ntp_cv_cc_attribute=yes
5373 ntp_cv_cc_attribute=no
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
5380 $as_echo "$ntp_cv_cc_attribute" >&6; }
5381 case "$ntp_cv_cc_attribute" in
5384 $as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
5391 SAVED_CFLAGS="$CFLAGS"
5392 CFLAGS="$CFLAGS -Wstrict-overflow"
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
5394 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
5395 if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
5396 $as_echo_n "(cached) " >&6
5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h. */
5409 if ac_fn_c_try_compile "$LINENO"; then :
5410 ntp_cv_gcc_Wstrict_overflow=yes
5412 ntp_cv_gcc_Wstrict_overflow=no
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
5419 $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
5421 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
5424 CFLAGS="$SAVED_CFLAGS -Winit-self"
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
5426 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
5427 if ${ntp_cv_gcc_Winit_self+:} false; then :
5428 $as_echo_n "(cached) " >&6
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5442 if ac_fn_c_try_compile "$LINENO"; then :
5443 ntp_cv_gcc_Winit_self=yes
5445 ntp_cv_gcc_Winit_self=no
5448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
5453 $as_echo "$ntp_cv_gcc_Winit_self" >&6; }
5454 CFLAGS="$SAVED_CFLAGS"
5455 { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
5457 # $ntp_cv_gcc_Winit_self is tested later to add the
5458 # flag to CFLAGS_NTP.
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
5461 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
5462 if ${ntp_cv_gc_sections_runs+:} false; then :
5463 $as_echo_n "(cached) " >&6
5466 origCFLAGS="$CFLAGS"
5467 CFLAGS="$CFLAGS -Wl,--gc-sections"
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5481 int read_success_once;
5483 fpC = fopen("conftest.c", "r");
5487 cch = fread(buf, sizeof(buf), 1, fpC);
5488 read_success_once |= (0 != cch);
5490 if (!read_success_once)
5494 if (0 != fclose(fpC))
5504 if ac_fn_c_try_link "$LINENO"; then :
5506 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
5507 ntp_cv_gc_sections_runs=no
5509 ntp_cv_gc_sections_runs=no
5510 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
5514 ntp_cv_gc_sections_runs=no
5517 rm -f core conftest.err conftest.$ac_objext \
5518 conftest$ac_exeext conftest.$ac_ext
5519 CFLAGS="$origCFLAGS"
5520 { origCFLAGS=; unset origCFLAGS;}
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
5525 $as_echo "$ntp_cv_gc_sections_runs" >&6; }
5526 case "$ntp_cv_gc_sections_runs" in
5528 LDADD_LIBNTP="-Wl,--gc-sections"
5529 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
5535 CFLAGS_NTP="$CFLAGS_NTP -Wall"
5536 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
5537 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
5538 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
5539 # CFLAGS_NTP="$CFLAGS_NTP -Werror"
5540 # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
5541 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
5542 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
5543 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
5544 CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
5545 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
5546 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
5547 case "$ntp_cv_gcc_Winit_self" in
5549 CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
5551 case "$ntp_cv_gcc_Wstrict_overflow" in
5553 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
5555 # -W[no-]strict-prototypes might be added by NTP_OPENSSL
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
5560 $as_echo_n "checking additional compiler flags... " >&6; }
5561 # allow ntp_os_cflags to be preset to skip this stuff
5562 case "${ntp_os_cflags+set}" in
5571 # turn on additional headers
5572 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
5575 # avoid circular dependencies in yp headers, and more
5576 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
5577 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
5580 # XXX Only verified thru AIX6.
5581 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
5582 # avoid circular dependencies in yp headers
5583 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
5584 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
5585 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
5586 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
5587 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
5590 ntp_os_cflags="-DSYS_AMIGA"
5592 darwin*|macosx*|rhapsody*)
5593 ntp_os_cflags="-D_P1003_1B_VISIBLE"
5595 hpux10.*) # at least for hppa2.0-hp-hpux10.20
5600 # use Ansi compiler on HPUX, and some -Wp magic
5601 ntp_os_cflags="-Ae -Wp,-H18816"
5604 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5611 # use Ansi compiler on HPUX
5614 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5619 # do not use 64-bit compiler
5620 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
5624 ntp_os_cflags="-posix"
5626 solaris1*|solaris2.[0-5]|solaris2.5.*)
5628 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
5631 # turn on 64-bit file offset interface
5632 ntp_os_cflags="-D_LARGEFILE64_SOURCE"
5639 # Quick and dirty sanity check
5640 case "$VX_KERNEL" in
5642 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
5644 ntp_os_cflags="-DSYS_VXWORKS"
5649 case "$ntp_os_cflags" in
5651 ntp_os_cflags_msg="none needed"
5654 ntp_os_cflags_msg="$ntp_os_cflags"
5656 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
5658 $as_echo "$ntp_os_cflags_msg" >&6; }
5659 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
5662 $as_echo_n "checking additional linker flags... " >&6; }
5663 # HMS: The following might still need tweaking
5664 # allow ntp_os_ldflags to be preset to skip this stuff
5665 case "${ntp_os_ldflags+set}" in
5674 ntp_os_ldflags="-Wl,+allowdups"
5681 case "$ntp_os_ldflags" in
5683 ntp_os_ldflags_msg="none needed"
5686 ntp_os_ldflags_msg="$ntp_os_ldflags"
5688 LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
5690 $as_echo "$ntp_os_ldflags_msg" >&6; }
5691 { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5695 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5696 if ${ac_cv_c_bigendian+:} false; then :
5697 $as_echo_n "(cached) " >&6
5699 ac_cv_c_bigendian=unknown
5700 # See if we're dealing with a universal compiler.
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h. */
5703 #ifndef __APPLE_CC__
5704 not a universal capable compiler
5709 if ac_fn_c_try_compile "$LINENO"; then :
5711 # Check for potential -arch flags. It is not universal unless
5712 # there are at least two -arch flags with different values.
5715 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5716 if test -n "$ac_prev"; then
5718 i?86 | x86_64 | ppc | ppc64)
5719 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5722 ac_cv_c_bigendian=universal
5728 elif test "x$ac_word" = "x-arch"; then
5733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5734 if test $ac_cv_c_bigendian = unknown; then
5735 # See if sys/param.h defines the BYTE_ORDER macro.
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 #include <sys/types.h>
5739 #include <sys/param.h>
5744 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5745 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5754 if ac_fn_c_try_compile "$LINENO"; then :
5755 # It does; now see whether it defined to BIG_ENDIAN or not.
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5758 #include <sys/types.h>
5759 #include <sys/param.h>
5764 #if BYTE_ORDER != BIG_ENDIAN
5772 if ac_fn_c_try_compile "$LINENO"; then :
5773 ac_cv_c_bigendian=yes
5775 ac_cv_c_bigendian=no
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 if test $ac_cv_c_bigendian = unknown; then
5782 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784 /* end confdefs.h. */
5790 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5798 if ac_fn_c_try_compile "$LINENO"; then :
5799 # It does; now see whether it defined to _BIG_ENDIAN or not.
5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5801 /* end confdefs.h. */
5815 if ac_fn_c_try_compile "$LINENO"; then :
5816 ac_cv_c_bigendian=yes
5818 ac_cv_c_bigendian=no
5820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5824 if test $ac_cv_c_bigendian = unknown; then
5825 # Compile a test program.
5826 if test "$cross_compiling" = yes; then :
5827 # Try to guess by grepping values from an object file.
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5830 short int ascii_mm[] =
5831 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5832 short int ascii_ii[] =
5833 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5834 int use_ascii (int i) {
5835 return ascii_mm[i] + ascii_ii[i];
5837 short int ebcdic_ii[] =
5838 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5839 short int ebcdic_mm[] =
5840 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5841 int use_ebcdic (int i) {
5842 return ebcdic_mm[i] + ebcdic_ii[i];
5849 return use_ascii (foo) == use_ebcdic (foo);
5854 if ac_fn_c_try_compile "$LINENO"; then :
5855 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5856 ac_cv_c_bigendian=yes
5858 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5859 if test "$ac_cv_c_bigendian" = unknown; then
5860 ac_cv_c_bigendian=no
5862 # finding both strings is unlikely to happen, but who knows?
5863 ac_cv_c_bigendian=unknown
5867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5871 $ac_includes_default
5876 /* Are we little or big endian? From Harbison&Steele. */
5880 char c[sizeof (long int)];
5883 return u.c[sizeof (long int) - 1] == 1;
5889 if ac_fn_c_try_run "$LINENO"; then :
5890 ac_cv_c_bigendian=no
5892 ac_cv_c_bigendian=yes
5894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5895 conftest.$ac_objext conftest.beam conftest.$ac_ext
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5901 $as_echo "$ac_cv_c_bigendian" >&6; }
5902 case $ac_cv_c_bigendian in #(
5904 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5910 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5914 as_fn_error $? "unknown endianness
5915 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5919 $as_echo_n "checking for working volatile... " >&6; }
5920 if ${ac_cv_c_volatile+:} false; then :
5921 $as_echo_n "(cached) " >&6
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5931 int * volatile y = (int *) 0;
5937 if ac_fn_c_try_compile "$LINENO"; then :
5938 ac_cv_c_volatile=yes
5942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5945 $as_echo "$ac_cv_c_volatile" >&6; }
5946 if test $ac_cv_c_volatile = no; then
5948 $as_echo "#define volatile /**/" >>confdefs.h
5953 ac_cpp='$CPP $CPPFLAGS'
5954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5958 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5959 # On Suns, sometimes $CPP names a directory.
5960 if test -n "$CPP" && test -d "$CPP"; then
5963 if test -z "$CPP"; then
5964 if ${ac_cv_prog_CPP+:} false; then :
5965 $as_echo_n "(cached) " >&6
5967 # Double quotes because CPP needs to be expanded
5968 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5971 for ac_c_preproc_warn_flag in '' yes
5973 # Use a header file that comes with gcc, so configuring glibc
5974 # with a fresh cross-compiler works.
5975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5976 # <limits.h> exists even on freestanding compilers.
5977 # On the NeXT, cc -E runs the code through the compiler's parser,
5978 # not just through cpp. "Syntax error" is here to catch this case.
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5982 # include <limits.h>
5984 # include <assert.h>
5988 if ac_fn_c_try_cpp "$LINENO"; then :
5991 # Broken: fails on valid input.
5994 rm -f conftest.err conftest.i conftest.$ac_ext
5996 # OK, works on sane cases. Now check whether nonexistent headers
5997 # can be detected and how.
5998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999 /* end confdefs.h. */
6000 #include <ac_nonexistent.h>
6002 if ac_fn_c_try_cpp "$LINENO"; then :
6003 # Broken: success on invalid input.
6006 # Passes both tests.
6010 rm -f conftest.err conftest.i conftest.$ac_ext
6013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6014 rm -f conftest.i conftest.err conftest.$ac_ext
6015 if $ac_preproc_ok; then :
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6028 $as_echo "$CPP" >&6; }
6030 for ac_c_preproc_warn_flag in '' yes
6032 # Use a header file that comes with gcc, so configuring glibc
6033 # with a fresh cross-compiler works.
6034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6035 # <limits.h> exists even on freestanding compilers.
6036 # On the NeXT, cc -E runs the code through the compiler's parser,
6037 # not just through cpp. "Syntax error" is here to catch this case.
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6041 # include <limits.h>
6043 # include <assert.h>
6047 if ac_fn_c_try_cpp "$LINENO"; then :
6050 # Broken: fails on valid input.
6053 rm -f conftest.err conftest.i conftest.$ac_ext
6055 # OK, works on sane cases. Now check whether nonexistent headers
6056 # can be detected and how.
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6059 #include <ac_nonexistent.h>
6061 if ac_fn_c_try_cpp "$LINENO"; then :
6062 # Broken: success on invalid input.
6065 # Passes both tests.
6069 rm -f conftest.err conftest.i conftest.$ac_ext
6072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6073 rm -f conftest.i conftest.err conftest.$ac_ext
6074 if $ac_preproc_ok; then :
6077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6079 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6080 See \`config.log' for more details" "$LINENO" 5; }
6084 ac_cpp='$CPP $CPPFLAGS'
6085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
6094 $as_echo_n "checking for compile/link hardening flags... " >&6; }
6097 # Check whether --with-hardenfile was given.
6098 if test "${with_hardenfile+set}" = set; then :
6099 withval=$with_hardenfile;
6107 SENTINEL_DIR="$PWD" && \
6109 case "$with_hardenfile" in \
6111 scripts/genHardFlags -d "$SENTINEL_DIR" \
6114 scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_hardenfile" \
6117 ) > genHardFlags.i 2> genHardFlags.err
6120 case "$GENHARDFLAG" in
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
6123 $as_echo "in file $GENHARDFLAGFILE" >&6; }
6124 rm genHardFlags.err genHardFlags.i
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6128 $as_echo "failed." >&6; }
6129 as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
6142 $as_echo_n "checking for install dir and man conventions... " >&6; }
6145 # Check whether --with-locfile was given.
6146 if test "${with_locfile+set}" = set; then :
6147 withval=$with_locfile;
6155 SENTINEL_DIR="$PWD" && \
6157 case "$with_locfile" in \
6159 scripts/genLocInfo -d "$SENTINEL_DIR" \
6162 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \
6165 ) > genLocInfo.i 2> genLocInfo.err
6168 case "$GENLOCINFO" in
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
6171 $as_echo "in file $GENLOCINFOFILE" >&6; }
6172 rm genLocInfo.err genLocInfo.i
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6176 $as_echo "failed." >&6; }
6177 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
6181 if test "$CALC_TICKADJ_MS" ; then
6182 WANT_CALC_TICKADJ_MS_TRUE=
6183 WANT_CALC_TICKADJ_MS_FALSE='#'
6185 WANT_CALC_TICKADJ_MS_TRUE='#'
6186 WANT_CALC_TICKADJ_MS_FALSE=
6231 if test -z "$NTPSWEEP_NI" ; then
6232 INSTALL_NTPSWEEP_TRUE=
6233 INSTALL_NTPSWEEP_FALSE='#'
6235 INSTALL_NTPSWEEP_TRUE='#'
6236 INSTALL_NTPSWEEP_FALSE=
6279 if test -z "$UPDATE_LEAP_NI" ; then
6280 INSTALL_UPDATE_LEAP_TRUE=
6281 INSTALL_UPDATE_LEAP_FALSE='#'
6283 INSTALL_UPDATE_LEAP_TRUE='#'
6284 INSTALL_UPDATE_LEAP_FALSE=
6290 if test -n "$ac_tool_prefix"; then
6291 for ac_prog in ar lib "link -lib"
6293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296 $as_echo_n "checking for $ac_word... " >&6; }
6297 if ${ac_cv_prog_AR+:} false; then :
6298 $as_echo_n "(cached) " >&6
6300 if test -n "$AR"; then
6301 ac_cv_prog_AR="$AR" # Let the user override the test.
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6310 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 if test -n "$AR"; then
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6323 $as_echo "$AR" >&6; }
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326 $as_echo "no" >&6; }
6330 test -n "$AR" && break
6333 if test -z "$AR"; then
6335 for ac_prog in ar lib "link -lib"
6337 # Extract the first word of "$ac_prog", so it can be a program name with args.
6338 set dummy $ac_prog; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6342 $as_echo_n "(cached) " >&6
6344 if test -n "$ac_ct_AR"; then
6345 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354 ac_cv_prog_ac_ct_AR="$ac_prog"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6365 if test -n "$ac_ct_AR"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6367 $as_echo "$ac_ct_AR" >&6; }
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6374 test -n "$ac_ct_AR" && break
6377 if test "x$ac_ct_AR" = x; then
6380 case $cross_compiling:$ac_tool_warned in
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6384 ac_tool_warned=yes ;;
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6393 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6394 if ${am_cv_ar_interface+:} false; then :
6395 $as_echo_n "(cached) " >&6
6398 ac_cpp='$CPP $CPPFLAGS'
6399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6403 am_cv_ar_interface=ar
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6406 int some_variable = 0;
6408 if ac_fn_c_try_compile "$LINENO"; then :
6409 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6411 (eval $am_ar_try) 2>&5
6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6414 test $ac_status = 0; }
6415 if test "$ac_status" -eq 0; then
6416 am_cv_ar_interface=ar
6418 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6420 (eval $am_ar_try) 2>&5
6422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6423 test $ac_status = 0; }
6424 if test "$ac_status" -eq 0; then
6425 am_cv_ar_interface=lib
6427 am_cv_ar_interface=unknown
6430 rm -f conftest.lib libconftest.a
6433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 ac_cpp='$CPP $CPPFLAGS'
6436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6442 $as_echo "$am_cv_ar_interface" >&6; }
6444 case $am_cv_ar_interface in
6448 # Microsoft lib, so override with the ar-lib wrapper script.
6449 # FIXME: It is wrong to rewrite AR.
6450 # But if we don't then we get into trouble of one sort or another.
6451 # A longer-term fix would be to have automake use am__AR in this case,
6452 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6454 AR="$am_aux_dir/ar-lib $AR"
6457 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6465 # Expose a cross-compilation indicator to makefiles
6466 if test $build != $host; then
6467 NTP_CROSSCOMPILE_TRUE=
6468 NTP_CROSSCOMPILE_FALSE='#'
6470 NTP_CROSSCOMPILE_TRUE='#'
6471 NTP_CROSSCOMPILE_FALSE=
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6477 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6478 if ${ac_cv_path_SED+:} false; then :
6479 $as_echo_n "(cached) " >&6
6481 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6482 for ac_i in 1 2 3 4 5 6 7; do
6483 ac_script="$ac_script$as_nl$ac_script"
6485 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6486 { ac_script=; unset ac_script;}
6487 if test -z "$SED"; then
6488 ac_path_SED_found=false
6489 # Loop through the user's path and test for each of PROGNAME-LIST
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 test -z "$as_dir" && as_dir=.
6495 for ac_prog in sed gsed; do
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6498 as_fn_executable_p "$ac_path_SED" || continue
6499 # Check for GNU ac_path_SED and select it if it is found.
6500 # Check for GNU $ac_path_SED
6501 case `"$ac_path_SED" --version 2>&1` in
6503 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6506 $as_echo_n 0123456789 >"conftest.in"
6509 cat "conftest.in" "conftest.in" >"conftest.tmp"
6510 mv "conftest.tmp" "conftest.in"
6511 cp "conftest.in" "conftest.nl"
6512 $as_echo '' >> "conftest.nl"
6513 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6514 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6515 as_fn_arith $ac_count + 1 && ac_count=$as_val
6516 if test $ac_count -gt ${ac_path_SED_max-0}; then
6517 # Best one so far, save it but keep looking for a better one
6518 ac_cv_path_SED="$ac_path_SED"
6519 ac_path_SED_max=$ac_count
6521 # 10*(2^10) chars as input seems more than enough
6522 test $ac_count -gt 10 && break
6524 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6527 $ac_path_SED_found && break 3
6532 if test -z "$ac_cv_path_SED"; then
6533 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6541 $as_echo "$ac_cv_path_SED" >&6; }
6542 SED="$ac_cv_path_SED"
6545 test -z "$SED" && SED=sed
6546 Xsed="$SED -e 1s/^X//"
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6559 $as_echo_n "checking for fgrep... " >&6; }
6560 if ${ac_cv_path_FGREP+:} false; then :
6561 $as_echo_n "(cached) " >&6
6563 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6564 then ac_cv_path_FGREP="$GREP -F"
6566 if test -z "$FGREP"; then
6567 ac_path_FGREP_found=false
6568 # Loop through the user's path and test for each of PROGNAME-LIST
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6573 test -z "$as_dir" && as_dir=.
6574 for ac_prog in fgrep; do
6575 for ac_exec_ext in '' $ac_executable_extensions; do
6576 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6577 as_fn_executable_p "$ac_path_FGREP" || continue
6578 # Check for GNU ac_path_FGREP and select it if it is found.
6579 # Check for GNU $ac_path_FGREP
6580 case `"$ac_path_FGREP" --version 2>&1` in
6582 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6585 $as_echo_n 0123456789 >"conftest.in"
6588 cat "conftest.in" "conftest.in" >"conftest.tmp"
6589 mv "conftest.tmp" "conftest.in"
6590 cp "conftest.in" "conftest.nl"
6591 $as_echo 'FGREP' >> "conftest.nl"
6592 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6594 as_fn_arith $ac_count + 1 && ac_count=$as_val
6595 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6596 # Best one so far, save it but keep looking for a better one
6597 ac_cv_path_FGREP="$ac_path_FGREP"
6598 ac_path_FGREP_max=$ac_count
6600 # 10*(2^10) chars as input seems more than enough
6601 test $ac_count -gt 10 && break
6603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6606 $ac_path_FGREP_found && break 3
6611 if test -z "$ac_cv_path_FGREP"; then
6612 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6615 ac_cv_path_FGREP=$FGREP
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6621 $as_echo "$ac_cv_path_FGREP" >&6; }
6622 FGREP="$ac_cv_path_FGREP"
6625 test -z "$GREP" && GREP=grep
6643 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6644 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6645 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6648 $as_echo_n "checking how to print strings... " >&6; }
6649 # Test print first, because it will be a builtin if present.
6650 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6651 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6653 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6656 # Use this function as a fallback that always works.
6657 func_fallback_echo ()
6659 eval 'cat <<_LTECHO_EOF
6663 ECHO='func_fallback_echo'
6666 # func_echo_all arg...
6667 # Invoke $ECHO with all args, space-separated.
6674 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6675 $as_echo "printf" >&6; } ;;
6676 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6677 $as_echo "print -r" >&6; } ;;
6678 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6679 $as_echo "cat" >&6; } ;;
6695 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6696 if test "x$ac_cv_type_pid_t" = xyes; then :
6700 cat >>confdefs.h <<_ACEOF
6706 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6707 if test "x$ac_cv_type_size_t" = xyes; then :
6711 cat >>confdefs.h <<_ACEOF
6712 #define size_t unsigned int
6718 # Check whether --enable-c99-snprintf was given.
6719 if test "${enable_c99_snprintf+set}" = set; then :
6720 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
6722 force_c99_snprintf=no
6726 case "$force_c99_snprintf" in
6728 hw_force_rpl_snprintf=yes
6729 hw_force_rpl_vsnprintf=yes
6737 for ac_header in $ac_header_list
6739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6740 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6742 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6743 cat >>confdefs.h <<_ACEOF
6744 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6758 $as_echo_n "checking for unsigned long long int... " >&6; }
6759 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6760 $as_echo_n "(cached) " >&6
6762 ac_cv_type_unsigned_long_long_int=yes
6763 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6767 /* For now, do not test the preprocessor; as of 2007 there are too many
6768 implementations with broken preprocessors. Perhaps this can
6769 be revisited in 2012. In the meantime, code should not expect
6770 #if to work with literals wider than 32 bits. */
6771 /* Test literals. */
6772 long long int ll = 9223372036854775807ll;
6773 long long int nll = -9223372036854775807LL;
6774 unsigned long long int ull = 18446744073709551615ULL;
6775 /* Test constant expressions. */
6776 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6778 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6784 /* Test availability of runtime routines for shift and division. */
6785 long long int llmax = 9223372036854775807ll;
6786 unsigned long long int ullmax = 18446744073709551615ull;
6787 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6788 | (llmax / ll) | (llmax % ll)
6789 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6790 | (ullmax / ull) | (ullmax % ull));
6796 if ac_fn_c_try_link "$LINENO"; then :
6799 ac_cv_type_unsigned_long_long_int=no
6801 rm -f core conftest.err conftest.$ac_objext \
6802 conftest$ac_exeext conftest.$ac_ext
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6806 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6807 if test $ac_cv_type_unsigned_long_long_int = yes; then
6809 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6814 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
6815 if test "x$ac_cv_func_vsnprintf" = xyes; then :
6816 hw_cv_func_vsnprintf=yes
6818 hw_cv_func_vsnprintf=no
6821 if test "$hw_cv_func_vsnprintf" = yes; then :
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
6823 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
6824 if ${hw_cv_func_vsnprintf_c99+:} false; then :
6825 $as_echo_n "(cached) " >&6
6827 if test "$cross_compiling" = yes; then :
6828 hw_cv_func_vsnprintf_c99=no
6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6836 static int testprintf(char *buf, size_t size, const char *format, ...)
6840 va_start(ap, format);
6841 result = vsnprintf(buf, size, format, ap);
6849 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
6850 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
6851 buf[0] != 'T' || buf[3] != '\0')
6857 if ac_fn_c_try_run "$LINENO"; then :
6858 hw_cv_func_vsnprintf_c99=yes
6860 hw_cv_func_vsnprintf_c99=no
6862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6863 conftest.$ac_objext conftest.beam conftest.$ac_ext
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
6868 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
6870 hw_cv_func_vsnprintf_c99=no
6873 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
6876 $as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
6877 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
6878 hw_use_rpl_vsnprintf=yes
6880 hw_use_rpl_vsnprintf=no
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
6883 $as_echo "$hw_use_rpl_vsnprintf" >&6; }
6884 if test "$hw_use_rpl_vsnprintf" = yes; then :
6886 $as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
6888 if test ${hw_nodef_vsnprintf=no} = no; then :
6890 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
6893 for ac_header in inttypes.h locale.h stddef.h stdint.h
6895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6896 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6897 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6898 cat >>confdefs.h <<_ACEOF
6899 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6906 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
6908 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
6910 cat >>confdefs.h <<_ACEOF
6911 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
6916 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
6918 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
6920 cat >>confdefs.h <<_ACEOF
6921 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6929 $as_echo_n "checking for long double... " >&6; }
6930 if ${ac_cv_type_long_double+:} false; then :
6931 $as_echo_n "(cached) " >&6
6933 if test "$GCC" = yes; then
6934 ac_cv_type_long_double=yes
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6938 /* The Stardent Vistra knows sizeof (long double), but does
6940 long double foo = 0.0L;
6944 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6945 sizeof (double) <= sizeof (long double))];
6947 return test_array [0];
6953 if ac_fn_c_try_compile "$LINENO"; then :
6954 ac_cv_type_long_double=yes
6956 ac_cv_type_long_double=no
6958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
6962 $as_echo "$ac_cv_type_long_double" >&6; }
6963 if test $ac_cv_type_long_double = yes; then
6965 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6972 $as_echo_n "checking for long long int... " >&6; }
6973 if ${ac_cv_type_long_long_int+:} false; then :
6974 $as_echo_n "(cached) " >&6
6976 ac_cv_type_long_long_int=yes
6977 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6978 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6979 if test $ac_cv_type_long_long_int = yes; then
6980 if test "$cross_compiling" = yes; then :
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6988 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6989 # define LLONG_MAX (HALF - 1 + HALF)
6994 long long int n = 1;
6998 long long int m = n << i;
7001 if (LLONG_MAX / 2 < m)
7009 if ac_fn_c_try_run "$LINENO"; then :
7012 ac_cv_type_long_long_int=no
7014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7015 conftest.$ac_objext conftest.beam conftest.$ac_ext
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7022 $as_echo "$ac_cv_type_long_long_int" >&6; }
7023 if test $ac_cv_type_long_long_int = yes; then
7025 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7031 $as_echo_n "checking for unsigned long long int... " >&6; }
7032 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7033 $as_echo_n "(cached) " >&6
7035 ac_cv_type_unsigned_long_long_int=yes
7036 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7040 /* For now, do not test the preprocessor; as of 2007 there are too many
7041 implementations with broken preprocessors. Perhaps this can
7042 be revisited in 2012. In the meantime, code should not expect
7043 #if to work with literals wider than 32 bits. */
7044 /* Test literals. */
7045 long long int ll = 9223372036854775807ll;
7046 long long int nll = -9223372036854775807LL;
7047 unsigned long long int ull = 18446744073709551615ULL;
7048 /* Test constant expressions. */
7049 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7051 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7057 /* Test availability of runtime routines for shift and division. */
7058 long long int llmax = 9223372036854775807ll;
7059 unsigned long long int ullmax = 18446744073709551615ull;
7060 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7061 | (llmax / ll) | (llmax % ll)
7062 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7063 | (ullmax / ull) | (ullmax % ull));
7069 if ac_fn_c_try_link "$LINENO"; then :
7072 ac_cv_type_unsigned_long_long_int=no
7074 rm -f core conftest.err conftest.$ac_objext \
7075 conftest$ac_exeext conftest.$ac_ext
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7079 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7080 if test $ac_cv_type_unsigned_long_long_int = yes; then
7082 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7086 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7087 if test "x$ac_cv_type_size_t" = xyes; then :
7091 cat >>confdefs.h <<_ACEOF
7092 #define size_t unsigned int
7099 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
7100 if test "x$ac_cv_type_intmax_t" = xyes; then :
7102 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
7105 test $ac_cv_type_long_long_int = yes \
7106 && ac_type='long long int' \
7107 || ac_type='long int'
7109 cat >>confdefs.h <<_ACEOF
7110 #define intmax_t $ac_type
7118 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
7119 if test "x$ac_cv_type_uintmax_t" = xyes; then :
7121 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7124 test $ac_cv_type_unsigned_long_long_int = yes \
7125 && ac_type='unsigned long long int' \
7126 || ac_type='unsigned long int'
7128 cat >>confdefs.h <<_ACEOF
7129 #define uintmax_t $ac_type
7136 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
7137 if test "x$ac_cv_type_uintptr_t" = xyes; then :
7139 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
7142 for ac_type in 'unsigned int' 'unsigned long int' \
7143 'unsigned long long int'; do
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7146 $ac_includes_default
7150 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
7152 return test_array [0];
7158 if ac_fn_c_try_compile "$LINENO"; then :
7160 cat >>confdefs.h <<_ACEOF
7161 #define uintptr_t $ac_type
7166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167 test -z "$ac_type" && break
7172 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7173 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
7175 cat >>confdefs.h <<_ACEOF
7176 #define HAVE_PTRDIFF_T 1
7182 for ac_func in localeconv
7184 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
7185 if test "x$ac_cv_func_localeconv" = xyes; then :
7186 cat >>confdefs.h <<_ACEOF
7187 #define HAVE_LOCALECONV 1
7194 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7196 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7197 if ${ac_cv_c_const+:} false; then :
7198 $as_echo_n "(cached) " >&6
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7208 /* Ultrix mips cc rejects this sort of thing. */
7209 typedef int charset[2];
7210 const charset cs = { 0, 0 };
7211 /* SunOS 4.1.1 cc rejects this. */
7212 char const *const *pcpcc;
7214 /* NEC SVR4.0.2 mips cc rejects this. */
7215 struct point {int x, y;};
7216 static struct point const zero = {0,0};
7217 /* AIX XL C 1.02.0.0 rejects this.
7218 It does not let you subtract one const X* pointer from another in
7219 an arm of an if-expression whose if-part is not a constant
7221 const char *g = "string";
7222 pcpcc = &g + (g ? g-g : 0);
7223 /* HPUX 7.0 cc rejects these. */
7225 ppc = (char**) pcpcc;
7226 pcpcc = (char const *const *) ppc;
7227 { /* SCO 3.2v4 cc rejects this sort of thing. */
7230 char const *s = 0 ? (char *) 0 : (char const *) 0;
7235 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7237 const int *foo = &x[0];
7240 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7241 typedef const int *iptr;
7245 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7246 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7247 struct s { int j; const int *ap[3]; } bx;
7248 struct s *b = &bx; b->j = 5;
7250 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7254 return !cs[0] && !zero.x;
7261 if ac_fn_c_try_compile "$LINENO"; then :
7266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7269 $as_echo "$ac_cv_c_const" >&6; }
7270 if test $ac_cv_c_const = no; then
7272 $as_echo "#define const /**/" >>confdefs.h
7279 case " $LIBOBJS " in
7280 *" snprintf.$ac_objext "* ) ;;
7281 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7285 _hw_cv_func_xprintf_replace_done=yes
7291 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
7292 if test "x$ac_cv_func_snprintf" = xyes; then :
7293 hw_cv_func_snprintf=yes
7295 hw_cv_func_snprintf=no
7298 if test "$hw_cv_func_snprintf" = yes; then :
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
7300 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
7301 if ${hw_cv_func_snprintf_c99+:} false; then :
7302 $as_echo_n "(cached) " >&6
7304 if test "$cross_compiling" = yes; then :
7305 hw_cv_func_snprintf_c99=no
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7314 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
7315 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
7316 buf[0] != 'T' || buf[3] != '\0')
7322 if ac_fn_c_try_run "$LINENO"; then :
7323 hw_cv_func_snprintf_c99=yes
7325 hw_cv_func_snprintf_c99=no
7327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7328 conftest.$ac_objext conftest.beam conftest.$ac_ext
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
7333 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
7335 hw_cv_func_snprintf_c99=no
7338 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
7341 $as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
7342 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
7343 hw_use_rpl_snprintf=yes
7345 hw_use_rpl_snprintf=no
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
7348 $as_echo "$hw_use_rpl_snprintf" >&6; }
7349 if test "$hw_use_rpl_snprintf" = yes; then :
7351 $as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
7353 if test ${hw_nodef_snprintf=no} = no; then :
7355 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
7359 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7361 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7362 if ${ac_cv_c_const+:} false; then :
7363 $as_echo_n "(cached) " >&6
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7373 /* Ultrix mips cc rejects this sort of thing. */
7374 typedef int charset[2];
7375 const charset cs = { 0, 0 };
7376 /* SunOS 4.1.1 cc rejects this. */
7377 char const *const *pcpcc;
7379 /* NEC SVR4.0.2 mips cc rejects this. */
7380 struct point {int x, y;};
7381 static struct point const zero = {0,0};
7382 /* AIX XL C 1.02.0.0 rejects this.
7383 It does not let you subtract one const X* pointer from another in
7384 an arm of an if-expression whose if-part is not a constant
7386 const char *g = "string";
7387 pcpcc = &g + (g ? g-g : 0);
7388 /* HPUX 7.0 cc rejects these. */
7390 ppc = (char**) pcpcc;
7391 pcpcc = (char const *const *) ppc;
7392 { /* SCO 3.2v4 cc rejects this sort of thing. */
7395 char const *s = 0 ? (char *) 0 : (char const *) 0;
7400 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7402 const int *foo = &x[0];
7405 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7406 typedef const int *iptr;
7410 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7411 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7412 struct s { int j; const int *ap[3]; } bx;
7413 struct s *b = &bx; b->j = 5;
7415 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7419 return !cs[0] && !zero.x;
7426 if ac_fn_c_try_compile "$LINENO"; then :
7431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7434 $as_echo "$ac_cv_c_const" >&6; }
7435 if test $ac_cv_c_const = no; then
7437 $as_echo "#define const /**/" >>confdefs.h
7444 case " $LIBOBJS " in
7445 *" snprintf.$ac_objext "* ) ;;
7446 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7450 _hw_cv_func_xprintf_replace_done=yes
7459 # HMS: Save $LIBS and empty it.
7460 # any LIBS we add here should go in to LDADD_LIBNTP
7467 # [Bug 2332] because we need to know if we are using GNU ld...
7470 # Check whether --with-gnu-ld was given.
7471 if test "${with_gnu_ld+set}" = set; then :
7472 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7478 if test yes = "$GCC"; then
7479 # Check if gcc -print-prog-name=ld gives a path.
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7481 $as_echo_n "checking for ld used by $CC... " >&6; }
7484 # gcc leaves a trailing carriage return, which upsets mingw
7485 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7487 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7490 # Accept absolute paths.
7492 re_direlt='/[^/][^/]*/\.\./'
7493 # Canonicalize the pathname of ld
7494 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7495 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7496 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7498 test -z "$LD" && LD=$ac_prog
7501 # If it fails, then pretend we aren't using GCC.
7505 # If it is relative, then search for the first ld in PATH.
7509 elif test yes = "$with_gnu_ld"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7511 $as_echo_n "checking for GNU ld... " >&6; }
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7514 $as_echo_n "checking for non-GNU ld... " >&6; }
7516 if ${lt_cv_path_LD+:} false; then :
7517 $as_echo_n "(cached) " >&6
7519 if test -z "$LD"; then
7520 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7521 for ac_dir in $PATH; do
7523 test -z "$ac_dir" && ac_dir=.
7524 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7525 lt_cv_path_LD=$ac_dir/$ac_prog
7526 # Check to see if the program is GNU ld. I'd rather use --version,
7527 # but apparently some variants of GNU ld only accept -v.
7528 # Break only if it was the GNU/non-GNU ld that we prefer.
7529 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7530 *GNU* | *'with BFD'*)
7531 test no != "$with_gnu_ld" && break
7534 test yes != "$with_gnu_ld" && break
7541 lt_cv_path_LD=$LD # Let the user override the test with a path.
7546 if test -n "$LD"; then
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7548 $as_echo "$LD" >&6; }
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7553 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7555 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7556 if ${lt_cv_prog_gnu_ld+:} false; then :
7557 $as_echo_n "(cached) " >&6
7559 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7560 case `$LD -v 2>&1 </dev/null` in
7561 *GNU* | *'with BFD'*)
7562 lt_cv_prog_gnu_ld=yes
7565 lt_cv_prog_gnu_ld=no
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7570 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7571 with_gnu_ld=$lt_cv_prog_gnu_ld
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
7584 $as_echo_n "checking for directory path separator... " >&6; }
7585 if ${ntp_cv_dir_sep+:} false; then :
7586 $as_echo_n "(cached) " >&6
7589 case "$ntp_cv_dir_sep" in
7592 *djgpp | *mingw32* | *emx*)
7593 ntp_cv_dir_sep="'\\'"
7596 ntp_cv_dir_sep="'/'"
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
7604 $as_echo "$ntp_cv_dir_sep" >&6; }
7606 cat >>confdefs.h <<_ACEOF
7607 #define DIR_SEP $ntp_cv_dir_sep
7612 NTP_ORIG_LIBS="$LIBS"
7614 # Check whether --with-lineeditlibs was given.
7615 if test "${with_lineeditlibs+set}" = set; then :
7616 withval=$with_lineeditlibs; use_lineeditlibs="$withval"
7618 use_lineeditlibs="edit,editline"
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
7623 $as_echo_n "checking line editing libraries... " >&6; }
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
7625 $as_echo "$use_lineeditlibs" >&6; }
7626 case "$use_lineeditlibs" in
7631 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
7632 for term_lib in "" termcap curses ncurses; do
7635 TRY_LIB="-l$lineedit_lib"
7638 TRY_LIB="-l$lineedit_lib -l$term_lib"
7641 LIBS="$NTP_ORIG_LIBS $TRY_LIB"
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
7643 $as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7647 /* Override any GCC internal prototype to avoid an error.
7648 Use char because int might match the return type of a GCC
7649 builtin and then its argument prototype would still apply. */
7662 if ac_fn_c_try_link "$LINENO"; then :
7663 ntp_lib_lineedit="$TRY_LIB"
7665 rm -f core conftest.err conftest.$ac_objext \
7666 conftest$ac_exeext conftest.$ac_ext
7667 case "$ntp_lib_lineedit" in
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7675 $as_echo "yes" >&6; }
7680 # do not try el_gets without a terminal library
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
7684 $as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h. */
7688 /* Override any GCC internal prototype to avoid an error.
7689 Use char because int might match the return type of a GCC
7690 builtin and then its argument prototype would still apply. */
7703 if ac_fn_c_try_link "$LINENO"; then :
7704 ntp_lib_lineedit="$TRY_LIB"
7706 rm -f core conftest.err conftest.$ac_objext \
7707 conftest$ac_exeext conftest.$ac_ext
7708 case "$ntp_lib_lineedit" in
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 $as_echo "no" >&6; }
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7715 $as_echo "yes" >&6; }
7718 esac # $ntp_lib_lineedit
7721 case "$ntp_lib_lineedit" in
7729 LIBS="$NTP_ORIG_LIBS"
7731 esac # $use_lineeditlibs
7733 case "$ntp_lib_lineedit" in
7735 ntp_lib_lineedit="no"
7740 EDITLINE_LIBS="$ntp_lib_lineedit"
7743 esac # $ntp_lib_lineedit
7745 case "$ntp_lib_lineedit" in
7749 for ac_header in readline.h readline/readline.h histedit.h
7751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7752 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7753 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7754 cat >>confdefs.h <<_ACEOF
7755 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7762 for ac_header in history.h readline/history.h
7764 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7765 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7766 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7767 cat >>confdefs.h <<_ACEOF
7768 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7776 case "$ac_cv_header_histedit_h" in
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
7779 $as_echo_n "checking number of arguments to el_init()... " >&6; }
7780 if ${ntp_cv_el_init_args+:} false; then :
7781 $as_echo_n "(cached) " >&6
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7787 #include <histedit.h>
7793 el_init("conftest", stdin, stdout, stderr);
7800 if ac_fn_c_try_compile "$LINENO"; then :
7801 ntp_cv_el_init_args=4
7803 ntp_cv_el_init_args=3
7806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
7810 $as_echo "$ntp_cv_el_init_args" >&6; }
7812 cat >>confdefs.h <<_ACEOF
7813 #define EL_INIT_ARGS $ntp_cv_el_init_args
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
7819 $as_echo_n "checking whether readline supports history... " >&6; }
7821 ntp_lib_lineedit_history="no"
7823 LIBS="$ORIG_LIBS $ntp_lib_lineedit"
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7827 /* Override any GCC internal prototype to avoid an error.
7828 Use char because int might match the return type of a GCC
7829 builtin and then its argument prototype would still apply. */
7833 char add_history ();
7837 return add_history ();
7842 if ac_fn_c_try_link "$LINENO"; then :
7843 ntp_lib_lineedit_history="yes"
7845 rm -f core conftest.err conftest.$ac_objext \
7846 conftest$ac_exeext conftest.$ac_ext
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
7850 $as_echo "$ntp_lib_lineedit_history" >&6; }
7852 case "$ntp_lib_lineedit_history" in
7855 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
7858 esac # $ntp_lib_lineedit
7859 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
7860 { ORIG_LIBS=; unset ORIG_LIBS;}
7861 { TRY_LIB=; unset TRY_LIB;}
7862 { use_lineeditlibs=; unset use_lineeditlibs;}
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
7872 $as_echo_n "checking for library containing cos... " >&6; }
7873 if ${ac_cv_search_cos+:} false; then :
7874 $as_echo_n "(cached) " >&6
7876 ac_func_search_save_LIBS=$LIBS
7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7878 /* end confdefs.h. */
7880 /* Override any GCC internal prototype to avoid an error.
7881 Use char because int might match the return type of a GCC
7882 builtin and then its argument prototype would still apply. */
7895 for ac_lib in '' m; do
7896 if test -z "$ac_lib"; then
7897 ac_res="none required"
7900 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7902 if ac_fn_c_try_link "$LINENO"; then :
7903 ac_cv_search_cos=$ac_res
7905 rm -f core conftest.err conftest.$ac_objext \
7907 if ${ac_cv_search_cos+:} false; then :
7911 if ${ac_cv_search_cos+:} false; then :
7917 LIBS=$ac_func_search_save_LIBS
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
7920 $as_echo "$ac_cv_search_cos" >&6; }
7921 ac_res=$ac_cv_search_cos
7922 if test "$ac_res" != no; then :
7923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7931 { _libs=; unset _libs;}
7934 for ac_header in vfork.h
7936 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7937 if test "x$ac_cv_header_vfork_h" = xyes; then :
7938 cat >>confdefs.h <<_ACEOF
7939 #define HAVE_VFORK_H 1
7946 for ac_func in fork vfork
7948 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7949 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7950 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7951 cat >>confdefs.h <<_ACEOF
7952 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7958 if test "x$ac_cv_func_fork" = xyes; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7960 $as_echo_n "checking for working fork... " >&6; }
7961 if ${ac_cv_func_fork_works+:} false; then :
7962 $as_echo_n "(cached) " >&6
7964 if test "$cross_compiling" = yes; then :
7965 ac_cv_func_fork_works=cross
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7969 $ac_includes_default
7974 /* By Ruediger Kuhlmann. */
7981 if ac_fn_c_try_run "$LINENO"; then :
7982 ac_cv_func_fork_works=yes
7984 ac_cv_func_fork_works=no
7986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7987 conftest.$ac_objext conftest.beam conftest.$ac_ext
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7992 $as_echo "$ac_cv_func_fork_works" >&6; }
7995 ac_cv_func_fork_works=$ac_cv_func_fork
7997 if test "x$ac_cv_func_fork_works" = xcross; then
7999 *-*-amigaos* | *-*-msdosdjgpp*)
8000 # Override, as these systems have only a dummy fork() stub
8001 ac_cv_func_fork_works=no
8004 ac_cv_func_fork_works=yes
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8008 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8010 ac_cv_func_vfork_works=$ac_cv_func_vfork
8011 if test "x$ac_cv_func_vfork" = xyes; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8013 $as_echo_n "checking for working vfork... " >&6; }
8014 if ${ac_cv_func_vfork_works+:} false; then :
8015 $as_echo_n "(cached) " >&6
8017 if test "$cross_compiling" = yes; then :
8018 ac_cv_func_vfork_works=cross
8020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021 /* end confdefs.h. */
8022 /* Thanks to Paul Eggert for this test. */
8023 $ac_includes_default
8024 #include <sys/wait.h>
8028 /* On some sparc systems, changes by the child to local and incoming
8029 argument registers are propagated back to the parent. The compiler
8030 is told about this with #include <vfork.h>, but some compilers
8031 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8032 static variable whose address is put into a register that is
8033 clobbered by the vfork. */
8036 sparc_address_test (int arg)
8038 sparc_address_test (arg) int arg;
8059 pid_t parent = getpid ();
8062 sparc_address_test (0);
8067 /* Here is another test for sparc vfork register problems. This
8068 test uses lots of local variables, at least as many local
8069 variables as main has allocated so far including compiler
8070 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8071 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8072 reuse the register of parent for one of the local variables,
8073 since it will think that parent can't possibly be used any more
8074 in this routine. Assigning to the local variable will thus
8075 munge parent in the parent process. */
8077 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8078 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8079 /* Convince the compiler that p..p7 are live; otherwise, it might
8080 use the same hardware register for all 8 local variables. */
8081 if (p != p1 || p != p2 || p != p3 || p != p4
8082 || p != p5 || p != p6 || p != p7)
8085 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8086 from child file descriptors. If the child closes a descriptor
8087 before it execs or exits, this munges the parent's descriptor
8088 as well. Test for this by closing stdout in the child. */
8089 _exit(close(fileno(stdout)) != 0);
8094 while (wait(&status) != child)
8097 /* Was there some problem with vforking? */
8100 /* Did the child fail? (This shouldn't happen.) */
8103 /* Did the vfork/compiler bug occur? */
8104 || parent != getpid()
8106 /* Did the file descriptor bug occur? */
8107 || fstat(fileno(stdout), &st) != 0
8112 if ac_fn_c_try_run "$LINENO"; then :
8113 ac_cv_func_vfork_works=yes
8115 ac_cv_func_vfork_works=no
8117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8118 conftest.$ac_objext conftest.beam conftest.$ac_ext
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8123 $as_echo "$ac_cv_func_vfork_works" >&6; }
8126 if test "x$ac_cv_func_fork_works" = xcross; then
8127 ac_cv_func_vfork_works=$ac_cv_func_vfork
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8129 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8132 if test "x$ac_cv_func_vfork_works" = xyes; then
8134 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8138 $as_echo "#define vfork fork" >>confdefs.h
8141 if test "x$ac_cv_func_fork_works" = xyes; then
8143 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8147 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8148 # for constant arguments. Useless!
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8150 $as_echo_n "checking for working alloca.h... " >&6; }
8151 if ${ac_cv_working_alloca_h+:} false; then :
8152 $as_echo_n "(cached) " >&6
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8160 char *p = (char *) alloca (2 * sizeof (int));
8166 if ac_fn_c_try_link "$LINENO"; then :
8167 ac_cv_working_alloca_h=yes
8169 ac_cv_working_alloca_h=no
8171 rm -f core conftest.err conftest.$ac_objext \
8172 conftest$ac_exeext conftest.$ac_ext
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8175 $as_echo "$ac_cv_working_alloca_h" >&6; }
8176 if test $ac_cv_working_alloca_h = yes; then
8178 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8183 $as_echo_n "checking for alloca... " >&6; }
8184 if ${ac_cv_func_alloca_works+:} false; then :
8185 $as_echo_n "(cached) " >&6
8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8190 # define alloca __builtin_alloca
8193 # include <malloc.h>
8194 # define alloca _alloca
8196 # ifdef HAVE_ALLOCA_H
8197 # include <alloca.h>
8202 # ifndef alloca /* predefined by HP cc +Olibcalls */
8203 void *alloca (size_t);
8213 char *p = (char *) alloca (1);
8219 if ac_fn_c_try_link "$LINENO"; then :
8220 ac_cv_func_alloca_works=yes
8222 ac_cv_func_alloca_works=no
8224 rm -f core conftest.err conftest.$ac_objext \
8225 conftest$ac_exeext conftest.$ac_ext
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8228 $as_echo "$ac_cv_func_alloca_works" >&6; }
8230 if test $ac_cv_func_alloca_works = yes; then
8232 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8235 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8236 # that cause trouble. Some versions do not even contain alloca or
8237 # contain a buggy version. If you still want to use their alloca,
8238 # use ar to extract alloca.o from them instead of compiling alloca.c.
8240 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8242 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8246 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8247 if ${ac_cv_os_cray+:} false; then :
8248 $as_echo_n "(cached) " >&6
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8252 #if defined CRAY && ! defined CRAY2
8259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8260 $EGREP "webecray" >/dev/null 2>&1; then :
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8269 $as_echo "$ac_cv_os_cray" >&6; }
8270 if test $ac_cv_os_cray = yes; then
8271 for ac_func in _getb67 GETB67 getb67; do
8272 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8273 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8274 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8276 cat >>confdefs.h <<_ACEOF
8277 #define CRAY_STACKSEG_END $ac_func
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8287 $as_echo_n "checking stack direction for C alloca... " >&6; }
8288 if ${ac_cv_c_stack_direction+:} false; then :
8289 $as_echo_n "(cached) " >&6
8291 if test "$cross_compiling" = yes; then :
8292 ac_cv_c_stack_direction=0
8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h. */
8296 $ac_includes_default
8298 find_stack_direction (int *addr, int depth)
8303 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8304 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8309 main (int argc, char **argv)
8311 return find_stack_direction (0, argc + !argv + 20) < 0;
8314 if ac_fn_c_try_run "$LINENO"; then :
8315 ac_cv_c_stack_direction=1
8317 ac_cv_c_stack_direction=-1
8319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8320 conftest.$ac_objext conftest.beam conftest.$ac_ext
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8325 $as_echo "$ac_cv_c_stack_direction" >&6; }
8326 cat >>confdefs.h <<_ACEOF
8327 #define STACK_DIRECTION $ac_cv_c_stack_direction
8333 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8334 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
8340 cat >>confdefs.h <<_ACEOF
8341 #define HAVE_DECL_STRERROR_R $ac_have_decl
8344 for ac_func in strerror_r
8346 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8347 if test "x$ac_cv_func_strerror_r" = xyes; then :
8348 cat >>confdefs.h <<_ACEOF
8349 #define HAVE_STRERROR_R 1
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8356 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8357 if ${ac_cv_func_strerror_r_char_p+:} false; then :
8358 $as_echo_n "(cached) " >&6
8361 ac_cv_func_strerror_r_char_p=no
8362 if test $ac_cv_have_decl_strerror_r = yes; then
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8365 $ac_includes_default
8371 char x = *strerror_r (0, buf, sizeof buf);
8372 char *p = strerror_r (0, buf, sizeof buf);
8379 if ac_fn_c_try_compile "$LINENO"; then :
8380 ac_cv_func_strerror_r_char_p=yes
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 # strerror_r is not declared. Choose between
8385 # systems that have relatively inaccessible declarations for the
8386 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8387 # former has a strerror_r that returns char*, while the latter
8388 # has a strerror_r that returns `int'.
8389 # This test should segfault on the DEC system.
8390 if test "$cross_compiling" = yes; then :
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 $ac_includes_default
8396 extern char *strerror_r ();
8401 char x = *strerror_r (0, buf, sizeof buf);
8402 return ! isalpha (x);
8407 if ac_fn_c_try_run "$LINENO"; then :
8408 ac_cv_func_strerror_r_char_p=yes
8410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8411 conftest.$ac_objext conftest.beam conftest.$ac_ext
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8418 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8419 if test $ac_cv_func_strerror_r_char_p = yes; then
8421 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8426 ac_busted_vpath_in_make=no
8428 *-*-irix6.1*) # 64 bit only
8431 *-*-irix6*) # 6.2 (and later?)
8432 ac_busted_vpath_in_make=yes
8435 ac_busted_vpath_in_make=yes
8438 ac_busted_vpath_in_make=yes
8442 case "$ac_busted_vpath_in_make$srcdir" in
8445 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
8447 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
8455 # Was *-*-aix[[4-9]]*
8456 # XXX only verified thru AIX6. But...
8457 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
8458 # that this support would be in 5.3, removed in 6, and added back.
8460 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
8461 # (returning ENOSYS). I didn't check 4.2. If, in the future,
8462 # IBM pulls its thumbs out long enough to implement clock_settime,
8463 # this conditional will need to change. Maybe use AC_TRY_RUN
8464 # instead to try to set the time to itself and check errno.
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
8468 $as_echo_n "checking for library containing clock_gettime... " >&6; }
8469 if ${ac_cv_search_clock_gettime+:} false; then :
8470 $as_echo_n "(cached) " >&6
8472 ac_func_search_save_LIBS=$LIBS
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8476 /* Override any GCC internal prototype to avoid an error.
8477 Use char because int might match the return type of a GCC
8478 builtin and then its argument prototype would still apply. */
8482 char clock_gettime ();
8486 return clock_gettime ();
8491 for ac_lib in '' rt; do
8492 if test -z "$ac_lib"; then
8493 ac_res="none required"
8496 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8498 if ac_fn_c_try_link "$LINENO"; then :
8499 ac_cv_search_clock_gettime=$ac_res
8501 rm -f core conftest.err conftest.$ac_objext \
8503 if ${ac_cv_search_clock_gettime+:} false; then :
8507 if ${ac_cv_search_clock_gettime+:} false; then :
8510 ac_cv_search_clock_gettime=no
8513 LIBS=$ac_func_search_save_LIBS
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
8516 $as_echo "$ac_cv_search_clock_gettime" >&6; }
8517 ac_res=$ac_cv_search_clock_gettime
8518 if test "$ac_res" != no; then :
8519 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8520 case "$ac_cv_search_clock_gettime" in
8523 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
8528 for ac_func in clock_getres clock_gettime clock_settime
8530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8531 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8532 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8533 cat >>confdefs.h <<_ACEOF
8534 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8543 for ac_func in getclock stime timegm strlcpy strlcat
8545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8546 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8547 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8548 cat >>confdefs.h <<_ACEOF
8549 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
8560 $as_echo_n "checking for library containing snprintb... " >&6; }
8561 if ${ac_cv_search_snprintb+:} false; then :
8562 $as_echo_n "(cached) " >&6
8564 ac_func_search_save_LIBS=$LIBS
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8568 /* Override any GCC internal prototype to avoid an error.
8569 Use char because int might match the return type of a GCC
8570 builtin and then its argument prototype would still apply. */
8583 for ac_lib in '' util; do
8584 if test -z "$ac_lib"; then
8585 ac_res="none required"
8588 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8590 if ac_fn_c_try_link "$LINENO"; then :
8591 ac_cv_search_snprintb=$ac_res
8593 rm -f core conftest.err conftest.$ac_objext \
8595 if ${ac_cv_search_snprintb+:} false; then :
8599 if ${ac_cv_search_snprintb+:} false; then :
8602 ac_cv_search_snprintb=no
8605 LIBS=$ac_func_search_save_LIBS
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
8608 $as_echo "$ac_cv_search_snprintb" >&6; }
8609 ac_res=$ac_cv_search_snprintb
8610 if test "$ac_res" != no; then :
8611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8612 case "$ac_cv_search_snprintb" in
8615 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
8618 $as_echo "#define USE_SNPRINTB 1" >>confdefs.h
8624 for ac_header in errno.h sys/socket.h sys/types.h time.h
8626 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8627 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8628 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8629 cat >>confdefs.h <<_ACEOF
8630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8637 for ac_header in net/if.h
8639 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
8640 #ifdef HAVE_SYS_SOCKET_H
8641 # include <sys/socket.h>
8645 if test "x$ac_cv_header_net_if_h" = xyes; then :
8646 cat >>confdefs.h <<_ACEOF
8647 #define HAVE_NET_IF_H 1
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
8657 $as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
8658 if ${ntp_cv_predecl_mpinfou+:} false; then :
8659 $as_echo_n "(cached) " >&6
8662 np_cv_predecl_mpinfou=no
8663 case "$ac_cv_header_net_if_h" in
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8668 typedef union mpinfou {
8669 struct pdk_mpinfo *pdkptr;
8670 struct mpinfo *pikptr;
8672 #ifdef HAVE_SYS_SOCKET_H
8673 # include <sys/socket.h>
8687 if ac_fn_c_try_compile "$LINENO"; then :
8689 ntp_cv_predecl_mpinfou=yes
8690 ac_cv_header_net_if_h=yes
8694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
8700 $as_echo "$ntp_cv_predecl_mpinfou" >&6; }
8701 case "$ntp_cv_predecl_mpinfou" in
8703 cat >>confdefs.h <<_ACEOF
8704 #ifndef MPINFOU_PREDECLARED
8705 # define MPINFOU_PREDECLARED
8706 typedef union mpinfou {
8707 struct pdk_mpinfo *pdkptr;
8708 struct mpinfo *pikptr;
8718 for ac_header in linux/if_addr.h
8720 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
8721 #ifdef HAVE_SYS_SOCKET_H
8722 # include <sys/socket.h>
8726 if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
8727 cat >>confdefs.h <<_ACEOF
8728 #define HAVE_LINUX_IF_ADDR_H 1
8736 $as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h
8740 for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
8742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8743 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8744 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8745 cat >>confdefs.h <<_ACEOF
8746 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8753 # sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
8754 for ac_header in sys/sysctl.h
8756 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
8757 #if defined HAVE_SYS_PARAM_H
8758 # include <sys/param.h>
8762 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
8763 cat >>confdefs.h <<_ACEOF
8764 #define HAVE_SYS_SYSCTL_H 1
8771 for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
8773 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8774 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8775 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8776 cat >>confdefs.h <<_ACEOF
8777 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8785 for ac_header in resolv.h
8787 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
8788 #ifdef HAVE_SYS_TYPES_H
8789 # include <sys/types.h>
8791 #ifdef HAVE_NETINET_IN_H
8792 # include <netinet/in.h>
8794 #ifdef HAVE_ARPA_NAMESER_H
8795 # include <arpa/nameser.h>
8799 if test "x$ac_cv_header_resolv_h" = xyes; then :
8800 cat >>confdefs.h <<_ACEOF
8801 #define HAVE_RESOLV_H 1
8809 for ac_header in net/if_var.h
8811 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
8812 #if HAVE_SYS_TYPES_H
8813 # include <sys/types.h>
8815 #ifdef HAVE_SYS_SOCKET_H
8816 # include <sys/socket.h>
8818 #ifdef HAVE_NETINET_IN_H
8819 # include <netinet/in.h>
8821 #ifdef HAVE_NET_IF_H
8822 # include <net/if.h>
8826 if test "x$ac_cv_header_net_if_var_h" = xyes; then :
8827 cat >>confdefs.h <<_ACEOF
8828 #define HAVE_NET_IF_VAR_H 1
8836 for ac_header in netinet/ip.h netinet/in_var.h
8838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8839 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8840 #ifdef HAVE_SYS_TYPES_H
8841 # include <sys/types.h>
8843 #ifdef HAVE_SYS_SOCKET_H
8844 # include <sys/socket.h>
8846 #ifdef HAVE_NET_IF_H
8847 # include <net/if.h>
8849 #ifdef HAVE_NETINET_IN_H
8850 # include <netinet/in.h>
8852 #ifdef HAVE_NET_IF_VAR_H
8853 # include <net/if_var.h>
8855 #ifdef HAVE_NETINET_IN_SYSTM_H
8856 # include <netinet/in_systm.h>
8860 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8861 cat >>confdefs.h <<_ACEOF
8862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8870 # HMS: Do we need to check for -lsocket before or after these tests?
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
8872 $as_echo_n "checking for library containing inet_pton... " >&6; }
8873 if ${ac_cv_search_inet_pton+:} false; then :
8874 $as_echo_n "(cached) " >&6
8876 ac_func_search_save_LIBS=$LIBS
8877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878 /* end confdefs.h. */
8880 /* Override any GCC internal prototype to avoid an error.
8881 Use char because int might match the return type of a GCC
8882 builtin and then its argument prototype would still apply. */
8890 return inet_pton ();
8895 for ac_lib in '' nsl; do
8896 if test -z "$ac_lib"; then
8897 ac_res="none required"
8900 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8902 if ac_fn_c_try_link "$LINENO"; then :
8903 ac_cv_search_inet_pton=$ac_res
8905 rm -f core conftest.err conftest.$ac_objext \
8907 if ${ac_cv_search_inet_pton+:} false; then :
8911 if ${ac_cv_search_inet_pton+:} false; then :
8914 ac_cv_search_inet_pton=no
8917 LIBS=$ac_func_search_save_LIBS
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
8920 $as_echo "$ac_cv_search_inet_pton" >&6; }
8921 ac_res=$ac_cv_search_inet_pton
8922 if test "$ac_res" != no; then :
8923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8924 case "$ac_cv_search_inet_pton" in
8927 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
8933 $as_echo_n "checking for library containing inet_ntop... " >&6; }
8934 if ${ac_cv_search_inet_ntop+:} false; then :
8935 $as_echo_n "(cached) " >&6
8937 ac_func_search_save_LIBS=$LIBS
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8941 /* Override any GCC internal prototype to avoid an error.
8942 Use char because int might match the return type of a GCC
8943 builtin and then its argument prototype would still apply. */
8951 return inet_ntop ();
8956 for ac_lib in '' resolv; do
8957 if test -z "$ac_lib"; then
8958 ac_res="none required"
8961 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
8963 if ac_fn_c_try_link "$LINENO"; then :
8964 ac_cv_search_inet_ntop=$ac_res
8966 rm -f core conftest.err conftest.$ac_objext \
8968 if ${ac_cv_search_inet_ntop+:} false; then :
8972 if ${ac_cv_search_inet_ntop+:} false; then :
8975 ac_cv_search_inet_ntop=no
8978 LIBS=$ac_func_search_save_LIBS
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
8981 $as_echo "$ac_cv_search_inet_ntop" >&6; }
8982 ac_res=$ac_cv_search_inet_ntop
8983 if test "$ac_res" != no; then :
8984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8985 case "$ac_cv_search_inet_ntop" in
8988 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
8994 # [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to
8995 # avoid keying on the OS name: If we find socket functions in
8996 # libsocket, next try for them in libxnet without libsocket, if found,
8997 # list both. If we simply tested libxnet first, we would find the
8998 # functions there and never add libsocket. See also [Bug 660]
8999 # http://bugs.ntp.org/show_bug.cgi?id=660#c9
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
9002 $as_echo_n "checking for library containing setsockopt... " >&6; }
9003 if ${ac_cv_search_setsockopt+:} false; then :
9004 $as_echo_n "(cached) " >&6
9006 ac_func_search_save_LIBS=$LIBS
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9010 /* Override any GCC internal prototype to avoid an error.
9011 Use char because int might match the return type of a GCC
9012 builtin and then its argument prototype would still apply. */
9020 return setsockopt ();
9025 for ac_lib in '' socket; do
9026 if test -z "$ac_lib"; then
9027 ac_res="none required"
9030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9032 if ac_fn_c_try_link "$LINENO"; then :
9033 ac_cv_search_setsockopt=$ac_res
9035 rm -f core conftest.err conftest.$ac_objext \
9037 if ${ac_cv_search_setsockopt+:} false; then :
9041 if ${ac_cv_search_setsockopt+:} false; then :
9044 ac_cv_search_setsockopt=no
9047 LIBS=$ac_func_search_save_LIBS
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
9050 $as_echo "$ac_cv_search_setsockopt" >&6; }
9051 ac_res=$ac_cv_search_setsockopt
9052 if test "$ac_res" != no; then :
9053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9054 case "$ac_cv_search_setsockopt" in
9057 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
9062 case "$ac_cv_search_setsockopt" in
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
9066 $as_echo_n "checking for library containing getsockopt... " >&6; }
9067 if ${ac_cv_search_getsockopt+:} false; then :
9068 $as_echo_n "(cached) " >&6
9070 ac_func_search_save_LIBS=$LIBS
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9074 /* Override any GCC internal prototype to avoid an error.
9075 Use char because int might match the return type of a GCC
9076 builtin and then its argument prototype would still apply. */
9084 return getsockopt ();
9089 for ac_lib in '' xnet; do
9090 if test -z "$ac_lib"; then
9091 ac_res="none required"
9094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9096 if ac_fn_c_try_link "$LINENO"; then :
9097 ac_cv_search_getsockopt=$ac_res
9099 rm -f core conftest.err conftest.$ac_objext \
9101 if ${ac_cv_search_getsockopt+:} false; then :
9105 if ${ac_cv_search_getsockopt+:} false; then :
9108 ac_cv_search_getsockopt=no
9111 LIBS=$ac_func_search_save_LIBS
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
9114 $as_echo "$ac_cv_search_getsockopt" >&6; }
9115 ac_res=$ac_cv_search_getsockopt
9116 if test "$ac_res" != no; then :
9117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9118 case "$ac_cv_search_getsockopt" in
9121 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
9126 # XXX Possible trouble here - reading the comments above and looking at the
9127 # code below I wonder if we'll add -lxnet when we don't need it.
9128 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
9129 # there when it is not needed?
9130 case "$ac_cv_search_getsockopt" in
9132 LIBS="-lxnet -lsocket $saved_LIBS"
9134 *) LIBS="-lsocket $saved_LIBS"
9139 { saved_LIBS=; unset saved_LIBS;}
9141 # Bug 2427 - look for recvmsg here.
9142 for ac_func in recvmsg
9144 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
9145 if test "x$ac_cv_func_recvmsg" = xyes; then :
9146 cat >>confdefs.h <<_ACEOF
9147 #define HAVE_RECVMSG 1
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9155 $as_echo_n "checking for inline... " >&6; }
9156 if ${ac_cv_c_inline+:} false; then :
9157 $as_echo_n "(cached) " >&6
9160 for ac_kw in inline __inline__ __inline; do
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9165 static $ac_kw foo_t static_foo () {return 0; }
9166 $ac_kw foo_t foo () {return 0; }
9170 if ac_fn_c_try_compile "$LINENO"; then :
9171 ac_cv_c_inline=$ac_kw
9173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9174 test "$ac_cv_c_inline" != no && break
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9179 $as_echo "$ac_cv_c_inline" >&6; }
9181 case $ac_cv_c_inline in
9184 case $ac_cv_c_inline in
9186 *) ac_val=$ac_cv_c_inline;;
9188 cat >>confdefs.h <<_ACEOF
9190 #define inline $ac_val
9197 case "$ac_cv_c_inline" in
9202 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9208 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9209 if ${ac_cv_header_time+:} false; then :
9210 $as_echo_n "(cached) " >&6
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214 #include <sys/types.h>
9215 #include <sys/time.h>
9221 if ((struct tm *) 0)
9227 if ac_fn_c_try_compile "$LINENO"; then :
9228 ac_cv_header_time=yes
9230 ac_cv_header_time=no
9232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9235 $as_echo "$ac_cv_header_time" >&6; }
9236 if test $ac_cv_header_time = yes; then
9238 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9242 # The cast to long int works around a bug in the HP C Compiler
9243 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9244 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9245 # This bug is HP SR number 8606223364.
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
9247 $as_echo_n "checking size of time_t... " >&6; }
9248 if ${ac_cv_sizeof_time_t+:} false; then :
9249 $as_echo_n "(cached) " >&6
9251 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
9254 if test "$ac_cv_type_time_t" = yes; then
9255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9257 as_fn_error 77 "cannot compute sizeof (time_t)
9258 See \`config.log' for more details" "$LINENO" 5; }
9260 ac_cv_sizeof_time_t=0
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
9266 $as_echo "$ac_cv_sizeof_time_t" >&6; }
9270 cat >>confdefs.h <<_ACEOF
9271 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
9276 $as_echo_n "checking whether char is unsigned... " >&6; }
9277 if ${ac_cv_c_char_unsigned+:} false; then :
9278 $as_echo_n "(cached) " >&6
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9282 $ac_includes_default
9286 static int test_array [1 - 2 * !(((char) -1) < 0)];
9288 return test_array [0];
9294 if ac_fn_c_try_compile "$LINENO"; then :
9295 ac_cv_c_char_unsigned=no
9297 ac_cv_c_char_unsigned=yes
9299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
9302 $as_echo "$ac_cv_c_char_unsigned" >&6; }
9303 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
9304 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
9307 # The cast to long int works around a bug in the HP C Compiler
9308 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9309 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9310 # This bug is HP SR number 8606223364.
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
9312 $as_echo_n "checking size of signed char... " >&6; }
9313 if ${ac_cv_sizeof_signed_char+:} false; then :
9314 $as_echo_n "(cached) " >&6
9316 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
9319 if test "$ac_cv_type_signed_char" = yes; then
9320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9322 as_fn_error 77 "cannot compute sizeof (signed char)
9323 See \`config.log' for more details" "$LINENO" 5; }
9325 ac_cv_sizeof_signed_char=0
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
9331 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
9335 cat >>confdefs.h <<_ACEOF
9336 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
9340 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
9341 if test "x$ac_cv_type_s_char" = xyes; then :
9343 cat >>confdefs.h <<_ACEOF
9344 #define HAVE_S_CHAR 1
9349 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
9350 if test "x$ac_cv_type_long_long" = xyes; then :
9352 cat >>confdefs.h <<_ACEOF
9353 #define HAVE_LONG_LONG 1
9359 # The cast to long int works around a bug in the HP C Compiler
9360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9362 # This bug is HP SR number 8606223364.
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
9364 $as_echo_n "checking size of short... " >&6; }
9365 if ${ac_cv_sizeof_short+:} false; then :
9366 $as_echo_n "(cached) " >&6
9368 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
9371 if test "$ac_cv_type_short" = yes; then
9372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9374 as_fn_error 77 "cannot compute sizeof (short)
9375 See \`config.log' for more details" "$LINENO" 5; }
9377 ac_cv_sizeof_short=0
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
9383 $as_echo "$ac_cv_sizeof_short" >&6; }
9387 cat >>confdefs.h <<_ACEOF
9388 #define SIZEOF_SHORT $ac_cv_sizeof_short
9392 # The cast to long int works around a bug in the HP C Compiler
9393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9395 # This bug is HP SR number 8606223364.
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
9397 $as_echo_n "checking size of int... " >&6; }
9398 if ${ac_cv_sizeof_int+:} false; then :
9399 $as_echo_n "(cached) " >&6
9401 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
9404 if test "$ac_cv_type_int" = yes; then
9405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9407 as_fn_error 77 "cannot compute sizeof (int)
9408 See \`config.log' for more details" "$LINENO" 5; }
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
9416 $as_echo "$ac_cv_sizeof_int" >&6; }
9420 cat >>confdefs.h <<_ACEOF
9421 #define SIZEOF_INT $ac_cv_sizeof_int
9425 # The cast to long int works around a bug in the HP C Compiler
9426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9428 # This bug is HP SR number 8606223364.
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
9430 $as_echo_n "checking size of long... " >&6; }
9431 if ${ac_cv_sizeof_long+:} false; then :
9432 $as_echo_n "(cached) " >&6
9434 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
9437 if test "$ac_cv_type_long" = yes; then
9438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9440 as_fn_error 77 "cannot compute sizeof (long)
9441 See \`config.log' for more details" "$LINENO" 5; }
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
9449 $as_echo "$ac_cv_sizeof_long" >&6; }
9453 cat >>confdefs.h <<_ACEOF
9454 #define SIZEOF_LONG $ac_cv_sizeof_long
9459 case "$ac_cv_type_long_long" in
9463 # The cast to long int works around a bug in the HP C Compiler
9464 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9465 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9466 # This bug is HP SR number 8606223364.
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
9468 $as_echo_n "checking size of long long... " >&6; }
9469 if ${ac_cv_sizeof_long_long+:} false; then :
9470 $as_echo_n "(cached) " >&6
9472 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
9475 if test "$ac_cv_type_long_long" = yes; then
9476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9478 as_fn_error 77 "cannot compute sizeof (long long)
9479 See \`config.log' for more details" "$LINENO" 5; }
9481 ac_cv_sizeof_long_long=0
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
9487 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9491 cat >>confdefs.h <<_ACEOF
9492 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9499 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
9501 # We have a typedef for s_char. Might as well believe it...
9504 # We have signed chars, can't say 'signed char', no s_char typedef.
9506 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
9510 # We have signed chars, can say 'signed char', no s_char typedef.
9512 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
9516 # We have unsigned chars, can't say 'signed char', no s_char typedef.
9517 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
9520 # We have unsigned chars, can say 'signed char', no s_char typedef.
9522 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9528 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9529 if ${ac_cv_type_uid_t+:} false; then :
9530 $as_echo_n "(cached) " >&6
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534 #include <sys/types.h>
9537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9538 $EGREP "uid_t" >/dev/null 2>&1; then :
9539 ac_cv_type_uid_t=yes
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9547 $as_echo "$ac_cv_type_uid_t" >&6; }
9548 if test $ac_cv_type_uid_t = no; then
9550 $as_echo "#define uid_t int" >>confdefs.h
9553 $as_echo "#define gid_t int" >>confdefs.h
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
9563 $as_echo_n "checking if we're including debugging code... " >&6; }
9564 # Check whether --enable-debugging was given.
9565 if test "${enable_debugging+set}" = set; then :
9566 enableval=$enable_debugging; ntp_ok=$enableval
9575 $as_echo "#define DEBUG 1" >>confdefs.h
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
9579 $as_echo "$ntp_ok" >&6; }
9583 # check if we can compile with pthreads
9584 for ac_header in semaphore.h
9586 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
9587 if test "x$ac_cv_header_semaphore_h" = xyes; then :
9588 cat >>confdefs.h <<_ACEOF
9589 #define HAVE_SEMAPHORE_H 1
9596 for ac_func in socketpair
9598 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
9599 if test "x$ac_cv_func_socketpair" = xyes; then :
9600 cat >>confdefs.h <<_ACEOF
9601 #define HAVE_SOCKETPAIR 1
9607 # Check whether --enable-thread-support was given.
9608 if test "${enable_thread_support+set}" = set; then :
9609 enableval=$enable_thread_support;
9611 enable_thread_support=yes
9616 case "$enable_thread_support" in
9619 ol_found_pthreads=no
9624 ac_cpp='$CPP $CPPFLAGS'
9625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9629 # OpenLDAP --with-threads
9631 # Check whether --with-threads was given.
9632 if test "${with_threads+set}" = set; then :
9633 withval=$with_threads;
9635 for ol_val in auto nt posix mach pth lwp yes no manual ; do
9636 if test "$withval" = "$ol_val" ; then
9640 if test "$ol_arg" = "invalid" ; then
9641 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
9643 ol_with_threads="$ol_arg"
9646 ol_with_threads="auto"
9648 # end --with-threads
9651 case "$ol_with_threads$host" in
9652 auto*-*-solaris2.[0-6])
9660 *-*-aix*) if test -z "$CC" ; then
9661 case "$ol_with_threads" in
9662 auto | yes | posix) ol_aix_threads=yes ;;
9668 if test $ol_aix_threads = yes ; then
9669 if test -z "${CC}" ; then
9670 for ac_prog in cc_r xlc_r cc
9672 # Extract the first word of "$ac_prog", so it can be a program name with args.
9673 set dummy $ac_prog; ac_word=$2
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9675 $as_echo_n "checking for $ac_word... " >&6; }
9676 if ${ac_cv_prog_CC+:} false; then :
9677 $as_echo_n "(cached) " >&6
9679 if test -n "$CC"; then
9680 ac_cv_prog_CC="$CC" # Let the user override the test.
9682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686 test -z "$as_dir" && as_dir=.
9687 for ac_exec_ext in '' $ac_executable_extensions; do
9688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9689 ac_cv_prog_CC="$ac_prog"
9690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9700 if test -n "$CC"; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9702 $as_echo "$CC" >&6; }
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9705 $as_echo "no" >&6; }
9709 test -n "$CC" && break
9713 if test "$CC" = cc ; then
9714 if test $ol_with_threads != auto ; then
9715 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
9718 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
9724 case ${CC} in cc_r | xlc_r)
9725 ol_with_threads=posix
9726 ol_cv_pthread_create=yes
9732 # OpenLDAP --with-yielding_select
9734 # Check whether --with-yielding_select was given.
9735 if test "${with_yielding_select+set}" = set; then :
9736 withval=$with_yielding_select;
9738 for ol_val in auto yes no manual ; do
9739 if test "$withval" = "$ol_val" ; then
9743 if test "$ol_arg" = "invalid" ; then
9744 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
9746 ol_with_yielding_select="$ol_arg"
9749 ol_with_yielding_select="auto"
9751 # end --with-yielding_select
9754 case $ol_with_threads in auto | yes | nt)
9757 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
9758 if test "x$ac_cv_func__beginthread" = xyes; then :
9763 if test $ac_cv_func__beginthread = yes ; then
9765 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
9767 ol_cv_nt_threads=yes
9771 if test "$ol_cv_nt_threads" = yes ; then
9773 ol_with_threads=found
9774 ol_with_yielding_select=yes
9777 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
9780 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
9784 if test $ol_with_threads = nt ; then
9785 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
9790 case $ol_with_threads in auto | yes | posix)
9792 for ac_header in pthread.h
9794 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9795 if test "x$ac_cv_header_pthread_h" = xyes; then :
9796 cat >>confdefs.h <<_ACEOF
9797 #define HAVE_PTHREAD_H 1
9805 if test $ac_cv_header_pthread_h = yes ; then
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
9807 $as_echo_n "checking POSIX thread version... " >&6; }
9808 if ${ol_cv_pthread_version+:} false; then :
9809 $as_echo_n "(cached) " >&6
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9815 # include <pthread.h>
9821 int i = PTHREAD_CREATE_JOINABLE;
9827 if ac_fn_c_try_compile "$LINENO"; then :
9829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830 /* end confdefs.h. */
9831 #include <pthread.h>
9834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9835 $EGREP "pthread_detach" >/dev/null 2>&1; then :
9836 ol_cv_pthread_version=10
9838 ol_cv_pthread_version=8
9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h. */
9847 # include <pthread.h>
9848 # ifdef PTHREAD_CREATE_UNDETACHED
9853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9854 $EGREP "draft7" >/dev/null 2>&1; then :
9855 ol_cv_pthread_version=7
9858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859 /* end confdefs.h. */
9860 #include <pthread.h>
9863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9864 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
9865 ol_cv_pthread_version=6
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9871 # include <pthread.h>
9872 #ifdef PTHREAD_MUTEX_INITIALIZER
9877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9878 $EGREP "draft5" >/dev/null 2>&1; then :
9879 ol_cv_pthread_version=5
9881 ol_cv_pthread_version=4
9892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
9896 $as_echo "$ol_cv_pthread_version" >&6; }
9899 if test $ol_cv_pthread_version != 0 ; then
9901 cat >>confdefs.h <<_ACEOF
9902 #define HAVE_PTHREADS $ol_cv_pthread_version
9906 as_fn_error $? "unknown pthread version" "$LINENO" 5
9909 # consider threads found
9910 ol_with_threads=found
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
9914 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
9915 if ${ol_cv_header_linux_threads+:} false; then :
9916 $as_echo_n "(cached) " >&6
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h. */
9920 #include <pthread.h>
9922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9923 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
9924 ol_cv_header_linux_threads=yes
9926 ol_cv_header_linux_threads=no
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
9933 $as_echo "$ol_cv_header_linux_threads" >&6; }
9934 if test $ol_cv_header_linux_threads = yes; then
9936 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
9942 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
9943 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
9944 $as_echo_n "(cached) " >&6
9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9948 #include <pthread.h>
9949 #ifdef _POSIX_THREAD_IS_GNU_PTH
9954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9955 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
9956 ol_cv_header_gnu_pth_pthread_h=yes
9958 ol_cv_header_gnu_pth_pthread_h=no
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
9965 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
9968 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
9969 for ac_header in sched.h
9971 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
9972 if test "x$ac_cv_header_sched_h" = xyes; then :
9973 cat >>confdefs.h <<_ACEOF
9974 #define HAVE_SCHED_H 1
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
9985 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
9986 if ${ol_cv_pthread_create+:} false; then :
9987 $as_echo_n "(cached) " >&6
9990 if test "$cross_compiling" = yes; then :
9991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9992 /* end confdefs.h. */
9994 /* pthread test headers */
9995 #include <pthread.h>
9996 #if HAVE_PTHREADS < 7
10000 #define NULL (void*)0
10003 static void *task(p)
10006 return (void *) (p == NULL);
10013 /* pthread test function */
10014 #ifndef PTHREAD_CREATE_DETACHED
10015 #define PTHREAD_CREATE_DETACHED 1
10019 int detach = PTHREAD_CREATE_DETACHED;
10021 #if HAVE_PTHREADS > 4
10022 /* Final pthreads */
10023 pthread_attr_t attr;
10025 status = pthread_attr_init(&attr);
10026 if( status ) return status;
10028 #if HAVE_PTHREADS < 7
10029 status = pthread_attr_setdetachstate(&attr, &detach);
10030 if( status < 0 ) status = errno;
10032 status = pthread_attr_setdetachstate(&attr, detach);
10034 if( status ) return status;
10035 status = pthread_create( &t, &attr, task, NULL );
10036 #if HAVE_PTHREADS < 7
10037 if( status < 0 ) status = errno;
10039 if( status ) return status;
10041 /* Draft 4 pthreads */
10042 status = pthread_create( &t, pthread_attr_default, task, NULL );
10043 if( status ) return errno;
10045 /* give thread a chance to complete */
10046 /* it should remain joinable and hence detachable */
10049 status = pthread_detach( &t );
10050 if( status ) return errno;
10053 #ifdef HAVE_LINUX_THREADS
10054 pthread_kill_other_threads_np();
10063 if ac_fn_c_try_link "$LINENO"; then :
10064 ol_cv_pthread_create=yes
10066 ol_cv_pthread_create=no
10068 rm -f core conftest.err conftest.$ac_objext \
10069 conftest$ac_exeext conftest.$ac_ext
10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072 /* end confdefs.h. */
10075 /* pthread test headers */
10076 #include <pthread.h>
10077 #if HAVE_PTHREADS < 7
10081 #define NULL (void*)0
10084 static void *task(p)
10087 return (void *) (p == NULL);
10091 int main(argc, argv)
10096 /* pthread test function */
10097 #ifndef PTHREAD_CREATE_DETACHED
10098 #define PTHREAD_CREATE_DETACHED 1
10102 int detach = PTHREAD_CREATE_DETACHED;
10104 #if HAVE_PTHREADS > 4
10105 /* Final pthreads */
10106 pthread_attr_t attr;
10108 status = pthread_attr_init(&attr);
10109 if( status ) return status;
10111 #if HAVE_PTHREADS < 7
10112 status = pthread_attr_setdetachstate(&attr, &detach);
10113 if( status < 0 ) status = errno;
10115 status = pthread_attr_setdetachstate(&attr, detach);
10117 if( status ) return status;
10118 status = pthread_create( &t, &attr, task, NULL );
10119 #if HAVE_PTHREADS < 7
10120 if( status < 0 ) status = errno;
10122 if( status ) return status;
10124 /* Draft 4 pthreads */
10125 status = pthread_create( &t, pthread_attr_default, task, NULL );
10126 if( status ) return errno;
10128 /* give thread a chance to complete */
10129 /* it should remain joinable and hence detachable */
10132 status = pthread_detach( &t );
10133 if( status ) return errno;
10136 #ifdef HAVE_LINUX_THREADS
10137 pthread_kill_other_threads_np();
10145 if ac_fn_c_try_run "$LINENO"; then :
10146 ol_cv_pthread_create=yes
10148 ol_cv_pthread_create=no
10150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10151 conftest.$ac_objext conftest.beam conftest.$ac_ext
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
10156 $as_echo "$ol_cv_pthread_create" >&6; }
10158 if test $ol_cv_pthread_create != no ; then
10159 ol_link_threads=posix
10160 ol_link_pthreads=""
10163 # Pthread try link: -kthread (ol_cv_pthread_kthread)
10164 if test "$ol_link_threads" = no ; then
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
10167 $as_echo_n "checking for pthread link with -kthread... " >&6; }
10168 if ${ol_cv_pthread_kthread+:} false; then :
10169 $as_echo_n "(cached) " >&6
10174 LIBS="-kthread $LIBS"
10176 if test "$cross_compiling" = yes; then :
10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10180 /* pthread test headers */
10181 #include <pthread.h>
10182 #if HAVE_PTHREADS < 7
10186 #define NULL (void*)0
10189 static void *task(p)
10192 return (void *) (p == NULL);
10199 /* pthread test function */
10200 #ifndef PTHREAD_CREATE_DETACHED
10201 #define PTHREAD_CREATE_DETACHED 1
10205 int detach = PTHREAD_CREATE_DETACHED;
10207 #if HAVE_PTHREADS > 4
10208 /* Final pthreads */
10209 pthread_attr_t attr;
10211 status = pthread_attr_init(&attr);
10212 if( status ) return status;
10214 #if HAVE_PTHREADS < 7
10215 status = pthread_attr_setdetachstate(&attr, &detach);
10216 if( status < 0 ) status = errno;
10218 status = pthread_attr_setdetachstate(&attr, detach);
10220 if( status ) return status;
10221 status = pthread_create( &t, &attr, task, NULL );
10222 #if HAVE_PTHREADS < 7
10223 if( status < 0 ) status = errno;
10225 if( status ) return status;
10227 /* Draft 4 pthreads */
10228 status = pthread_create( &t, pthread_attr_default, task, NULL );
10229 if( status ) return errno;
10231 /* give thread a chance to complete */
10232 /* it should remain joinable and hence detachable */
10235 status = pthread_detach( &t );
10236 if( status ) return errno;
10239 #ifdef HAVE_LINUX_THREADS
10240 pthread_kill_other_threads_np();
10249 if ac_fn_c_try_link "$LINENO"; then :
10250 ol_cv_pthread_kthread=yes
10252 ol_cv_pthread_kthread=no
10254 rm -f core conftest.err conftest.$ac_objext \
10255 conftest$ac_exeext conftest.$ac_ext
10257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h. */
10261 /* pthread test headers */
10262 #include <pthread.h>
10263 #if HAVE_PTHREADS < 7
10267 #define NULL (void*)0
10270 static void *task(p)
10273 return (void *) (p == NULL);
10277 int main(argc, argv)
10282 /* pthread test function */
10283 #ifndef PTHREAD_CREATE_DETACHED
10284 #define PTHREAD_CREATE_DETACHED 1
10288 int detach = PTHREAD_CREATE_DETACHED;
10290 #if HAVE_PTHREADS > 4
10291 /* Final pthreads */
10292 pthread_attr_t attr;
10294 status = pthread_attr_init(&attr);
10295 if( status ) return status;
10297 #if HAVE_PTHREADS < 7
10298 status = pthread_attr_setdetachstate(&attr, &detach);
10299 if( status < 0 ) status = errno;
10301 status = pthread_attr_setdetachstate(&attr, detach);
10303 if( status ) return status;
10304 status = pthread_create( &t, &attr, task, NULL );
10305 #if HAVE_PTHREADS < 7
10306 if( status < 0 ) status = errno;
10308 if( status ) return status;
10310 /* Draft 4 pthreads */
10311 status = pthread_create( &t, pthread_attr_default, task, NULL );
10312 if( status ) return errno;
10314 /* give thread a chance to complete */
10315 /* it should remain joinable and hence detachable */
10318 status = pthread_detach( &t );
10319 if( status ) return errno;
10322 #ifdef HAVE_LINUX_THREADS
10323 pthread_kill_other_threads_np();
10331 if ac_fn_c_try_run "$LINENO"; then :
10332 ol_cv_pthread_kthread=yes
10334 ol_cv_pthread_kthread=no
10336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10337 conftest.$ac_objext conftest.beam conftest.$ac_ext
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
10346 $as_echo "$ol_cv_pthread_kthread" >&6; }
10348 if test $ol_cv_pthread_kthread = yes ; then
10349 ol_link_pthreads="-kthread"
10350 ol_link_threads=posix
10354 # Pthread try link: -pthread (ol_cv_pthread_pthread)
10355 if test "$ol_link_threads" = no ; then
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
10358 $as_echo_n "checking for pthread link with -pthread... " >&6; }
10359 if ${ol_cv_pthread_pthread+:} false; then :
10360 $as_echo_n "(cached) " >&6
10365 LIBS="-pthread $LIBS"
10367 if test "$cross_compiling" = yes; then :
10368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10369 /* end confdefs.h. */
10371 /* pthread test headers */
10372 #include <pthread.h>
10373 #if HAVE_PTHREADS < 7
10377 #define NULL (void*)0
10380 static void *task(p)
10383 return (void *) (p == NULL);
10390 /* pthread test function */
10391 #ifndef PTHREAD_CREATE_DETACHED
10392 #define PTHREAD_CREATE_DETACHED 1
10396 int detach = PTHREAD_CREATE_DETACHED;
10398 #if HAVE_PTHREADS > 4
10399 /* Final pthreads */
10400 pthread_attr_t attr;
10402 status = pthread_attr_init(&attr);
10403 if( status ) return status;
10405 #if HAVE_PTHREADS < 7
10406 status = pthread_attr_setdetachstate(&attr, &detach);
10407 if( status < 0 ) status = errno;
10409 status = pthread_attr_setdetachstate(&attr, detach);
10411 if( status ) return status;
10412 status = pthread_create( &t, &attr, task, NULL );
10413 #if HAVE_PTHREADS < 7
10414 if( status < 0 ) status = errno;
10416 if( status ) return status;
10418 /* Draft 4 pthreads */
10419 status = pthread_create( &t, pthread_attr_default, task, NULL );
10420 if( status ) return errno;
10422 /* give thread a chance to complete */
10423 /* it should remain joinable and hence detachable */
10426 status = pthread_detach( &t );
10427 if( status ) return errno;
10430 #ifdef HAVE_LINUX_THREADS
10431 pthread_kill_other_threads_np();
10440 if ac_fn_c_try_link "$LINENO"; then :
10441 ol_cv_pthread_pthread=yes
10443 ol_cv_pthread_pthread=no
10445 rm -f core conftest.err conftest.$ac_objext \
10446 conftest$ac_exeext conftest.$ac_ext
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10452 /* pthread test headers */
10453 #include <pthread.h>
10454 #if HAVE_PTHREADS < 7
10458 #define NULL (void*)0
10461 static void *task(p)
10464 return (void *) (p == NULL);
10468 int main(argc, argv)
10473 /* pthread test function */
10474 #ifndef PTHREAD_CREATE_DETACHED
10475 #define PTHREAD_CREATE_DETACHED 1
10479 int detach = PTHREAD_CREATE_DETACHED;
10481 #if HAVE_PTHREADS > 4
10482 /* Final pthreads */
10483 pthread_attr_t attr;
10485 status = pthread_attr_init(&attr);
10486 if( status ) return status;
10488 #if HAVE_PTHREADS < 7
10489 status = pthread_attr_setdetachstate(&attr, &detach);
10490 if( status < 0 ) status = errno;
10492 status = pthread_attr_setdetachstate(&attr, detach);
10494 if( status ) return status;
10495 status = pthread_create( &t, &attr, task, NULL );
10496 #if HAVE_PTHREADS < 7
10497 if( status < 0 ) status = errno;
10499 if( status ) return status;
10501 /* Draft 4 pthreads */
10502 status = pthread_create( &t, pthread_attr_default, task, NULL );
10503 if( status ) return errno;
10505 /* give thread a chance to complete */
10506 /* it should remain joinable and hence detachable */
10509 status = pthread_detach( &t );
10510 if( status ) return errno;
10513 #ifdef HAVE_LINUX_THREADS
10514 pthread_kill_other_threads_np();
10522 if ac_fn_c_try_run "$LINENO"; then :
10523 ol_cv_pthread_pthread=yes
10525 ol_cv_pthread_pthread=no
10527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10528 conftest.$ac_objext conftest.beam conftest.$ac_ext
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
10537 $as_echo "$ol_cv_pthread_pthread" >&6; }
10539 if test $ol_cv_pthread_pthread = yes ; then
10540 ol_link_pthreads="-pthread"
10541 ol_link_threads=posix
10545 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
10546 if test "$ol_link_threads" = no ; then
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
10549 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
10550 if ${ol_cv_pthread_pthreads+:} false; then :
10551 $as_echo_n "(cached) " >&6
10556 LIBS="-pthreads $LIBS"
10558 if test "$cross_compiling" = yes; then :
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10562 /* pthread test headers */
10563 #include <pthread.h>
10564 #if HAVE_PTHREADS < 7
10568 #define NULL (void*)0
10571 static void *task(p)
10574 return (void *) (p == NULL);
10581 /* pthread test function */
10582 #ifndef PTHREAD_CREATE_DETACHED
10583 #define PTHREAD_CREATE_DETACHED 1
10587 int detach = PTHREAD_CREATE_DETACHED;
10589 #if HAVE_PTHREADS > 4
10590 /* Final pthreads */
10591 pthread_attr_t attr;
10593 status = pthread_attr_init(&attr);
10594 if( status ) return status;
10596 #if HAVE_PTHREADS < 7
10597 status = pthread_attr_setdetachstate(&attr, &detach);
10598 if( status < 0 ) status = errno;
10600 status = pthread_attr_setdetachstate(&attr, detach);
10602 if( status ) return status;
10603 status = pthread_create( &t, &attr, task, NULL );
10604 #if HAVE_PTHREADS < 7
10605 if( status < 0 ) status = errno;
10607 if( status ) return status;
10609 /* Draft 4 pthreads */
10610 status = pthread_create( &t, pthread_attr_default, task, NULL );
10611 if( status ) return errno;
10613 /* give thread a chance to complete */
10614 /* it should remain joinable and hence detachable */
10617 status = pthread_detach( &t );
10618 if( status ) return errno;
10621 #ifdef HAVE_LINUX_THREADS
10622 pthread_kill_other_threads_np();
10631 if ac_fn_c_try_link "$LINENO"; then :
10632 ol_cv_pthread_pthreads=yes
10634 ol_cv_pthread_pthreads=no
10636 rm -f core conftest.err conftest.$ac_objext \
10637 conftest$ac_exeext conftest.$ac_ext
10639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10640 /* end confdefs.h. */
10643 /* pthread test headers */
10644 #include <pthread.h>
10645 #if HAVE_PTHREADS < 7
10649 #define NULL (void*)0
10652 static void *task(p)
10655 return (void *) (p == NULL);
10659 int main(argc, argv)
10664 /* pthread test function */
10665 #ifndef PTHREAD_CREATE_DETACHED
10666 #define PTHREAD_CREATE_DETACHED 1
10670 int detach = PTHREAD_CREATE_DETACHED;
10672 #if HAVE_PTHREADS > 4
10673 /* Final pthreads */
10674 pthread_attr_t attr;
10676 status = pthread_attr_init(&attr);
10677 if( status ) return status;
10679 #if HAVE_PTHREADS < 7
10680 status = pthread_attr_setdetachstate(&attr, &detach);
10681 if( status < 0 ) status = errno;
10683 status = pthread_attr_setdetachstate(&attr, detach);
10685 if( status ) return status;
10686 status = pthread_create( &t, &attr, task, NULL );
10687 #if HAVE_PTHREADS < 7
10688 if( status < 0 ) status = errno;
10690 if( status ) return status;
10692 /* Draft 4 pthreads */
10693 status = pthread_create( &t, pthread_attr_default, task, NULL );
10694 if( status ) return errno;
10696 /* give thread a chance to complete */
10697 /* it should remain joinable and hence detachable */
10700 status = pthread_detach( &t );
10701 if( status ) return errno;
10704 #ifdef HAVE_LINUX_THREADS
10705 pthread_kill_other_threads_np();
10713 if ac_fn_c_try_run "$LINENO"; then :
10714 ol_cv_pthread_pthreads=yes
10716 ol_cv_pthread_pthreads=no
10718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10719 conftest.$ac_objext conftest.beam conftest.$ac_ext
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
10728 $as_echo "$ol_cv_pthread_pthreads" >&6; }
10730 if test $ol_cv_pthread_pthreads = yes ; then
10731 ol_link_pthreads="-pthreads"
10732 ol_link_threads=posix
10736 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
10737 if test "$ol_link_threads" = no ; then
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
10740 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
10741 if ${ol_cv_pthread_mthreads+:} false; then :
10742 $as_echo_n "(cached) " >&6
10747 LIBS="-mthreads $LIBS"
10749 if test "$cross_compiling" = yes; then :
10750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h. */
10753 /* pthread test headers */
10754 #include <pthread.h>
10755 #if HAVE_PTHREADS < 7
10759 #define NULL (void*)0
10762 static void *task(p)
10765 return (void *) (p == NULL);
10772 /* pthread test function */
10773 #ifndef PTHREAD_CREATE_DETACHED
10774 #define PTHREAD_CREATE_DETACHED 1
10778 int detach = PTHREAD_CREATE_DETACHED;
10780 #if HAVE_PTHREADS > 4
10781 /* Final pthreads */
10782 pthread_attr_t attr;
10784 status = pthread_attr_init(&attr);
10785 if( status ) return status;
10787 #if HAVE_PTHREADS < 7
10788 status = pthread_attr_setdetachstate(&attr, &detach);
10789 if( status < 0 ) status = errno;
10791 status = pthread_attr_setdetachstate(&attr, detach);
10793 if( status ) return status;
10794 status = pthread_create( &t, &attr, task, NULL );
10795 #if HAVE_PTHREADS < 7
10796 if( status < 0 ) status = errno;
10798 if( status ) return status;
10800 /* Draft 4 pthreads */
10801 status = pthread_create( &t, pthread_attr_default, task, NULL );
10802 if( status ) return errno;
10804 /* give thread a chance to complete */
10805 /* it should remain joinable and hence detachable */
10808 status = pthread_detach( &t );
10809 if( status ) return errno;
10812 #ifdef HAVE_LINUX_THREADS
10813 pthread_kill_other_threads_np();
10822 if ac_fn_c_try_link "$LINENO"; then :
10823 ol_cv_pthread_mthreads=yes
10825 ol_cv_pthread_mthreads=no
10827 rm -f core conftest.err conftest.$ac_objext \
10828 conftest$ac_exeext conftest.$ac_ext
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10834 /* pthread test headers */
10835 #include <pthread.h>
10836 #if HAVE_PTHREADS < 7
10840 #define NULL (void*)0
10843 static void *task(p)
10846 return (void *) (p == NULL);
10850 int main(argc, argv)
10855 /* pthread test function */
10856 #ifndef PTHREAD_CREATE_DETACHED
10857 #define PTHREAD_CREATE_DETACHED 1
10861 int detach = PTHREAD_CREATE_DETACHED;
10863 #if HAVE_PTHREADS > 4
10864 /* Final pthreads */
10865 pthread_attr_t attr;
10867 status = pthread_attr_init(&attr);
10868 if( status ) return status;
10870 #if HAVE_PTHREADS < 7
10871 status = pthread_attr_setdetachstate(&attr, &detach);
10872 if( status < 0 ) status = errno;
10874 status = pthread_attr_setdetachstate(&attr, detach);
10876 if( status ) return status;
10877 status = pthread_create( &t, &attr, task, NULL );
10878 #if HAVE_PTHREADS < 7
10879 if( status < 0 ) status = errno;
10881 if( status ) return status;
10883 /* Draft 4 pthreads */
10884 status = pthread_create( &t, pthread_attr_default, task, NULL );
10885 if( status ) return errno;
10887 /* give thread a chance to complete */
10888 /* it should remain joinable and hence detachable */
10891 status = pthread_detach( &t );
10892 if( status ) return errno;
10895 #ifdef HAVE_LINUX_THREADS
10896 pthread_kill_other_threads_np();
10904 if ac_fn_c_try_run "$LINENO"; then :
10905 ol_cv_pthread_mthreads=yes
10907 ol_cv_pthread_mthreads=no
10909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10910 conftest.$ac_objext conftest.beam conftest.$ac_ext
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
10919 $as_echo "$ol_cv_pthread_mthreads" >&6; }
10921 if test $ol_cv_pthread_mthreads = yes ; then
10922 ol_link_pthreads="-mthreads"
10923 ol_link_threads=posix
10927 # Pthread try link: -thread (ol_cv_pthread_thread)
10928 if test "$ol_link_threads" = no ; then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
10931 $as_echo_n "checking for pthread link with -thread... " >&6; }
10932 if ${ol_cv_pthread_thread+:} false; then :
10933 $as_echo_n "(cached) " >&6
10938 LIBS="-thread $LIBS"
10940 if test "$cross_compiling" = yes; then :
10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h. */
10944 /* pthread test headers */
10945 #include <pthread.h>
10946 #if HAVE_PTHREADS < 7
10950 #define NULL (void*)0
10953 static void *task(p)
10956 return (void *) (p == NULL);
10963 /* pthread test function */
10964 #ifndef PTHREAD_CREATE_DETACHED
10965 #define PTHREAD_CREATE_DETACHED 1
10969 int detach = PTHREAD_CREATE_DETACHED;
10971 #if HAVE_PTHREADS > 4
10972 /* Final pthreads */
10973 pthread_attr_t attr;
10975 status = pthread_attr_init(&attr);
10976 if( status ) return status;
10978 #if HAVE_PTHREADS < 7
10979 status = pthread_attr_setdetachstate(&attr, &detach);
10980 if( status < 0 ) status = errno;
10982 status = pthread_attr_setdetachstate(&attr, detach);
10984 if( status ) return status;
10985 status = pthread_create( &t, &attr, task, NULL );
10986 #if HAVE_PTHREADS < 7
10987 if( status < 0 ) status = errno;
10989 if( status ) return status;
10991 /* Draft 4 pthreads */
10992 status = pthread_create( &t, pthread_attr_default, task, NULL );
10993 if( status ) return errno;
10995 /* give thread a chance to complete */
10996 /* it should remain joinable and hence detachable */
10999 status = pthread_detach( &t );
11000 if( status ) return errno;
11003 #ifdef HAVE_LINUX_THREADS
11004 pthread_kill_other_threads_np();
11013 if ac_fn_c_try_link "$LINENO"; then :
11014 ol_cv_pthread_thread=yes
11016 ol_cv_pthread_thread=no
11018 rm -f core conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
11021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h. */
11025 /* pthread test headers */
11026 #include <pthread.h>
11027 #if HAVE_PTHREADS < 7
11031 #define NULL (void*)0
11034 static void *task(p)
11037 return (void *) (p == NULL);
11041 int main(argc, argv)
11046 /* pthread test function */
11047 #ifndef PTHREAD_CREATE_DETACHED
11048 #define PTHREAD_CREATE_DETACHED 1
11052 int detach = PTHREAD_CREATE_DETACHED;
11054 #if HAVE_PTHREADS > 4
11055 /* Final pthreads */
11056 pthread_attr_t attr;
11058 status = pthread_attr_init(&attr);
11059 if( status ) return status;
11061 #if HAVE_PTHREADS < 7
11062 status = pthread_attr_setdetachstate(&attr, &detach);
11063 if( status < 0 ) status = errno;
11065 status = pthread_attr_setdetachstate(&attr, detach);
11067 if( status ) return status;
11068 status = pthread_create( &t, &attr, task, NULL );
11069 #if HAVE_PTHREADS < 7
11070 if( status < 0 ) status = errno;
11072 if( status ) return status;
11074 /* Draft 4 pthreads */
11075 status = pthread_create( &t, pthread_attr_default, task, NULL );
11076 if( status ) return errno;
11078 /* give thread a chance to complete */
11079 /* it should remain joinable and hence detachable */
11082 status = pthread_detach( &t );
11083 if( status ) return errno;
11086 #ifdef HAVE_LINUX_THREADS
11087 pthread_kill_other_threads_np();
11095 if ac_fn_c_try_run "$LINENO"; then :
11096 ol_cv_pthread_thread=yes
11098 ol_cv_pthread_thread=no
11100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11101 conftest.$ac_objext conftest.beam conftest.$ac_ext
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
11110 $as_echo "$ol_cv_pthread_thread" >&6; }
11112 if test $ol_cv_pthread_thread = yes ; then
11113 ol_link_pthreads="-thread"
11114 ol_link_threads=posix
11119 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
11120 if test "$ol_link_threads" = no ; then
11121 # try -lpthread -lmach -lexc -lc_r
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
11123 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
11124 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
11125 $as_echo_n "(cached) " >&6
11130 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
11132 if test "$cross_compiling" = yes; then :
11133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11134 /* end confdefs.h. */
11136 /* pthread test headers */
11137 #include <pthread.h>
11138 #if HAVE_PTHREADS < 7
11142 #define NULL (void*)0
11145 static void *task(p)
11148 return (void *) (p == NULL);
11155 /* pthread test function */
11156 #ifndef PTHREAD_CREATE_DETACHED
11157 #define PTHREAD_CREATE_DETACHED 1
11161 int detach = PTHREAD_CREATE_DETACHED;
11163 #if HAVE_PTHREADS > 4
11164 /* Final pthreads */
11165 pthread_attr_t attr;
11167 status = pthread_attr_init(&attr);
11168 if( status ) return status;
11170 #if HAVE_PTHREADS < 7
11171 status = pthread_attr_setdetachstate(&attr, &detach);
11172 if( status < 0 ) status = errno;
11174 status = pthread_attr_setdetachstate(&attr, detach);
11176 if( status ) return status;
11177 status = pthread_create( &t, &attr, task, NULL );
11178 #if HAVE_PTHREADS < 7
11179 if( status < 0 ) status = errno;
11181 if( status ) return status;
11183 /* Draft 4 pthreads */
11184 status = pthread_create( &t, pthread_attr_default, task, NULL );
11185 if( status ) return errno;
11187 /* give thread a chance to complete */
11188 /* it should remain joinable and hence detachable */
11191 status = pthread_detach( &t );
11192 if( status ) return errno;
11195 #ifdef HAVE_LINUX_THREADS
11196 pthread_kill_other_threads_np();
11205 if ac_fn_c_try_link "$LINENO"; then :
11206 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
11208 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
11210 rm -f core conftest.err conftest.$ac_objext \
11211 conftest$ac_exeext conftest.$ac_ext
11213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h. */
11217 /* pthread test headers */
11218 #include <pthread.h>
11219 #if HAVE_PTHREADS < 7
11223 #define NULL (void*)0
11226 static void *task(p)
11229 return (void *) (p == NULL);
11233 int main(argc, argv)
11238 /* pthread test function */
11239 #ifndef PTHREAD_CREATE_DETACHED
11240 #define PTHREAD_CREATE_DETACHED 1
11244 int detach = PTHREAD_CREATE_DETACHED;
11246 #if HAVE_PTHREADS > 4
11247 /* Final pthreads */
11248 pthread_attr_t attr;
11250 status = pthread_attr_init(&attr);
11251 if( status ) return status;
11253 #if HAVE_PTHREADS < 7
11254 status = pthread_attr_setdetachstate(&attr, &detach);
11255 if( status < 0 ) status = errno;
11257 status = pthread_attr_setdetachstate(&attr, detach);
11259 if( status ) return status;
11260 status = pthread_create( &t, &attr, task, NULL );
11261 #if HAVE_PTHREADS < 7
11262 if( status < 0 ) status = errno;
11264 if( status ) return status;
11266 /* Draft 4 pthreads */
11267 status = pthread_create( &t, pthread_attr_default, task, NULL );
11268 if( status ) return errno;
11270 /* give thread a chance to complete */
11271 /* it should remain joinable and hence detachable */
11274 status = pthread_detach( &t );
11275 if( status ) return errno;
11278 #ifdef HAVE_LINUX_THREADS
11279 pthread_kill_other_threads_np();
11287 if ac_fn_c_try_run "$LINENO"; then :
11288 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
11290 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
11292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11293 conftest.$ac_objext conftest.beam conftest.$ac_ext
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
11302 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
11304 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
11305 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
11306 ol_link_threads=posix
11310 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
11311 if test "$ol_link_threads" = no ; then
11312 # try -lpthread -lmach -lexc
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
11314 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
11315 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
11316 $as_echo_n "(cached) " >&6
11321 LIBS="-lpthread -lmach -lexc $LIBS"
11323 if test "$cross_compiling" = yes; then :
11324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11325 /* end confdefs.h. */
11327 /* pthread test headers */
11328 #include <pthread.h>
11329 #if HAVE_PTHREADS < 7
11333 #define NULL (void*)0
11336 static void *task(p)
11339 return (void *) (p == NULL);
11346 /* pthread test function */
11347 #ifndef PTHREAD_CREATE_DETACHED
11348 #define PTHREAD_CREATE_DETACHED 1
11352 int detach = PTHREAD_CREATE_DETACHED;
11354 #if HAVE_PTHREADS > 4
11355 /* Final pthreads */
11356 pthread_attr_t attr;
11358 status = pthread_attr_init(&attr);
11359 if( status ) return status;
11361 #if HAVE_PTHREADS < 7
11362 status = pthread_attr_setdetachstate(&attr, &detach);
11363 if( status < 0 ) status = errno;
11365 status = pthread_attr_setdetachstate(&attr, detach);
11367 if( status ) return status;
11368 status = pthread_create( &t, &attr, task, NULL );
11369 #if HAVE_PTHREADS < 7
11370 if( status < 0 ) status = errno;
11372 if( status ) return status;
11374 /* Draft 4 pthreads */
11375 status = pthread_create( &t, pthread_attr_default, task, NULL );
11376 if( status ) return errno;
11378 /* give thread a chance to complete */
11379 /* it should remain joinable and hence detachable */
11382 status = pthread_detach( &t );
11383 if( status ) return errno;
11386 #ifdef HAVE_LINUX_THREADS
11387 pthread_kill_other_threads_np();
11396 if ac_fn_c_try_link "$LINENO"; then :
11397 ol_cv_pthread_lpthread_lmach_lexc=yes
11399 ol_cv_pthread_lpthread_lmach_lexc=no
11401 rm -f core conftest.err conftest.$ac_objext \
11402 conftest$ac_exeext conftest.$ac_ext
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11408 /* pthread test headers */
11409 #include <pthread.h>
11410 #if HAVE_PTHREADS < 7
11414 #define NULL (void*)0
11417 static void *task(p)
11420 return (void *) (p == NULL);
11424 int main(argc, argv)
11429 /* pthread test function */
11430 #ifndef PTHREAD_CREATE_DETACHED
11431 #define PTHREAD_CREATE_DETACHED 1
11435 int detach = PTHREAD_CREATE_DETACHED;
11437 #if HAVE_PTHREADS > 4
11438 /* Final pthreads */
11439 pthread_attr_t attr;
11441 status = pthread_attr_init(&attr);
11442 if( status ) return status;
11444 #if HAVE_PTHREADS < 7
11445 status = pthread_attr_setdetachstate(&attr, &detach);
11446 if( status < 0 ) status = errno;
11448 status = pthread_attr_setdetachstate(&attr, detach);
11450 if( status ) return status;
11451 status = pthread_create( &t, &attr, task, NULL );
11452 #if HAVE_PTHREADS < 7
11453 if( status < 0 ) status = errno;
11455 if( status ) return status;
11457 /* Draft 4 pthreads */
11458 status = pthread_create( &t, pthread_attr_default, task, NULL );
11459 if( status ) return errno;
11461 /* give thread a chance to complete */
11462 /* it should remain joinable and hence detachable */
11465 status = pthread_detach( &t );
11466 if( status ) return errno;
11469 #ifdef HAVE_LINUX_THREADS
11470 pthread_kill_other_threads_np();
11478 if ac_fn_c_try_run "$LINENO"; then :
11479 ol_cv_pthread_lpthread_lmach_lexc=yes
11481 ol_cv_pthread_lpthread_lmach_lexc=no
11483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11484 conftest.$ac_objext conftest.beam conftest.$ac_ext
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
11493 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
11495 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
11496 ol_link_pthreads="-lpthread -lmach -lexc"
11497 ol_link_threads=posix
11502 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
11503 if test "$ol_link_threads" = no ; then
11504 # try -lpthread -Wl,-woff,85
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
11506 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
11507 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
11508 $as_echo_n "(cached) " >&6
11513 LIBS="-lpthread -Wl,-woff,85 $LIBS"
11515 if test "$cross_compiling" = yes; then :
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11519 /* pthread test headers */
11520 #include <pthread.h>
11521 #if HAVE_PTHREADS < 7
11525 #define NULL (void*)0
11528 static void *task(p)
11531 return (void *) (p == NULL);
11538 /* pthread test function */
11539 #ifndef PTHREAD_CREATE_DETACHED
11540 #define PTHREAD_CREATE_DETACHED 1
11544 int detach = PTHREAD_CREATE_DETACHED;
11546 #if HAVE_PTHREADS > 4
11547 /* Final pthreads */
11548 pthread_attr_t attr;
11550 status = pthread_attr_init(&attr);
11551 if( status ) return status;
11553 #if HAVE_PTHREADS < 7
11554 status = pthread_attr_setdetachstate(&attr, &detach);
11555 if( status < 0 ) status = errno;
11557 status = pthread_attr_setdetachstate(&attr, detach);
11559 if( status ) return status;
11560 status = pthread_create( &t, &attr, task, NULL );
11561 #if HAVE_PTHREADS < 7
11562 if( status < 0 ) status = errno;
11564 if( status ) return status;
11566 /* Draft 4 pthreads */
11567 status = pthread_create( &t, pthread_attr_default, task, NULL );
11568 if( status ) return errno;
11570 /* give thread a chance to complete */
11571 /* it should remain joinable and hence detachable */
11574 status = pthread_detach( &t );
11575 if( status ) return errno;
11578 #ifdef HAVE_LINUX_THREADS
11579 pthread_kill_other_threads_np();
11588 if ac_fn_c_try_link "$LINENO"; then :
11589 ol_cv_pthread_lib_lpthread_woff=yes
11591 ol_cv_pthread_lib_lpthread_woff=no
11593 rm -f core conftest.err conftest.$ac_objext \
11594 conftest$ac_exeext conftest.$ac_ext
11596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597 /* end confdefs.h. */
11600 /* pthread test headers */
11601 #include <pthread.h>
11602 #if HAVE_PTHREADS < 7
11606 #define NULL (void*)0
11609 static void *task(p)
11612 return (void *) (p == NULL);
11616 int main(argc, argv)
11621 /* pthread test function */
11622 #ifndef PTHREAD_CREATE_DETACHED
11623 #define PTHREAD_CREATE_DETACHED 1
11627 int detach = PTHREAD_CREATE_DETACHED;
11629 #if HAVE_PTHREADS > 4
11630 /* Final pthreads */
11631 pthread_attr_t attr;
11633 status = pthread_attr_init(&attr);
11634 if( status ) return status;
11636 #if HAVE_PTHREADS < 7
11637 status = pthread_attr_setdetachstate(&attr, &detach);
11638 if( status < 0 ) status = errno;
11640 status = pthread_attr_setdetachstate(&attr, detach);
11642 if( status ) return status;
11643 status = pthread_create( &t, &attr, task, NULL );
11644 #if HAVE_PTHREADS < 7
11645 if( status < 0 ) status = errno;
11647 if( status ) return status;
11649 /* Draft 4 pthreads */
11650 status = pthread_create( &t, pthread_attr_default, task, NULL );
11651 if( status ) return errno;
11653 /* give thread a chance to complete */
11654 /* it should remain joinable and hence detachable */
11657 status = pthread_detach( &t );
11658 if( status ) return errno;
11661 #ifdef HAVE_LINUX_THREADS
11662 pthread_kill_other_threads_np();
11670 if ac_fn_c_try_run "$LINENO"; then :
11671 ol_cv_pthread_lib_lpthread_woff=yes
11673 ol_cv_pthread_lib_lpthread_woff=no
11675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11676 conftest.$ac_objext conftest.beam conftest.$ac_ext
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
11685 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
11687 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
11688 ol_link_pthreads="-lpthread -Wl,-woff,85"
11689 ol_link_threads=posix
11694 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
11695 if test "$ol_link_threads" = no ; then
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
11698 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
11699 if ${ol_cv_pthread_lpthread+:} false; then :
11700 $as_echo_n "(cached) " >&6
11705 LIBS="-lpthread $LIBS"
11707 if test "$cross_compiling" = yes; then :
11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h. */
11711 /* pthread test headers */
11712 #include <pthread.h>
11713 #if HAVE_PTHREADS < 7
11717 #define NULL (void*)0
11720 static void *task(p)
11723 return (void *) (p == NULL);
11730 /* pthread test function */
11731 #ifndef PTHREAD_CREATE_DETACHED
11732 #define PTHREAD_CREATE_DETACHED 1
11736 int detach = PTHREAD_CREATE_DETACHED;
11738 #if HAVE_PTHREADS > 4
11739 /* Final pthreads */
11740 pthread_attr_t attr;
11742 status = pthread_attr_init(&attr);
11743 if( status ) return status;
11745 #if HAVE_PTHREADS < 7
11746 status = pthread_attr_setdetachstate(&attr, &detach);
11747 if( status < 0 ) status = errno;
11749 status = pthread_attr_setdetachstate(&attr, detach);
11751 if( status ) return status;
11752 status = pthread_create( &t, &attr, task, NULL );
11753 #if HAVE_PTHREADS < 7
11754 if( status < 0 ) status = errno;
11756 if( status ) return status;
11758 /* Draft 4 pthreads */
11759 status = pthread_create( &t, pthread_attr_default, task, NULL );
11760 if( status ) return errno;
11762 /* give thread a chance to complete */
11763 /* it should remain joinable and hence detachable */
11766 status = pthread_detach( &t );
11767 if( status ) return errno;
11770 #ifdef HAVE_LINUX_THREADS
11771 pthread_kill_other_threads_np();
11780 if ac_fn_c_try_link "$LINENO"; then :
11781 ol_cv_pthread_lpthread=yes
11783 ol_cv_pthread_lpthread=no
11785 rm -f core conftest.err conftest.$ac_objext \
11786 conftest$ac_exeext conftest.$ac_ext
11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h. */
11792 /* pthread test headers */
11793 #include <pthread.h>
11794 #if HAVE_PTHREADS < 7
11798 #define NULL (void*)0
11801 static void *task(p)
11804 return (void *) (p == NULL);
11808 int main(argc, argv)
11813 /* pthread test function */
11814 #ifndef PTHREAD_CREATE_DETACHED
11815 #define PTHREAD_CREATE_DETACHED 1
11819 int detach = PTHREAD_CREATE_DETACHED;
11821 #if HAVE_PTHREADS > 4
11822 /* Final pthreads */
11823 pthread_attr_t attr;
11825 status = pthread_attr_init(&attr);
11826 if( status ) return status;
11828 #if HAVE_PTHREADS < 7
11829 status = pthread_attr_setdetachstate(&attr, &detach);
11830 if( status < 0 ) status = errno;
11832 status = pthread_attr_setdetachstate(&attr, detach);
11834 if( status ) return status;
11835 status = pthread_create( &t, &attr, task, NULL );
11836 #if HAVE_PTHREADS < 7
11837 if( status < 0 ) status = errno;
11839 if( status ) return status;
11841 /* Draft 4 pthreads */
11842 status = pthread_create( &t, pthread_attr_default, task, NULL );
11843 if( status ) return errno;
11845 /* give thread a chance to complete */
11846 /* it should remain joinable and hence detachable */
11849 status = pthread_detach( &t );
11850 if( status ) return errno;
11853 #ifdef HAVE_LINUX_THREADS
11854 pthread_kill_other_threads_np();
11862 if ac_fn_c_try_run "$LINENO"; then :
11863 ol_cv_pthread_lpthread=yes
11865 ol_cv_pthread_lpthread=no
11867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11868 conftest.$ac_objext conftest.beam conftest.$ac_ext
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
11877 $as_echo "$ol_cv_pthread_lpthread" >&6; }
11879 if test $ol_cv_pthread_lpthread = yes ; then
11880 ol_link_pthreads="-lpthread"
11881 ol_link_threads=posix
11885 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
11886 if test "$ol_link_threads" = no ; then
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
11889 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
11890 if ${ol_cv_pthread_lc_r+:} false; then :
11891 $as_echo_n "(cached) " >&6
11898 if test "$cross_compiling" = yes; then :
11899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11900 /* end confdefs.h. */
11902 /* pthread test headers */
11903 #include <pthread.h>
11904 #if HAVE_PTHREADS < 7
11908 #define NULL (void*)0
11911 static void *task(p)
11914 return (void *) (p == NULL);
11921 /* pthread test function */
11922 #ifndef PTHREAD_CREATE_DETACHED
11923 #define PTHREAD_CREATE_DETACHED 1
11927 int detach = PTHREAD_CREATE_DETACHED;
11929 #if HAVE_PTHREADS > 4
11930 /* Final pthreads */
11931 pthread_attr_t attr;
11933 status = pthread_attr_init(&attr);
11934 if( status ) return status;
11936 #if HAVE_PTHREADS < 7
11937 status = pthread_attr_setdetachstate(&attr, &detach);
11938 if( status < 0 ) status = errno;
11940 status = pthread_attr_setdetachstate(&attr, detach);
11942 if( status ) return status;
11943 status = pthread_create( &t, &attr, task, NULL );
11944 #if HAVE_PTHREADS < 7
11945 if( status < 0 ) status = errno;
11947 if( status ) return status;
11949 /* Draft 4 pthreads */
11950 status = pthread_create( &t, pthread_attr_default, task, NULL );
11951 if( status ) return errno;
11953 /* give thread a chance to complete */
11954 /* it should remain joinable and hence detachable */
11957 status = pthread_detach( &t );
11958 if( status ) return errno;
11961 #ifdef HAVE_LINUX_THREADS
11962 pthread_kill_other_threads_np();
11971 if ac_fn_c_try_link "$LINENO"; then :
11972 ol_cv_pthread_lc_r=yes
11974 ol_cv_pthread_lc_r=no
11976 rm -f core conftest.err conftest.$ac_objext \
11977 conftest$ac_exeext conftest.$ac_ext
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h. */
11983 /* pthread test headers */
11984 #include <pthread.h>
11985 #if HAVE_PTHREADS < 7
11989 #define NULL (void*)0
11992 static void *task(p)
11995 return (void *) (p == NULL);
11999 int main(argc, argv)
12004 /* pthread test function */
12005 #ifndef PTHREAD_CREATE_DETACHED
12006 #define PTHREAD_CREATE_DETACHED 1
12010 int detach = PTHREAD_CREATE_DETACHED;
12012 #if HAVE_PTHREADS > 4
12013 /* Final pthreads */
12014 pthread_attr_t attr;
12016 status = pthread_attr_init(&attr);
12017 if( status ) return status;
12019 #if HAVE_PTHREADS < 7
12020 status = pthread_attr_setdetachstate(&attr, &detach);
12021 if( status < 0 ) status = errno;
12023 status = pthread_attr_setdetachstate(&attr, detach);
12025 if( status ) return status;
12026 status = pthread_create( &t, &attr, task, NULL );
12027 #if HAVE_PTHREADS < 7
12028 if( status < 0 ) status = errno;
12030 if( status ) return status;
12032 /* Draft 4 pthreads */
12033 status = pthread_create( &t, pthread_attr_default, task, NULL );
12034 if( status ) return errno;
12036 /* give thread a chance to complete */
12037 /* it should remain joinable and hence detachable */
12040 status = pthread_detach( &t );
12041 if( status ) return errno;
12044 #ifdef HAVE_LINUX_THREADS
12045 pthread_kill_other_threads_np();
12053 if ac_fn_c_try_run "$LINENO"; then :
12054 ol_cv_pthread_lc_r=yes
12056 ol_cv_pthread_lc_r=no
12058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12059 conftest.$ac_objext conftest.beam conftest.$ac_ext
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
12068 $as_echo "$ol_cv_pthread_lc_r" >&6; }
12070 if test $ol_cv_pthread_lc_r = yes ; then
12071 ol_link_pthreads="-lc_r"
12072 ol_link_threads=posix
12077 # Pthread try link: -threads (ol_cv_pthread_threads)
12078 if test "$ol_link_threads" = no ; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
12081 $as_echo_n "checking for pthread link with -threads... " >&6; }
12082 if ${ol_cv_pthread_threads+:} false; then :
12083 $as_echo_n "(cached) " >&6
12088 LIBS="-threads $LIBS"
12090 if test "$cross_compiling" = yes; then :
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12094 /* pthread test headers */
12095 #include <pthread.h>
12096 #if HAVE_PTHREADS < 7
12100 #define NULL (void*)0
12103 static void *task(p)
12106 return (void *) (p == NULL);
12113 /* pthread test function */
12114 #ifndef PTHREAD_CREATE_DETACHED
12115 #define PTHREAD_CREATE_DETACHED 1
12119 int detach = PTHREAD_CREATE_DETACHED;
12121 #if HAVE_PTHREADS > 4
12122 /* Final pthreads */
12123 pthread_attr_t attr;
12125 status = pthread_attr_init(&attr);
12126 if( status ) return status;
12128 #if HAVE_PTHREADS < 7
12129 status = pthread_attr_setdetachstate(&attr, &detach);
12130 if( status < 0 ) status = errno;
12132 status = pthread_attr_setdetachstate(&attr, detach);
12134 if( status ) return status;
12135 status = pthread_create( &t, &attr, task, NULL );
12136 #if HAVE_PTHREADS < 7
12137 if( status < 0 ) status = errno;
12139 if( status ) return status;
12141 /* Draft 4 pthreads */
12142 status = pthread_create( &t, pthread_attr_default, task, NULL );
12143 if( status ) return errno;
12145 /* give thread a chance to complete */
12146 /* it should remain joinable and hence detachable */
12149 status = pthread_detach( &t );
12150 if( status ) return errno;
12153 #ifdef HAVE_LINUX_THREADS
12154 pthread_kill_other_threads_np();
12163 if ac_fn_c_try_link "$LINENO"; then :
12164 ol_cv_pthread_threads=yes
12166 ol_cv_pthread_threads=no
12168 rm -f core conftest.err conftest.$ac_objext \
12169 conftest$ac_exeext conftest.$ac_ext
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h. */
12175 /* pthread test headers */
12176 #include <pthread.h>
12177 #if HAVE_PTHREADS < 7
12181 #define NULL (void*)0
12184 static void *task(p)
12187 return (void *) (p == NULL);
12191 int main(argc, argv)
12196 /* pthread test function */
12197 #ifndef PTHREAD_CREATE_DETACHED
12198 #define PTHREAD_CREATE_DETACHED 1
12202 int detach = PTHREAD_CREATE_DETACHED;
12204 #if HAVE_PTHREADS > 4
12205 /* Final pthreads */
12206 pthread_attr_t attr;
12208 status = pthread_attr_init(&attr);
12209 if( status ) return status;
12211 #if HAVE_PTHREADS < 7
12212 status = pthread_attr_setdetachstate(&attr, &detach);
12213 if( status < 0 ) status = errno;
12215 status = pthread_attr_setdetachstate(&attr, detach);
12217 if( status ) return status;
12218 status = pthread_create( &t, &attr, task, NULL );
12219 #if HAVE_PTHREADS < 7
12220 if( status < 0 ) status = errno;
12222 if( status ) return status;
12224 /* Draft 4 pthreads */
12225 status = pthread_create( &t, pthread_attr_default, task, NULL );
12226 if( status ) return errno;
12228 /* give thread a chance to complete */
12229 /* it should remain joinable and hence detachable */
12232 status = pthread_detach( &t );
12233 if( status ) return errno;
12236 #ifdef HAVE_LINUX_THREADS
12237 pthread_kill_other_threads_np();
12245 if ac_fn_c_try_run "$LINENO"; then :
12246 ol_cv_pthread_threads=yes
12248 ol_cv_pthread_threads=no
12250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12251 conftest.$ac_objext conftest.beam conftest.$ac_ext
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
12260 $as_echo "$ol_cv_pthread_threads" >&6; }
12262 if test $ol_cv_pthread_threads = yes ; then
12263 ol_link_pthreads="-threads"
12264 ol_link_threads=posix
12269 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
12270 if test "$ol_link_threads" = no ; then
12271 # try -lpthreads -lmach -lexc -lc_r
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
12273 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
12274 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
12275 $as_echo_n "(cached) " >&6
12280 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
12282 if test "$cross_compiling" = yes; then :
12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h. */
12286 /* pthread test headers */
12287 #include <pthread.h>
12288 #if HAVE_PTHREADS < 7
12292 #define NULL (void*)0
12295 static void *task(p)
12298 return (void *) (p == NULL);
12305 /* pthread test function */
12306 #ifndef PTHREAD_CREATE_DETACHED
12307 #define PTHREAD_CREATE_DETACHED 1
12311 int detach = PTHREAD_CREATE_DETACHED;
12313 #if HAVE_PTHREADS > 4
12314 /* Final pthreads */
12315 pthread_attr_t attr;
12317 status = pthread_attr_init(&attr);
12318 if( status ) return status;
12320 #if HAVE_PTHREADS < 7
12321 status = pthread_attr_setdetachstate(&attr, &detach);
12322 if( status < 0 ) status = errno;
12324 status = pthread_attr_setdetachstate(&attr, detach);
12326 if( status ) return status;
12327 status = pthread_create( &t, &attr, task, NULL );
12328 #if HAVE_PTHREADS < 7
12329 if( status < 0 ) status = errno;
12331 if( status ) return status;
12333 /* Draft 4 pthreads */
12334 status = pthread_create( &t, pthread_attr_default, task, NULL );
12335 if( status ) return errno;
12337 /* give thread a chance to complete */
12338 /* it should remain joinable and hence detachable */
12341 status = pthread_detach( &t );
12342 if( status ) return errno;
12345 #ifdef HAVE_LINUX_THREADS
12346 pthread_kill_other_threads_np();
12355 if ac_fn_c_try_link "$LINENO"; then :
12356 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
12358 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
12360 rm -f core conftest.err conftest.$ac_objext \
12361 conftest$ac_exeext conftest.$ac_ext
12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12367 /* pthread test headers */
12368 #include <pthread.h>
12369 #if HAVE_PTHREADS < 7
12373 #define NULL (void*)0
12376 static void *task(p)
12379 return (void *) (p == NULL);
12383 int main(argc, argv)
12388 /* pthread test function */
12389 #ifndef PTHREAD_CREATE_DETACHED
12390 #define PTHREAD_CREATE_DETACHED 1
12394 int detach = PTHREAD_CREATE_DETACHED;
12396 #if HAVE_PTHREADS > 4
12397 /* Final pthreads */
12398 pthread_attr_t attr;
12400 status = pthread_attr_init(&attr);
12401 if( status ) return status;
12403 #if HAVE_PTHREADS < 7
12404 status = pthread_attr_setdetachstate(&attr, &detach);
12405 if( status < 0 ) status = errno;
12407 status = pthread_attr_setdetachstate(&attr, detach);
12409 if( status ) return status;
12410 status = pthread_create( &t, &attr, task, NULL );
12411 #if HAVE_PTHREADS < 7
12412 if( status < 0 ) status = errno;
12414 if( status ) return status;
12416 /* Draft 4 pthreads */
12417 status = pthread_create( &t, pthread_attr_default, task, NULL );
12418 if( status ) return errno;
12420 /* give thread a chance to complete */
12421 /* it should remain joinable and hence detachable */
12424 status = pthread_detach( &t );
12425 if( status ) return errno;
12428 #ifdef HAVE_LINUX_THREADS
12429 pthread_kill_other_threads_np();
12437 if ac_fn_c_try_run "$LINENO"; then :
12438 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
12440 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
12442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12443 conftest.$ac_objext conftest.beam conftest.$ac_ext
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
12452 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
12454 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
12455 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
12456 ol_link_threads=posix
12460 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
12461 if test "$ol_link_threads" = no ; then
12462 # try -lpthreads -lmach -lexc
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
12464 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
12465 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
12466 $as_echo_n "(cached) " >&6
12471 LIBS="-lpthreads -lmach -lexc $LIBS"
12473 if test "$cross_compiling" = yes; then :
12474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475 /* end confdefs.h. */
12477 /* pthread test headers */
12478 #include <pthread.h>
12479 #if HAVE_PTHREADS < 7
12483 #define NULL (void*)0
12486 static void *task(p)
12489 return (void *) (p == NULL);
12496 /* pthread test function */
12497 #ifndef PTHREAD_CREATE_DETACHED
12498 #define PTHREAD_CREATE_DETACHED 1
12502 int detach = PTHREAD_CREATE_DETACHED;
12504 #if HAVE_PTHREADS > 4
12505 /* Final pthreads */
12506 pthread_attr_t attr;
12508 status = pthread_attr_init(&attr);
12509 if( status ) return status;
12511 #if HAVE_PTHREADS < 7
12512 status = pthread_attr_setdetachstate(&attr, &detach);
12513 if( status < 0 ) status = errno;
12515 status = pthread_attr_setdetachstate(&attr, detach);
12517 if( status ) return status;
12518 status = pthread_create( &t, &attr, task, NULL );
12519 #if HAVE_PTHREADS < 7
12520 if( status < 0 ) status = errno;
12522 if( status ) return status;
12524 /* Draft 4 pthreads */
12525 status = pthread_create( &t, pthread_attr_default, task, NULL );
12526 if( status ) return errno;
12528 /* give thread a chance to complete */
12529 /* it should remain joinable and hence detachable */
12532 status = pthread_detach( &t );
12533 if( status ) return errno;
12536 #ifdef HAVE_LINUX_THREADS
12537 pthread_kill_other_threads_np();
12546 if ac_fn_c_try_link "$LINENO"; then :
12547 ol_cv_pthread_lpthreads_lmach_lexc=yes
12549 ol_cv_pthread_lpthreads_lmach_lexc=no
12551 rm -f core conftest.err conftest.$ac_objext \
12552 conftest$ac_exeext conftest.$ac_ext
12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12558 /* pthread test headers */
12559 #include <pthread.h>
12560 #if HAVE_PTHREADS < 7
12564 #define NULL (void*)0
12567 static void *task(p)
12570 return (void *) (p == NULL);
12574 int main(argc, argv)
12579 /* pthread test function */
12580 #ifndef PTHREAD_CREATE_DETACHED
12581 #define PTHREAD_CREATE_DETACHED 1
12585 int detach = PTHREAD_CREATE_DETACHED;
12587 #if HAVE_PTHREADS > 4
12588 /* Final pthreads */
12589 pthread_attr_t attr;
12591 status = pthread_attr_init(&attr);
12592 if( status ) return status;
12594 #if HAVE_PTHREADS < 7
12595 status = pthread_attr_setdetachstate(&attr, &detach);
12596 if( status < 0 ) status = errno;
12598 status = pthread_attr_setdetachstate(&attr, detach);
12600 if( status ) return status;
12601 status = pthread_create( &t, &attr, task, NULL );
12602 #if HAVE_PTHREADS < 7
12603 if( status < 0 ) status = errno;
12605 if( status ) return status;
12607 /* Draft 4 pthreads */
12608 status = pthread_create( &t, pthread_attr_default, task, NULL );
12609 if( status ) return errno;
12611 /* give thread a chance to complete */
12612 /* it should remain joinable and hence detachable */
12615 status = pthread_detach( &t );
12616 if( status ) return errno;
12619 #ifdef HAVE_LINUX_THREADS
12620 pthread_kill_other_threads_np();
12628 if ac_fn_c_try_run "$LINENO"; then :
12629 ol_cv_pthread_lpthreads_lmach_lexc=yes
12631 ol_cv_pthread_lpthreads_lmach_lexc=no
12633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12634 conftest.$ac_objext conftest.beam conftest.$ac_ext
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
12643 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
12645 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
12646 ol_link_pthreads="-lpthreads -lmach -lexc"
12647 ol_link_threads=posix
12651 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
12652 if test "$ol_link_threads" = no ; then
12653 # try -lpthreads -lexc
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
12655 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
12656 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
12657 $as_echo_n "(cached) " >&6
12662 LIBS="-lpthreads -lexc $LIBS"
12664 if test "$cross_compiling" = yes; then :
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12668 /* pthread test headers */
12669 #include <pthread.h>
12670 #if HAVE_PTHREADS < 7
12674 #define NULL (void*)0
12677 static void *task(p)
12680 return (void *) (p == NULL);
12687 /* pthread test function */
12688 #ifndef PTHREAD_CREATE_DETACHED
12689 #define PTHREAD_CREATE_DETACHED 1
12693 int detach = PTHREAD_CREATE_DETACHED;
12695 #if HAVE_PTHREADS > 4
12696 /* Final pthreads */
12697 pthread_attr_t attr;
12699 status = pthread_attr_init(&attr);
12700 if( status ) return status;
12702 #if HAVE_PTHREADS < 7
12703 status = pthread_attr_setdetachstate(&attr, &detach);
12704 if( status < 0 ) status = errno;
12706 status = pthread_attr_setdetachstate(&attr, detach);
12708 if( status ) return status;
12709 status = pthread_create( &t, &attr, task, NULL );
12710 #if HAVE_PTHREADS < 7
12711 if( status < 0 ) status = errno;
12713 if( status ) return status;
12715 /* Draft 4 pthreads */
12716 status = pthread_create( &t, pthread_attr_default, task, NULL );
12717 if( status ) return errno;
12719 /* give thread a chance to complete */
12720 /* it should remain joinable and hence detachable */
12723 status = pthread_detach( &t );
12724 if( status ) return errno;
12727 #ifdef HAVE_LINUX_THREADS
12728 pthread_kill_other_threads_np();
12737 if ac_fn_c_try_link "$LINENO"; then :
12738 ol_cv_pthread_lpthreads_lexc=yes
12740 ol_cv_pthread_lpthreads_lexc=no
12742 rm -f core conftest.err conftest.$ac_objext \
12743 conftest$ac_exeext conftest.$ac_ext
12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h. */
12749 /* pthread test headers */
12750 #include <pthread.h>
12751 #if HAVE_PTHREADS < 7
12755 #define NULL (void*)0
12758 static void *task(p)
12761 return (void *) (p == NULL);
12765 int main(argc, argv)
12770 /* pthread test function */
12771 #ifndef PTHREAD_CREATE_DETACHED
12772 #define PTHREAD_CREATE_DETACHED 1
12776 int detach = PTHREAD_CREATE_DETACHED;
12778 #if HAVE_PTHREADS > 4
12779 /* Final pthreads */
12780 pthread_attr_t attr;
12782 status = pthread_attr_init(&attr);
12783 if( status ) return status;
12785 #if HAVE_PTHREADS < 7
12786 status = pthread_attr_setdetachstate(&attr, &detach);
12787 if( status < 0 ) status = errno;
12789 status = pthread_attr_setdetachstate(&attr, detach);
12791 if( status ) return status;
12792 status = pthread_create( &t, &attr, task, NULL );
12793 #if HAVE_PTHREADS < 7
12794 if( status < 0 ) status = errno;
12796 if( status ) return status;
12798 /* Draft 4 pthreads */
12799 status = pthread_create( &t, pthread_attr_default, task, NULL );
12800 if( status ) return errno;
12802 /* give thread a chance to complete */
12803 /* it should remain joinable and hence detachable */
12806 status = pthread_detach( &t );
12807 if( status ) return errno;
12810 #ifdef HAVE_LINUX_THREADS
12811 pthread_kill_other_threads_np();
12819 if ac_fn_c_try_run "$LINENO"; then :
12820 ol_cv_pthread_lpthreads_lexc=yes
12822 ol_cv_pthread_lpthreads_lexc=no
12824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12825 conftest.$ac_objext conftest.beam conftest.$ac_ext
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
12834 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
12836 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
12837 ol_link_pthreads="-lpthreads -lexc"
12838 ol_link_threads=posix
12843 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
12844 if test "$ol_link_threads" = no ; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
12847 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
12848 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
12849 $as_echo_n "(cached) " >&6
12854 LIBS="-lpthreads $LIBS"
12856 if test "$cross_compiling" = yes; then :
12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12858 /* end confdefs.h. */
12860 /* pthread test headers */
12861 #include <pthread.h>
12862 #if HAVE_PTHREADS < 7
12866 #define NULL (void*)0
12869 static void *task(p)
12872 return (void *) (p == NULL);
12879 /* pthread test function */
12880 #ifndef PTHREAD_CREATE_DETACHED
12881 #define PTHREAD_CREATE_DETACHED 1
12885 int detach = PTHREAD_CREATE_DETACHED;
12887 #if HAVE_PTHREADS > 4
12888 /* Final pthreads */
12889 pthread_attr_t attr;
12891 status = pthread_attr_init(&attr);
12892 if( status ) return status;
12894 #if HAVE_PTHREADS < 7
12895 status = pthread_attr_setdetachstate(&attr, &detach);
12896 if( status < 0 ) status = errno;
12898 status = pthread_attr_setdetachstate(&attr, detach);
12900 if( status ) return status;
12901 status = pthread_create( &t, &attr, task, NULL );
12902 #if HAVE_PTHREADS < 7
12903 if( status < 0 ) status = errno;
12905 if( status ) return status;
12907 /* Draft 4 pthreads */
12908 status = pthread_create( &t, pthread_attr_default, task, NULL );
12909 if( status ) return errno;
12911 /* give thread a chance to complete */
12912 /* it should remain joinable and hence detachable */
12915 status = pthread_detach( &t );
12916 if( status ) return errno;
12919 #ifdef HAVE_LINUX_THREADS
12920 pthread_kill_other_threads_np();
12929 if ac_fn_c_try_link "$LINENO"; then :
12930 ol_cv_pthread_lib_lpthreads=yes
12932 ol_cv_pthread_lib_lpthreads=no
12934 rm -f core conftest.err conftest.$ac_objext \
12935 conftest$ac_exeext conftest.$ac_ext
12937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12938 /* end confdefs.h. */
12941 /* pthread test headers */
12942 #include <pthread.h>
12943 #if HAVE_PTHREADS < 7
12947 #define NULL (void*)0
12950 static void *task(p)
12953 return (void *) (p == NULL);
12957 int main(argc, argv)
12962 /* pthread test function */
12963 #ifndef PTHREAD_CREATE_DETACHED
12964 #define PTHREAD_CREATE_DETACHED 1
12968 int detach = PTHREAD_CREATE_DETACHED;
12970 #if HAVE_PTHREADS > 4
12971 /* Final pthreads */
12972 pthread_attr_t attr;
12974 status = pthread_attr_init(&attr);
12975 if( status ) return status;
12977 #if HAVE_PTHREADS < 7
12978 status = pthread_attr_setdetachstate(&attr, &detach);
12979 if( status < 0 ) status = errno;
12981 status = pthread_attr_setdetachstate(&attr, detach);
12983 if( status ) return status;
12984 status = pthread_create( &t, &attr, task, NULL );
12985 #if HAVE_PTHREADS < 7
12986 if( status < 0 ) status = errno;
12988 if( status ) return status;
12990 /* Draft 4 pthreads */
12991 status = pthread_create( &t, pthread_attr_default, task, NULL );
12992 if( status ) return errno;
12994 /* give thread a chance to complete */
12995 /* it should remain joinable and hence detachable */
12998 status = pthread_detach( &t );
12999 if( status ) return errno;
13002 #ifdef HAVE_LINUX_THREADS
13003 pthread_kill_other_threads_np();
13011 if ac_fn_c_try_run "$LINENO"; then :
13012 ol_cv_pthread_lib_lpthreads=yes
13014 ol_cv_pthread_lib_lpthreads=no
13016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13017 conftest.$ac_objext conftest.beam conftest.$ac_ext
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
13026 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
13028 if test $ol_cv_pthread_lib_lpthreads = yes ; then
13029 ol_link_pthreads="-lpthreads"
13030 ol_link_threads=posix
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
13036 $as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
13038 if test $ol_link_threads != no ; then
13039 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
13041 save_CPPFLAGS="$CPPFLAGS"
13043 LIBS="$LTHREAD_LIBS $LIBS"
13045 for ac_func in sched_yield pthread_yield thr_yield
13047 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13048 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13049 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13050 cat >>confdefs.h <<_ACEOF
13051 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13058 if test $ac_cv_func_sched_yield = no &&
13059 test $ac_cv_func_pthread_yield = no &&
13060 test $ac_cv_func_thr_yield = no ; then
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
13062 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
13063 if ${ac_cv_lib_rt_sched_yield+:} false; then :
13064 $as_echo_n "(cached) " >&6
13066 ac_check_lib_save_LIBS=$LIBS
13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h. */
13071 /* Override any GCC internal prototype to avoid an error.
13072 Use char because int might match the return type of a GCC
13073 builtin and then its argument prototype would still apply. */
13077 char sched_yield ();
13081 return sched_yield ();
13086 if ac_fn_c_try_link "$LINENO"; then :
13087 ac_cv_lib_rt_sched_yield=yes
13089 ac_cv_lib_rt_sched_yield=no
13091 rm -f core conftest.err conftest.$ac_objext \
13092 conftest$ac_exeext conftest.$ac_ext
13093 LIBS=$ac_check_lib_save_LIBS
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
13096 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
13097 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
13098 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
13100 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
13102 ac_cv_func_sched_yield=yes
13104 ac_cv_func_sched_yield=no
13108 if test $ac_cv_func_sched_yield = no &&
13109 test $ac_cv_func_pthread_yield = no &&
13110 test "$ac_cv_func_thr_yield" = no ; then
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
13112 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
13115 for ac_func in pthread_kill
13117 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
13118 if test "x$ac_cv_func_pthread_kill" = xyes; then :
13119 cat >>confdefs.h <<_ACEOF
13120 #define HAVE_PTHREAD_KILL 1
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
13128 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
13129 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
13130 $as_echo_n "(cached) " >&6
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13136 #include <pthread.h>
13137 pthread_rwlock_t rwlock;
13142 pthread_rwlock_destroy(&rwlock);
13147 if ac_fn_c_try_link "$LINENO"; then :
13148 ol_cv_func_pthread_rwlock_destroy=yes
13150 ol_cv_func_pthread_rwlock_destroy=no
13152 rm -f core conftest.err conftest.$ac_objext \
13153 conftest$ac_exeext conftest.$ac_ext
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
13157 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
13158 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
13160 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
13165 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
13166 if ${ol_cv_func_pthread_detach+:} false; then :
13167 $as_echo_n "(cached) " >&6
13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13173 #include <pthread.h>
13175 #define NULL (void*)0
13181 pthread_detach(NULL);
13186 if ac_fn_c_try_link "$LINENO"; then :
13187 ol_cv_func_pthread_detach=yes
13189 ol_cv_func_pthread_detach=no
13191 rm -f core conftest.err conftest.$ac_objext \
13192 conftest$ac_exeext conftest.$ac_ext
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
13196 $as_echo "$ol_cv_func_pthread_detach" >&6; }
13198 if test $ol_cv_func_pthread_detach = no ; then
13199 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
13203 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
13207 pthread_setconcurrency \
13208 pthread_getconcurrency \
13209 thr_setconcurrency \
13210 thr_getconcurrency \
13213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13214 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13215 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13216 cat >>confdefs.h <<_ACEOF
13217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13225 for ac_func in pthread_kill_other_threads_np
13227 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
13228 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
13229 cat >>confdefs.h <<_ACEOF
13230 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
13237 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
13238 if ${ol_cv_sys_linux_threads+:} false; then :
13239 $as_echo_n "(cached) " >&6
13241 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
13244 $as_echo "$ol_cv_sys_linux_threads" >&6; }
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
13250 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
13251 if ${ol_cv_linux_threads+:} false; then :
13252 $as_echo_n "(cached) " >&6
13255 if test $ol_cv_header_linux_threads = yes &&
13256 test $ol_cv_sys_linux_threads = yes; then
13257 ol_cv_linux_threads=yes
13258 elif test $ol_cv_header_linux_threads = no &&
13259 test $ol_cv_sys_linux_threads = no; then
13260 ol_cv_linux_threads=no
13262 ol_cv_linux_threads=error
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
13267 $as_echo "$ol_cv_linux_threads" >&6; }
13270 if test $ol_cv_linux_threads = error; then
13271 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
13275 $as_echo_n "checking if pthread_create() works... " >&6; }
13276 if ${ol_cv_pthread_create_works+:} false; then :
13277 $as_echo_n "(cached) " >&6
13280 if test "$cross_compiling" = yes; then :
13281 ol_cv_pthread_create_works=yes
13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13287 /* pthread test headers */
13288 #include <pthread.h>
13289 #if HAVE_PTHREADS < 7
13293 #define NULL (void*)0
13296 static void *task(p)
13299 return (void *) (p == NULL);
13303 int main(argc, argv)
13308 /* pthread test function */
13309 #ifndef PTHREAD_CREATE_DETACHED
13310 #define PTHREAD_CREATE_DETACHED 1
13314 int detach = PTHREAD_CREATE_DETACHED;
13316 #if HAVE_PTHREADS > 4
13317 /* Final pthreads */
13318 pthread_attr_t attr;
13320 status = pthread_attr_init(&attr);
13321 if( status ) return status;
13323 #if HAVE_PTHREADS < 7
13324 status = pthread_attr_setdetachstate(&attr, &detach);
13325 if( status < 0 ) status = errno;
13327 status = pthread_attr_setdetachstate(&attr, detach);
13329 if( status ) return status;
13330 status = pthread_create( &t, &attr, task, NULL );
13331 #if HAVE_PTHREADS < 7
13332 if( status < 0 ) status = errno;
13334 if( status ) return status;
13336 /* Draft 4 pthreads */
13337 status = pthread_create( &t, pthread_attr_default, task, NULL );
13338 if( status ) return errno;
13340 /* give thread a chance to complete */
13341 /* it should remain joinable and hence detachable */
13344 status = pthread_detach( &t );
13345 if( status ) return errno;
13348 #ifdef HAVE_LINUX_THREADS
13349 pthread_kill_other_threads_np();
13357 if ac_fn_c_try_run "$LINENO"; then :
13358 ol_cv_pthread_create_works=yes
13360 ol_cv_pthread_create_works=no
13362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13363 conftest.$ac_objext conftest.beam conftest.$ac_ext
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
13368 $as_echo "$ol_cv_pthread_create_works" >&6; }
13370 if test $ol_cv_pthread_create_works = no ; then
13371 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
13374 ol_replace_broken_yield=no
13376 if test $ol_replace_broken_yield = yes ; then
13378 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
13382 if test x$ol_with_yielding_select = xauto ; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
13384 $as_echo_n "checking if select yields when using pthreads... " >&6; }
13385 if ${ol_cv_pthread_select_yields+:} false; then :
13386 $as_echo_n "(cached) " >&6
13389 if test "$cross_compiling" = yes; then :
13390 ol_cv_pthread_select_yields=cross
13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13395 #include <sys/types.h>
13396 #include <sys/time.h>
13397 #include <unistd.h>
13398 #include <pthread.h>
13400 #define NULL (void*) 0
13403 static int fildes[2];
13405 static void *task(p)
13417 FD_SET(fildes[0], &rfds);
13419 /* we're not interested in any fds */
13420 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
13427 exit(0); /* if we exit here, the select blocked the whole process */
13430 int main(argc, argv)
13436 /* create a pipe to select */
13437 if(pipe(&fildes[0])) {
13442 #ifdef HAVE_PTHREAD_SETCONCURRENCY
13443 (void) pthread_setconcurrency(2);
13445 #ifdef HAVE_THR_SETCONCURRENCY
13446 /* Set Solaris LWP concurrency to 2 */
13447 thr_setconcurrency(2);
13451 #if HAVE_PTHREADS < 6
13452 pthread_create(&t, pthread_attr_default, task, NULL);
13454 pthread_create(&t, NULL, task, NULL);
13457 /* make sure task runs first */
13458 #ifdef HAVE_THR_YIELD
13460 #elif defined( HAVE_SCHED_YIELD )
13462 #elif defined( HAVE_PTHREAD_YIELD )
13469 if ac_fn_c_try_run "$LINENO"; then :
13470 ol_cv_pthread_select_yields=no
13472 ol_cv_pthread_select_yields=yes
13474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13475 conftest.$ac_objext conftest.beam conftest.$ac_ext
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
13480 $as_echo "$ol_cv_pthread_select_yields" >&6; }
13482 if test $ol_cv_pthread_select_yields = cross ; then
13483 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
13486 if test $ol_cv_pthread_select_yields = yes ; then
13487 ol_with_yielding_select=yes
13491 CPPFLAGS="$save_CPPFLAGS"
13494 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
13498 if test $ol_with_threads = posix ; then
13499 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
13504 case $ol_with_threads in auto | yes | mach)
13506 for ac_header in mach/cthreads.h cthreads.h
13508 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13509 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13510 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13511 cat >>confdefs.h <<_ACEOF
13512 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13519 if test $ac_cv_header_mach_cthreads_h = yes ; then
13520 ol_with_threads=found
13522 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
13523 if test "x$ac_cv_func_cthread_fork" = xyes; then :
13524 ol_link_threads=yes
13528 if test $ol_link_threads = no ; then
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
13530 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
13531 if ${ol_cv_cthread_all_load+:} false; then :
13532 $as_echo_n "(cached) " >&6
13536 LIBS="-all_load $LIBS"
13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538 /* end confdefs.h. */
13539 #include <mach/cthreads.h>
13544 cthread_fork((void *)0, (void *)0);
13550 if ac_fn_c_try_link "$LINENO"; then :
13551 ol_cv_cthread_all_load=yes
13553 ol_cv_cthread_all_load=no
13555 rm -f core conftest.err conftest.$ac_objext \
13556 conftest$ac_exeext conftest.$ac_ext
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
13561 $as_echo "$ol_cv_cthread_all_load" >&6; }
13563 if test $ol_cv_cthread_all_load = yes ; then
13564 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
13565 ol_link_threads=mach
13566 ol_with_threads=found
13570 elif test $ac_cv_header_cthreads_h = yes ; then
13572 ol_with_threads=found
13575 LIBS="$LIBS -lthreads"
13576 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
13577 if test "x$ac_cv_func_cthread_fork" = xyes; then :
13578 ol_link_threads=yes
13583 if test $ol_link_threads = yes ; then
13584 LTHREAD_LIBS="-lthreads"
13585 ol_link_threads=mach
13586 ol_with_threads=found
13588 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
13591 elif test $ol_with_threads = mach ; then
13592 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
13595 if test $ol_link_threads = mach ; then
13597 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
13599 elif test $ol_with_threads = found ; then
13600 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
13605 case $ol_with_threads in auto | yes | pth)
13607 for ac_header in pth.h
13609 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
13610 if test "x$ac_cv_header_pth_h" = xyes; then :
13611 cat >>confdefs.h <<_ACEOF
13612 #define HAVE_PTH_H 1
13620 if test $ac_cv_header_pth_h = yes ; then
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
13622 $as_echo_n "checking for pth_version in -lpth... " >&6; }
13623 if ${ac_cv_lib_pth_pth_version+:} false; then :
13624 $as_echo_n "(cached) " >&6
13626 ac_check_lib_save_LIBS=$LIBS
13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629 /* end confdefs.h. */
13631 /* Override any GCC internal prototype to avoid an error.
13632 Use char because int might match the return type of a GCC
13633 builtin and then its argument prototype would still apply. */
13637 char pth_version ();
13641 return pth_version ();
13646 if ac_fn_c_try_link "$LINENO"; then :
13647 ac_cv_lib_pth_pth_version=yes
13649 ac_cv_lib_pth_pth_version=no
13651 rm -f core conftest.err conftest.$ac_objext \
13652 conftest$ac_exeext conftest.$ac_ext
13653 LIBS=$ac_check_lib_save_LIBS
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
13656 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
13657 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
13664 if test $have_pth = yes ; then
13666 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
13668 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
13669 ol_link_threads=pth
13670 ol_with_threads=found
13672 if test x$ol_with_yielding_select = xauto ; then
13673 ol_with_yielding_select=yes
13680 case $ol_with_threads in auto | yes | lwp)
13682 for ac_header in thread.h synch.h
13684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13685 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13686 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13687 cat >>confdefs.h <<_ACEOF
13688 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13695 if test $ac_cv_header_thread_h = yes &&
13696 test $ac_cv_header_synch_h = yes ; then
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
13698 $as_echo_n "checking for thr_create in -lthread... " >&6; }
13699 if ${ac_cv_lib_thread_thr_create+:} false; then :
13700 $as_echo_n "(cached) " >&6
13702 ac_check_lib_save_LIBS=$LIBS
13703 LIBS="-lthread $LIBS"
13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h. */
13707 /* Override any GCC internal prototype to avoid an error.
13708 Use char because int might match the return type of a GCC
13709 builtin and then its argument prototype would still apply. */
13713 char thr_create ();
13717 return thr_create ();
13722 if ac_fn_c_try_link "$LINENO"; then :
13723 ac_cv_lib_thread_thr_create=yes
13725 ac_cv_lib_thread_thr_create=no
13727 rm -f core conftest.err conftest.$ac_objext \
13728 conftest$ac_exeext conftest.$ac_ext
13729 LIBS=$ac_check_lib_save_LIBS
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
13732 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
13733 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
13740 if test $have_thr = yes ; then
13742 $as_echo "#define HAVE_THR 1" >>confdefs.h
13744 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
13745 ol_link_threads=thr
13747 if test x$ol_with_yielding_select = xauto ; then
13748 ol_with_yielding_select=yes
13752 thr_setconcurrency \
13753 thr_getconcurrency \
13756 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13757 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13758 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13759 cat >>confdefs.h <<_ACEOF
13760 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13769 for ac_header in lwp/lwp.h
13771 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
13772 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
13773 cat >>confdefs.h <<_ACEOF
13774 #define HAVE_LWP_LWP_H 1
13781 if test $ac_cv_header_lwp_lwp_h = yes ; then
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
13783 $as_echo_n "checking for lwp_create in -llwp... " >&6; }
13784 if ${ac_cv_lib_lwp_lwp_create+:} false; then :
13785 $as_echo_n "(cached) " >&6
13787 ac_check_lib_save_LIBS=$LIBS
13789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13790 /* end confdefs.h. */
13792 /* Override any GCC internal prototype to avoid an error.
13793 Use char because int might match the return type of a GCC
13794 builtin and then its argument prototype would still apply. */
13798 char lwp_create ();
13802 return lwp_create ();
13807 if ac_fn_c_try_link "$LINENO"; then :
13808 ac_cv_lib_lwp_lwp_create=yes
13810 ac_cv_lib_lwp_lwp_create=no
13812 rm -f core conftest.err conftest.$ac_objext \
13813 conftest$ac_exeext conftest.$ac_ext
13814 LIBS=$ac_check_lib_save_LIBS
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
13817 $as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
13818 if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
13825 if test $have_lwp = yes ; then
13827 $as_echo "#define HAVE_LWP 1" >>confdefs.h
13829 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
13830 ol_link_threads=lwp
13832 if test x$ol_with_yielding_select = xauto ; then
13833 ol_with_yielding_select=no
13840 if test $ol_with_yielding_select = yes ; then
13842 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
13846 if test $ol_with_threads = manual ; then
13847 ol_link_threads=yes
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
13850 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
13852 for ac_header in pthread.h sched.h
13854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13855 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13856 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13857 cat >>confdefs.h <<_ACEOF
13858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13865 for ac_func in sched_yield pthread_yield
13867 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13868 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13869 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13870 cat >>confdefs.h <<_ACEOF
13871 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
13879 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
13880 if ${ol_cv_header_linux_threads+:} false; then :
13881 $as_echo_n "(cached) " >&6
13883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13884 /* end confdefs.h. */
13885 #include <pthread.h>
13887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13888 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
13889 ol_cv_header_linux_threads=yes
13891 ol_cv_header_linux_threads=no
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
13898 $as_echo "$ol_cv_header_linux_threads" >&6; }
13899 if test $ol_cv_header_linux_threads = yes; then
13901 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
13906 for ac_header in mach/cthreads.h
13908 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
13909 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
13910 cat >>confdefs.h <<_ACEOF
13911 #define HAVE_MACH_CTHREADS_H 1
13918 for ac_header in lwp/lwp.h
13920 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
13921 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
13922 cat >>confdefs.h <<_ACEOF
13923 #define HAVE_LWP_LWP_H 1
13930 for ac_header in thread.h synch.h
13932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13933 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13934 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13935 cat >>confdefs.h <<_ACEOF
13936 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13945 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
13947 $as_echo "#define REENTRANT 1" >>confdefs.h
13950 $as_echo "#define _REENTRANT 1" >>confdefs.h
13953 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
13956 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
13959 $as_echo "#define THREADSAFE 1" >>confdefs.h
13962 $as_echo "#define _THREADSAFE 1" >>confdefs.h
13965 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
13969 $as_echo_n "checking for thread specific errno... " >&6; }
13970 if ${ol_cv_errno_thread_specific+:} false; then :
13971 $as_echo_n "(cached) " >&6
13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975 /* end confdefs.h. */
13985 if ac_fn_c_try_link "$LINENO"; then :
13986 ol_cv_errno_thread_specific=yes
13988 ol_cv_errno_thread_specific=no
13990 rm -f core conftest.err conftest.$ac_objext \
13991 conftest$ac_exeext conftest.$ac_ext
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
13995 $as_echo "$ol_cv_errno_thread_specific" >&6; }
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
13998 $as_echo_n "checking for thread specific h_errno... " >&6; }
13999 if ${ol_cv_h_errno_thread_specific+:} false; then :
14000 $as_echo_n "(cached) " >&6
14003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h. */
14014 if ac_fn_c_try_link "$LINENO"; then :
14015 ol_cv_h_errno_thread_specific=yes
14017 ol_cv_h_errno_thread_specific=no
14019 rm -f core conftest.err conftest.$ac_objext \
14020 conftest$ac_exeext conftest.$ac_ext
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
14024 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
14026 if test $ol_cv_errno_thread_specific != yes ||
14027 test $ol_cv_h_errno_thread_specific != yes ; then
14028 LIBS="$LTHREAD_LIBS $LIBS"
14034 if test $ol_link_threads = no ; then
14035 if test $ol_with_threads = yes ; then
14036 as_fn_error $? "no suitable thread support" "$LINENO" 5
14039 if test $ol_with_threads = auto ; then
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
14041 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
14046 $as_echo "#define NO_THREADS 1" >>confdefs.h
14054 if test $ol_link_threads != no ; then
14056 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
14060 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14061 case "$ol_with_threads" in
14067 ol_found_pthreads=yes
14072 ac_cpp='$CPP $CPPFLAGS'
14073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14082 case "$ol_found_pthreads" in
14085 LIBS="$LTHREAD_LIBS $LIBS"
14086 saved_CFLAGS="$CFLAGS"
14087 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
14088 for ac_func in sem_timedwait
14090 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14091 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
14092 cat >>confdefs.h <<_ACEOF
14093 #define HAVE_SEM_TIMEDWAIT 1
14100 { saved_LIBS=; unset saved_LIBS;}
14101 CFLAGS="$saved_CFLAGS"
14102 { saved_CFLAGS=; unset saved_CFLAGS;}
14103 case "$ac_cv_func_sem_timedwait" in
14105 PTHREAD_LIBS="$LTHREAD_LIBS"
14111 case "$have_pthreads" in
14113 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
14115 LIBS="$LTHREAD_LIBS $LIBS"
14116 saved_CFLAGS="$CFLAGS"
14117 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
14118 # The cast to long int works around a bug in the HP C Compiler
14119 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14120 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14121 # This bug is HP SR number 8606223364.
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14123 $as_echo_n "checking size of pthread_t... " >&6; }
14124 if ${ac_cv_sizeof_pthread_t+:} false; then :
14125 $as_echo_n "(cached) " >&6
14127 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
14128 $ac_includes_default
14129 #include <pthread.h>
14135 if test "$ac_cv_type_pthread_t" = yes; then
14136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14138 as_fn_error 77 "cannot compute sizeof (pthread_t)
14139 See \`config.log' for more details" "$LINENO" 5; }
14141 ac_cv_sizeof_pthread_t=0
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14147 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14151 cat >>confdefs.h <<_ACEOF
14152 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14156 LIBISC_PTHREADS_NOTHREADS=pthreads
14158 $as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
14161 # We'd like to use sigwait() too
14163 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
14164 if test "x$ac_cv_func_sigwait" = xyes; then :
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
14168 $as_echo_n "checking for sigwait in -lc... " >&6; }
14169 if ${ac_cv_lib_c_sigwait+:} false; then :
14170 $as_echo_n "(cached) " >&6
14172 ac_check_lib_save_LIBS=$LIBS
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14177 /* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14192 if ac_fn_c_try_link "$LINENO"; then :
14193 ac_cv_lib_c_sigwait=yes
14195 ac_cv_lib_c_sigwait=no
14197 rm -f core conftest.err conftest.$ac_objext \
14198 conftest$ac_exeext conftest.$ac_ext
14199 LIBS=$ac_check_lib_save_LIBS
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
14202 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
14203 if test "x$ac_cv_lib_c_sigwait" = xyes; then :
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
14207 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
14208 if ${ac_cv_lib_pthread_sigwait+:} false; then :
14209 $as_echo_n "(cached) " >&6
14211 ac_check_lib_save_LIBS=$LIBS
14212 LIBS="-lpthread $LIBS"
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14216 /* Override any GCC internal prototype to avoid an error.
14217 Use char because int might match the return type of a GCC
14218 builtin and then its argument prototype would still apply. */
14231 if ac_fn_c_try_link "$LINENO"; then :
14232 ac_cv_lib_pthread_sigwait=yes
14234 ac_cv_lib_pthread_sigwait=no
14236 rm -f core conftest.err conftest.$ac_objext \
14237 conftest$ac_exeext conftest.$ac_ext
14238 LIBS=$ac_check_lib_save_LIBS
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
14241 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
14242 if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
14246 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
14247 if ${ac_cv_lib_pthread__Psigwait+:} false; then :
14248 $as_echo_n "(cached) " >&6
14250 ac_check_lib_save_LIBS=$LIBS
14251 LIBS="-lpthread $LIBS"
14252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14253 /* end confdefs.h. */
14255 /* Override any GCC internal prototype to avoid an error.
14256 Use char because int might match the return type of a GCC
14257 builtin and then its argument prototype would still apply. */
14265 return _Psigwait ();
14270 if ac_fn_c_try_link "$LINENO"; then :
14271 ac_cv_lib_pthread__Psigwait=yes
14273 ac_cv_lib_pthread__Psigwait=no
14275 rm -f core conftest.err conftest.$ac_objext \
14276 conftest$ac_exeext conftest.$ac_ext
14277 LIBS=$ac_check_lib_save_LIBS
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
14280 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
14281 if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
14297 case "$host:$have_sigwait" in
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
14300 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
14301 if ${ac_cv_lib_c_r_sigwait+:} false; then :
14302 $as_echo_n "(cached) " >&6
14304 ac_check_lib_save_LIBS=$LIBS
14306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307 /* end confdefs.h. */
14309 /* Override any GCC internal prototype to avoid an error.
14310 Use char because int might match the return type of a GCC
14311 builtin and then its argument prototype would still apply. */
14324 if ac_fn_c_try_link "$LINENO"; then :
14325 ac_cv_lib_c_r_sigwait=yes
14327 ac_cv_lib_c_r_sigwait=no
14329 rm -f core conftest.err conftest.$ac_objext \
14330 conftest$ac_exeext conftest.$ac_ext
14331 LIBS=$ac_check_lib_save_LIBS
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
14334 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
14335 if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
14341 case "$have_sigwait" in
14343 ac_cv_func_sigwait=yes
14345 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
14349 for ac_func in pthread_attr_getstacksize
14351 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
14352 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
14353 cat >>confdefs.h <<_ACEOF
14354 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
14360 for ac_func in pthread_attr_setstacksize sysconf
14362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14363 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14364 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14365 cat >>confdefs.h <<_ACEOF
14366 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14374 *-freebsd5.[012]|*-freebsd5.[012].*)
14376 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
14378 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
14381 *-bsdi3.*|*-bsdi4.0*)
14383 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
14388 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
14392 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
14394 for ac_func in pthread_setconcurrency
14396 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
14397 if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
14398 cat >>confdefs.h <<_ACEOF
14399 #define HAVE_PTHREAD_SETCONCURRENCY 1
14405 case "$ac_cv_func_pthread_setconcurrency" in
14408 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
14412 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
14414 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
14418 hack_shutup_pthreadonceinit=no
14421 hack_shutup_pthreadonceinit=yes
14424 hack_shutup_pthreadonceinit=yes
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
14428 $as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
14429 if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
14430 $as_echo_n "(cached) " >&6
14432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14433 /* end confdefs.h. */
14435 #include <pthread.h>
14441 static pthread_once_t once_test =
14449 if ac_fn_c_try_compile "$LINENO"; then :
14450 ntp_cv_braces_around_pthread_once_init=no
14452 ntp_cv_braces_around_pthread_once_init=yes
14455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
14459 $as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
14460 case "$ntp_cv_braces_around_pthread_once_init" in
14462 hack_shutup_pthreadonceinit=yes
14466 case "$hack_shutup_pthreadonceinit" in
14469 $as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
14473 { saved_LIBS=; unset saved_LIBS;}
14474 CFLAGS="$saved_CFLAGS"
14475 { saved_CFLAGS=; unset saved_CFLAGS;}
14478 LIBISC_PTHREADS_NOTHREADS=nothreads
14482 if test "$have_pthreads" != "no"; then
14496 case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
14499 $as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
14500 if ${ntp_cv_vsnprintf_percent_m+:} false; then :
14501 $as_echo_n "(cached) " >&6
14503 if test "$cross_compiling" = yes; then :
14504 ntp_cv_vsnprintf_percent_m=no
14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h. */
14510 #include <stdarg.h>
14513 #include <string.h>
14515 int call_vsnprintf(
14522 int call_vsnprintf(
14533 rc = vsnprintf(dst, sz, fmt, ap);
14547 strcpy(sbuf, strerror(ENOENT));
14549 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
14551 return strcmp(sbuf, pbuf);
14558 if ac_fn_c_try_run "$LINENO"; then :
14559 ntp_cv_vsnprintf_percent_m=yes
14561 ntp_cv_vsnprintf_percent_m=no
14563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14564 conftest.$ac_objext conftest.beam conftest.$ac_ext
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
14570 $as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
14571 case "$ntp_cv_vsnprintf_percent_m" in
14574 $as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
14579 for ac_header in sys/clockctl.h
14581 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
14582 if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
14583 cat >>confdefs.h <<_ACEOF
14584 #define HAVE_SYS_CLOCKCTL_H 1
14592 # Check whether --enable-clockctl was given.
14593 if test "${enable_clockctl+set}" = set; then :
14594 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
14596 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
14602 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
14604 $as_echo "$ntp_use_dev_clockctl" >&6; }
14607 for ac_header in sys/capability.h sys/prctl.h
14609 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14610 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14611 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14612 cat >>confdefs.h <<_ACEOF
14613 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
14622 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
14624 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
14628 ntp_have_linuxcaps=no
14630 *) ntp_have_linuxcaps=yes
14635 ntp_have_linuxcaps=no
14639 # Check whether --enable-linuxcaps was given.
14640 if test "${enable_linuxcaps+set}" = set; then :
14641 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
14647 $as_echo "$ntp_have_linuxcaps" >&6; }
14649 case "$ntp_have_linuxcaps" in
14652 $as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
14659 for ac_header in priv.h
14661 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
14662 if test "x$ac_cv_header_priv_h" = xyes; then :
14663 cat >>confdefs.h <<_ACEOF
14664 #define HAVE_PRIV_H 1
14671 case "$ac_cv_header_priv_h" in
14675 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
14676 if test "x$ac_cv_func_setppriv" = xyes; then :
14677 ntp_have_solarisprivs=yes
14679 ntp_have_solarisprivs=no
14687 # Check whether --enable-solarisprivs was given.
14688 if test "${enable_solarisprivs+set}" = set; then :
14689 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
14695 $as_echo_n "checking if we have solaris privileges... " >&6; }
14697 case "$ntp_have_solarisprivs" in
14700 $as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
14705 $as_echo "$ntp_have_solarisprivs" >&6; }
14707 for ac_header in sys/mac.h
14709 ac_fn_c_check_header_mongrel "$LINENO" "sys/mac.h" "ac_cv_header_sys_mac_h" "$ac_includes_default"
14710 if test "x$ac_cv_header_sys_mac_h" = xyes; then :
14711 cat >>confdefs.h <<_ACEOF
14712 #define HAVE_SYS_MAC_H 1
14720 # Check whether --enable-trustedbsd_mac was given.
14721 if test "${enable_trustedbsd_mac+set}" = set; then :
14722 enableval=$enable_trustedbsd_mac; ntp_use_trustedbsd_mac=$enableval
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use TrustedBSD MAC privileges" >&5
14728 $as_echo_n "checking if we should use TrustedBSD MAC privileges... " >&6; }
14730 case "$ntp_use_trustedbsd_mac$ac_cv_header_sys_mac_h" in
14733 $as_echo "#define HAVE_TRUSTEDBSD_MAC 1" >>confdefs.h
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_trustedbsd_mac" >&5
14738 $as_echo "$ntp_use_trustedbsd_mac" >&6; }
14740 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs$ntp_use_trustedbsd_mac" in
14743 $as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
14750 $as_echo_n "checking for library containing res_9_init... " >&6; }
14751 if ${ac_cv_search_res_9_init+:} false; then :
14752 $as_echo_n "(cached) " >&6
14754 ac_func_search_save_LIBS=$LIBS
14755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14756 /* end confdefs.h. */
14758 /* Override any GCC internal prototype to avoid an error.
14759 Use char because int might match the return type of a GCC
14760 builtin and then its argument prototype would still apply. */
14764 char res_9_init ();
14768 return res_9_init ();
14773 for ac_lib in '' resolv; do
14774 if test -z "$ac_lib"; then
14775 ac_res="none required"
14778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14780 if ac_fn_c_try_link "$LINENO"; then :
14781 ac_cv_search_res_9_init=$ac_res
14783 rm -f core conftest.err conftest.$ac_objext \
14785 if ${ac_cv_search_res_9_init+:} false; then :
14789 if ${ac_cv_search_res_9_init+:} false; then :
14792 ac_cv_search_res_9_init=no
14794 rm conftest.$ac_ext
14795 LIBS=$ac_func_search_save_LIBS
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
14798 $as_echo "$ac_cv_search_res_9_init" >&6; }
14799 ac_res=$ac_cv_search_res_9_init
14800 if test "$ac_res" != no; then :
14801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14806 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
14807 $as_echo_n "checking for library containing res_init... " >&6; }
14808 if ${ac_cv_search_res_init+:} false; then :
14809 $as_echo_n "(cached) " >&6
14811 ac_func_search_save_LIBS=$LIBS
14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14813 /* end confdefs.h. */
14815 /* Override any GCC internal prototype to avoid an error.
14816 Use char because int might match the return type of a GCC
14817 builtin and then its argument prototype would still apply. */
14825 return res_init ();
14830 for ac_lib in '' resolv; do
14831 if test -z "$ac_lib"; then
14832 ac_res="none required"
14835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14837 if ac_fn_c_try_link "$LINENO"; then :
14838 ac_cv_search_res_init=$ac_res
14840 rm -f core conftest.err conftest.$ac_objext \
14842 if ${ac_cv_search_res_init+:} false; then :
14846 if ${ac_cv_search_res_init+:} false; then :
14849 ac_cv_search_res_init=no
14851 rm conftest.$ac_ext
14852 LIBS=$ac_func_search_save_LIBS
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
14855 $as_echo "$ac_cv_search_res_init" >&6; }
14856 ac_res=$ac_cv_search_res_init
14857 if test "$ac_res" != no; then :
14858 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14864 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
14866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14867 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
14868 # include <sys/types.h>
14870 #ifdef HAVE_NETINET_IN_H
14871 # include <netinet/in.h> /* inet_ functions / structs */
14873 #ifdef HAVE_ARPA_NAMESER_H
14874 # include <arpa/nameser.h> /* DNS HEADER struct */
14876 #ifdef HAVE_NETDB_H
14877 # include <netdb.h>
14880 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14881 cat >>confdefs.h <<_ACEOF
14882 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14890 #HMS: Why do we do this check so "early"?
14891 for ac_func in res_init
14893 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
14894 if test "x$ac_cv_func_res_init" = xyes; then :
14895 cat >>confdefs.h <<_ACEOF
14896 #define HAVE_RES_INIT 1
14900 for ac_func in __res_init
14902 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
14903 if test "x$ac_cv_func___res_init" = xyes; then :
14904 cat >>confdefs.h <<_ACEOF
14905 #define HAVE___RES_INIT 1
14915 # We also need -lsocket, but we have tested for that already.
14916 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
14917 if test "x$ac_cv_func_inet_ntop" = xyes; then :
14921 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
14925 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
14926 if test "x$ac_cv_func_inet_pton" = xyes; then :
14930 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
14935 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14936 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14938 cat >>confdefs.h <<_ACEOF
14939 #define HAVE_UINTPTR_T 1
14944 ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
14945 if test "x$ac_cv_type_int32" = xyes; then :
14947 cat >>confdefs.h <<_ACEOF
14948 #define HAVE_INT32 1
14953 ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
14954 if test "x$ac_cv_type_u_int32" = xyes; then :
14956 cat >>confdefs.h <<_ACEOF
14957 #define HAVE_U_INT32 1
14966 case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
14969 $as_echo_n "checking for int32 with DNS headers included... " >&6; }
14970 if ${ntp_cv_type_int32_with_dns+:} false; then :
14971 $as_echo_n "(cached) " >&6
14973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14974 /* end confdefs.h. */
14976 #ifdef HAVE_ARPA_NAMESER_H
14977 # include <arpa/nameser.h>
14979 #include <resolv.h>
14985 size_t cb = sizeof(int32);
14992 if ac_fn_c_try_compile "$LINENO"; then :
14993 ntp_cv_type_int32_with_dns=yes
14995 ntp_cv_type_int32_with_dns=no
14998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
15002 $as_echo "$ntp_cv_type_int32_with_dns" >&6; }
15003 case "$ntp_cv_type_int32_with_dns" in
15006 $as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
15011 case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
15014 $as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
15015 if ${ntp_cv_type_u_int32_with_dns+:} false; then :
15016 $as_echo_n "(cached) " >&6
15018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15019 /* end confdefs.h. */
15021 #ifdef HAVE_ARPA_NAMESER_H
15022 # include <arpa/nameser.h>
15024 #include <resolv.h>
15030 size_t cb = sizeof(u_int32);
15037 if ac_fn_c_try_compile "$LINENO"; then :
15038 ntp_cv_type_u_int32_with_dns=yes
15040 ntp_cv_type_u_int32_with_dns=no
15043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
15047 $as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
15048 case "$ntp_cv_type_u_int32_with_dns" in
15051 $as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
15056 for ac_header in sys/timepps.h
15058 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
15059 #ifdef HAVE_SYS_TIME_H
15060 # include <sys/time.h>
15062 #ifdef HAVE_ERRNO_H
15063 # include <errno.h>
15068 if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
15069 cat >>confdefs.h <<_ACEOF
15070 #define HAVE_SYS_TIMEPPS_H 1
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
15079 $as_echo_n "checking for struct timespec... " >&6; }
15080 if ${ntp_cv_struct_timespec+:} false; then :
15081 $as_echo_n "(cached) " >&6
15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084 /* end confdefs.h. */
15086 #include <sys/time.h>
15087 /* Under SunOS, timespec is in sys/timepps.h,
15088 which needs errno.h and FRAC */
15089 #ifdef HAVE_ERRNO_H
15090 # include <errno.h>
15092 #ifdef HAVE_SYS_TIMEPPS_H
15093 # define FRAC 4294967296
15094 # include <sys/timepps.h>
15108 if ac_fn_c_try_compile "$LINENO"; then :
15109 ntp_cv_struct_timespec=yes
15111 ntp_cv_struct_timespec=no
15114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
15118 $as_echo "$ntp_cv_struct_timespec" >&6; }
15119 case "$ntp_cv_struct_timespec" in
15122 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
15127 $as_echo_n "checking for struct ntptimeval... " >&6; }
15128 if ${ntp_cv_struct_ntptimeval+:} false; then :
15129 $as_echo_n "(cached) " >&6
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15134 #include <sys/time.h>
15135 #include <sys/timex.h>
15141 struct ntptimeval n;
15148 if ac_fn_c_try_compile "$LINENO"; then :
15149 ntp_cv_struct_ntptimeval=yes
15151 ntp_cv_struct_ntptimeval=no
15154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
15158 $as_echo "$ntp_cv_struct_ntptimeval" >&6; }
15159 case "$ntp_cv_struct_ntptimeval" in
15162 $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
15166 for ac_header in md5.h
15168 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
15169 #ifdef HAVE_SYS_TYPES_H
15170 # include <sys/types.h>
15175 if test "x$ac_cv_header_md5_h" = xyes; then :
15176 cat >>confdefs.h <<_ACEOF
15177 #define HAVE_MD5_H 1
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
15186 $as_echo_n "checking for library containing MD5Init... " >&6; }
15187 if ${ac_cv_search_MD5Init+:} false; then :
15188 $as_echo_n "(cached) " >&6
15190 ac_func_search_save_LIBS=$LIBS
15191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192 /* end confdefs.h. */
15194 /* Override any GCC internal prototype to avoid an error.
15195 Use char because int might match the return type of a GCC
15196 builtin and then its argument prototype would still apply. */
15209 for ac_lib in '' md5 md; do
15210 if test -z "$ac_lib"; then
15211 ac_res="none required"
15214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15216 if ac_fn_c_try_link "$LINENO"; then :
15217 ac_cv_search_MD5Init=$ac_res
15219 rm -f core conftest.err conftest.$ac_objext \
15221 if ${ac_cv_search_MD5Init+:} false; then :
15225 if ${ac_cv_search_MD5Init+:} false; then :
15228 ac_cv_search_MD5Init=no
15230 rm conftest.$ac_ext
15231 LIBS=$ac_func_search_save_LIBS
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
15234 $as_echo "$ac_cv_search_MD5Init" >&6; }
15235 ac_res=$ac_cv_search_MD5Init
15236 if test "$ac_res" != no; then :
15237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15241 for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
15243 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15244 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15245 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15246 cat >>confdefs.h <<_ACEOF
15247 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
15255 $as_echo_n "checking for SIGIO... " >&6; }
15256 if ${ntp_cv_hdr_def_sigio+:} false; then :
15257 $as_echo_n "(cached) " >&6
15259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15260 /* end confdefs.h. */
15262 #include <signal.h>
15269 if ac_fn_c_try_cpp "$LINENO"; then :
15270 ntp_cv_hdr_def_sigio=yes
15272 ntp_cv_hdr_def_sigio=no
15275 rm -f conftest.err conftest.i conftest.$ac_ext
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
15279 $as_echo "$ntp_cv_hdr_def_sigio" >&6; }
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
15282 $as_echo_n "checking if we want to use SIGIO... " >&6; }
15284 case "$ntp_cv_hdr_def_sigio" in
15288 alpha*-dec-osf4*|alpha*-dec-osf5*)
15333 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15337 $as_echo "$ans" >&6; }
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
15340 $as_echo_n "checking for SIGPOLL... " >&6; }
15341 if ${ntp_cv_hdr_def_sigpoll+:} false; then :
15342 $as_echo_n "(cached) " >&6
15344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15345 /* end confdefs.h. */
15347 #include <signal.h>
15354 if ac_fn_c_try_cpp "$LINENO"; then :
15355 ntp_cv_hdr_def_sigpoll=yes
15357 ntp_cv_hdr_def_sigpoll=no
15360 rm -f conftest.err conftest.i conftest.$ac_ext
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
15364 $as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
15367 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
15369 case "$ntp_cv_hdr_def_sigpoll" in
15388 # XXX Only verified thru AIX6
15426 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15430 $as_echo "$ans" >&6; }
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
15433 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
15435 case "$ntp_cv_hdr_def_sigpoll" in
15454 # XXX Only verified thru AIX6
15489 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15493 $as_echo "$ans" >&6; }
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
15496 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
15497 if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
15498 $as_echo_n "(cached) " >&6
15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15501 /* end confdefs.h. */
15503 #include <sys/time.h>
15509 gettimeofday(0, 0);
15510 settimeofday(0, 0);
15517 if ac_fn_c_try_compile "$LINENO"; then :
15518 ntp_cv_func_Xettimeofday_nargs=2
15520 ntp_cv_func_Xettimeofday_nargs=1
15523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
15527 $as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
15528 case "$ntp_cv_func_Xettimeofday_nargs" in
15531 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
15535 for ac_func in settimeofday
15537 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
15538 if test "x$ac_cv_func_settimeofday" = xyes; then :
15539 cat >>confdefs.h <<_ACEOF
15540 #define HAVE_SETTIMEOFDAY 1
15546 *-*-mpeix*) ac_cv_func_settimeofday=yes
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
15554 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
15555 ntp_warning='GRONK'
15557 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
15560 ans='clock_settime()'
15563 ntp_warning='But clock_settime() would be better (if we had it)'
15564 ans='settimeofday()'
15567 ntp_warning='Which is the worst of the three'
15573 ntp_warning='Which leaves us with nothing to use!'
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15577 $as_echo "$ans" >&6; }
15578 case "$ntp_warning" in
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
15583 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
15588 LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
15590 { __LIBS=; unset __LIBS;}
15594 # Check whether --enable-shared was given.
15595 if test "${enable_shared+set}" = set; then :
15596 enableval=$enable_shared; p=${PACKAGE-default}
15598 yes) enable_shared=yes ;;
15599 no) enable_shared=no ;;
15602 # Look at the argument we got. We use all the common list separators.
15603 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15604 for pkg in $enableval; do
15606 if test "X$pkg" = "X$p"; then
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
15628 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
15633 macro_version='2.4.6'
15634 macro_revision='2.4.6'
15648 ltmain=$ac_aux_dir/ltmain.sh
15650 # Backslashify metacharacters that are still active within
15651 # double-quoted strings.
15652 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
15654 # Same as above, but do not quote variable references.
15655 double_quote_subst='s/\(["`\\]\)/\\\1/g'
15657 # Sed substitution to delay expansion of an escaped shell variable in a
15658 # double_quote_subst'ed string.
15659 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15661 # Sed substitution to delay expansion of an escaped single quote.
15662 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
15664 # Sed substitution to avoid accidental globbing in evaled expressions
15665 no_glob_subst='s/\*/\\\*/g'
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15668 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15669 if ${lt_cv_path_NM+:} false; then :
15670 $as_echo_n "(cached) " >&6
15672 if test -n "$NM"; then
15673 # Let the user override the test.
15676 lt_nm_to_check=${ac_tool_prefix}nm
15677 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15678 lt_nm_to_check="$lt_nm_to_check nm"
15680 for lt_tmp_nm in $lt_nm_to_check; do
15681 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15682 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
15684 test -z "$ac_dir" && ac_dir=.
15685 tmp_nm=$ac_dir/$lt_tmp_nm
15686 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
15687 # Check to see if the nm accepts a BSD-compat flag.
15688 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
15689 # nm: unknown option "B" ignored
15690 # Tru64's nm complains that /dev/null is an invalid object file
15691 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
15693 mingw*) lt_bad_file=conftest.nm/nofile ;;
15694 *) lt_bad_file=/dev/null ;;
15696 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
15697 *$lt_bad_file* | *'Invalid file or object type'*)
15698 lt_cv_path_NM="$tmp_nm -B"
15702 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
15704 lt_cv_path_NM="$tmp_nm -p"
15708 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15709 continue # so that we can try to find one that supports BSD flags
15718 : ${lt_cv_path_NM=no}
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15722 $as_echo "$lt_cv_path_NM" >&6; }
15723 if test no != "$lt_cv_path_NM"; then
15726 # Didn't find any BSD compatible name lister, look for dumpbin.
15727 if test -n "$DUMPBIN"; then :
15728 # Let the user override the test.
15730 if test -n "$ac_tool_prefix"; then
15731 for ac_prog in dumpbin "link -dump"
15733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15736 $as_echo_n "checking for $ac_word... " >&6; }
15737 if ${ac_cv_prog_DUMPBIN+:} false; then :
15738 $as_echo_n "(cached) " >&6
15740 if test -n "$DUMPBIN"; then
15741 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
15743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15744 for as_dir in $PATH
15747 test -z "$as_dir" && as_dir=.
15748 for ac_exec_ext in '' $ac_executable_extensions; do
15749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15750 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
15751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15760 DUMPBIN=$ac_cv_prog_DUMPBIN
15761 if test -n "$DUMPBIN"; then
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15763 $as_echo "$DUMPBIN" >&6; }
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15766 $as_echo "no" >&6; }
15770 test -n "$DUMPBIN" && break
15773 if test -z "$DUMPBIN"; then
15774 ac_ct_DUMPBIN=$DUMPBIN
15775 for ac_prog in dumpbin "link -dump"
15777 # Extract the first word of "$ac_prog", so it can be a program name with args.
15778 set dummy $ac_prog; ac_word=$2
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15780 $as_echo_n "checking for $ac_word... " >&6; }
15781 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
15782 $as_echo_n "(cached) " >&6
15784 if test -n "$ac_ct_DUMPBIN"; then
15785 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
15787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15788 for as_dir in $PATH
15791 test -z "$as_dir" && as_dir=.
15792 for ac_exec_ext in '' $ac_executable_extensions; do
15793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15794 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
15795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15804 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
15805 if test -n "$ac_ct_DUMPBIN"; then
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15807 $as_echo "$ac_ct_DUMPBIN" >&6; }
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15810 $as_echo "no" >&6; }
15814 test -n "$ac_ct_DUMPBIN" && break
15817 if test "x$ac_ct_DUMPBIN" = x; then
15820 case $cross_compiling:$ac_tool_warned in
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15824 ac_tool_warned=yes ;;
15826 DUMPBIN=$ac_ct_DUMPBIN
15830 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
15832 DUMPBIN="$DUMPBIN -symbols -headers"
15840 if test : != "$DUMPBIN"; then
15844 test -z "$NM" && NM=nm
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
15852 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
15853 if ${lt_cv_nm_interface+:} false; then :
15854 $as_echo_n "(cached) " >&6
15856 lt_cv_nm_interface="BSD nm"
15857 echo "int some_variable = 0;" > conftest.$ac_ext
15858 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15859 (eval "$ac_compile" 2>conftest.err)
15860 cat conftest.err >&5
15861 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15862 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
15863 cat conftest.err >&5
15864 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
15865 cat conftest.out >&5
15866 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
15867 lt_cv_nm_interface="MS dumpbin"
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
15872 $as_echo "$lt_cv_nm_interface" >&6; }
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15875 $as_echo_n "checking whether ln -s works... " >&6; }
15877 if test "$LN_S" = "ln -s"; then
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15879 $as_echo "yes" >&6; }
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15882 $as_echo "no, using $LN_S" >&6; }
15885 # find the maximum length of command line arguments
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
15887 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
15888 if ${lt_cv_sys_max_cmd_len+:} false; then :
15889 $as_echo_n "(cached) " >&6
15896 # On DJGPP, this test can blow up pretty badly due to problems in libc
15897 # (any single argument exceeding 2000 bytes causes a buffer overrun
15898 # during glob expansion). Even if it were fixed, the result of this
15899 # check would be larger than it should be.
15900 lt_cv_sys_max_cmd_len=12288; # 12K is about right
15904 # Under GNU Hurd, this test is not required because there is
15905 # no limit to the length of command line arguments.
15906 # Libtool will interpret -1 as no limit whatsoever
15907 lt_cv_sys_max_cmd_len=-1;
15910 cygwin* | mingw* | cegcc*)
15911 # On Win9x/ME, this test blows up -- it succeeds, but takes
15912 # about 5 minutes as the teststring grows exponentially.
15913 # Worse, since 9x/ME are not pre-emptively multitasking,
15914 # you end up with a "frozen" computer, even though with patience
15915 # the test eventually succeeds (with a max line length of 256k).
15916 # Instead, let's just punt: use the minimum linelength reported by
15917 # all of the supported platforms: 8192 (on NT/2K/XP).
15918 lt_cv_sys_max_cmd_len=8192;
15922 # On MiNT this can take a long time and run out of memory.
15923 lt_cv_sys_max_cmd_len=8192;
15927 # On AmigaOS with pdksh, this test takes hours, literally.
15928 # So we just punt and use a minimum line length of 8192.
15929 lt_cv_sys_max_cmd_len=8192;
15932 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
15933 # This has been around since 386BSD, at least. Likely further.
15934 if test -x /sbin/sysctl; then
15935 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
15936 elif test -x /usr/sbin/sysctl; then
15937 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
15939 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
15941 # And add a safety zone
15942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15947 # We know the value 262144 and hardcode it with a safety zone (like BSD)
15948 lt_cv_sys_max_cmd_len=196608
15952 # The test takes a long time on OS/2.
15953 lt_cv_sys_max_cmd_len=8192
15957 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15958 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15959 # nice to cause kernel panics so lets avoid the loop below.
15960 # First set a reasonable default.
15961 lt_cv_sys_max_cmd_len=16384
15963 if test -x /sbin/sysconfig; then
15964 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15965 *1*) lt_cv_sys_max_cmd_len=-1 ;;
15970 lt_cv_sys_max_cmd_len=102400
15972 sysv5* | sco5v6* | sysv4.2uw2*)
15973 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15974 if test -n "$kargmax"; then
15975 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
15977 lt_cv_sys_max_cmd_len=32768
15981 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
15982 if test -n "$lt_cv_sys_max_cmd_len" && \
15983 test undefined != "$lt_cv_sys_max_cmd_len"; then
15984 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15987 # Make teststring a little bigger before we do anything with it.
15988 # a 1K string should be a reasonable start.
15989 for i in 1 2 3 4 5 6 7 8; do
15990 teststring=$teststring$teststring
15992 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15993 # If test is not a shell built-in, we'll probably end up computing a
15994 # maximum length that is only half of the actual maximum length, but
15996 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
15997 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
15998 test 17 != "$i" # 1/2 MB should be enough
16001 teststring=$teststring$teststring
16003 # Only check the string length outside the loop.
16004 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
16006 # Add a significant safety factor because C++ compilers can tack on
16007 # massive amounts of additional arguments before passing them to the
16008 # linker. It appears as though 1/2 is a usable value.
16009 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16016 if test -n "$lt_cv_sys_max_cmd_len"; then
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
16018 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16021 $as_echo "none" >&6; }
16023 max_cmd_len=$lt_cv_sys_max_cmd_len
16034 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16044 # test EBCDIC or ASCII
16045 case `echo X|tr X '\101'` in
16046 A) # ASCII based system
16047 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16048 lt_SP2NL='tr \040 \012'
16049 lt_NL2SP='tr \015\012 \040\040'
16051 *) # EBCDIC based system
16052 lt_SP2NL='tr \100 \n'
16053 lt_NL2SP='tr \r\n \100\100'
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
16066 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
16067 if ${lt_cv_to_host_file_cmd+:} false; then :
16068 $as_echo_n "(cached) " >&6
16073 *-*-mingw* ) # actually msys
16074 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
16077 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
16079 * ) # otherwise, assume *nix
16080 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
16086 *-*-mingw* ) # actually msys
16087 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
16090 lt_cv_to_host_file_cmd=func_convert_file_noop
16092 * ) # otherwise, assume *nix
16093 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
16097 * ) # unhandled hosts (and "normal" native builds)
16098 lt_cv_to_host_file_cmd=func_convert_file_noop
16104 to_host_file_cmd=$lt_cv_to_host_file_cmd
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
16106 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
16113 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
16114 if ${lt_cv_to_tool_file_cmd+:} false; then :
16115 $as_echo_n "(cached) " >&6
16117 #assume ordinary cross tools, or native build.
16118 lt_cv_to_tool_file_cmd=func_convert_file_noop
16122 *-*-mingw* ) # actually msys
16123 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
16131 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
16133 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
16140 $as_echo_n "checking for $LD option to reload object files... " >&6; }
16141 if ${lt_cv_ld_reload_flag+:} false; then :
16142 $as_echo_n "(cached) " >&6
16144 lt_cv_ld_reload_flag='-r'
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
16147 $as_echo "$lt_cv_ld_reload_flag" >&6; }
16148 reload_flag=$lt_cv_ld_reload_flag
16149 case $reload_flag in
16151 *) reload_flag=" $reload_flag" ;;
16153 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16155 cygwin* | mingw* | pw32* | cegcc*)
16156 if test yes != "$GCC"; then
16161 if test yes = "$GCC"; then
16162 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
16164 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16177 if test -n "$ac_tool_prefix"; then
16178 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16179 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16181 $as_echo_n "checking for $ac_word... " >&6; }
16182 if ${ac_cv_prog_OBJDUMP+:} false; then :
16183 $as_echo_n "(cached) " >&6
16185 if test -n "$OBJDUMP"; then
16186 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16189 for as_dir in $PATH
16192 test -z "$as_dir" && as_dir=.
16193 for ac_exec_ext in '' $ac_executable_extensions; do
16194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16195 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16205 OBJDUMP=$ac_cv_prog_OBJDUMP
16206 if test -n "$OBJDUMP"; then
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16208 $as_echo "$OBJDUMP" >&6; }
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16211 $as_echo "no" >&6; }
16216 if test -z "$ac_cv_prog_OBJDUMP"; then
16217 ac_ct_OBJDUMP=$OBJDUMP
16218 # Extract the first word of "objdump", so it can be a program name with args.
16219 set dummy objdump; ac_word=$2
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16221 $as_echo_n "checking for $ac_word... " >&6; }
16222 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16223 $as_echo_n "(cached) " >&6
16225 if test -n "$ac_ct_OBJDUMP"; then
16226 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16229 for as_dir in $PATH
16232 test -z "$as_dir" && as_dir=.
16233 for ac_exec_ext in '' $ac_executable_extensions; do
16234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16235 ac_cv_prog_ac_ct_OBJDUMP="objdump"
16236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16245 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16246 if test -n "$ac_ct_OBJDUMP"; then
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16248 $as_echo "$ac_ct_OBJDUMP" >&6; }
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16251 $as_echo "no" >&6; }
16254 if test "x$ac_ct_OBJDUMP" = x; then
16257 case $cross_compiling:$ac_tool_warned in
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16261 ac_tool_warned=yes ;;
16263 OBJDUMP=$ac_ct_OBJDUMP
16266 OBJDUMP="$ac_cv_prog_OBJDUMP"
16269 test -z "$OBJDUMP" && OBJDUMP=objdump
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
16280 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
16281 if ${lt_cv_deplibs_check_method+:} false; then :
16282 $as_echo_n "(cached) " >&6
16284 lt_cv_file_magic_cmd='$MAGIC_CMD'
16285 lt_cv_file_magic_test_file=
16286 lt_cv_deplibs_check_method='unknown'
16287 # Need to set the preceding variable on all platforms that support
16288 # interlibrary dependencies.
16289 # 'none' -- dependencies not supported.
16290 # 'unknown' -- same as none, but documents that we really don't know.
16291 # 'pass_all' -- all dependencies passed with no checks.
16292 # 'test_compile' -- check by making test program.
16293 # 'file_magic [[regex]]' -- check by looking for files in library path
16294 # that responds to the $file_magic_cmd with a given extended regex.
16295 # If you have 'file' or equivalent on your system and you're not sure
16296 # whether 'pass_all' will *always* work, you probably want this one.
16300 lt_cv_deplibs_check_method=pass_all
16304 lt_cv_deplibs_check_method=pass_all
16308 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16309 lt_cv_file_magic_cmd='/usr/bin/file -L'
16310 lt_cv_file_magic_test_file=/shlib/libc.so
16314 # func_win32_libid is a shell function defined in ltmain.sh
16315 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16316 lt_cv_file_magic_cmd='func_win32_libid'
16320 # Base MSYS/MinGW do not provide the 'file' command needed by
16321 # func_win32_libid shell function, so use a weaker test based on 'objdump',
16322 # unless we find 'file', for example because we are cross-compiling.
16323 if ( file / ) >/dev/null 2>&1; then
16324 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16325 lt_cv_file_magic_cmd='func_win32_libid'
16327 # Keep this pattern in sync with the one in func_win32_libid.
16328 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
16329 lt_cv_file_magic_cmd='$OBJDUMP -f'
16334 # use the weaker test based on 'objdump'. See mingw*.
16335 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16336 lt_cv_file_magic_cmd='$OBJDUMP -f'
16339 darwin* | rhapsody*)
16340 lt_cv_deplibs_check_method=pass_all
16343 freebsd* | dragonfly*)
16344 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16347 # Not sure whether the presence of OpenBSD here was a mistake.
16348 # Let's accept both of them until this is cleared up.
16349 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16350 lt_cv_file_magic_cmd=/usr/bin/file
16351 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16355 lt_cv_deplibs_check_method=pass_all
16360 lt_cv_deplibs_check_method=pass_all
16363 hpux10.20* | hpux11*)
16364 lt_cv_file_magic_cmd=/usr/bin/file
16367 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16368 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16371 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]'
16372 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16375 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
16376 lt_cv_file_magic_test_file=/usr/lib/libc.sl
16382 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
16383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
16386 irix5* | irix6* | nonstopux*)
16388 *-32|*"-32 ") libmagic=32-bit;;
16389 *-n32|*"-n32 ") libmagic=N32;;
16390 *-64|*"-64 ") libmagic=64-bit;;
16391 *) libmagic=never-match;;
16393 lt_cv_deplibs_check_method=pass_all
16396 # This must be glibc/ELF.
16397 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16398 lt_cv_deplibs_check_method=pass_all
16402 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
16410 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
16411 lt_cv_file_magic_cmd=/usr/bin/file
16412 lt_cv_file_magic_test_file=/usr/lib/libnls.so
16416 lt_cv_deplibs_check_method=pass_all
16419 openbsd* | bitrig*)
16420 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
16423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16427 osf3* | osf4* | osf5*)
16428 lt_cv_deplibs_check_method=pass_all
16432 lt_cv_deplibs_check_method=pass_all
16436 lt_cv_deplibs_check_method=pass_all
16439 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16440 lt_cv_deplibs_check_method=pass_all
16444 case $host_vendor in
16446 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]'
16447 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
16450 lt_cv_deplibs_check_method=pass_all
16453 lt_cv_file_magic_cmd='/bin/file'
16454 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
16457 lt_cv_file_magic_cmd='/bin/file'
16458 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
16459 lt_cv_file_magic_test_file=/lib/libc.so
16462 lt_cv_deplibs_check_method=pass_all
16465 lt_cv_deplibs_check_method=pass_all
16471 lt_cv_deplibs_check_method=pass_all
16474 lt_cv_deplibs_check_method=pass_all
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
16480 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16484 if test "$build" = "$host"; then
16487 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
16488 want_nocaseglob=yes
16490 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
16496 file_magic_cmd=$lt_cv_file_magic_cmd
16497 deplibs_check_method=$lt_cv_deplibs_check_method
16498 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16521 if test -n "$ac_tool_prefix"; then
16522 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
16523 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16525 $as_echo_n "checking for $ac_word... " >&6; }
16526 if ${ac_cv_prog_DLLTOOL+:} false; then :
16527 $as_echo_n "(cached) " >&6
16529 if test -n "$DLLTOOL"; then
16530 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16533 for as_dir in $PATH
16536 test -z "$as_dir" && as_dir=.
16537 for ac_exec_ext in '' $ac_executable_extensions; do
16538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16539 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
16540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16549 DLLTOOL=$ac_cv_prog_DLLTOOL
16550 if test -n "$DLLTOOL"; then
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
16552 $as_echo "$DLLTOOL" >&6; }
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16555 $as_echo "no" >&6; }
16560 if test -z "$ac_cv_prog_DLLTOOL"; then
16561 ac_ct_DLLTOOL=$DLLTOOL
16562 # Extract the first word of "dlltool", so it can be a program name with args.
16563 set dummy dlltool; ac_word=$2
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16565 $as_echo_n "checking for $ac_word... " >&6; }
16566 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
16567 $as_echo_n "(cached) " >&6
16569 if test -n "$ac_ct_DLLTOOL"; then
16570 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16573 for as_dir in $PATH
16576 test -z "$as_dir" && as_dir=.
16577 for ac_exec_ext in '' $ac_executable_extensions; do
16578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16579 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16589 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16590 if test -n "$ac_ct_DLLTOOL"; then
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
16592 $as_echo "$ac_ct_DLLTOOL" >&6; }
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16595 $as_echo "no" >&6; }
16598 if test "x$ac_ct_DLLTOOL" = x; then
16601 case $cross_compiling:$ac_tool_warned in
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16605 ac_tool_warned=yes ;;
16607 DLLTOOL=$ac_ct_DLLTOOL
16610 DLLTOOL="$ac_cv_prog_DLLTOOL"
16613 test -z "$DLLTOOL" && DLLTOOL=dlltool
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
16625 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
16626 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
16627 $as_echo_n "(cached) " >&6
16629 lt_cv_sharedlib_from_linklib_cmd='unknown'
16632 cygwin* | mingw* | pw32* | cegcc*)
16633 # two different shell functions defined in ltmain.sh;
16634 # decide which one to use based on capabilities of $DLLTOOL
16635 case `$DLLTOOL --help 2>&1` in
16636 *--identify-strict*)
16637 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
16640 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
16645 # fallback: assume linklib IS sharedlib
16646 lt_cv_sharedlib_from_linklib_cmd=$ECHO
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
16652 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
16653 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
16654 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
16662 if test -n "$ac_tool_prefix"; then
16665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16668 $as_echo_n "checking for $ac_word... " >&6; }
16669 if ${ac_cv_prog_AR+:} false; then :
16670 $as_echo_n "(cached) " >&6
16672 if test -n "$AR"; then
16673 ac_cv_prog_AR="$AR" # Let the user override the test.
16675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16676 for as_dir in $PATH
16679 test -z "$as_dir" && as_dir=.
16680 for ac_exec_ext in '' $ac_executable_extensions; do
16681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16682 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
16683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16693 if test -n "$AR"; then
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16695 $as_echo "$AR" >&6; }
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16698 $as_echo "no" >&6; }
16702 test -n "$AR" && break
16705 if test -z "$AR"; then
16709 # Extract the first word of "$ac_prog", so it can be a program name with args.
16710 set dummy $ac_prog; ac_word=$2
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16712 $as_echo_n "checking for $ac_word... " >&6; }
16713 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16714 $as_echo_n "(cached) " >&6
16716 if test -n "$ac_ct_AR"; then
16717 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16720 for as_dir in $PATH
16723 test -z "$as_dir" && as_dir=.
16724 for ac_exec_ext in '' $ac_executable_extensions; do
16725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16726 ac_cv_prog_ac_ct_AR="$ac_prog"
16727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16736 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16737 if test -n "$ac_ct_AR"; then
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16739 $as_echo "$ac_ct_AR" >&6; }
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16742 $as_echo "no" >&6; }
16746 test -n "$ac_ct_AR" && break
16749 if test "x$ac_ct_AR" = x; then
16752 case $cross_compiling:$ac_tool_warned in
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16756 ac_tool_warned=yes ;;
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
16776 $as_echo_n "checking for archiver @FILE support... " >&6; }
16777 if ${lt_cv_ar_at_file+:} false; then :
16778 $as_echo_n "(cached) " >&6
16780 lt_cv_ar_at_file=no
16781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16782 /* end confdefs.h. */
16792 if ac_fn_c_try_compile "$LINENO"; then :
16793 echo conftest.$ac_objext > conftest.lst
16794 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
16795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16796 (eval $lt_ar_try) 2>&5
16798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16799 test $ac_status = 0; }
16800 if test 0 -eq "$ac_status"; then
16801 # Ensure the archiver fails upon bogus file names.
16802 rm -f conftest.$ac_objext libconftest.a
16803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16804 (eval $lt_ar_try) 2>&5
16806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16807 test $ac_status = 0; }
16808 if test 0 -ne "$ac_status"; then
16812 rm -f conftest.* libconftest.a
16815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
16819 $as_echo "$lt_cv_ar_at_file" >&6; }
16821 if test no = "$lt_cv_ar_at_file"; then
16822 archiver_list_spec=
16824 archiver_list_spec=$lt_cv_ar_at_file
16833 if test -n "$ac_tool_prefix"; then
16834 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16835 set dummy ${ac_tool_prefix}strip; ac_word=$2
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16837 $as_echo_n "checking for $ac_word... " >&6; }
16838 if ${ac_cv_prog_STRIP+:} false; then :
16839 $as_echo_n "(cached) " >&6
16841 if test -n "$STRIP"; then
16842 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16845 for as_dir in $PATH
16848 test -z "$as_dir" && as_dir=.
16849 for ac_exec_ext in '' $ac_executable_extensions; do
16850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16851 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16861 STRIP=$ac_cv_prog_STRIP
16862 if test -n "$STRIP"; then
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16864 $as_echo "$STRIP" >&6; }
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16867 $as_echo "no" >&6; }
16872 if test -z "$ac_cv_prog_STRIP"; then
16874 # Extract the first word of "strip", so it can be a program name with args.
16875 set dummy strip; ac_word=$2
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16877 $as_echo_n "checking for $ac_word... " >&6; }
16878 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16879 $as_echo_n "(cached) " >&6
16881 if test -n "$ac_ct_STRIP"; then
16882 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16885 for as_dir in $PATH
16888 test -z "$as_dir" && as_dir=.
16889 for ac_exec_ext in '' $ac_executable_extensions; do
16890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16891 ac_cv_prog_ac_ct_STRIP="strip"
16892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16901 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16902 if test -n "$ac_ct_STRIP"; then
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16904 $as_echo "$ac_ct_STRIP" >&6; }
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16907 $as_echo "no" >&6; }
16910 if test "x$ac_ct_STRIP" = x; then
16913 case $cross_compiling:$ac_tool_warned in
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16917 ac_tool_warned=yes ;;
16922 STRIP="$ac_cv_prog_STRIP"
16925 test -z "$STRIP" && STRIP=:
16932 if test -n "$ac_tool_prefix"; then
16933 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16934 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16936 $as_echo_n "checking for $ac_word... " >&6; }
16937 if ${ac_cv_prog_RANLIB+:} false; then :
16938 $as_echo_n "(cached) " >&6
16940 if test -n "$RANLIB"; then
16941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16944 for as_dir in $PATH
16947 test -z "$as_dir" && as_dir=.
16948 for ac_exec_ext in '' $ac_executable_extensions; do
16949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16950 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16960 RANLIB=$ac_cv_prog_RANLIB
16961 if test -n "$RANLIB"; then
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16963 $as_echo "$RANLIB" >&6; }
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16966 $as_echo "no" >&6; }
16971 if test -z "$ac_cv_prog_RANLIB"; then
16972 ac_ct_RANLIB=$RANLIB
16973 # Extract the first word of "ranlib", so it can be a program name with args.
16974 set dummy ranlib; ac_word=$2
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16976 $as_echo_n "checking for $ac_word... " >&6; }
16977 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16978 $as_echo_n "(cached) " >&6
16980 if test -n "$ac_ct_RANLIB"; then
16981 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16984 for as_dir in $PATH
16987 test -z "$as_dir" && as_dir=.
16988 for ac_exec_ext in '' $ac_executable_extensions; do
16989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16990 ac_cv_prog_ac_ct_RANLIB="ranlib"
16991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17000 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17001 if test -n "$ac_ct_RANLIB"; then
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17003 $as_echo "$ac_ct_RANLIB" >&6; }
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17006 $as_echo "no" >&6; }
17009 if test "x$ac_ct_RANLIB" = x; then
17012 case $cross_compiling:$ac_tool_warned in
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17016 ac_tool_warned=yes ;;
17018 RANLIB=$ac_ct_RANLIB
17021 RANLIB="$ac_cv_prog_RANLIB"
17024 test -z "$RANLIB" && RANLIB=:
17031 # Determine commands to create old-style static archives.
17032 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
17033 old_postinstall_cmds='chmod 644 $oldlib'
17034 old_postuninstall_cmds=
17036 if test -n "$RANLIB"; then
17038 bitrig* | openbsd*)
17039 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
17042 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
17045 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
17050 lock_old_archive_extraction=yes ;;
17052 lock_old_archive_extraction=no ;;
17093 # If no C compiler was specified, use CC.
17096 # If no C compiler flags were specified, use CFLAGS.
17097 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17099 # Allow CC to be a program name with arguments.
17103 # Check for command to grab the raw symbol name followed by C symbol from nm.
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
17105 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
17106 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
17107 $as_echo_n "(cached) " >&6
17110 # These are sane defaults that work on at least a few old systems.
17111 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
17113 # Character class describing NM global symbol codes.
17114 symcode='[BCDEGRST]'
17116 # Regexp to match symbols that can be accessed directly from C.
17117 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
17119 # Define system-specific variables.
17124 cygwin* | mingw* | pw32* | cegcc*)
17125 symcode='[ABCDGISTW]'
17128 if test ia64 = "$host_cpu"; then
17129 symcode='[ABCDEGRST]'
17132 irix* | nonstopux*)
17133 symcode='[BCDEGRST]'
17136 symcode='[BCDEGQRST]'
17147 sysv5* | sco5v6* | unixware* | OpenUNIX*)
17155 # If we're using GNU nm, then use its standard symbol codes.
17156 case `$NM -V 2>&1` in
17157 *GNU* | *'with BFD'*)
17158 symcode='[ABCDGIRSTW]' ;;
17161 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17162 # Gets list of data symbols to import.
17163 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
17164 # Adjust the below global symbol transforms to fixup imported variables.
17165 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
17166 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
17167 lt_c_name_lib_hook="\
17168 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
17169 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
17171 # Disable hooks by default.
17172 lt_cv_sys_global_symbol_to_import=
17175 lt_c_name_lib_hook=
17178 # Transform an extracted symbol line into a proper C declaration.
17179 # Some systems (esp. on ia64) link data and code symbols differently,
17180 # so use this general approach.
17181 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
17183 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
17184 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
17186 # Transform an extracted symbol line into symbol name and symbol address
17187 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
17189 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
17190 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
17192 # Transform an extracted symbol line into symbol name with lib prefix and
17194 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
17195 $lt_c_name_lib_hook\
17196 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
17197 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
17198 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
17200 # Handle CRLF in mingw tool chain
17204 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
17208 # Try without a prefix underscore, then with it.
17209 for ac_symprfx in "" "_"; do
17211 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
17212 symxfrm="\\1 $ac_symprfx\\2 \\2"
17214 # Write the raw and C identifiers.
17215 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17216 # Fake it for dumpbin and say T for any non-static function,
17217 # D for any global variable and I for any imported variable.
17218 # Also find C++ and __fastcall symbols from MSVC++,
17219 # which start with @ or ?.
17220 lt_cv_sys_global_symbol_pipe="$AWK '"\
17221 " {last_section=section; section=\$ 3};"\
17222 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
17223 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
17224 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
17225 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
17226 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
17227 " \$ 0!~/External *\|/{next};"\
17228 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
17229 " {if(hide[section]) next};"\
17230 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
17231 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
17232 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
17233 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
17234 " ' prfx=^$ac_symprfx"
17236 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
17238 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
17240 # Check to see that the pipe works correctly.
17244 cat > conftest.$ac_ext <<_LT_EOF
17249 void nm_test_func(void);
17250 void nm_test_func(void){}
17254 int main(){nm_test_var='a';nm_test_func();return(0);}
17257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17258 (eval $ac_compile) 2>&5
17260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17261 test $ac_status = 0; }; then
17262 # Now try to grab the symbols.
17264 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
17265 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
17267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17268 test $ac_status = 0; } && test -s "$nlist"; then
17269 # Try sorting and uniquifying the output.
17270 if sort "$nlist" | uniq > "$nlist"T; then
17271 mv -f "$nlist"T "$nlist"
17276 # Make sure that we snagged all the symbols we need.
17277 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
17278 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
17279 cat <<_LT_EOF > conftest.$ac_ext
17280 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
17281 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
17282 /* DATA imports from DLLs on WIN32 can't be const, because runtime
17283 relocations are performed -- see ld's documentation on pseudo-relocs. */
17284 # define LT_DLSYM_CONST
17285 #elif defined __osf__
17286 /* This system does not cope well with relocations in const data. */
17287 # define LT_DLSYM_CONST
17289 # define LT_DLSYM_CONST const
17297 # Now generate the symbol file.
17298 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
17300 cat <<_LT_EOF >> conftest.$ac_ext
17302 /* The mapping between symbol names and symbols. */
17303 LT_DLSYM_CONST struct {
17307 lt__PROGRAM__LTX_preloaded_symbols[] =
17309 { "@PROGRAM@", (void *) 0 },
17311 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
17312 cat <<\_LT_EOF >> conftest.$ac_ext
17316 /* This works around a problem in FreeBSD linker */
17317 #ifdef FREEBSD_WORKAROUND
17318 static const void *lt_preloaded_setup() {
17319 return lt__PROGRAM__LTX_preloaded_symbols;
17327 # Now try linking the two files.
17328 mv conftest.$ac_objext conftstm.$ac_objext
17329 lt_globsym_save_LIBS=$LIBS
17330 lt_globsym_save_CFLAGS=$CFLAGS
17331 LIBS=conftstm.$ac_objext
17332 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
17333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17334 (eval $ac_link) 2>&5
17336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17337 test $ac_status = 0; } && test -s conftest$ac_exeext; then
17340 LIBS=$lt_globsym_save_LIBS
17341 CFLAGS=$lt_globsym_save_CFLAGS
17343 echo "cannot find nm_test_func in $nlist" >&5
17346 echo "cannot find nm_test_var in $nlist" >&5
17349 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
17352 echo "$progname: failed program was:" >&5
17353 cat conftest.$ac_ext >&5
17355 rm -rf conftest* conftst*
17357 # Do not use the global_symbol_pipe unless it works.
17358 if test yes = "$pipe_works"; then
17361 lt_cv_sys_global_symbol_pipe=
17367 if test -z "$lt_cv_sys_global_symbol_pipe"; then
17368 lt_cv_sys_global_symbol_to_cdecl=
17370 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
17372 $as_echo "failed" >&6; }
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17375 $as_echo "ok" >&6; }
17378 # Response file support.
17379 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17380 nm_file_list_spec='@'
17381 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
17382 nm_file_list_spec='@'
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17422 $as_echo_n "checking for sysroot... " >&6; }
17424 # Check whether --with-sysroot was given.
17425 if test "${with_sysroot+set}" = set; then :
17426 withval=$with_sysroot;
17433 case $with_sysroot in #(
17435 if test yes = "$GCC"; then
17436 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
17440 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
17446 $as_echo "$with_sysroot" >&6; }
17447 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
17452 $as_echo "${lt_sysroot:-no}" >&6; }
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
17459 $as_echo_n "checking for a working dd... " >&6; }
17460 if ${ac_cv_path_lt_DD+:} false; then :
17461 $as_echo_n "(cached) " >&6
17463 printf 0123456789abcdef0123456789abcdef >conftest.i
17464 cat conftest.i conftest.i >conftest2.i
17466 if test -z "$lt_DD"; then
17467 ac_path_lt_DD_found=false
17468 # Loop through the user's path and test for each of PROGNAME-LIST
17469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17470 for as_dir in $PATH
17473 test -z "$as_dir" && as_dir=.
17474 for ac_prog in dd; do
17475 for ac_exec_ext in '' $ac_executable_extensions; do
17476 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
17477 as_fn_executable_p "$ac_path_lt_DD" || continue
17478 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
17479 cmp -s conftest.i conftest.out \
17480 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
17482 $ac_path_lt_DD_found && break 3
17487 if test -z "$ac_cv_path_lt_DD"; then
17491 ac_cv_path_lt_DD=$lt_DD
17494 rm -f conftest.i conftest2.i conftest.out
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
17497 $as_echo "$ac_cv_path_lt_DD" >&6; }
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
17501 $as_echo_n "checking how to truncate binary pipes... " >&6; }
17502 if ${lt_cv_truncate_bin+:} false; then :
17503 $as_echo_n "(cached) " >&6
17505 printf 0123456789abcdef0123456789abcdef >conftest.i
17506 cat conftest.i conftest.i >conftest2.i
17507 lt_cv_truncate_bin=
17508 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
17509 cmp -s conftest.i conftest.out \
17510 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
17512 rm -f conftest.i conftest2.i conftest.out
17513 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
17516 $as_echo "$lt_cv_truncate_bin" >&6; }
17524 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17525 func_cc_basename ()
17527 for cc_temp in $*""; do
17529 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17530 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17535 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17538 # Check whether --enable-libtool-lock was given.
17539 if test "${enable_libtool_lock+set}" = set; then :
17540 enableval=$enable_libtool_lock;
17543 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
17545 # Some flags need to be propagated to the compiler or linker for good
17549 # Find out what ABI is being produced by ac_compile, and set mode
17550 # options accordingly.
17551 echo 'int i;' > conftest.$ac_ext
17552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17553 (eval $ac_compile) 2>&5
17555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17556 test $ac_status = 0; }; then
17557 case `/usr/bin/file conftest.$ac_objext` in
17569 # Find out what ABI is being produced by ac_compile, and set linker
17570 # options accordingly.
17571 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
17572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17573 (eval $ac_compile) 2>&5
17575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17576 test $ac_status = 0; }; then
17577 if test yes = "$lt_cv_prog_gnu_ld"; then
17578 case `/usr/bin/file conftest.$ac_objext` in
17580 LD="${LD-ld} -melf32bsmip"
17583 LD="${LD-ld} -melf32bmipn32"
17586 LD="${LD-ld} -melf64bmip"
17590 case `/usr/bin/file conftest.$ac_objext` in
17607 # Find out what ABI is being produced by ac_compile, and set linker
17608 # options accordingly.
17609 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
17610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17611 (eval $ac_compile) 2>&5
17613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17614 test $ac_status = 0; }; then
17616 case `/usr/bin/file conftest.$ac_objext` in
17624 case `/usr/bin/file conftest.$ac_objext` in
17626 emul="${emul}btsmip"
17629 emul="${emul}ltsmip"
17632 case `/usr/bin/file conftest.$ac_objext` in
17637 LD="${LD-ld} -m $emul"
17642 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
17643 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
17644 # Find out what ABI is being produced by ac_compile, and set linker
17645 # options accordingly. Note that the listed cases only cover the
17646 # situations where additional linker options are needed (such as when
17647 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
17648 # vice versa); the common cases where no linker options are needed do
17649 # not appear in the list.
17650 echo 'int i;' > conftest.$ac_ext
17651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17652 (eval $ac_compile) 2>&5
17654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17655 test $ac_status = 0; }; then
17656 case `/usr/bin/file conftest.o` in
17659 x86_64-*kfreebsd*-gnu)
17660 LD="${LD-ld} -m elf_i386_fbsd"
17663 case `/usr/bin/file conftest.o` in
17665 LD="${LD-ld} -m elf32_x86_64"
17668 LD="${LD-ld} -m elf_i386"
17672 powerpc64le-*linux*)
17673 LD="${LD-ld} -m elf32lppclinux"
17676 LD="${LD-ld} -m elf32ppclinux"
17679 LD="${LD-ld} -m elf_s390"
17682 LD="${LD-ld} -m elf32_sparc"
17688 x86_64-*kfreebsd*-gnu)
17689 LD="${LD-ld} -m elf_x86_64_fbsd"
17692 LD="${LD-ld} -m elf_x86_64"
17695 LD="${LD-ld} -m elf64lppc"
17698 LD="${LD-ld} -m elf64ppc"
17700 s390*-*linux*|s390*-*tpf*)
17701 LD="${LD-ld} -m elf64_s390"
17704 LD="${LD-ld} -m elf64_sparc"
17714 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
17715 SAVE_CFLAGS=$CFLAGS
17716 CFLAGS="$CFLAGS -belf"
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
17718 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
17719 if ${lt_cv_cc_needs_belf+:} false; then :
17720 $as_echo_n "(cached) " >&6
17723 ac_cpp='$CPP $CPPFLAGS'
17724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17729 /* end confdefs.h. */
17739 if ac_fn_c_try_link "$LINENO"; then :
17740 lt_cv_cc_needs_belf=yes
17742 lt_cv_cc_needs_belf=no
17744 rm -f core conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext conftest.$ac_ext
17747 ac_cpp='$CPP $CPPFLAGS'
17748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
17754 $as_echo "$lt_cv_cc_needs_belf" >&6; }
17755 if test yes != "$lt_cv_cc_needs_belf"; then
17756 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17757 CFLAGS=$SAVE_CFLAGS
17761 # Find out what ABI is being produced by ac_compile, and set linker
17762 # options accordingly.
17763 echo 'int i;' > conftest.$ac_ext
17764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17765 (eval $ac_compile) 2>&5
17767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17768 test $ac_status = 0; }; then
17769 case `/usr/bin/file conftest.o` in
17771 case $lt_cv_prog_gnu_ld in
17774 i?86-*-solaris*|x86_64-*-solaris*)
17775 LD="${LD-ld} -m elf_x86_64"
17778 LD="${LD-ld} -m elf64_sparc"
17781 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
17782 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
17787 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17799 need_locks=$enable_libtool_lock
17801 if test -n "$ac_tool_prefix"; then
17802 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
17803 set dummy ${ac_tool_prefix}mt; ac_word=$2
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17805 $as_echo_n "checking for $ac_word... " >&6; }
17806 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
17807 $as_echo_n "(cached) " >&6
17809 if test -n "$MANIFEST_TOOL"; then
17810 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
17812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17813 for as_dir in $PATH
17816 test -z "$as_dir" && as_dir=.
17817 for ac_exec_ext in '' $ac_executable_extensions; do
17818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17819 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
17820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17829 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
17830 if test -n "$MANIFEST_TOOL"; then
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
17832 $as_echo "$MANIFEST_TOOL" >&6; }
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17835 $as_echo "no" >&6; }
17840 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
17841 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
17842 # Extract the first word of "mt", so it can be a program name with args.
17843 set dummy mt; ac_word=$2
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17845 $as_echo_n "checking for $ac_word... " >&6; }
17846 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
17847 $as_echo_n "(cached) " >&6
17849 if test -n "$ac_ct_MANIFEST_TOOL"; then
17850 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
17852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17853 for as_dir in $PATH
17856 test -z "$as_dir" && as_dir=.
17857 for ac_exec_ext in '' $ac_executable_extensions; do
17858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17859 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
17860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17869 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
17870 if test -n "$ac_ct_MANIFEST_TOOL"; then
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
17872 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17875 $as_echo "no" >&6; }
17878 if test "x$ac_ct_MANIFEST_TOOL" = x; then
17881 case $cross_compiling:$ac_tool_warned in
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17885 ac_tool_warned=yes ;;
17887 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
17890 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
17893 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
17895 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
17896 if ${lt_cv_path_mainfest_tool+:} false; then :
17897 $as_echo_n "(cached) " >&6
17899 lt_cv_path_mainfest_tool=no
17900 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
17901 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
17902 cat conftest.err >&5
17903 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
17904 lt_cv_path_mainfest_tool=yes
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
17909 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
17910 if test yes != "$lt_cv_path_mainfest_tool"; then
17920 rhapsody* | darwin*)
17921 if test -n "$ac_tool_prefix"; then
17922 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
17923 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17925 $as_echo_n "checking for $ac_word... " >&6; }
17926 if ${ac_cv_prog_DSYMUTIL+:} false; then :
17927 $as_echo_n "(cached) " >&6
17929 if test -n "$DSYMUTIL"; then
17930 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17933 for as_dir in $PATH
17936 test -z "$as_dir" && as_dir=.
17937 for ac_exec_ext in '' $ac_executable_extensions; do
17938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17939 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
17940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17949 DSYMUTIL=$ac_cv_prog_DSYMUTIL
17950 if test -n "$DSYMUTIL"; then
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
17952 $as_echo "$DSYMUTIL" >&6; }
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17955 $as_echo "no" >&6; }
17960 if test -z "$ac_cv_prog_DSYMUTIL"; then
17961 ac_ct_DSYMUTIL=$DSYMUTIL
17962 # Extract the first word of "dsymutil", so it can be a program name with args.
17963 set dummy dsymutil; ac_word=$2
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17965 $as_echo_n "checking for $ac_word... " >&6; }
17966 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17967 $as_echo_n "(cached) " >&6
17969 if test -n "$ac_ct_DSYMUTIL"; then
17970 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17973 for as_dir in $PATH
17976 test -z "$as_dir" && as_dir=.
17977 for ac_exec_ext in '' $ac_executable_extensions; do
17978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17979 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
17980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17989 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17990 if test -n "$ac_ct_DSYMUTIL"; then
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
17992 $as_echo "$ac_ct_DSYMUTIL" >&6; }
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17995 $as_echo "no" >&6; }
17998 if test "x$ac_ct_DSYMUTIL" = x; then
18001 case $cross_compiling:$ac_tool_warned in
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18005 ac_tool_warned=yes ;;
18007 DSYMUTIL=$ac_ct_DSYMUTIL
18010 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
18013 if test -n "$ac_tool_prefix"; then
18014 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
18015 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18017 $as_echo_n "checking for $ac_word... " >&6; }
18018 if ${ac_cv_prog_NMEDIT+:} false; then :
18019 $as_echo_n "(cached) " >&6
18021 if test -n "$NMEDIT"; then
18022 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
18024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18025 for as_dir in $PATH
18028 test -z "$as_dir" && as_dir=.
18029 for ac_exec_ext in '' $ac_executable_extensions; do
18030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18031 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
18032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18041 NMEDIT=$ac_cv_prog_NMEDIT
18042 if test -n "$NMEDIT"; then
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
18044 $as_echo "$NMEDIT" >&6; }
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18047 $as_echo "no" >&6; }
18052 if test -z "$ac_cv_prog_NMEDIT"; then
18053 ac_ct_NMEDIT=$NMEDIT
18054 # Extract the first word of "nmedit", so it can be a program name with args.
18055 set dummy nmedit; ac_word=$2
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18057 $as_echo_n "checking for $ac_word... " >&6; }
18058 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
18059 $as_echo_n "(cached) " >&6
18061 if test -n "$ac_ct_NMEDIT"; then
18062 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
18064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18065 for as_dir in $PATH
18068 test -z "$as_dir" && as_dir=.
18069 for ac_exec_ext in '' $ac_executable_extensions; do
18070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18071 ac_cv_prog_ac_ct_NMEDIT="nmedit"
18072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18081 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
18082 if test -n "$ac_ct_NMEDIT"; then
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
18084 $as_echo "$ac_ct_NMEDIT" >&6; }
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18087 $as_echo "no" >&6; }
18090 if test "x$ac_ct_NMEDIT" = x; then
18093 case $cross_compiling:$ac_tool_warned in
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18097 ac_tool_warned=yes ;;
18099 NMEDIT=$ac_ct_NMEDIT
18102 NMEDIT="$ac_cv_prog_NMEDIT"
18105 if test -n "$ac_tool_prefix"; then
18106 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
18107 set dummy ${ac_tool_prefix}lipo; ac_word=$2
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18109 $as_echo_n "checking for $ac_word... " >&6; }
18110 if ${ac_cv_prog_LIPO+:} false; then :
18111 $as_echo_n "(cached) " >&6
18113 if test -n "$LIPO"; then
18114 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
18116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18117 for as_dir in $PATH
18120 test -z "$as_dir" && as_dir=.
18121 for ac_exec_ext in '' $ac_executable_extensions; do
18122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18123 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
18124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18133 LIPO=$ac_cv_prog_LIPO
18134 if test -n "$LIPO"; then
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
18136 $as_echo "$LIPO" >&6; }
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18139 $as_echo "no" >&6; }
18144 if test -z "$ac_cv_prog_LIPO"; then
18146 # Extract the first word of "lipo", so it can be a program name with args.
18147 set dummy lipo; ac_word=$2
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18149 $as_echo_n "checking for $ac_word... " >&6; }
18150 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
18151 $as_echo_n "(cached) " >&6
18153 if test -n "$ac_ct_LIPO"; then
18154 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
18156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18157 for as_dir in $PATH
18160 test -z "$as_dir" && as_dir=.
18161 for ac_exec_ext in '' $ac_executable_extensions; do
18162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18163 ac_cv_prog_ac_ct_LIPO="lipo"
18164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18173 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
18174 if test -n "$ac_ct_LIPO"; then
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
18176 $as_echo "$ac_ct_LIPO" >&6; }
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18179 $as_echo "no" >&6; }
18182 if test "x$ac_ct_LIPO" = x; then
18185 case $cross_compiling:$ac_tool_warned in
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18189 ac_tool_warned=yes ;;
18194 LIPO="$ac_cv_prog_LIPO"
18197 if test -n "$ac_tool_prefix"; then
18198 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
18199 set dummy ${ac_tool_prefix}otool; ac_word=$2
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18201 $as_echo_n "checking for $ac_word... " >&6; }
18202 if ${ac_cv_prog_OTOOL+:} false; then :
18203 $as_echo_n "(cached) " >&6
18205 if test -n "$OTOOL"; then
18206 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
18208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18209 for as_dir in $PATH
18212 test -z "$as_dir" && as_dir=.
18213 for ac_exec_ext in '' $ac_executable_extensions; do
18214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18215 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
18216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18225 OTOOL=$ac_cv_prog_OTOOL
18226 if test -n "$OTOOL"; then
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
18228 $as_echo "$OTOOL" >&6; }
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18231 $as_echo "no" >&6; }
18236 if test -z "$ac_cv_prog_OTOOL"; then
18238 # Extract the first word of "otool", so it can be a program name with args.
18239 set dummy otool; ac_word=$2
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18241 $as_echo_n "checking for $ac_word... " >&6; }
18242 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
18243 $as_echo_n "(cached) " >&6
18245 if test -n "$ac_ct_OTOOL"; then
18246 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
18248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18249 for as_dir in $PATH
18252 test -z "$as_dir" && as_dir=.
18253 for ac_exec_ext in '' $ac_executable_extensions; do
18254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18255 ac_cv_prog_ac_ct_OTOOL="otool"
18256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18265 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
18266 if test -n "$ac_ct_OTOOL"; then
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
18268 $as_echo "$ac_ct_OTOOL" >&6; }
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18271 $as_echo "no" >&6; }
18274 if test "x$ac_ct_OTOOL" = x; then
18277 case $cross_compiling:$ac_tool_warned in
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18281 ac_tool_warned=yes ;;
18286 OTOOL="$ac_cv_prog_OTOOL"
18289 if test -n "$ac_tool_prefix"; then
18290 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
18291 set dummy ${ac_tool_prefix}otool64; ac_word=$2
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18293 $as_echo_n "checking for $ac_word... " >&6; }
18294 if ${ac_cv_prog_OTOOL64+:} false; then :
18295 $as_echo_n "(cached) " >&6
18297 if test -n "$OTOOL64"; then
18298 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
18300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18301 for as_dir in $PATH
18304 test -z "$as_dir" && as_dir=.
18305 for ac_exec_ext in '' $ac_executable_extensions; do
18306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18307 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
18308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18317 OTOOL64=$ac_cv_prog_OTOOL64
18318 if test -n "$OTOOL64"; then
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
18320 $as_echo "$OTOOL64" >&6; }
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18323 $as_echo "no" >&6; }
18328 if test -z "$ac_cv_prog_OTOOL64"; then
18329 ac_ct_OTOOL64=$OTOOL64
18330 # Extract the first word of "otool64", so it can be a program name with args.
18331 set dummy otool64; ac_word=$2
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18333 $as_echo_n "checking for $ac_word... " >&6; }
18334 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
18335 $as_echo_n "(cached) " >&6
18337 if test -n "$ac_ct_OTOOL64"; then
18338 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
18340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18341 for as_dir in $PATH
18344 test -z "$as_dir" && as_dir=.
18345 for ac_exec_ext in '' $ac_executable_extensions; do
18346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18347 ac_cv_prog_ac_ct_OTOOL64="otool64"
18348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18357 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
18358 if test -n "$ac_ct_OTOOL64"; then
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
18360 $as_echo "$ac_ct_OTOOL64" >&6; }
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18363 $as_echo "no" >&6; }
18366 if test "x$ac_ct_OTOOL64" = x; then
18369 case $cross_compiling:$ac_tool_warned in
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18373 ac_tool_warned=yes ;;
18375 OTOOL64=$ac_ct_OTOOL64
18378 OTOOL64="$ac_cv_prog_OTOOL64"
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
18408 $as_echo_n "checking for -single_module linker flag... " >&6; }
18409 if ${lt_cv_apple_cc_single_mod+:} false; then :
18410 $as_echo_n "(cached) " >&6
18412 lt_cv_apple_cc_single_mod=no
18413 if test -z "$LT_MULTI_MODULE"; then
18414 # By default we will add the -single_module flag. You can override
18415 # by either setting the environment variable LT_MULTI_MODULE
18416 # non-empty at configure time, or by adding -multi_module to the
18418 rm -rf libconftest.dylib*
18419 echo "int foo(void){return 1;}" > conftest.c
18420 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
18421 -dynamiclib -Wl,-single_module conftest.c" >&5
18422 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
18423 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
18425 # If there is a non-empty error log, and "single_module"
18426 # appears in it, assume the flag caused a linker warning
18427 if test -s conftest.err && $GREP single_module conftest.err; then
18428 cat conftest.err >&5
18429 # Otherwise, if the output was created with a 0 exit code from
18430 # the compiler, it worked.
18431 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
18432 lt_cv_apple_cc_single_mod=yes
18434 cat conftest.err >&5
18436 rm -rf libconftest.dylib*
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
18441 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
18444 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
18445 if ${lt_cv_ld_exported_symbols_list+:} false; then :
18446 $as_echo_n "(cached) " >&6
18448 lt_cv_ld_exported_symbols_list=no
18449 save_LDFLAGS=$LDFLAGS
18450 echo "_main" > conftest.sym
18451 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
18452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18453 /* end confdefs.h. */
18463 if ac_fn_c_try_link "$LINENO"; then :
18464 lt_cv_ld_exported_symbols_list=yes
18466 lt_cv_ld_exported_symbols_list=no
18468 rm -f core conftest.err conftest.$ac_objext \
18469 conftest$ac_exeext conftest.$ac_ext
18470 LDFLAGS=$save_LDFLAGS
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
18474 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
18477 $as_echo_n "checking for -force_load linker flag... " >&6; }
18478 if ${lt_cv_ld_force_load+:} false; then :
18479 $as_echo_n "(cached) " >&6
18481 lt_cv_ld_force_load=no
18482 cat > conftest.c << _LT_EOF
18483 int forced_loaded() { return 2;}
18485 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
18486 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
18487 echo "$AR cru libconftest.a conftest.o" >&5
18488 $AR cru libconftest.a conftest.o 2>&5
18489 echo "$RANLIB libconftest.a" >&5
18490 $RANLIB libconftest.a 2>&5
18491 cat > conftest.c << _LT_EOF
18492 int main() { return 0;}
18494 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
18495 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
18497 if test -s conftest.err && $GREP force_load conftest.err; then
18498 cat conftest.err >&5
18499 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
18500 lt_cv_ld_force_load=yes
18502 cat conftest.err >&5
18504 rm -f conftest.err libconftest.a conftest conftest.c
18505 rm -rf conftest.dSYM
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
18509 $as_echo "$lt_cv_ld_force_load" >&6; }
18511 rhapsody* | darwin1.[012])
18512 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
18514 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
18515 darwin*) # darwin 5.x on
18516 # if running on 10.5 or later, the deployment target defaults
18517 # to the OS version, if on x86, and 10.4, the deployment
18518 # target defaults to 10.4. Don't you love it?
18519 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
18520 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
18521 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
18523 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
18525 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
18529 if test yes = "$lt_cv_apple_cc_single_mod"; then
18530 _lt_dar_single_mod='$single_module'
18532 if test yes = "$lt_cv_ld_exported_symbols_list"; then
18533 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
18535 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
18537 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
18538 _lt_dsymutil='~$DSYMUTIL $lib || :'
18545 # func_munge_path_list VARIABLE PATH
18546 # -----------------------------------
18547 # VARIABLE is name of variable containing _space_ separated list of
18548 # directories to be munged by the contents of PATH, which is string
18551 # string "DIR[ DIR]" will be prepended to VARIABLE
18553 # string "DIR[ DIR]" will be appended to VARIABLE
18554 # "DIRP[:DIRP]::[DIRA:]DIRA"
18555 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18556 # "DIRA[ DIRA]" will be appended to VARIABLE
18558 # VARIABLE will be replaced by "DIR[ DIR]"
18559 func_munge_path_list ()
18565 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18568 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18571 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18572 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18575 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18580 for ac_header in dlfcn.h
18582 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
18584 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
18585 cat >>confdefs.h <<_ACEOF
18586 #define HAVE_DLFCN_H 1
18604 enable_win32_dll=no
18608 # Check whether --enable-static was given.
18609 if test "${enable_static+set}" = set; then :
18610 enableval=$enable_static; p=${PACKAGE-default}
18612 yes) enable_static=yes ;;
18613 no) enable_static=no ;;
18616 # Look at the argument we got. We use all the common list separators.
18617 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18618 for pkg in $enableval; do
18620 if test "X$pkg" = "X$p"; then
18640 # Check whether --with-pic was given.
18641 if test "${with_pic+set}" = set; then :
18642 withval=$with_pic; lt_p=${PACKAGE-default}
18644 yes|no) pic_mode=$withval ;;
18647 # Look at the argument we got. We use all the common list separators.
18648 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18649 for lt_pkg in $withval; do
18651 if test "X$lt_pkg" = "X$lt_p"; then
18669 # Check whether --enable-fast-install was given.
18670 if test "${enable_fast_install+set}" = set; then :
18671 enableval=$enable_fast_install; p=${PACKAGE-default}
18673 yes) enable_fast_install=yes ;;
18674 no) enable_fast_install=no ;;
18676 enable_fast_install=no
18677 # Look at the argument we got. We use all the common list separators.
18678 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18679 for pkg in $enableval; do
18681 if test "X$pkg" = "X$p"; then
18682 enable_fast_install=yes
18689 enable_fast_install=yes
18699 shared_archive_member_spec=
18700 case $host,$enable_shared in
18701 power*-*-aix[5-9]*,yes)
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
18703 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
18705 # Check whether --with-aix-soname was given.
18706 if test "${with_aix_soname+set}" = set; then :
18707 withval=$with_aix_soname; case $withval in
18711 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
18714 lt_cv_with_aix_soname=$with_aix_soname
18716 if ${lt_cv_with_aix_soname+:} false; then :
18717 $as_echo_n "(cached) " >&6
18719 lt_cv_with_aix_soname=aix
18722 with_aix_soname=$lt_cv_with_aix_soname
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
18726 $as_echo "$with_aix_soname" >&6; }
18727 if test aix != "$with_aix_soname"; then
18728 # For the AIX way of multilib, we name the shared archive member
18729 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
18730 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
18731 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
18732 # the AIX toolchain works better with OBJECT_MODE set (default 32).
18733 if test 64 = "${OBJECT_MODE-32}"; then
18734 shared_archive_member_spec=shr_64
18736 shared_archive_member_spec=shr
18741 with_aix_soname=aix
18754 # This can be used to rebuild libtool when needed
18755 LIBTOOL_DEPS=$ltmain
18757 # Always use our own libtool.
18758 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18789 test -z "$LN_S" && LN_S="ln -s"
18804 if test -n "${ZSH_VERSION+set}"; then
18805 setopt NO_GLOB_SUBST
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
18809 $as_echo_n "checking for objdir... " >&6; }
18810 if ${lt_cv_objdir+:} false; then :
18811 $as_echo_n "(cached) " >&6
18813 rm -f .libs 2>/dev/null
18814 mkdir .libs 2>/dev/null
18815 if test -d .libs; then
18818 # MS-DOS does not allow filenames that begin with a dot.
18821 rmdir .libs 2>/dev/null
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
18824 $as_echo "$lt_cv_objdir" >&6; }
18825 objdir=$lt_cv_objdir
18831 cat >>confdefs.h <<_ACEOF
18832 #define LT_OBJDIR "$lt_cv_objdir/"
18840 # AIX sometimes has problems with the GCC collect2 program. For some
18841 # reason, if we set the COLLECT_NAMES environment variable, the problems
18842 # vanish in a puff of smoke.
18843 if test set != "${COLLECT_NAMES+set}"; then
18845 export COLLECT_NAMES
18850 # Global variables:
18852 can_build_shared=yes
18854 # All known linkers require a '.a' archive for static linking (except MSVC,
18855 # which needs '.lib').
18858 with_gnu_ld=$lt_cv_prog_gnu_ld
18863 # Set sane defaults for various variables
18864 test -z "$CC" && CC=cc
18865 test -z "$LTCC" && LTCC=$CC
18866 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18867 test -z "$LD" && LD=ld
18868 test -z "$ac_objext" && ac_objext=o
18870 func_cc_basename $compiler
18871 cc_basename=$func_cc_basename_result
18874 # Only perform the check for file, if the check method requires it
18875 test -z "$MAGIC_CMD" && MAGIC_CMD=file
18876 case $deplibs_check_method in
18878 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
18880 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
18881 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18882 $as_echo_n "(cached) " >&6
18886 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
18889 lt_save_MAGIC_CMD=$MAGIC_CMD
18890 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18891 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18892 for ac_dir in $ac_dummy; do
18894 test -z "$ac_dir" && ac_dir=.
18895 if test -f "$ac_dir/${ac_tool_prefix}file"; then
18896 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
18897 if test -n "$file_magic_test_file"; then
18898 case $deplibs_check_method in
18900 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18901 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18902 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18903 $EGREP "$file_magic_regex" > /dev/null; then
18908 *** Warning: the command libtool uses to detect shared libraries,
18909 *** $file_magic_cmd, produces output that libtool cannot recognize.
18910 *** The result is that libtool may fail to recognize shared libraries
18911 *** as such. This will affect the creation of libtool libraries that
18912 *** depend on shared libraries, but programs linked with such libtool
18913 *** libraries will work regardless of this problem. Nevertheless, you
18914 *** may want to report the problem to your system manager and/or to
18915 *** bug-libtool@gnu.org
18925 MAGIC_CMD=$lt_save_MAGIC_CMD
18930 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18931 if test -n "$MAGIC_CMD"; then
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18933 $as_echo "$MAGIC_CMD" >&6; }
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18936 $as_echo "no" >&6; }
18943 if test -z "$lt_cv_path_MAGIC_CMD"; then
18944 if test -n "$ac_tool_prefix"; then
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
18946 $as_echo_n "checking for file... " >&6; }
18947 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18948 $as_echo_n "(cached) " >&6
18952 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
18955 lt_save_MAGIC_CMD=$MAGIC_CMD
18956 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18957 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18958 for ac_dir in $ac_dummy; do
18960 test -z "$ac_dir" && ac_dir=.
18961 if test -f "$ac_dir/file"; then
18962 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
18963 if test -n "$file_magic_test_file"; then
18964 case $deplibs_check_method in
18966 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18967 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18968 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18969 $EGREP "$file_magic_regex" > /dev/null; then
18974 *** Warning: the command libtool uses to detect shared libraries,
18975 *** $file_magic_cmd, produces output that libtool cannot recognize.
18976 *** The result is that libtool may fail to recognize shared libraries
18977 *** as such. This will affect the creation of libtool libraries that
18978 *** depend on shared libraries, but programs linked with such libtool
18979 *** libraries will work regardless of this problem. Nevertheless, you
18980 *** may want to report the problem to your system manager and/or to
18981 *** bug-libtool@gnu.org
18991 MAGIC_CMD=$lt_save_MAGIC_CMD
18996 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18997 if test -n "$MAGIC_CMD"; then
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18999 $as_echo "$MAGIC_CMD" >&6; }
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19002 $as_echo "no" >&6; }
19015 # Use C for the default configuration in the libtool script
19019 ac_cpp='$CPP $CPPFLAGS'
19020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19025 # Source file extension for C test sources.
19028 # Object file extension for compiled C test sources.
19032 # Code to be used in simple compile tests
19033 lt_simple_compile_test_code="int some_variable = 0;"
19035 # Code to be used in simple link tests
19036 lt_simple_link_test_code='int main(){return(0);}'
19044 # If no C compiler was specified, use CC.
19047 # If no C compiler flags were specified, use CFLAGS.
19048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19050 # Allow CC to be a program name with arguments.
19053 # Save the default compiler, since it gets overwritten when the other
19054 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
19055 compiler_DEFAULT=$CC
19057 # save warnings/boilerplate of simple test code
19058 ac_outfile=conftest.$ac_objext
19059 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19060 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19061 _lt_compiler_boilerplate=`cat conftest.err`
19064 ac_outfile=conftest.$ac_objext
19065 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19066 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19067 _lt_linker_boilerplate=`cat conftest.err`
19072 ## There is no encapsulation within the following macros, do not change
19073 ## the running order or otherwise move them around unless you know exactly
19074 ## what you are doing...
19075 if test -n "$compiler"; then
19077 lt_prog_compiler_no_builtin_flag=
19079 if test yes = "$GCC"; then
19080 case $cc_basename in
19082 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
19084 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19088 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
19089 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
19090 $as_echo_n "(cached) " >&6
19092 lt_cv_prog_compiler_rtti_exceptions=no
19093 ac_outfile=conftest.$ac_objext
19094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19095 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
19096 # Insert the option either (1) after the last *FLAGS variable, or
19097 # (2) before a word containing "conftest.", or (3) at the end.
19098 # Note that $ac_compile itself does not contain backslashes and begins
19099 # with a dollar sign (not a hyphen), so the echo should work correctly.
19100 # The option is referenced via a variable to avoid confusing sed.
19101 lt_compile=`echo "$ac_compile" | $SED \
19102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19104 -e 's:$: $lt_compiler_flag:'`
19105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19106 (eval "$lt_compile" 2>conftest.err)
19108 cat conftest.err >&5
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 if (exit $ac_status) && test -s "$ac_outfile"; then
19111 # The compiler can only warn and ignore the option if not recognized
19112 # So say no if there are warnings other than the usual output.
19113 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19116 lt_cv_prog_compiler_rtti_exceptions=yes
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19123 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19125 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
19126 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
19138 lt_prog_compiler_wl=
19139 lt_prog_compiler_pic=
19140 lt_prog_compiler_static=
19143 if test yes = "$GCC"; then
19144 lt_prog_compiler_wl='-Wl,'
19145 lt_prog_compiler_static='-static'
19149 # All AIX code is PIC.
19150 if test ia64 = "$host_cpu"; then
19151 # AIX 5 now supports IA64 processor
19152 lt_prog_compiler_static='-Bstatic'
19154 lt_prog_compiler_pic='-fPIC'
19160 # see comment about AmigaOS4 .so support
19161 lt_prog_compiler_pic='-fPIC'
19164 # FIXME: we need at least 68020 code to build shared libraries, but
19165 # adding the '-m68020' flag to GCC prevents building anything better,
19167 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
19172 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19173 # PIC is the default for these OSes.
19176 mingw* | cygwin* | pw32* | os2* | cegcc*)
19177 # This hack is so that the source file can tell whether it is being
19178 # built for inclusion in a dll (and should export symbols for example).
19179 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19180 # (--disable-auto-import) libraries
19181 lt_prog_compiler_pic='-DDLL_EXPORT'
19184 lt_prog_compiler_static='$wl-static'
19189 darwin* | rhapsody*)
19190 # PIC is the default on this platform
19191 # Common symbols not allowed in MH_DYLIB files
19192 lt_prog_compiler_pic='-fno-common'
19196 # PIC is the default for Haiku.
19197 # The "-static" flag exists, but is broken.
19198 lt_prog_compiler_static=
19202 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19203 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19204 # sets the default TLS model and affects inlining.
19210 lt_prog_compiler_pic='-fPIC'
19216 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19217 # Instead, we relocate shared libraries at runtime.
19221 # Just because we use GCC doesn't mean we suddenly get shared libraries
19222 # on systems that don't support them.
19223 lt_prog_compiler_can_build_shared=no
19228 # QNX uses GNU C++, but need to define -shared option too, otherwise
19229 # it will coredump.
19230 lt_prog_compiler_pic='-fPIC -shared'
19234 if test -d /usr/nec; then
19235 lt_prog_compiler_pic=-Kconform_pic
19240 lt_prog_compiler_pic='-fPIC'
19244 case $cc_basename in
19245 nvcc*) # Cuda Compiler Driver 2.2
19246 lt_prog_compiler_wl='-Xlinker '
19247 if test -n "$lt_prog_compiler_pic"; then
19248 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
19253 # PORTME Check for flag to pass linker flags through the system compiler.
19256 lt_prog_compiler_wl='-Wl,'
19257 if test ia64 = "$host_cpu"; then
19258 # AIX 5 now supports IA64 processor
19259 lt_prog_compiler_static='-Bstatic'
19261 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
19265 darwin* | rhapsody*)
19266 # PIC is the default on this platform
19267 # Common symbols not allowed in MH_DYLIB files
19268 lt_prog_compiler_pic='-fno-common'
19269 case $cc_basename in
19271 # NAG Fortran compiler
19272 lt_prog_compiler_wl='-Wl,-Wl,,'
19273 lt_prog_compiler_pic='-PIC'
19274 lt_prog_compiler_static='-Bstatic'
19279 mingw* | cygwin* | pw32* | os2* | cegcc*)
19280 # This hack is so that the source file can tell whether it is being
19281 # built for inclusion in a dll (and should export symbols for example).
19282 lt_prog_compiler_pic='-DDLL_EXPORT'
19285 lt_prog_compiler_static='$wl-static'
19290 hpux9* | hpux10* | hpux11*)
19291 lt_prog_compiler_wl='-Wl,'
19292 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19293 # not for PA HP-UX.
19299 lt_prog_compiler_pic='+Z'
19302 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19303 lt_prog_compiler_static='$wl-a ${wl}archive'
19306 irix5* | irix6* | nonstopux*)
19307 lt_prog_compiler_wl='-Wl,'
19308 # PIC (with -KPIC) is the default.
19309 lt_prog_compiler_static='-non_shared'
19312 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19313 case $cc_basename in
19314 # old Intel for x86_64, which still supported -KPIC.
19316 lt_prog_compiler_wl='-Wl,'
19317 lt_prog_compiler_pic='-KPIC'
19318 lt_prog_compiler_static='-static'
19320 # icc used to be incompatible with GCC.
19321 # ICC 10 doesn't accept -KPIC any more.
19323 lt_prog_compiler_wl='-Wl,'
19324 lt_prog_compiler_pic='-fPIC'
19325 lt_prog_compiler_static='-static'
19327 # Lahey Fortran 8.1.
19329 lt_prog_compiler_wl='-Wl,'
19330 lt_prog_compiler_pic='--shared'
19331 lt_prog_compiler_static='--static'
19334 # NAG Fortran compiler
19335 lt_prog_compiler_wl='-Wl,-Wl,,'
19336 lt_prog_compiler_pic='-PIC'
19337 lt_prog_compiler_static='-Bstatic'
19340 # Fabrice Bellard et al's Tiny C Compiler
19341 lt_prog_compiler_wl='-Wl,'
19342 lt_prog_compiler_pic='-fPIC'
19343 lt_prog_compiler_static='-static'
19345 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
19346 # Portland Group compilers (*not* the Pentium gcc compiler,
19347 # which looks to be a dead project)
19348 lt_prog_compiler_wl='-Wl,'
19349 lt_prog_compiler_pic='-fpic'
19350 lt_prog_compiler_static='-Bstatic'
19353 lt_prog_compiler_wl='-Wl,'
19354 # All Alpha code is PIC.
19355 lt_prog_compiler_static='-non_shared'
19357 xl* | bgxl* | bgf* | mpixl*)
19358 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
19359 lt_prog_compiler_wl='-Wl,'
19360 lt_prog_compiler_pic='-qpic'
19361 lt_prog_compiler_static='-qstaticlink'
19364 case `$CC -V 2>&1 | sed 5q` in
19365 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
19366 # Sun Fortran 8.3 passes all unrecognized flags to the linker
19367 lt_prog_compiler_pic='-KPIC'
19368 lt_prog_compiler_static='-Bstatic'
19369 lt_prog_compiler_wl=''
19371 *Sun\ F* | *Sun*Fortran*)
19372 lt_prog_compiler_pic='-KPIC'
19373 lt_prog_compiler_static='-Bstatic'
19374 lt_prog_compiler_wl='-Qoption ld '
19378 lt_prog_compiler_pic='-KPIC'
19379 lt_prog_compiler_static='-Bstatic'
19380 lt_prog_compiler_wl='-Wl,'
19382 *Intel*\ [CF]*Compiler*)
19383 lt_prog_compiler_wl='-Wl,'
19384 lt_prog_compiler_pic='-fPIC'
19385 lt_prog_compiler_static='-static'
19388 lt_prog_compiler_wl='-Wl,'
19389 lt_prog_compiler_pic='-fpic'
19390 lt_prog_compiler_static='-Bstatic'
19398 lt_prog_compiler_pic='-KPIC'
19399 lt_prog_compiler_static='-Bstatic'
19403 # QNX uses GNU C++, but need to define -shared option too, otherwise
19404 # it will coredump.
19405 lt_prog_compiler_pic='-fPIC -shared'
19408 osf3* | osf4* | osf5*)
19409 lt_prog_compiler_wl='-Wl,'
19410 # All OSF/1 code is PIC.
19411 lt_prog_compiler_static='-non_shared'
19415 lt_prog_compiler_static='-non_shared'
19419 lt_prog_compiler_pic='-KPIC'
19420 lt_prog_compiler_static='-Bstatic'
19421 case $cc_basename in
19422 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
19423 lt_prog_compiler_wl='-Qoption ld ';;
19425 lt_prog_compiler_wl='-Wl,';;
19430 lt_prog_compiler_wl='-Qoption ld '
19431 lt_prog_compiler_pic='-PIC'
19432 lt_prog_compiler_static='-Bstatic'
19435 sysv4 | sysv4.2uw2* | sysv4.3*)
19436 lt_prog_compiler_wl='-Wl,'
19437 lt_prog_compiler_pic='-KPIC'
19438 lt_prog_compiler_static='-Bstatic'
19442 if test -d /usr/nec; then
19443 lt_prog_compiler_pic='-Kconform_pic'
19444 lt_prog_compiler_static='-Bstatic'
19448 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19449 lt_prog_compiler_wl='-Wl,'
19450 lt_prog_compiler_pic='-KPIC'
19451 lt_prog_compiler_static='-Bstatic'
19455 lt_prog_compiler_wl='-Wl,'
19456 lt_prog_compiler_can_build_shared=no
19460 lt_prog_compiler_pic='-pic'
19461 lt_prog_compiler_static='-Bstatic'
19465 lt_prog_compiler_can_build_shared=no
19471 # For platforms that do not support PIC, -DPIC is meaningless:
19473 lt_prog_compiler_pic=
19476 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19481 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19482 if ${lt_cv_prog_compiler_pic+:} false; then :
19483 $as_echo_n "(cached) " >&6
19485 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
19488 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
19489 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
19492 # Check to make sure the PIC flag actually works.
19494 if test -n "$lt_prog_compiler_pic"; then
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
19496 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
19497 if ${lt_cv_prog_compiler_pic_works+:} false; then :
19498 $as_echo_n "(cached) " >&6
19500 lt_cv_prog_compiler_pic_works=no
19501 ac_outfile=conftest.$ac_objext
19502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19503 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
19504 # Insert the option either (1) after the last *FLAGS variable, or
19505 # (2) before a word containing "conftest.", or (3) at the end.
19506 # Note that $ac_compile itself does not contain backslashes and begins
19507 # with a dollar sign (not a hyphen), so the echo should work correctly.
19508 # The option is referenced via a variable to avoid confusing sed.
19509 lt_compile=`echo "$ac_compile" | $SED \
19510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19512 -e 's:$: $lt_compiler_flag:'`
19513 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19514 (eval "$lt_compile" 2>conftest.err)
19516 cat conftest.err >&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 if (exit $ac_status) && test -s "$ac_outfile"; then
19519 # The compiler can only warn and ignore the option if not recognized
19520 # So say no if there are warnings other than the usual output.
19521 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19523 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19524 lt_cv_prog_compiler_pic_works=yes
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
19531 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
19533 if test yes = "$lt_cv_prog_compiler_pic_works"; then
19534 case $lt_prog_compiler_pic in
19536 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
19539 lt_prog_compiler_pic=
19540 lt_prog_compiler_can_build_shared=no
19556 # Check to make sure the static flag actually works.
19558 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19560 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19561 if ${lt_cv_prog_compiler_static_works+:} false; then :
19562 $as_echo_n "(cached) " >&6
19564 lt_cv_prog_compiler_static_works=no
19565 save_LDFLAGS=$LDFLAGS
19566 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19567 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19568 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19569 # The linker can only warn and ignore the option if not recognized
19570 # So say no if there are warnings
19571 if test -s conftest.err; then
19572 # Append any errors to the config.log.
19573 cat conftest.err 1>&5
19574 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19576 if diff conftest.exp conftest.er2 >/dev/null; then
19577 lt_cv_prog_compiler_static_works=yes
19580 lt_cv_prog_compiler_static_works=yes
19584 LDFLAGS=$save_LDFLAGS
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
19588 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
19590 if test yes = "$lt_cv_prog_compiler_static_works"; then
19593 lt_prog_compiler_static=
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19603 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19604 if ${lt_cv_prog_compiler_c_o+:} false; then :
19605 $as_echo_n "(cached) " >&6
19607 lt_cv_prog_compiler_c_o=no
19608 $RM -r conftest 2>/dev/null
19612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19614 lt_compiler_flag="-o out/conftest2.$ac_objext"
19615 # Insert the option either (1) after the last *FLAGS variable, or
19616 # (2) before a word containing "conftest.", or (3) at the end.
19617 # Note that $ac_compile itself does not contain backslashes and begins
19618 # with a dollar sign (not a hyphen), so the echo should work correctly.
19619 lt_compile=`echo "$ac_compile" | $SED \
19620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19622 -e 's:$: $lt_compiler_flag:'`
19623 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19624 (eval "$lt_compile" 2>out/conftest.err)
19626 cat out/conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19630 # The compiler can only warn and ignore the option if not recognized
19631 # So say no if there are warnings
19632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19633 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19634 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19635 lt_cv_prog_compiler_c_o=yes
19640 # SGI C++ compiler will create directory out/ii_files/ for
19641 # template instantiation
19642 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19643 $RM out/* && rmdir out
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19650 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19658 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19659 if ${lt_cv_prog_compiler_c_o+:} false; then :
19660 $as_echo_n "(cached) " >&6
19662 lt_cv_prog_compiler_c_o=no
19663 $RM -r conftest 2>/dev/null
19667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19669 lt_compiler_flag="-o out/conftest2.$ac_objext"
19670 # Insert the option either (1) after the last *FLAGS variable, or
19671 # (2) before a word containing "conftest.", or (3) at the end.
19672 # Note that $ac_compile itself does not contain backslashes and begins
19673 # with a dollar sign (not a hyphen), so the echo should work correctly.
19674 lt_compile=`echo "$ac_compile" | $SED \
19675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19677 -e 's:$: $lt_compiler_flag:'`
19678 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19679 (eval "$lt_compile" 2>out/conftest.err)
19681 cat out/conftest.err >&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19685 # The compiler can only warn and ignore the option if not recognized
19686 # So say no if there are warnings
19687 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19688 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19689 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19690 lt_cv_prog_compiler_c_o=yes
19695 # SGI C++ compiler will create directory out/ii_files/ for
19696 # template instantiation
19697 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19698 $RM out/* && rmdir out
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19705 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19710 hard_links=nottested
19711 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
19712 # do not overwrite the value of need_locks provided by the user
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19714 $as_echo_n "checking if we can lock with hard links... " >&6; }
19717 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19719 ln conftest.a conftest.b 2>&5 || hard_links=no
19720 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19722 $as_echo "$hard_links" >&6; }
19723 if test no = "$hard_links"; then
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
19725 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19738 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19741 allow_undefined_flag=
19742 always_export_symbols=no
19744 archive_expsym_cmds=
19745 compiler_needs_object=no
19746 enable_shared_with_static_runtimes=no
19747 export_dynamic_flag_spec=
19748 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19749 hardcode_automatic=no
19751 hardcode_direct_absolute=no
19752 hardcode_libdir_flag_spec=
19753 hardcode_libdir_separator=
19754 hardcode_minus_L=no
19755 hardcode_shlibpath_var=unsupported
19757 link_all_deplibs=unknown
19759 module_expsym_cmds=
19760 old_archive_from_new_cmds=
19761 old_archive_from_expsyms_cmds=
19762 thread_safe_flag_spec=
19763 whole_archive_flag_spec=
19764 # include_expsyms should be a list of space-separated symbols to be *always*
19765 # included in the symbol list
19767 # exclude_expsyms can be an extended regexp of symbols to exclude
19768 # it will be wrapped by ' (' and ')$', so one must not match beginning or
19769 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
19770 # as well as any symbol that contains 'd'.
19771 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19772 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19773 # platforms (ab)use it in PIC code, but their linkers get confused if
19774 # the symbol is explicitly referenced. Since portable code cannot
19775 # rely on this symbol name, it's probably fine to never include it in
19776 # preloaded symbol tables.
19777 # Exclude shared library initialization/finalization symbols.
19778 extract_expsyms_cmds=
19781 cygwin* | mingw* | pw32* | cegcc*)
19782 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19783 # When not using gcc, we currently assume that we are using
19784 # Microsoft Visual C++.
19785 if test yes != "$GCC"; then
19790 # we just hope/assume this is gcc and not c89 (= MSVC++)
19793 openbsd* | bitrig*)
19800 # On some targets, GNU ld is compatible enough with the native linker
19801 # that we're better off using the native interface for both.
19802 lt_use_gnu_ld_interface=no
19803 if test yes = "$with_gnu_ld"; then
19806 # The AIX port of GNU ld has always aspired to compatibility
19807 # with the native linker. However, as the warning in the GNU ld
19808 # block says, versions before 2.19.5* couldn't really create working
19809 # shared libraries, regardless of the interface used.
19810 case `$LD -v 2>&1` in
19811 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19812 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19813 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19815 lt_use_gnu_ld_interface=yes
19820 lt_use_gnu_ld_interface=yes
19825 if test yes = "$lt_use_gnu_ld_interface"; then
19826 # If archive_cmds runs LD, not CC, wlarc should be empty
19829 # Set some defaults for GNU ld with shared library support. These
19830 # are reset later if shared libraries are not supported. Putting them
19831 # here allows them to be overridden if necessary.
19832 runpath_var=LD_RUN_PATH
19833 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19834 export_dynamic_flag_spec='$wl--export-dynamic'
19835 # ancient GNU ld didn't support --whole-archive et. al.
19836 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19837 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
19839 whole_archive_flag_spec=
19841 supports_anon_versioning=no
19842 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
19843 *GNU\ gold*) supports_anon_versioning=yes ;;
19844 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19845 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19846 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19847 *\ 2.11.*) ;; # other 2.11 versions
19848 *) supports_anon_versioning=yes ;;
19851 # See if GNU ld supports shared libraries.
19854 # On AIX/PPC, the GNU linker is very broken
19855 if test ia64 != "$host_cpu"; then
19859 *** Warning: the GNU linker, at least up to release 2.19, is reported
19860 *** to be unable to reliably create shared libraries on AIX.
19861 *** Therefore, libtool is disabling shared libraries support. If you
19862 *** really care for shared libraries, you may want to install binutils
19863 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19864 *** You will then need to restart the configuration process.
19873 # see comment about AmigaOS4 .so support
19874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19875 archive_expsym_cmds=''
19878 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)'
19879 hardcode_libdir_flag_spec='-L$libdir'
19880 hardcode_minus_L=yes
19886 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19887 allow_undefined_flag=unsupported
19888 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19889 # support --undefined. This deserves some investigation. FIXME
19890 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19896 cygwin* | mingw* | pw32* | cegcc*)
19897 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19898 # as there is no search path for DLLs.
19899 hardcode_libdir_flag_spec='-L$libdir'
19900 export_dynamic_flag_spec='$wl--export-all-symbols'
19901 allow_undefined_flag=unsupported
19902 always_export_symbols=no
19903 enable_shared_with_static_runtimes=yes
19904 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'
19905 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19907 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19909 # If the export-symbols file already is a .def file, use it as
19910 # is; otherwise, prepend EXPORTS...
19911 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
19912 cp $export_symbols $output_objdir/$soname.def;
19914 echo EXPORTS > $output_objdir/$soname.def;
19915 cat $export_symbols >> $output_objdir/$soname.def;
19917 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19925 link_all_deplibs=yes
19929 hardcode_libdir_flag_spec='-L$libdir'
19930 hardcode_minus_L=yes
19931 allow_undefined_flag=unsupported
19933 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19934 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19935 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19936 $ECHO EXPORTS >> $output_objdir/$libname.def~
19937 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19938 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19939 emximp -o $lib $output_objdir/$libname.def'
19940 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19941 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19942 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19943 $ECHO EXPORTS >> $output_objdir/$libname.def~
19944 prefix_cmds="$SED"~
19945 if test EXPORTS = "`$SED 1q $export_symbols`"; then
19946 prefix_cmds="$prefix_cmds -e 1d";
19948 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19949 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19950 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19951 emximp -o $lib $output_objdir/$libname.def'
19952 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19953 enable_shared_with_static_runtimes=yes
19958 hardcode_shlibpath_var=no
19959 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
19960 export_dynamic_flag_spec='$wl-E'
19961 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19962 # Instead, shared libraries are loaded at an image base (0x10000000 by
19963 # default) and relocated if they conflict, which is a slow very memory
19964 # consuming and fragmenting process. To avoid this, we pick a random,
19965 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19966 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19967 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19968 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'
19971 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
19973 if test linux-dietlibc = "$host_os"; then
19974 case $cc_basename in
19975 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
19978 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19979 && test no = "$tmp_diet"
19981 tmp_addflag=' $pic_flag'
19982 tmp_sharedflag='-shared'
19983 case $cc_basename,$host_cpu in
19984 pgcc*) # Portland Group C compiler
19985 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'
19986 tmp_addflag=' $pic_flag'
19988 pgf77* | pgf90* | pgf95* | pgfortran*)
19989 # Portland Group f77 and f90 compilers
19990 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'
19991 tmp_addflag=' $pic_flag -Mnomain' ;;
19992 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19993 tmp_addflag=' -i_dynamic' ;;
19994 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19995 tmp_addflag=' -i_dynamic -nofor_main' ;;
19996 ifc* | ifort*) # Intel Fortran compiler
19997 tmp_addflag=' -nofor_main' ;;
19998 lf95*) # Lahey Fortran 8.1
19999 whole_archive_flag_spec=
20000 tmp_sharedflag='--shared' ;;
20001 nagfor*) # NAGFOR 5.3
20002 tmp_sharedflag='-Wl,-shared' ;;
20003 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
20004 tmp_sharedflag='-qmkshrobj'
20006 nvcc*) # Cuda Compiler Driver 2.2
20007 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'
20008 compiler_needs_object=yes
20011 case `$CC -V 2>&1 | sed 5q` in
20012 *Sun\ C*) # Sun C 5.9
20013 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'
20014 compiler_needs_object=yes
20015 tmp_sharedflag='-G' ;;
20016 *Sun\ F*) # Sun Fortran 8.3
20017 tmp_sharedflag='-G' ;;
20019 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20021 if test yes = "$supports_anon_versioning"; then
20022 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
20023 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20024 echo "local: *; };" >> $output_objdir/$libname.ver~
20025 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
20028 case $cc_basename in
20030 export_dynamic_flag_spec='-rdynamic'
20032 xlf* | bgf* | bgxlf* | mpixlf*)
20033 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
20034 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
20035 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20036 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
20037 if test yes = "$supports_anon_versioning"; then
20038 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
20039 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20040 echo "local: *; };" >> $output_objdir/$libname.ver~
20041 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
20051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20055 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20056 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20061 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
20065 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20066 *** create shared libraries on Solaris systems. Therefore, libtool
20067 *** is disabling shared libraries support. We urge you to upgrade GNU
20068 *** binutils to release 2.9.1 or newer. Another option is to modify
20069 *** your PATH or compiler configuration so that the native linker is
20070 *** used, and then restart.
20073 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20074 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20075 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20082 case `$LD -v 2>&1` in
20083 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20087 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
20088 *** reliably create shared libraries on SCO systems. Therefore, libtool
20089 *** is disabling shared libraries support. We urge you to upgrade GNU
20090 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20091 *** your PATH or compiler configuration so that the native linker is
20092 *** used, and then restart.
20097 # For security reasons, it is highly recommended that you always
20098 # use absolute paths for naming shared libraries, and exclude the
20099 # DT_RUNPATH tag from executables and libraries. But doing so
20100 # requires that you compile everything twice, which is a pain.
20101 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20102 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20104 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20113 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20115 hardcode_direct=yes
20116 hardcode_shlibpath_var=no
20120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20121 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20122 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20129 if test no = "$ld_shlibs"; then
20131 hardcode_libdir_flag_spec=
20132 export_dynamic_flag_spec=
20133 whole_archive_flag_spec=
20136 # PORTME fill in a description of your system's linker (not GNU ld)
20139 allow_undefined_flag=unsupported
20140 always_export_symbols=yes
20141 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'
20142 # Note: this linker hardcodes the directories in LIBPATH if there
20143 # are no directories specified by -L.
20144 hardcode_minus_L=yes
20145 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
20146 # Neither direct hardcoding nor static linking is supported with a
20148 hardcode_direct=unsupported
20153 if test ia64 = "$host_cpu"; then
20154 # On IA64, the linker does run time linking by default, so we don't
20155 # have to do anything special.
20156 aix_use_runtimelinking=no
20157 exp_sym_flag='-Bexport'
20160 # If we're using GNU nm, then we don't want the "-C" option.
20161 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
20162 # Without the "-l" option, or with the "-B" option, AIX nm treats
20163 # weak defined symbols like other global defined symbols, whereas
20164 # GNU nm marks them as "W".
20165 # While the 'weak' keyword is ignored in the Export File, we need
20166 # it in the Import File for the 'aix-soname' feature, so we have
20167 # to replace the "-B" option with "-P" for AIX nm.
20168 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20169 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'
20171 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'
20173 aix_use_runtimelinking=no
20175 # Test if we are trying to use run time linking or normal
20176 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20177 # have runtime linking enabled, and use it for executables.
20178 # For shared libraries, we enable/disable runtime linking
20179 # depending on the kind of the shared library created -
20180 # when "with_aix_soname,aix_use_runtimelinking" is:
20181 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
20182 # "aix,yes" lib.so shared, rtl:yes, for executables
20183 # lib.a static archive
20184 # "both,no" lib.so.V(shr.o) shared, rtl:yes
20185 # lib.a(lib.so.V) shared, rtl:no, for executables
20186 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
20187 # lib.a(lib.so.V) shared, rtl:no
20188 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
20189 # lib.a static archive
20190 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20191 for ld_flag in $LDFLAGS; do
20192 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
20193 aix_use_runtimelinking=yes
20197 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
20198 # With aix-soname=svr4, we create the lib.so.V shared archives only,
20199 # so we don't have lib.a shared libs to link our executables.
20200 # We have to force runtime linking in this case.
20201 aix_use_runtimelinking=yes
20202 LDFLAGS="$LDFLAGS -Wl,-brtl"
20207 exp_sym_flag='-bexport'
20208 no_entry_flag='-bnoentry'
20211 # When large executables or shared objects are built, AIX ld can
20212 # have problems creating the table of contents. If linking a library
20213 # or program results in "error TOC overflow" add -mminimal-toc to
20214 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20215 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20218 hardcode_direct=yes
20219 hardcode_direct_absolute=yes
20220 hardcode_libdir_separator=':'
20221 link_all_deplibs=yes
20222 file_list_spec='$wl-f,'
20223 case $with_aix_soname,$aix_use_runtimelinking in
20224 aix,*) ;; # traditional, no import file
20225 svr4,* | *,yes) # use import file
20226 # The Import File defines what to hardcode.
20228 hardcode_direct_absolute=no
20232 if test yes = "$GCC"; then
20233 case $host_os in aix4.[012]|aix4.[012].*)
20234 # We only want to do this on AIX 4.2 and lower, the check
20235 # below for broken collect2 doesn't work under 4.3+
20236 collect2name=`$CC -print-prog-name=collect2`
20237 if test -f "$collect2name" &&
20238 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20240 # We have reworked collect2
20243 # We have old collect2
20244 hardcode_direct=unsupported
20245 # It fails to find uninstalled libraries when the uninstalled
20246 # path is not listed in the libpath. Setting hardcode_minus_L
20247 # to unsupported forces relinking
20248 hardcode_minus_L=yes
20249 hardcode_libdir_flag_spec='-L$libdir'
20250 hardcode_libdir_separator=
20254 shared_flag='-shared'
20255 if test yes = "$aix_use_runtimelinking"; then
20256 shared_flag="$shared_flag "'$wl-G'
20258 # Need to ensure runtime linking is disabled for the traditional
20259 # shared library, or the linker may eventually find shared libraries
20260 # /with/ Import File - we do not want to mix them.
20261 shared_flag_aix='-shared'
20262 shared_flag_svr4='-shared $wl-G'
20265 if test ia64 = "$host_cpu"; then
20266 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20267 # chokes on -Wl,-G. The following line is correct:
20270 if test yes = "$aix_use_runtimelinking"; then
20271 shared_flag='$wl-G'
20273 shared_flag='$wl-bM:SRE'
20275 shared_flag_aix='$wl-bM:SRE'
20276 shared_flag_svr4='$wl-G'
20280 export_dynamic_flag_spec='$wl-bexpall'
20281 # It seems that -bexpall does not export symbols beginning with
20282 # underscore (_), so it is better to generate a list of symbols to export.
20283 always_export_symbols=yes
20284 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
20285 # Warning - without using the other runtime loading flags (-brtl),
20286 # -berok will link without error, but may produce a broken library.
20287 allow_undefined_flag='-berok'
20288 # Determine the default libpath from the value encoded in an
20289 # empty executable.
20290 if test set = "${lt_cv_aix_libpath+set}"; then
20291 aix_libpath=$lt_cv_aix_libpath
20293 if ${lt_cv_aix_libpath_+:} false; then :
20294 $as_echo_n "(cached) " >&6
20296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20297 /* end confdefs.h. */
20307 if ac_fn_c_try_link "$LINENO"; then :
20309 lt_aix_libpath_sed='
20310 /Import File Strings/,/^$/ {
20312 s/^0 *\([^ ]*\) *$/\1/
20316 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20317 # Check for a 64-bit object if we didn't find anything.
20318 if test -z "$lt_cv_aix_libpath_"; then
20319 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20322 rm -f core conftest.err conftest.$ac_objext \
20323 conftest$ac_exeext conftest.$ac_ext
20324 if test -z "$lt_cv_aix_libpath_"; then
20325 lt_cv_aix_libpath_=/usr/lib:/lib
20330 aix_libpath=$lt_cv_aix_libpath_
20333 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
20334 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
20336 if test ia64 = "$host_cpu"; then
20337 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
20338 allow_undefined_flag="-z nodefs"
20339 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"
20341 # Determine the default libpath from the value encoded in an
20342 # empty executable.
20343 if test set = "${lt_cv_aix_libpath+set}"; then
20344 aix_libpath=$lt_cv_aix_libpath
20346 if ${lt_cv_aix_libpath_+:} false; then :
20347 $as_echo_n "(cached) " >&6
20349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20350 /* end confdefs.h. */
20360 if ac_fn_c_try_link "$LINENO"; then :
20362 lt_aix_libpath_sed='
20363 /Import File Strings/,/^$/ {
20365 s/^0 *\([^ ]*\) *$/\1/
20369 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20370 # Check for a 64-bit object if we didn't find anything.
20371 if test -z "$lt_cv_aix_libpath_"; then
20372 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20375 rm -f core conftest.err conftest.$ac_objext \
20376 conftest$ac_exeext conftest.$ac_ext
20377 if test -z "$lt_cv_aix_libpath_"; then
20378 lt_cv_aix_libpath_=/usr/lib:/lib
20383 aix_libpath=$lt_cv_aix_libpath_
20386 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
20387 # Warning - without using the other run time loading flags,
20388 # -berok will link without error, but may produce a broken library.
20389 no_undefined_flag=' $wl-bernotok'
20390 allow_undefined_flag=' $wl-berok'
20391 if test yes = "$with_gnu_ld"; then
20392 # We only use this code for GNU lds that support --whole-archive.
20393 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
20395 # Exported symbols can be pulled into shared objects from archives
20396 whole_archive_flag_spec='$convenience'
20398 archive_cmds_need_lc=yes
20399 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
20400 # -brtl affects multiple linker settings, -berok does not and is overridden later
20401 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
20402 if test svr4 != "$with_aix_soname"; then
20403 # This is similar to how AIX traditionally builds its shared libraries.
20404 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'
20406 if test aix != "$with_aix_soname"; then
20407 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'
20409 # used by -dlpreopen to get the symbols
20410 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
20412 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
20420 # see comment about AmigaOS4 .so support
20421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20422 archive_expsym_cmds=''
20425 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)'
20426 hardcode_libdir_flag_spec='-L$libdir'
20427 hardcode_minus_L=yes
20433 export_dynamic_flag_spec=-rdynamic
20436 cygwin* | mingw* | pw32* | cegcc*)
20437 # When not using gcc, we currently assume that we are using
20438 # Microsoft Visual C++.
20439 # hardcode_libdir_flag_spec is actually meaningless, as there is
20440 # no search path for DLLs.
20441 case $cc_basename in
20444 hardcode_libdir_flag_spec=' '
20445 allow_undefined_flag=unsupported
20446 always_export_symbols=yes
20448 # Tell ltmain to make .lib files, not .a files.
20450 # Tell ltmain to make .dll files, not .so files.
20452 # FIXME: Setting linknames here is a bad hack.
20453 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
20454 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
20455 cp "$export_symbols" "$output_objdir/$soname.def";
20456 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
20458 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
20460 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
20462 # The linker will not automatically build a static lib if we build a DLL.
20463 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
20464 enable_shared_with_static_runtimes=yes
20465 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20466 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20468 old_postinstall_cmds='chmod 644 $oldlib'
20469 postlink_cmds='lt_outputfile="@OUTPUT@"~
20470 lt_tool_outputfile="@TOOL_OUTPUT@"~
20471 case $lt_outputfile in
20474 lt_outputfile=$lt_outputfile.exe
20475 lt_tool_outputfile=$lt_tool_outputfile.exe
20478 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
20479 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
20480 $RM "$lt_outputfile.manifest";
20484 # Assume MSVC wrapper
20485 hardcode_libdir_flag_spec=' '
20486 allow_undefined_flag=unsupported
20487 # Tell ltmain to make .lib files, not .a files.
20489 # Tell ltmain to make .dll files, not .so files.
20491 # FIXME: Setting linknames here is a bad hack.
20492 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
20493 # The linker will automatically build a .lib file if we build a DLL.
20494 old_archive_from_new_cmds='true'
20495 # FIXME: Should let the user specify the lib program.
20496 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
20497 enable_shared_with_static_runtimes=yes
20502 darwin* | rhapsody*)
20505 archive_cmds_need_lc=no
20507 hardcode_automatic=yes
20508 hardcode_shlibpath_var=unsupported
20509 if test yes = "$lt_cv_ld_force_load"; then
20510 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\"`'
20513 whole_archive_flag_spec=''
20515 link_all_deplibs=yes
20516 allow_undefined_flag=$_lt_dar_allow_undefined
20517 case $cc_basename in
20518 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
20519 *) _lt_dar_can_shared=$GCC ;;
20521 if test yes = "$_lt_dar_can_shared"; then
20522 output_verbose_link_cmd=func_echo_all
20523 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
20524 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
20525 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"
20526 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"
20535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20536 hardcode_libdir_flag_spec='-L$libdir'
20537 hardcode_shlibpath_var=no
20540 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20541 # support. Future versions do this automatically, but an explicit c++rt0.o
20542 # does not break anything, and helps significantly (at the cost of a little
20545 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20546 hardcode_libdir_flag_spec='-R$libdir'
20547 hardcode_direct=yes
20548 hardcode_shlibpath_var=no
20551 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20553 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20554 hardcode_direct=yes
20555 hardcode_minus_L=yes
20556 hardcode_shlibpath_var=no
20559 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20560 freebsd* | dragonfly*)
20561 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20562 hardcode_libdir_flag_spec='-R$libdir'
20563 hardcode_direct=yes
20564 hardcode_shlibpath_var=no
20568 if test yes = "$GCC"; then
20569 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'
20571 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'
20573 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
20574 hardcode_libdir_separator=:
20575 hardcode_direct=yes
20577 # hardcode_minus_L: Not really in the search PATH,
20578 # but as the default location of the library.
20579 hardcode_minus_L=yes
20580 export_dynamic_flag_spec='$wl-E'
20584 if test yes,no = "$GCC,$with_gnu_ld"; then
20585 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20587 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20589 if test no = "$with_gnu_ld"; then
20590 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
20591 hardcode_libdir_separator=:
20592 hardcode_direct=yes
20593 hardcode_direct_absolute=yes
20594 export_dynamic_flag_spec='$wl-E'
20595 # hardcode_minus_L: Not really in the search PATH,
20596 # but as the default location of the library.
20597 hardcode_minus_L=yes
20602 if test yes,no = "$GCC,$with_gnu_ld"; then
20605 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20608 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20611 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20617 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20620 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20624 # Older versions of the 11.00 compiler do not understand -b yet
20625 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
20626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
20627 $as_echo_n "checking if $CC understands -b... " >&6; }
20628 if ${lt_cv_prog_compiler__b+:} false; then :
20629 $as_echo_n "(cached) " >&6
20631 lt_cv_prog_compiler__b=no
20632 save_LDFLAGS=$LDFLAGS
20633 LDFLAGS="$LDFLAGS -b"
20634 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20636 # The linker can only warn and ignore the option if not recognized
20637 # So say no if there are warnings
20638 if test -s conftest.err; then
20639 # Append any errors to the config.log.
20640 cat conftest.err 1>&5
20641 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20643 if diff conftest.exp conftest.er2 >/dev/null; then
20644 lt_cv_prog_compiler__b=yes
20647 lt_cv_prog_compiler__b=yes
20651 LDFLAGS=$save_LDFLAGS
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
20655 $as_echo "$lt_cv_prog_compiler__b" >&6; }
20657 if test yes = "$lt_cv_prog_compiler__b"; then
20658 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20660 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20666 if test no = "$with_gnu_ld"; then
20667 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
20668 hardcode_libdir_separator=:
20673 hardcode_shlibpath_var=no
20676 hardcode_direct=yes
20677 hardcode_direct_absolute=yes
20678 export_dynamic_flag_spec='$wl-E'
20680 # hardcode_minus_L: Not really in the search PATH,
20681 # but as the default location of the library.
20682 hardcode_minus_L=yes
20688 irix5* | irix6* | nonstopux*)
20689 if test yes = "$GCC"; then
20690 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'
20691 # Try to use the -exported_symbol ld option, if it does not
20692 # work, assume that -exports_file does not work either and
20693 # implicitly export all symbols.
20694 # This should be the same for all languages, so no per-tag cache variable.
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
20696 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
20697 if ${lt_cv_irix_exported_symbol+:} false; then :
20698 $as_echo_n "(cached) " >&6
20700 save_LDFLAGS=$LDFLAGS
20701 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
20702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20703 /* end confdefs.h. */
20704 int foo (void) { return 0; }
20706 if ac_fn_c_try_link "$LINENO"; then :
20707 lt_cv_irix_exported_symbol=yes
20709 lt_cv_irix_exported_symbol=no
20711 rm -f core conftest.err conftest.$ac_objext \
20712 conftest$ac_exeext conftest.$ac_ext
20713 LDFLAGS=$save_LDFLAGS
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
20716 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
20717 if test yes = "$lt_cv_irix_exported_symbol"; then
20718 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'
20721 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'
20722 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'
20724 archive_cmds_need_lc='no'
20725 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20726 hardcode_libdir_separator=:
20728 link_all_deplibs=yes
20732 case $cc_basename in
20734 # Fabrice Bellard et al's Tiny C Compiler
20736 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20742 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20743 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20745 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20747 hardcode_libdir_flag_spec='-R$libdir'
20748 hardcode_direct=yes
20749 hardcode_shlibpath_var=no
20753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20754 hardcode_direct=yes
20755 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20756 hardcode_libdir_separator=:
20757 hardcode_shlibpath_var=no
20763 openbsd* | bitrig*)
20764 if test -f /usr/libexec/ld.so; then
20765 hardcode_direct=yes
20766 hardcode_shlibpath_var=no
20767 hardcode_direct_absolute=yes
20768 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20769 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20770 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
20771 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
20772 export_dynamic_flag_spec='$wl-E'
20774 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20775 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
20783 hardcode_libdir_flag_spec='-L$libdir'
20784 hardcode_minus_L=yes
20785 allow_undefined_flag=unsupported
20787 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20788 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20789 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20790 $ECHO EXPORTS >> $output_objdir/$libname.def~
20791 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
20792 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20793 emximp -o $lib $output_objdir/$libname.def'
20794 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20795 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20796 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20797 $ECHO EXPORTS >> $output_objdir/$libname.def~
20798 prefix_cmds="$SED"~
20799 if test EXPORTS = "`$SED 1q $export_symbols`"; then
20800 prefix_cmds="$prefix_cmds -e 1d";
20802 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
20803 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
20804 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20805 emximp -o $lib $output_objdir/$libname.def'
20806 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
20807 enable_shared_with_static_runtimes=yes
20811 if test yes = "$GCC"; then
20812 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
20813 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'
20815 allow_undefined_flag=' -expect_unresolved \*'
20816 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'
20818 archive_cmds_need_lc='no'
20819 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20820 hardcode_libdir_separator=:
20823 osf4* | osf5*) # as osf3* with the addition of -msym flag
20824 if test yes = "$GCC"; then
20825 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
20826 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'
20827 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20829 allow_undefined_flag=' -expect_unresolved \*'
20830 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'
20831 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~
20832 $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'
20834 # Both c and cxx compiler support -rpath directly
20835 hardcode_libdir_flag_spec='-rpath $libdir'
20837 archive_cmds_need_lc='no'
20838 hardcode_libdir_separator=:
20842 no_undefined_flag=' -z defs'
20843 if test yes = "$GCC"; then
20845 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20846 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20847 $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'
20849 case `$CC -V 2>&1` in
20852 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
20853 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20854 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
20858 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
20859 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20860 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20864 hardcode_libdir_flag_spec='-R$libdir'
20865 hardcode_shlibpath_var=no
20867 solaris2.[0-5] | solaris2.[0-5].*) ;;
20869 # The compiler driver will combine and reorder linker options,
20870 # but understands '-z linker_flag'. GCC discards it without '$wl',
20871 # but is careful enough not to reorder.
20872 # Supported since Solaris 2.6 (maybe 2.5.1?)
20873 if test yes = "$GCC"; then
20874 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
20876 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
20880 link_all_deplibs=yes
20884 if test sequent = "$host_vendor"; then
20885 # Use $CC to link under sequent, because it throws in some extra .o
20886 # files that make .init and .fini sections work.
20887 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20889 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20891 hardcode_libdir_flag_spec='-L$libdir'
20892 hardcode_direct=yes
20893 hardcode_minus_L=yes
20894 hardcode_shlibpath_var=no
20898 case $host_vendor in
20900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20901 hardcode_direct=yes # is this really true???
20904 ## LD is ld it makes a PLAMLIB
20905 ## CC just makes a GrossModule.
20906 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20907 reload_cmds='$CC -r -o $output$reload_objs'
20911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20912 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
20915 runpath_var='LD_RUN_PATH'
20916 hardcode_shlibpath_var=no
20920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20921 hardcode_shlibpath_var=no
20922 export_dynamic_flag_spec='-Bexport'
20926 if test -d /usr/nec; then
20927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20928 hardcode_shlibpath_var=no
20929 runpath_var=LD_RUN_PATH
20930 hardcode_runpath_var=yes
20935 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20936 no_undefined_flag='$wl-z,text'
20937 archive_cmds_need_lc=no
20938 hardcode_shlibpath_var=no
20939 runpath_var='LD_RUN_PATH'
20941 if test yes = "$GCC"; then
20942 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20943 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20945 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20946 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20950 sysv5* | sco3.2v5* | sco5v6*)
20951 # Note: We CANNOT use -z defs as we might desire, because we do not
20952 # link with -lc, and that would cause any symbols used from libc to
20953 # always be unresolved, which means just about no library would
20954 # ever link correctly. If we're not using GNU ld we use -z text
20955 # though, which does catch some bad symbols but isn't as heavy-handed
20957 no_undefined_flag='$wl-z,text'
20958 allow_undefined_flag='$wl-z,nodefs'
20959 archive_cmds_need_lc=no
20960 hardcode_shlibpath_var=no
20961 hardcode_libdir_flag_spec='$wl-R,$libdir'
20962 hardcode_libdir_separator=':'
20963 link_all_deplibs=yes
20964 export_dynamic_flag_spec='$wl-Bexport'
20965 runpath_var='LD_RUN_PATH'
20967 if test yes = "$GCC"; then
20968 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20969 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20971 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20972 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20978 hardcode_libdir_flag_spec='-L$libdir'
20979 hardcode_shlibpath_var=no
20987 if test sni = "$host_vendor"; then
20989 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20990 export_dynamic_flag_spec='$wl-Blargedynsym'
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20997 $as_echo "$ld_shlibs" >&6; }
20998 test no = "$ld_shlibs" && can_build_shared=no
21000 with_gnu_ld=$with_gnu_ld
21017 # Do we need to explicitly link libc?
21019 case "x$archive_cmds_need_lc" in
21021 # Assume -lc should be added
21022 archive_cmds_need_lc=yes
21024 if test yes,yes = "$GCC,$enable_shared"; then
21025 case $archive_cmds in
21027 # FIXME: we may have to deal with multi-command sequences.
21030 # Test whether the compiler implicitly links with -lc since on some
21031 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21032 # to ld, don't add -lc before -lgcc.
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21034 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21035 if ${lt_cv_archive_cmds_need_lc+:} false; then :
21036 $as_echo_n "(cached) " >&6
21039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21042 (eval $ac_compile) 2>&5
21044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21045 test $ac_status = 0; } 2>conftest.err; then
21048 libobjs=conftest.$ac_objext
21050 wl=$lt_prog_compiler_wl
21051 pic_flag=$lt_prog_compiler_pic
21057 lt_save_allow_undefined_flag=$allow_undefined_flag
21058 allow_undefined_flag=
21059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21060 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21063 test $ac_status = 0; }
21065 lt_cv_archive_cmds_need_lc=no
21067 lt_cv_archive_cmds_need_lc=yes
21069 allow_undefined_flag=$lt_save_allow_undefined_flag
21071 cat conftest.err 1>&5
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
21077 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
21078 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21237 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21239 if test yes = "$GCC"; then
21241 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
21242 *) lt_awk_arg='/^libraries:/' ;;
21245 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
21246 *) lt_sed_strip_eq='s|=/|/|g' ;;
21248 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
21249 case $lt_search_path_spec in
21251 # if the path contains ";" then we assume it to be the separator
21252 # otherwise default to the standard path separator (i.e. ":") - it is
21253 # assumed that no part of a normal pathname contains ";" but that should
21254 # okay in the real world where ";" in dirpaths is itself problematic.
21255 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
21258 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
21261 # Ok, now we have the path, separated by spaces, we can step through it
21262 # and add multilib dir if necessary...
21263 lt_tmp_lt_search_path_spec=
21264 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
21265 # ...but if some path component already ends with the multilib dir we assume
21266 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
21267 case "$lt_multi_os_dir; $lt_search_path_spec " in
21268 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
21272 for lt_sys_path in $lt_search_path_spec; do
21273 if test -d "$lt_sys_path$lt_multi_os_dir"; then
21274 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
21275 elif test -n "$lt_multi_os_dir"; then
21276 test -d "$lt_sys_path" && \
21277 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
21280 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
21281 BEGIN {RS = " "; FS = "/|\n";} {
21284 for (lt_i = NF; lt_i > 0; lt_i--) {
21285 if ($lt_i != "" && $lt_i != ".") {
21286 if ($lt_i == "..") {
21289 if (lt_count == 0) {
21290 lt_foo = "/" $lt_i lt_foo;
21297 if (lt_foo != "") { lt_freq[lt_foo]++; }
21298 if (lt_freq[lt_foo] == 1) { print lt_foo; }
21300 # AWK program above erroneously prepends '/' to C:/dos/paths
21303 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
21304 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
21306 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
21308 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21310 library_names_spec=
21311 libname_spec='lib$name'
21315 postuninstall_cmds=
21319 shlibpath_overrides_runpath=unknown
21321 dynamic_linker="$host_os ld.so"
21322 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21323 need_lib_prefix=unknown
21324 hardcode_into_libs=no
21326 # when you set need_version to no, make sure it does not cause -set_version
21327 # flags to be left without arguments
21328 need_version=unknown
21334 version_type=linux # correct to gnu/linux during the next big refactor
21335 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
21336 shlibpath_var=LIBPATH
21338 # AIX 3 has no versioning support, so we append a major version to the name.
21339 soname_spec='$libname$release$shared_ext$major'
21343 version_type=linux # correct to gnu/linux during the next big refactor
21346 hardcode_into_libs=yes
21347 if test ia64 = "$host_cpu"; then
21348 # AIX 5 supports IA64
21349 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
21350 shlibpath_var=LD_LIBRARY_PATH
21352 # With GCC up to 2.95.x, collect2 would create an import file
21353 # for dependence libraries. The import file would start with
21354 # the line '#! .'. This would cause the generated library to
21355 # depend on '.', always an invalid library. This was fixed in
21356 # development snapshots of GCC prior to 3.0.
21358 aix4 | aix4.[01] | aix4.[01].*)
21359 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21361 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
21364 can_build_shared=no
21368 # Using Import Files as archive members, it is possible to support
21369 # filename-based versioning of shared library archives on AIX. While
21370 # this would work for both with and without runtime linking, it will
21371 # prevent static linking of such archives. So we do filename-based
21372 # shared library versioning with .so extension only, which is used
21373 # when both runtime linking and shared linking is enabled.
21374 # Unfortunately, runtime linking may impact performance, so we do
21375 # not want this to be the default eventually. Also, we use the
21376 # versioned .so libs for executables only if there is the -brtl
21377 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
21378 # To allow for filename-based versioning support, we need to create
21379 # libNAME.so.V as an archive file, containing:
21380 # *) an Import File, referring to the versioned filename of the
21381 # archive as well as the shared archive member, telling the
21382 # bitwidth (32 or 64) of that shared object, and providing the
21383 # list of exported symbols of that shared object, eventually
21384 # decorated with the 'weak' keyword
21385 # *) the shared object with the F_LOADONLY flag set, to really avoid
21386 # it being seen by the linker.
21387 # At run time we better use the real file rather than another symlink,
21388 # but for link time we create the symlink libNAME.so -> libNAME.so.V
21390 case $with_aix_soname,$aix_use_runtimelinking in
21391 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
21392 # soname into executable. Probably we can add versioning support to
21393 # collect2, so additional links can be useful in future.
21394 aix,yes) # traditional libtool
21395 dynamic_linker='AIX unversionable lib.so'
21396 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21397 # instead of lib<name>.a to let people know that these are not
21398 # typical AIX shared libraries.
21399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21401 aix,no) # traditional AIX only
21402 dynamic_linker='AIX lib.a(lib.so.V)'
21403 # We preserve .a as extension for shared libraries through AIX4.2
21404 # and later when we are not doing run time linking.
21405 library_names_spec='$libname$release.a $libname.a'
21406 soname_spec='$libname$release$shared_ext$major'
21408 svr4,*) # full svr4 only
21409 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
21410 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21411 # We do not specify a path in Import Files, so LIBPATH fires.
21412 shlibpath_overrides_runpath=yes
21414 *,yes) # both, prefer svr4
21415 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
21416 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21417 # unpreferred sharedlib libNAME.a needs extra handling
21418 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"'
21419 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"'
21420 # We do not specify a path in Import Files, so LIBPATH fires.
21421 shlibpath_overrides_runpath=yes
21423 *,no) # both, prefer aix
21424 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
21425 library_names_spec='$libname$release.a $libname.a'
21426 soname_spec='$libname$release$shared_ext$major'
21427 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
21428 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)'
21429 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"'
21432 shlibpath_var=LIBPATH
21439 # Since July 2007 AmigaOS4 officially supports .so libraries.
21440 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21444 library_names_spec='$libname.ixlibrary $libname.a'
21445 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21446 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'
21452 library_names_spec='$libname$shared_ext'
21453 dynamic_linker="$host_os ld.so"
21454 shlibpath_var=LIBRARY_PATH
21458 version_type=linux # correct to gnu/linux during the next big refactor
21460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21461 soname_spec='$libname$release$shared_ext$major'
21462 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21463 shlibpath_var=LD_LIBRARY_PATH
21464 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21465 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21466 # the default ld.so.conf also contains /usr/contrib/lib and
21467 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21468 # libtool to hard-code these into programs
21471 cygwin* | mingw* | pw32* | cegcc*)
21472 version_type=windows
21477 case $GCC,$cc_basename in
21480 library_names_spec='$libname.dll.a'
21481 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21482 postinstall_cmds='base_file=`basename \$file`~
21483 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21484 dldir=$destdir/`dirname \$dlpath`~
21485 test -d \$dldir || mkdir -p \$dldir~
21486 $install_prog $dir/$dlname \$dldir/$dlname~
21487 chmod a+x \$dldir/$dlname~
21488 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21489 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21491 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21492 dlpath=$dir/\$dldll~
21494 shlibpath_overrides_runpath=yes
21498 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21499 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21501 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
21504 # MinGW DLLs use traditional 'lib' prefix
21505 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21508 # pw32 DLLs use 'pw' prefix rather than 'lib'
21509 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21512 dynamic_linker='Win32 ld.exe'
21517 libname_spec='$name'
21518 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21519 library_names_spec='$libname.dll.lib'
21523 sys_lib_search_path_spec=
21526 for lt_path in $LIB
21529 # Let DOS variable expansion print the short 8.3 style file name.
21530 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21531 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21534 # Convert to MSYS style.
21535 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21538 # Convert to unix form, then to dos form, then back to unix form
21539 # but this time dos style (no spaces!) so that the unix form looks
21540 # like /cygdrive/c/PROGRA~1:/cygdr...
21541 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21542 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21543 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21546 sys_lib_search_path_spec=$LIB
21547 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21548 # It is most probably a Windows format PATH.
21549 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21551 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21553 # FIXME: find the short name or the path components, as spaces are
21554 # common. (e.g. "Program Files" -> "PROGRA~1")
21558 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21559 postinstall_cmds='base_file=`basename \$file`~
21560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21561 dldir=$destdir/`dirname \$dlpath`~
21562 test -d \$dldir || mkdir -p \$dldir~
21563 $install_prog $dir/$dlname \$dldir/$dlname'
21564 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21565 dlpath=$dir/\$dldll~
21567 shlibpath_overrides_runpath=yes
21568 dynamic_linker='Win32 link.exe'
21572 # Assume MSVC wrapper
21573 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
21574 dynamic_linker='Win32 ld.exe'
21577 # FIXME: first we should search . and the directory the executable is in
21581 darwin* | rhapsody*)
21582 dynamic_linker="$host_os dyld"
21583 version_type=darwin
21586 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
21587 soname_spec='$libname$release$major$shared_ext'
21588 shlibpath_overrides_runpath=yes
21589 shlibpath_var=DYLD_LIBRARY_PATH
21590 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21592 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
21593 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21597 version_type=linux # correct to gnu/linux during the next big refactor
21600 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21601 soname_spec='$libname$release$shared_ext$major'
21602 shlibpath_var=LD_LIBRARY_PATH
21605 freebsd* | dragonfly*)
21606 # DragonFly does not have aout. When/if they implement a new
21607 # versioning mechanism, adjust this.
21608 if test -x /usr/bin/objformat; then
21609 objformat=`/usr/bin/objformat`
21612 freebsd[23].*) objformat=aout ;;
21613 *) objformat=elf ;;
21616 version_type=freebsd-$objformat
21617 case $version_type in
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'
21625 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21629 shlibpath_var=LD_LIBRARY_PATH
21632 shlibpath_overrides_runpath=yes
21634 freebsd3.[01]* | freebsdelf3.[01]*)
21635 shlibpath_overrides_runpath=yes
21636 hardcode_into_libs=yes
21638 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21639 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21640 shlibpath_overrides_runpath=no
21641 hardcode_into_libs=yes
21643 *) # from 4.6 on, and DragonFly
21644 shlibpath_overrides_runpath=yes
21645 hardcode_into_libs=yes
21651 version_type=linux # correct to gnu/linux during the next big refactor
21654 dynamic_linker="$host_os runtime_loader"
21655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21656 soname_spec='$libname$release$shared_ext$major'
21657 shlibpath_var=LIBRARY_PATH
21658 shlibpath_overrides_runpath=no
21659 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21660 hardcode_into_libs=yes
21663 hpux9* | hpux10* | hpux11*)
21664 # Give a soname corresponding to the major version so that dld.sl refuses to
21665 # link against other versions.
21672 hardcode_into_libs=yes
21673 dynamic_linker="$host_os dld.so"
21674 shlibpath_var=LD_LIBRARY_PATH
21675 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21677 soname_spec='$libname$release$shared_ext$major'
21678 if test 32 = "$HPUX_IA64_MODE"; then
21679 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21680 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
21682 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21683 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
21688 hardcode_into_libs=yes
21689 dynamic_linker="$host_os dld.sl"
21690 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21693 soname_spec='$libname$release$shared_ext$major'
21694 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21695 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21699 dynamic_linker="$host_os dld.sl"
21700 shlibpath_var=SHLIB_PATH
21701 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21703 soname_spec='$libname$release$shared_ext$major'
21706 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21707 postinstall_cmds='chmod 555 $lib'
21708 # or fails outright, so override atomically:
21709 install_override_mode=555
21713 version_type=linux # correct to gnu/linux during the next big refactor
21716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21717 soname_spec='$libname$release$shared_ext$major'
21718 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21719 shlibpath_var=LD_LIBRARY_PATH
21720 shlibpath_overrides_runpath=no
21721 hardcode_into_libs=yes
21724 irix5* | irix6* | nonstopux*)
21726 nonstopux*) version_type=nonstopux ;;
21728 if test yes = "$lt_cv_prog_gnu_ld"; then
21729 version_type=linux # correct to gnu/linux during the next big refactor
21736 soname_spec='$libname$release$shared_ext$major'
21737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
21739 irix5* | nonstopux*)
21740 libsuff= shlibsuff=
21743 case $LD in # libtool.m4 will add one of these switches to LD
21744 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21745 libsuff= shlibsuff= libmagic=32-bit;;
21746 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21747 libsuff=32 shlibsuff=N32 libmagic=N32;;
21748 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21749 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21750 *) libsuff= shlibsuff= libmagic=never-match;;
21754 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21755 shlibpath_overrides_runpath=no
21756 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
21757 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
21758 hardcode_into_libs=yes
21761 # No shared lib support for Linux oldld, aout, or coff.
21762 linux*oldld* | linux*aout* | linux*coff*)
21767 version_type=none # Android doesn't support versioned libraries.
21770 library_names_spec='$libname$release$shared_ext'
21771 soname_spec='$libname$release$shared_ext'
21773 shlibpath_var=LD_LIBRARY_PATH
21774 shlibpath_overrides_runpath=yes
21776 # This implies no fast_install, which is unacceptable.
21777 # Some rework will be needed to allow for fast_install
21778 # before this can be enabled.
21779 hardcode_into_libs=yes
21781 dynamic_linker='Android linker'
21782 # Don't embed -rpath directories since the linker doesn't support them.
21783 hardcode_libdir_flag_spec='-L$libdir'
21786 # This must be glibc/ELF.
21787 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21788 version_type=linux # correct to gnu/linux during the next big refactor
21791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21792 soname_spec='$libname$release$shared_ext$major'
21793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21794 shlibpath_var=LD_LIBRARY_PATH
21795 shlibpath_overrides_runpath=no
21797 # Some binutils ld are patched to set DT_RUNPATH
21798 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21799 $as_echo_n "(cached) " >&6
21801 lt_cv_shlibpath_overrides_runpath=no
21802 save_LDFLAGS=$LDFLAGS
21803 save_libdir=$libdir
21804 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
21805 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
21806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21807 /* end confdefs.h. */
21817 if ac_fn_c_try_link "$LINENO"; then :
21818 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21819 lt_cv_shlibpath_overrides_runpath=yes
21822 rm -f core conftest.err conftest.$ac_objext \
21823 conftest$ac_exeext conftest.$ac_ext
21824 LDFLAGS=$save_LDFLAGS
21825 libdir=$save_libdir
21829 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21831 # This implies no fast_install, which is unacceptable.
21832 # Some rework will be needed to allow for fast_install
21833 # before this can be enabled.
21834 hardcode_into_libs=yes
21836 # Ideally, we could use ldconfig to report *all* directores which are
21837 # searched for libraries, however this is still not possible. Aside from not
21838 # being certain /sbin/ldconfig is available, command
21839 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
21840 # even though it is searched at run-time. Try to do the best guess by
21841 # appending ld.so.conf contents (and includes) to the search path.
21842 if test -f /etc/ld.so.conf; then
21843 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' ' '`
21844 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21847 # We used to test for /lib/ld.so.1 and disable shared libraries on
21848 # powerpc, because MkLinux only supported shared libraries with the
21849 # GNU dynamic linker. Since this was broken with cross compilers,
21850 # most powerpc-linux boxes support dynamic linking these days and
21851 # people can always --disable-shared, the test was removed, and we
21852 # assume the GNU/Linux dynamic linker is in use.
21853 dynamic_linker='GNU/Linux ld.so'
21860 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21861 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21863 dynamic_linker='NetBSD (a.out) ld.so'
21865 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21866 soname_spec='$libname$release$shared_ext$major'
21867 dynamic_linker='NetBSD ld.elf_so'
21869 shlibpath_var=LD_LIBRARY_PATH
21870 shlibpath_overrides_runpath=yes
21871 hardcode_into_libs=yes
21875 version_type=linux # correct to gnu/linux during the next big refactor
21876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21877 shlibpath_var=LD_LIBRARY_PATH
21878 shlibpath_overrides_runpath=yes
21885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21886 soname_spec='$libname$release$shared_ext$major'
21887 shlibpath_var=LD_LIBRARY_PATH
21888 shlibpath_overrides_runpath=no
21889 hardcode_into_libs=yes
21890 dynamic_linker='ldqnx.so'
21893 openbsd* | bitrig*)
21895 sys_lib_dlsearch_path_spec=/usr/lib
21897 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
21902 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21904 shlibpath_var=LD_LIBRARY_PATH
21905 shlibpath_overrides_runpath=yes
21909 libname_spec='$name'
21910 version_type=windows
21914 # OS/2 can only load a DLL with a base name of 8 characters or less.
21915 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
21916 v=$($ECHO $release$versuffix | tr -d .-);
21917 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
21918 $ECHO $n$v`$shared_ext'
21919 library_names_spec='${libname}_dll.$libext'
21920 dynamic_linker='OS/2 ld.exe'
21921 shlibpath_var=BEGINLIBPATH
21922 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21924 postinstall_cmds='base_file=`basename \$file`~
21925 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
21926 dldir=$destdir/`dirname \$dlpath`~
21927 test -d \$dldir || mkdir -p \$dldir~
21928 $install_prog $dir/$dlname \$dldir/$dlname~
21929 chmod a+x \$dldir/$dlname~
21930 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21931 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
21934 dlpath=$dir/\$dldll~
21938 osf3* | osf4* | osf5*)
21942 soname_spec='$libname$release$shared_ext$major'
21943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21944 shlibpath_var=LD_LIBRARY_PATH
21945 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21954 version_type=linux # correct to gnu/linux during the next big refactor
21957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21958 soname_spec='$libname$release$shared_ext$major'
21959 shlibpath_var=LD_LIBRARY_PATH
21960 shlibpath_overrides_runpath=yes
21961 hardcode_into_libs=yes
21962 # ldd complains unless libraries are executable
21963 postinstall_cmds='chmod +x $lib'
21968 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21969 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21970 shlibpath_var=LD_LIBRARY_PATH
21971 shlibpath_overrides_runpath=yes
21972 if test yes = "$with_gnu_ld"; then
21979 version_type=linux # correct to gnu/linux during the next big refactor
21980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21981 soname_spec='$libname$release$shared_ext$major'
21982 shlibpath_var=LD_LIBRARY_PATH
21983 case $host_vendor in
21985 shlibpath_overrides_runpath=no
21987 runpath_var=LD_RUN_PATH
21995 shlibpath_overrides_runpath=no
21996 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22002 if test -d /usr/nec; then
22003 version_type=linux # correct to gnu/linux during the next big refactor
22004 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
22005 soname_spec='$libname$shared_ext.$major'
22006 shlibpath_var=LD_LIBRARY_PATH
22010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
22015 soname_spec='$libname$release$shared_ext$major'
22016 shlibpath_var=LD_LIBRARY_PATH
22017 shlibpath_overrides_runpath=yes
22018 hardcode_into_libs=yes
22019 if test yes = "$with_gnu_ld"; then
22020 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22022 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22025 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22029 sys_lib_dlsearch_path_spec='/usr/lib'
22033 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22034 version_type=linux # correct to gnu/linux during the next big refactor
22037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22038 shlibpath_var=LD_LIBRARY_PATH
22039 shlibpath_overrides_runpath=no
22040 hardcode_into_libs=yes
22044 version_type=linux # correct to gnu/linux during the next big refactor
22045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22046 soname_spec='$libname$release$shared_ext$major'
22047 shlibpath_var=LD_LIBRARY_PATH
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22055 $as_echo "$dynamic_linker" >&6; }
22056 test no = "$dynamic_linker" && can_build_shared=no
22058 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22059 if test yes = "$GCC"; then
22060 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22063 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
22064 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
22067 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
22068 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
22071 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
22072 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
22074 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
22075 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
22077 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
22078 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22177 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22179 if test -n "$hardcode_libdir_flag_spec" ||
22180 test -n "$runpath_var" ||
22181 test yes = "$hardcode_automatic"; then
22183 # We can hardcode non-existent directories.
22184 if test no != "$hardcode_direct" &&
22185 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22186 # have to relink, otherwise we might link with an installed library
22187 # when we should be linking with a yet-to-be-installed one
22188 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
22189 test no != "$hardcode_minus_L"; then
22190 # Linking always hardcodes the temporary library directory.
22191 hardcode_action=relink
22193 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22194 hardcode_action=immediate
22197 # We cannot hardcode anything, or else we can only hardcode existing
22199 hardcode_action=unsupported
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
22202 $as_echo "$hardcode_action" >&6; }
22204 if test relink = "$hardcode_action" ||
22205 test yes = "$inherit_rpath"; then
22206 # Fast installation is not supported
22207 enable_fast_install=no
22208 elif test yes = "$shlibpath_overrides_runpath" ||
22209 test no = "$enable_shared"; then
22210 # Fast installation is not necessary
22211 enable_fast_install=needless
22219 if test yes != "$enable_dlopen"; then
22220 enable_dlopen=unknown
22221 enable_dlopen_self=unknown
22222 enable_dlopen_self_static=unknown
22229 lt_cv_dlopen=load_add_on
22231 lt_cv_dlopen_self=yes
22234 mingw* | pw32* | cegcc*)
22235 lt_cv_dlopen=LoadLibrary
22240 lt_cv_dlopen=dlopen
22245 # if libdl is installed we need to link against it
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22247 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22248 if ${ac_cv_lib_dl_dlopen+:} false; then :
22249 $as_echo_n "(cached) " >&6
22251 ac_check_lib_save_LIBS=$LIBS
22253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22254 /* end confdefs.h. */
22256 /* Override any GCC internal prototype to avoid an error.
22257 Use char because int might match the return type of a GCC
22258 builtin and then its argument prototype would still apply. */
22271 if ac_fn_c_try_link "$LINENO"; then :
22272 ac_cv_lib_dl_dlopen=yes
22274 ac_cv_lib_dl_dlopen=no
22276 rm -f core conftest.err conftest.$ac_objext \
22277 conftest$ac_exeext conftest.$ac_ext
22278 LIBS=$ac_check_lib_save_LIBS
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22281 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22282 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22283 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
22288 lt_cv_dlopen_self=yes
22295 # Don't try to run any link tests for TPF. We know it's impossible
22296 # because TPF is a cross-compiler, and we know how we open DSOs.
22297 lt_cv_dlopen=dlopen
22299 lt_cv_dlopen_self=no
22303 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22304 if test "x$ac_cv_func_shl_load" = xyes; then :
22305 lt_cv_dlopen=shl_load
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
22308 $as_echo_n "checking for shl_load in -ldld... " >&6; }
22309 if ${ac_cv_lib_dld_shl_load+:} false; then :
22310 $as_echo_n "(cached) " >&6
22312 ac_check_lib_save_LIBS=$LIBS
22314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22315 /* end confdefs.h. */
22317 /* Override any GCC internal prototype to avoid an error.
22318 Use char because int might match the return type of a GCC
22319 builtin and then its argument prototype would still apply. */
22327 return shl_load ();
22332 if ac_fn_c_try_link "$LINENO"; then :
22333 ac_cv_lib_dld_shl_load=yes
22335 ac_cv_lib_dld_shl_load=no
22337 rm -f core conftest.err conftest.$ac_objext \
22338 conftest$ac_exeext conftest.$ac_ext
22339 LIBS=$ac_check_lib_save_LIBS
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
22342 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22343 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
22344 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
22346 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22347 if test "x$ac_cv_func_dlopen" = xyes; then :
22348 lt_cv_dlopen=dlopen
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22351 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22352 if ${ac_cv_lib_dl_dlopen+:} false; then :
22353 $as_echo_n "(cached) " >&6
22355 ac_check_lib_save_LIBS=$LIBS
22357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22358 /* end confdefs.h. */
22360 /* Override any GCC internal prototype to avoid an error.
22361 Use char because int might match the return type of a GCC
22362 builtin and then its argument prototype would still apply. */
22375 if ac_fn_c_try_link "$LINENO"; then :
22376 ac_cv_lib_dl_dlopen=yes
22378 ac_cv_lib_dl_dlopen=no
22380 rm -f core conftest.err conftest.$ac_objext \
22381 conftest$ac_exeext conftest.$ac_ext
22382 LIBS=$ac_check_lib_save_LIBS
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22385 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22386 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22387 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
22390 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
22391 if ${ac_cv_lib_svld_dlopen+:} false; then :
22392 $as_echo_n "(cached) " >&6
22394 ac_check_lib_save_LIBS=$LIBS
22395 LIBS="-lsvld $LIBS"
22396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22397 /* end confdefs.h. */
22399 /* Override any GCC internal prototype to avoid an error.
22400 Use char because int might match the return type of a GCC
22401 builtin and then its argument prototype would still apply. */
22414 if ac_fn_c_try_link "$LINENO"; then :
22415 ac_cv_lib_svld_dlopen=yes
22417 ac_cv_lib_svld_dlopen=no
22419 rm -f core conftest.err conftest.$ac_objext \
22420 conftest$ac_exeext conftest.$ac_ext
22421 LIBS=$ac_check_lib_save_LIBS
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
22424 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22425 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
22426 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
22429 $as_echo_n "checking for dld_link in -ldld... " >&6; }
22430 if ${ac_cv_lib_dld_dld_link+:} false; then :
22431 $as_echo_n "(cached) " >&6
22433 ac_check_lib_save_LIBS=$LIBS
22435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22436 /* end confdefs.h. */
22438 /* Override any GCC internal prototype to avoid an error.
22439 Use char because int might match the return type of a GCC
22440 builtin and then its argument prototype would still apply. */
22448 return dld_link ();
22453 if ac_fn_c_try_link "$LINENO"; then :
22454 ac_cv_lib_dld_dld_link=yes
22456 ac_cv_lib_dld_dld_link=no
22458 rm -f core conftest.err conftest.$ac_objext \
22459 conftest$ac_exeext conftest.$ac_ext
22460 LIBS=$ac_check_lib_save_LIBS
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
22463 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22464 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
22465 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
22486 if test no = "$lt_cv_dlopen"; then
22492 case $lt_cv_dlopen in
22494 save_CPPFLAGS=$CPPFLAGS
22495 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
22497 save_LDFLAGS=$LDFLAGS
22498 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
22501 LIBS="$lt_cv_dlopen_libs $LIBS"
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
22504 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
22505 if ${lt_cv_dlopen_self+:} false; then :
22506 $as_echo_n "(cached) " >&6
22508 if test yes = "$cross_compiling"; then :
22509 lt_cv_dlopen_self=cross
22511 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22512 lt_status=$lt_dlunknown
22513 cat > conftest.$ac_ext <<_LT_EOF
22514 #line $LINENO "configure"
22515 #include "confdefs.h"
22524 # define LT_DLGLOBAL RTLD_GLOBAL
22527 # define LT_DLGLOBAL DL_GLOBAL
22529 # define LT_DLGLOBAL 0
22533 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22534 find out it does not work in some platform. */
22535 #ifndef LT_DLLAZY_OR_NOW
22537 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22540 # define LT_DLLAZY_OR_NOW DL_LAZY
22543 # define LT_DLLAZY_OR_NOW RTLD_NOW
22546 # define LT_DLLAZY_OR_NOW DL_NOW
22548 # define LT_DLLAZY_OR_NOW 0
22555 /* When -fvisibility=hidden is used, assume the code has been annotated
22556 correspondingly for the symbols needed. */
22557 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22558 int fnord () __attribute__((visibility("default")));
22561 int fnord () { return 42; }
22564 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22565 int status = $lt_dlunknown;
22569 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22572 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22573 else puts (dlerror ());
22575 /* dlclose (self); */
22583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22584 (eval $ac_link) 2>&5
22586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22587 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
22588 (./conftest; exit; ) >&5 2>/dev/null
22590 case x$lt_status in
22591 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
22592 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
22593 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
22596 # compilation failed
22597 lt_cv_dlopen_self=no
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
22605 $as_echo "$lt_cv_dlopen_self" >&6; }
22607 if test yes = "$lt_cv_dlopen_self"; then
22608 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
22610 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22611 if ${lt_cv_dlopen_self_static+:} false; then :
22612 $as_echo_n "(cached) " >&6
22614 if test yes = "$cross_compiling"; then :
22615 lt_cv_dlopen_self_static=cross
22617 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22618 lt_status=$lt_dlunknown
22619 cat > conftest.$ac_ext <<_LT_EOF
22620 #line $LINENO "configure"
22621 #include "confdefs.h"
22630 # define LT_DLGLOBAL RTLD_GLOBAL
22633 # define LT_DLGLOBAL DL_GLOBAL
22635 # define LT_DLGLOBAL 0
22639 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22640 find out it does not work in some platform. */
22641 #ifndef LT_DLLAZY_OR_NOW
22643 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22646 # define LT_DLLAZY_OR_NOW DL_LAZY
22649 # define LT_DLLAZY_OR_NOW RTLD_NOW
22652 # define LT_DLLAZY_OR_NOW DL_NOW
22654 # define LT_DLLAZY_OR_NOW 0
22661 /* When -fvisibility=hidden is used, assume the code has been annotated
22662 correspondingly for the symbols needed. */
22663 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22664 int fnord () __attribute__((visibility("default")));
22667 int fnord () { return 42; }
22670 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22671 int status = $lt_dlunknown;
22675 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22678 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22679 else puts (dlerror ());
22681 /* dlclose (self); */
22689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22690 (eval $ac_link) 2>&5
22692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22693 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
22694 (./conftest; exit; ) >&5 2>/dev/null
22696 case x$lt_status in
22697 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
22698 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
22699 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
22702 # compilation failed
22703 lt_cv_dlopen_self_static=no
22710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
22711 $as_echo "$lt_cv_dlopen_self_static" >&6; }
22714 CPPFLAGS=$save_CPPFLAGS
22715 LDFLAGS=$save_LDFLAGS
22720 case $lt_cv_dlopen_self in
22721 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
22722 *) enable_dlopen_self=unknown ;;
22725 case $lt_cv_dlopen_self_static in
22726 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
22727 *) enable_dlopen_self_static=unknown ;;
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
22750 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
22751 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
22752 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22753 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22755 $as_echo "yes" >&6; }
22757 # FIXME - insert some real tests, host_os isn't really good enough
22760 if test -n "$STRIP"; then
22761 striplib="$STRIP -x"
22762 old_striplib="$STRIP -S"
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22764 $as_echo "yes" >&6; }
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22767 $as_echo "no" >&6; }
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22772 $as_echo "no" >&6; }
22788 # Report what library types will actually be built
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
22790 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
22791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
22792 $as_echo "$can_build_shared" >&6; }
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
22795 $as_echo_n "checking whether to build shared libraries... " >&6; }
22796 test no = "$can_build_shared" && enable_shared=no
22798 # On AIX, shared libraries and static libraries use the same namespace, and
22799 # are all built from PIC.
22802 test yes = "$enable_shared" && enable_static=no
22803 if test -n "$RANLIB"; then
22804 archive_cmds="$archive_cmds~\$RANLIB \$lib"
22805 postinstall_cmds='$RANLIB $lib'
22810 if test ia64 != "$host_cpu"; then
22811 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
22812 yes,aix,yes) ;; # shared object as lib.so file only
22813 yes,svr4,*) ;; # shared object as lib.so archive member only
22814 yes,*) enable_static=no ;; # shared object in lib.a archive as well
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
22820 $as_echo "$enable_shared" >&6; }
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
22823 $as_echo_n "checking whether to build static libraries... " >&6; }
22824 # Make sure either enable_shared or enable_static is yes.
22825 test yes = "$enable_shared" || enable_static=yes
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
22827 $as_echo "$enable_static" >&6; }
22834 ac_cpp='$CPP $CPPFLAGS'
22835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22855 ac_config_commands="$ac_config_commands libtool"
22860 # Only expand once:
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
22868 $as_echo_n "checking if sntp will be built... " >&6; }
22870 # Check whether --with-sntp was given.
22871 if test "${with_sntp+set}" = set; then :
22872 withval=$with_sntp;
22874 with_sntp="${withsntp=yes}"
22878 case "$with_sntp" in
22887 if test -n "$SNTP"; then
22889 BUILD_SNTP_FALSE='#'
22891 BUILD_SNTP_TRUE='#'
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
22896 $as_echo "$with_sntp" >&6; }
22910 # NTP has (so far) been relying on leading-edge autogen.
22911 # Therefore, by default:
22912 # - use the version we ship with
22913 # - do not install it
22914 # - build a static copy (AC_DISABLE_SHARED - done earlier)
22915 case "${enable_local_libopts+set}" in
22917 *) enable_local_libopts=yes ;;
22919 case "${enable_libopts_install+set}" in
22921 *) enable_libopts_install=no ;;
22926 ac_header_dirent=no
22927 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22928 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22930 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22931 if eval \${$as_ac_Header+:} false; then :
22932 $as_echo_n "(cached) " >&6
22934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22935 /* end confdefs.h. */
22936 #include <sys/types.h>
22948 if ac_fn_c_try_compile "$LINENO"; then :
22949 eval "$as_ac_Header=yes"
22951 eval "$as_ac_Header=no"
22953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22955 eval ac_res=\$$as_ac_Header
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22957 $as_echo "$ac_res" >&6; }
22958 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22959 cat >>confdefs.h <<_ACEOF
22960 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22963 ac_header_dirent=$ac_hdr; break
22967 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22968 if test $ac_header_dirent = dirent.h; then
22969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22970 $as_echo_n "checking for library containing opendir... " >&6; }
22971 if ${ac_cv_search_opendir+:} false; then :
22972 $as_echo_n "(cached) " >&6
22974 ac_func_search_save_LIBS=$LIBS
22975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22976 /* end confdefs.h. */
22978 /* Override any GCC internal prototype to avoid an error.
22979 Use char because int might match the return type of a GCC
22980 builtin and then its argument prototype would still apply. */
22993 for ac_lib in '' dir; do
22994 if test -z "$ac_lib"; then
22995 ac_res="none required"
22998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23000 if ac_fn_c_try_link "$LINENO"; then :
23001 ac_cv_search_opendir=$ac_res
23003 rm -f core conftest.err conftest.$ac_objext \
23005 if ${ac_cv_search_opendir+:} false; then :
23009 if ${ac_cv_search_opendir+:} false; then :
23012 ac_cv_search_opendir=no
23014 rm conftest.$ac_ext
23015 LIBS=$ac_func_search_save_LIBS
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23018 $as_echo "$ac_cv_search_opendir" >&6; }
23019 ac_res=$ac_cv_search_opendir
23020 if test "$ac_res" != no; then :
23021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23027 $as_echo_n "checking for library containing opendir... " >&6; }
23028 if ${ac_cv_search_opendir+:} false; then :
23029 $as_echo_n "(cached) " >&6
23031 ac_func_search_save_LIBS=$LIBS
23032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23033 /* end confdefs.h. */
23035 /* Override any GCC internal prototype to avoid an error.
23036 Use char because int might match the return type of a GCC
23037 builtin and then its argument prototype would still apply. */
23050 for ac_lib in '' x; do
23051 if test -z "$ac_lib"; then
23052 ac_res="none required"
23055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23057 if ac_fn_c_try_link "$LINENO"; then :
23058 ac_cv_search_opendir=$ac_res
23060 rm -f core conftest.err conftest.$ac_objext \
23062 if ${ac_cv_search_opendir+:} false; then :
23066 if ${ac_cv_search_opendir+:} false; then :
23069 ac_cv_search_opendir=no
23071 rm conftest.$ac_ext
23072 LIBS=$ac_func_search_save_LIBS
23074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23075 $as_echo "$ac_cv_search_opendir" >&6; }
23076 ac_res=$ac_cv_search_opendir
23077 if test "$ac_res" != no; then :
23078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23085 # =================
23087 # =================
23089 sys/mman.h sys/param.h sys/poll.h sys/procset.h \
23090 sys/select.h sys/socket.h sys/stropts.h sys/time.h \
23091 sys/un.h sys/wait.h dlfcn.h errno.h \
23092 fcntl.h libgen.h libintl.h memory.h \
23093 netinet/in.h setjmp.h stdbool.h sysexits.h \
23096 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23097 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23098 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23099 cat >>confdefs.h <<_ACEOF
23100 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23108 for ac_header in stdarg.h varargs.h
23110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23111 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23112 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23113 cat >>confdefs.h <<_ACEOF
23114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23116 lo_have_arg_hdr=true;break
23118 lo_have_arg_hdr=false
23124 for ac_header in string.h strings.h
23126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23127 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23128 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23129 cat >>confdefs.h <<_ACEOF
23130 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23132 lo_have_str_hdr=true;break
23134 lo_have_str_hdr=false
23140 for ac_header in limits.h sys/limits.h values.h
23142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23143 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23144 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23145 cat >>confdefs.h <<_ACEOF
23146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23148 lo_have_lim_hdr=true;break
23150 lo_have_lim_hdr=false
23156 for ac_header in inttypes.h stdint.h
23158 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23159 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23160 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23161 cat >>confdefs.h <<_ACEOF
23162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23164 lo_have_typ_hdr=true;break
23166 lo_have_typ_hdr=false
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
23173 $as_echo_n "checking for working stdnoreturn.h... " >&6; }
23174 if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
23175 $as_echo_n "(cached) " >&6
23177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23178 /* end confdefs.h. */
23179 #include <stdlib.h>
23180 #include <stdnoreturn.h>
23181 /* Do not check for 'noreturn' after the return type.
23182 C11 allows it, but it's rarely done that way
23183 and circa-2012 bleeding-edge GCC rejects it when given
23184 -Werror=old-style-declaration. */
23185 noreturn void foo1 (void) { exit (0); }
23186 _Noreturn void foo2 (void) { exit (0); }
23187 int testit (int argc, char **argv) {
23190 (argv[0][0] ? foo1 : foo2) ();
23201 if ac_fn_c_try_compile "$LINENO"; then :
23202 gl_cv_header_working_stdnoreturn_h=yes
23204 gl_cv_header_working_stdnoreturn_h=no
23206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
23209 $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
23211 if test $gl_cv_header_working_stdnoreturn_h = yes; then
23214 STDNORETURN_H='stdnoreturn.h'
23218 if test -n "$STDNORETURN_H"; then
23219 GL_GENERATE_STDNORETURN_H_TRUE=
23220 GL_GENERATE_STDNORETURN_H_FALSE='#'
23222 GL_GENERATE_STDNORETURN_H_TRUE='#'
23223 GL_GENERATE_STDNORETURN_H_FALSE=
23228 # ----------------------------------------------------------------------
23229 # check for various programs used during the build.
23230 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
23231 # ----------------------------------------------------------------------
23232 for ac_header in runetype.h wchar.h
23234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23235 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
23236 $ac_includes_default
23237 #if HAVE_RUNETYPE_H
23238 # include <runetype.h>
23242 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23243 cat >>confdefs.h <<_ACEOF
23244 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23252 # Check whether --enable-nls was given.
23253 if test "${enable_nls+set}" = set; then :
23254 enableval=$enable_nls;
23257 if test "x$enable_nls" != "xno" && \
23258 test "X${ac_cv_header_libintl_h}" = Xyes; then :
23261 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
23265 # --------------------------------------------
23266 # Verify certain entries from AC_CHECK_HEADERS
23267 # --------------------------------------------
23268 ${lo_have_arg_hdr} || \
23269 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
23271 ${lo_have_str_hdr} || \
23272 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
23274 ${lo_have_lim_hdr} || \
23275 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
23277 ${lo_have_typ_hdr} || \
23278 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
23280 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
23281 do eval as_ac_var=\${ac_cv_header_${f}_h}
23282 test "X${as_ac_var}" = Xyes || {
23283 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
23286 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
23287 echo '#include <stdint.h>' > inttypes.h
23289 # ----------------------------------------------------------------------
23290 # Checks for typedefs
23291 # ----------------------------------------------------------------------
23292 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
23293 if test "x$ac_cv_type_wchar_t" = xyes; then :
23295 cat >>confdefs.h <<_ACEOF
23296 #define HAVE_WCHAR_T 1
23302 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
23303 $ac_includes_default
23304 #if HAVE_RUNETYPE_H
23305 # include <runetype.h>
23308 # include <wchar.h>
23312 if test "x$ac_cv_type_wint_t" = xyes; then :
23314 cat >>confdefs.h <<_ACEOF
23315 #define HAVE_WINT_T 1
23321 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
23322 if test "x$ac_cv_type_int8_t" = xyes; then :
23324 cat >>confdefs.h <<_ACEOF
23325 #define HAVE_INT8_T 1
23330 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
23331 if test "x$ac_cv_type_uint8_t" = xyes; then :
23333 cat >>confdefs.h <<_ACEOF
23334 #define HAVE_UINT8_T 1
23339 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
23340 if test "x$ac_cv_type_int16_t" = xyes; then :
23342 cat >>confdefs.h <<_ACEOF
23343 #define HAVE_INT16_T 1
23348 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
23349 if test "x$ac_cv_type_uint16_t" = xyes; then :
23351 cat >>confdefs.h <<_ACEOF
23352 #define HAVE_UINT16_T 1
23357 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
23358 if test "x$ac_cv_type_int32_t" = xyes; then :
23360 cat >>confdefs.h <<_ACEOF
23361 #define HAVE_INT32_T 1
23366 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
23367 if test "x$ac_cv_type_uint32_t" = xyes; then :
23369 cat >>confdefs.h <<_ACEOF
23370 #define HAVE_UINT32_T 1
23375 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23376 if test "x$ac_cv_type_intptr_t" = xyes; then :
23378 cat >>confdefs.h <<_ACEOF
23379 #define HAVE_INTPTR_T 1
23384 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23385 if test "x$ac_cv_type_uintptr_t" = xyes; then :
23387 cat >>confdefs.h <<_ACEOF
23388 #define HAVE_UINTPTR_T 1
23393 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
23394 if test "x$ac_cv_type_uint_t" = xyes; then :
23396 cat >>confdefs.h <<_ACEOF
23397 #define HAVE_UINT_T 1
23402 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23403 if test "x$ac_cv_type_pid_t" = xyes; then :
23405 cat >>confdefs.h <<_ACEOF
23406 #define HAVE_PID_T 1
23411 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23412 if test "x$ac_cv_type_size_t" = xyes; then :
23414 cat >>confdefs.h <<_ACEOF
23415 #define HAVE_SIZE_T 1
23420 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23421 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
23423 cat >>confdefs.h <<_ACEOF
23424 #define HAVE_PTRDIFF_T 1
23430 # The cast to long int works around a bug in the HP C Compiler
23431 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23432 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23433 # This bug is HP SR number 8606223364.
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
23435 $as_echo_n "checking size of char *... " >&6; }
23436 if ${ac_cv_sizeof_char_p+:} false; then :
23437 $as_echo_n "(cached) " >&6
23439 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
23442 if test "$ac_cv_type_char_p" = yes; then
23443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23445 as_fn_error 77 "cannot compute sizeof (char *)
23446 See \`config.log' for more details" "$LINENO" 5; }
23448 ac_cv_sizeof_char_p=0
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
23454 $as_echo "$ac_cv_sizeof_char_p" >&6; }
23458 cat >>confdefs.h <<_ACEOF
23459 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
23463 # The cast to long int works around a bug in the HP C Compiler
23464 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23465 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23466 # This bug is HP SR number 8606223364.
23467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23468 $as_echo_n "checking size of int... " >&6; }
23469 if ${ac_cv_sizeof_int+:} false; then :
23470 $as_echo_n "(cached) " >&6
23472 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23475 if test "$ac_cv_type_int" = yes; then
23476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23478 as_fn_error 77 "cannot compute sizeof (int)
23479 See \`config.log' for more details" "$LINENO" 5; }
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23487 $as_echo "$ac_cv_sizeof_int" >&6; }
23491 cat >>confdefs.h <<_ACEOF
23492 #define SIZEOF_INT $ac_cv_sizeof_int
23496 # The cast to long int works around a bug in the HP C Compiler
23497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23499 # This bug is HP SR number 8606223364.
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23501 $as_echo_n "checking size of long... " >&6; }
23502 if ${ac_cv_sizeof_long+:} false; then :
23503 $as_echo_n "(cached) " >&6
23505 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23508 if test "$ac_cv_type_long" = yes; then
23509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23511 as_fn_error 77 "cannot compute sizeof (long)
23512 See \`config.log' for more details" "$LINENO" 5; }
23514 ac_cv_sizeof_long=0
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23520 $as_echo "$ac_cv_sizeof_long" >&6; }
23524 cat >>confdefs.h <<_ACEOF
23525 #define SIZEOF_LONG $ac_cv_sizeof_long
23529 # The cast to long int works around a bug in the HP C Compiler
23530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23532 # This bug is HP SR number 8606223364.
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23534 $as_echo_n "checking size of short... " >&6; }
23535 if ${ac_cv_sizeof_short+:} false; then :
23536 $as_echo_n "(cached) " >&6
23538 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23541 if test "$ac_cv_type_short" = yes; then
23542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23544 as_fn_error 77 "cannot compute sizeof (short)
23545 See \`config.log' for more details" "$LINENO" 5; }
23547 ac_cv_sizeof_short=0
23552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23553 $as_echo "$ac_cv_sizeof_short" >&6; }
23557 cat >>confdefs.h <<_ACEOF
23558 #define SIZEOF_SHORT $ac_cv_sizeof_short
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
23567 $as_echo_n "checking for pathfind in -lgen... " >&6; }
23568 if ${ac_cv_lib_gen_pathfind+:} false; then :
23569 $as_echo_n "(cached) " >&6
23571 ac_check_lib_save_LIBS=$LIBS
23573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23574 /* end confdefs.h. */
23576 /* Override any GCC internal prototype to avoid an error.
23577 Use char because int might match the return type of a GCC
23578 builtin and then its argument prototype would still apply. */
23586 return pathfind ();
23591 if ac_fn_c_try_link "$LINENO"; then :
23592 ac_cv_lib_gen_pathfind=yes
23594 ac_cv_lib_gen_pathfind=no
23596 rm -f core conftest.err conftest.$ac_objext \
23597 conftest$ac_exeext conftest.$ac_ext
23598 LIBS=$ac_check_lib_save_LIBS
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
23601 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
23602 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
23603 cat >>confdefs.h <<_ACEOF
23604 #define HAVE_LIBGEN 1
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
23612 $as_echo_n "checking for gettext in -lintl... " >&6; }
23613 if ${ac_cv_lib_intl_gettext+:} false; then :
23614 $as_echo_n "(cached) " >&6
23616 ac_check_lib_save_LIBS=$LIBS
23617 LIBS="-lintl $LIBS"
23618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23619 /* end confdefs.h. */
23621 /* Override any GCC internal prototype to avoid an error.
23622 Use char because int might match the return type of a GCC
23623 builtin and then its argument prototype would still apply. */
23636 if ac_fn_c_try_link "$LINENO"; then :
23637 ac_cv_lib_intl_gettext=yes
23639 ac_cv_lib_intl_gettext=no
23641 rm -f core conftest.err conftest.$ac_objext \
23642 conftest$ac_exeext conftest.$ac_ext
23643 LIBS=$ac_check_lib_save_LIBS
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
23646 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
23647 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
23648 cat >>confdefs.h <<_ACEOF
23649 #define HAVE_LIBINTL 1
23652 LIBS="-lintl $LIBS"
23656 for ac_func in vprintf
23658 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23659 if test "x$ac_cv_func_vprintf" = xyes; then :
23660 cat >>confdefs.h <<_ACEOF
23661 #define HAVE_VPRINTF 1
23664 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23665 if test "x$ac_cv_func__doprnt" = xyes; then :
23667 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23675 for ac_header in vfork.h
23677 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
23678 if test "x$ac_cv_header_vfork_h" = xyes; then :
23679 cat >>confdefs.h <<_ACEOF
23680 #define HAVE_VFORK_H 1
23687 for ac_func in fork vfork
23689 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23690 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23691 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23692 cat >>confdefs.h <<_ACEOF
23693 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23699 if test "x$ac_cv_func_fork" = xyes; then
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
23701 $as_echo_n "checking for working fork... " >&6; }
23702 if ${ac_cv_func_fork_works+:} false; then :
23703 $as_echo_n "(cached) " >&6
23705 if test "$cross_compiling" = yes; then :
23706 ac_cv_func_fork_works=cross
23708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23709 /* end confdefs.h. */
23710 $ac_includes_default
23715 /* By Ruediger Kuhlmann. */
23716 return fork () < 0;
23722 if ac_fn_c_try_run "$LINENO"; then :
23723 ac_cv_func_fork_works=yes
23725 ac_cv_func_fork_works=no
23727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23728 conftest.$ac_objext conftest.beam conftest.$ac_ext
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
23733 $as_echo "$ac_cv_func_fork_works" >&6; }
23736 ac_cv_func_fork_works=$ac_cv_func_fork
23738 if test "x$ac_cv_func_fork_works" = xcross; then
23740 *-*-amigaos* | *-*-msdosdjgpp*)
23741 # Override, as these systems have only a dummy fork() stub
23742 ac_cv_func_fork_works=no
23745 ac_cv_func_fork_works=yes
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23749 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23751 ac_cv_func_vfork_works=$ac_cv_func_vfork
23752 if test "x$ac_cv_func_vfork" = xyes; then
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
23754 $as_echo_n "checking for working vfork... " >&6; }
23755 if ${ac_cv_func_vfork_works+:} false; then :
23756 $as_echo_n "(cached) " >&6
23758 if test "$cross_compiling" = yes; then :
23759 ac_cv_func_vfork_works=cross
23761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23762 /* end confdefs.h. */
23763 /* Thanks to Paul Eggert for this test. */
23764 $ac_includes_default
23765 #include <sys/wait.h>
23766 #ifdef HAVE_VFORK_H
23767 # include <vfork.h>
23769 /* On some sparc systems, changes by the child to local and incoming
23770 argument registers are propagated back to the parent. The compiler
23771 is told about this with #include <vfork.h>, but some compilers
23772 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23773 static variable whose address is put into a register that is
23774 clobbered by the vfork. */
23777 sparc_address_test (int arg)
23779 sparc_address_test (arg) int arg;
23782 static pid_t child;
23800 pid_t parent = getpid ();
23803 sparc_address_test (0);
23808 /* Here is another test for sparc vfork register problems. This
23809 test uses lots of local variables, at least as many local
23810 variables as main has allocated so far including compiler
23811 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23812 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23813 reuse the register of parent for one of the local variables,
23814 since it will think that parent can't possibly be used any more
23815 in this routine. Assigning to the local variable will thus
23816 munge parent in the parent process. */
23818 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23819 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23820 /* Convince the compiler that p..p7 are live; otherwise, it might
23821 use the same hardware register for all 8 local variables. */
23822 if (p != p1 || p != p2 || p != p3 || p != p4
23823 || p != p5 || p != p6 || p != p7)
23826 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23827 from child file descriptors. If the child closes a descriptor
23828 before it execs or exits, this munges the parent's descriptor
23829 as well. Test for this by closing stdout in the child. */
23830 _exit(close(fileno(stdout)) != 0);
23835 while (wait(&status) != child)
23838 /* Was there some problem with vforking? */
23841 /* Did the child fail? (This shouldn't happen.) */
23844 /* Did the vfork/compiler bug occur? */
23845 || parent != getpid()
23847 /* Did the file descriptor bug occur? */
23848 || fstat(fileno(stdout), &st) != 0
23853 if ac_fn_c_try_run "$LINENO"; then :
23854 ac_cv_func_vfork_works=yes
23856 ac_cv_func_vfork_works=no
23858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23859 conftest.$ac_objext conftest.beam conftest.$ac_ext
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
23864 $as_echo "$ac_cv_func_vfork_works" >&6; }
23867 if test "x$ac_cv_func_fork_works" = xcross; then
23868 ac_cv_func_vfork_works=$ac_cv_func_vfork
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23870 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23873 if test "x$ac_cv_func_vfork_works" = xyes; then
23875 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
23879 $as_echo "#define vfork fork" >>confdefs.h
23882 if test "x$ac_cv_func_fork_works" = xyes; then
23884 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
23888 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
23889 strrchr strsignal fchmod fstat chmod
23891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23892 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23893 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23894 cat >>confdefs.h <<_ACEOF
23895 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
23902 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
23903 if ${ac_cv_path_SED+:} false; then :
23904 $as_echo_n "(cached) " >&6
23906 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
23907 for ac_i in 1 2 3 4 5 6 7; do
23908 ac_script="$ac_script$as_nl$ac_script"
23910 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
23911 { ac_script=; unset ac_script;}
23912 if test -z "$SED"; then
23913 ac_path_SED_found=false
23914 # Loop through the user's path and test for each of PROGNAME-LIST
23915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23916 for as_dir in $PATH
23919 test -z "$as_dir" && as_dir=.
23920 for ac_prog in sed gsed; do
23921 for ac_exec_ext in '' $ac_executable_extensions; do
23922 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
23923 as_fn_executable_p "$ac_path_SED" || continue
23924 # Check for GNU ac_path_SED and select it if it is found.
23925 # Check for GNU $ac_path_SED
23926 case `"$ac_path_SED" --version 2>&1` in
23928 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
23931 $as_echo_n 0123456789 >"conftest.in"
23934 cat "conftest.in" "conftest.in" >"conftest.tmp"
23935 mv "conftest.tmp" "conftest.in"
23936 cp "conftest.in" "conftest.nl"
23937 $as_echo '' >> "conftest.nl"
23938 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
23939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
23940 as_fn_arith $ac_count + 1 && ac_count=$as_val
23941 if test $ac_count -gt ${ac_path_SED_max-0}; then
23942 # Best one so far, save it but keep looking for a better one
23943 ac_cv_path_SED="$ac_path_SED"
23944 ac_path_SED_max=$ac_count
23946 # 10*(2^10) chars as input seems more than enough
23947 test $ac_count -gt 10 && break
23949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
23952 $ac_path_SED_found && break 3
23957 if test -z "$ac_cv_path_SED"; then
23958 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
23961 ac_cv_path_SED=$SED
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
23966 $as_echo "$ac_cv_path_SED" >&6; }
23967 SED="$ac_cv_path_SED"
23972 POSIX_SHELL=`which bash`
23973 test -x "$POSIX_SHELL" && break
23974 POSIX_SHELL=`which dash`
23975 test -x "$POSIX_SHELL" && break
23976 POSIX_SHELL=/usr/xpg4/bin/sh
23977 test -x "$POSIX_SHELL" && break
23978 POSIX_SHELL=`/bin/sh -c '
23980 if ! true ; then exit 1 ; fi
23982 test -x "$POSIX_SHELL" && break
23983 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
23986 cat >>confdefs.h <<_ACEOF
23987 #define POSIX_SHELL "${POSIX_SHELL}"
23994 LIBOPTS_BUILD_BLOCKED=''
23997 NEED_LIBOPTS_DIR=''
23999 # Check whether --enable-local-libopts was given.
24000 if test "${enable_local_libopts+set}" = set; then :
24001 enableval=$enable_local_libopts;
24002 if test x$enableval = xyes ; then
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
24004 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
24005 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
24006 NEED_LIBOPTS_DIR=true
24007 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
24012 # Check whether --enable-libopts-install was given.
24013 if test "${enable_libopts_install+set}" = set; then :
24014 enableval=$enable_libopts_install;
24017 if test "X${enable_libopts_install}" = Xyes; then
24018 INSTALL_LIBOPTS_TRUE=
24019 INSTALL_LIBOPTS_FALSE='#'
24021 INSTALL_LIBOPTS_TRUE='#'
24022 INSTALL_LIBOPTS_FALSE=
24026 if test -z "${NEED_LIBOPTS_DIR}" ; then
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
24028 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
24030 # Check whether --with-autoopts-config was given.
24031 if test "${with_autoopts_config+set}" = set; then :
24032 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
24035 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
24036 if ${lo_cv_with_autoopts_config+:} false; then :
24037 $as_echo_n "(cached) " >&6
24039 if autoopts-config --help 2>/dev/null 1>&2
24040 then lo_cv_with_autoopts_config=autoopts-config
24041 elif libopts-config --help 2>/dev/null 1>&2
24042 then lo_cv_with_autoopts_config=libopts-config
24043 else lo_cv_with_autoopts_config=no ; fi
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
24046 $as_echo "$lo_cv_with_autoopts_config" >&6; }
24049 # end of AC_ARG_WITH
24051 if ${lo_cv_test_autoopts+:} false; then :
24052 $as_echo_n "(cached) " >&6
24055 if test -z "${lo_cv_with_autoopts_config}" \
24056 -o X"${lo_cv_with_autoopts_config}" = Xno
24058 if autoopts-config --help 2>/dev/null 1>&2
24059 then lo_cv_with_autoopts_config=autoopts-config
24060 elif libopts-config --help 2>/dev/null 1>&2
24061 then lo_cv_with_autoopts_config=libopts-config
24062 else lo_cv_with_autoopts_config=false ; fi
24064 lo_cv_test_autoopts=`
24065 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
24066 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
24067 then lo_cv_test_autoopts=no ; fi
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
24072 $as_echo "${lo_cv_test_autoopts}" >&6; }
24074 if test "X${lo_cv_test_autoopts}" != Xno
24076 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
24077 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
24079 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
24080 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
24081 NEED_LIBOPTS_DIR=true
24083 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
24084 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
24085 NEED_LIBOPTS_DIR=''
24087 if test -n "${NEED_LIBOPTS_DIR}"; then
24089 NEED_LIBOPTS_FALSE='#'
24091 NEED_LIBOPTS_TRUE='#'
24092 NEED_LIBOPTS_FALSE=
24097 LIBOPTS_DIR=libopts
24100 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
24103 if test -z "$NEED_LIBOPTS_TRUE"; then :
24107 # Check to see if a reg expr header is specified.
24110 # Check whether --with-regex-header was given.
24111 if test "${with_regex_header+set}" = set; then :
24112 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
24115 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
24116 if ${libopts_cv_with_regex_header+:} false; then :
24117 $as_echo_n "(cached) " >&6
24119 libopts_cv_with_regex_header=no
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
24122 $as_echo "$libopts_cv_with_regex_header" >&6; }
24125 # end of AC_ARG_WITH
24126 if test "X${libopts_cv_with_regex_header}" != Xno
24128 cat >>confdefs.h <<_ACEOF
24129 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
24134 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
24140 # Check to see if a working libregex can be found.
24143 # Check whether --with-libregex was given.
24144 if test "${with_libregex+set}" = set; then :
24145 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
24148 $as_echo_n "checking whether with-libregex was specified... " >&6; }
24149 if ${libopts_cv_with_libregex_root+:} false; then :
24150 $as_echo_n "(cached) " >&6
24152 libopts_cv_with_libregex_root=no
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
24155 $as_echo "$libopts_cv_with_libregex_root" >&6; }
24158 # end of AC_ARG_WITH libregex
24160 if test "${with_libregex+set}" = set && \
24161 test "X${withval}" = Xno
24162 then ## disabled by request
24163 libopts_cv_with_libregex_root=no
24164 libopts_cv_with_libregex_cflags=no
24165 libopts_cv_with_libregex_libs=no
24169 # Check whether --with-libregex-cflags was given.
24170 if test "${with_libregex_cflags+set}" = set; then :
24171 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
24174 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
24175 if ${libopts_cv_with_libregex_cflags+:} false; then :
24176 $as_echo_n "(cached) " >&6
24178 libopts_cv_with_libregex_cflags=no
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
24181 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
24184 # end of AC_ARG_WITH libregex-cflags
24187 # Check whether --with-libregex-libs was given.
24188 if test "${with_libregex_libs+set}" = set; then :
24189 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
24192 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
24193 if ${libopts_cv_with_libregex_libs+:} false; then :
24194 $as_echo_n "(cached) " >&6
24196 libopts_cv_with_libregex_libs=no
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
24199 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
24202 # end of AC_ARG_WITH libregex-libs
24204 case "X${libopts_cv_with_libregex_cflags}" in
24206 case "X${libopts_cv_with_libregex_root}" in
24207 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
24208 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
24211 case "X${libopts_cv_with_libregex_libs}" in
24213 case "X${libopts_cv_with_libregex_root}" in
24214 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
24215 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
24218 libopts_save_CPPFLAGS="${CPPFLAGS}"
24219 libopts_save_LIBS="${LIBS}"
24220 case "X${libopts_cv_with_libregex_cflags}" in
24222 libopts_cv_with_libregex_cflags="" ;;
24223 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
24225 case "X${libopts_cv_with_libregex_libs}" in
24227 libopts_cv_with_libregex_libs="" ;;
24229 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
24234 $as_echo_n "checking whether libregex functions properly... " >&6; }
24235 if ${libopts_cv_with_libregex+:} false; then :
24236 $as_echo_n "(cached) " >&6
24239 if test "$cross_compiling" = yes; then :
24240 libopts_cv_with_libregex=no
24242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24243 /* end confdefs.h. */
24245 #include <stdlib.h>
24246 #include <sys/types.h>
24247 #include REGEX_HEADER
24249 void comp_re(char const * pzPat) {
24250 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
24251 if (res == 0) return;
24255 comp_re( "^.*\$" );
24256 comp_re( "()|no.*" );
24258 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
24259 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
24260 fputs( "error: regex -->.<-- did not match\n", stderr );
24265 if ac_fn_c_try_run "$LINENO"; then :
24266 libopts_cv_with_libregex=yes
24268 libopts_cv_with_libregex=no
24270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24271 conftest.$ac_objext conftest.beam conftest.$ac_ext
24273 # end of AC_RUN_IFELSE
24276 # end of AC_CACHE_VAL for libopts_cv_with_libregex
24277 fi ## disabled by request
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
24279 $as_echo "${libopts_cv_with_libregex}" >&6; }
24280 if test "X${libopts_cv_with_libregex}" != Xno
24283 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
24286 CPPFLAGS="${libopts_save_CPPFLAGS}"
24287 LIBS="${libopts_save_LIBS}"
24288 libopts_cv_with_libregex_root=no
24289 libopts_cv_with_libregex_cflags=no
24290 libopts_cv_with_libregex_libs=no
24291 libopts_cv_with_libregex=no
24296 # Check to see if pathfind(3) works.
24298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
24299 $as_echo_n "checking whether pathfind(3) works... " >&6; }
24300 if ${libopts_cv_run_pathfind+:} false; then :
24301 $as_echo_n "(cached) " >&6
24304 if test "$cross_compiling" = yes; then :
24305 libopts_cv_run_pathfind=no
24308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24309 /* end confdefs.h. */
24310 #include <string.h>
24311 #include <stdlib.h>
24312 int main (int argc, char ** argv) {
24313 char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
24314 return (pz == 0) ? 1 : 0;
24317 if ac_fn_c_try_run "$LINENO"; then :
24318 libopts_cv_run_pathfind=yes
24320 libopts_cv_run_pathfind=no
24322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24323 conftest.$ac_objext conftest.beam conftest.$ac_ext
24325 # end of RUN_IFELSE
24328 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
24330 $as_echo "${libopts_cv_run_pathfind}" >&6; }
24331 if test "X${libopts_cv_run_pathfind}" != Xno
24334 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
24340 # Check to see if /dev/zero is readable device.
24342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
24343 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
24344 if ${libopts_cv_test_dev_zero+:} false; then :
24345 $as_echo_n "(cached) " >&6
24348 libopts_cv_test_dev_zero=`exec 2> /dev/null
24349 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
24350 test -z "${dzero}" && exit 1
24352 if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
24353 then libopts_cv_test_dev_zero=no
24357 # end of CACHE_VAL of libopts_cv_test_dev_zero
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
24359 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
24360 if test "X${libopts_cv_test_dev_zero}" != Xno
24363 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
24369 # Check to see if we have a functional realpath(3C).
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
24372 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
24373 if ${libopts_cv_run_realpath+:} false; then :
24374 $as_echo_n "(cached) " >&6
24377 if test "$cross_compiling" = yes; then :
24378 libopts_cv_run_realpath=no
24381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24382 /* end confdefs.h. */
24383 #include <limits.h>
24384 #include <stdlib.h>
24385 int main (int argc, char ** argv) {
24389 char zPath[PATH_MAX+1];
24391 char *pz = realpath(argv[0], zPath);
24392 return (pz == zPath) ? 0 : 1;
24395 if ac_fn_c_try_run "$LINENO"; then :
24396 libopts_cv_run_realpath=yes
24398 libopts_cv_run_realpath=no
24400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24401 conftest.$ac_objext conftest.beam conftest.$ac_ext
24403 # end of RUN_IFELSE
24406 # end of AC_CACHE_VAL for libopts_cv_run_realpath
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
24408 $as_echo "${libopts_cv_run_realpath}" >&6; }
24409 if test "X${libopts_cv_run_realpath}" != Xno
24412 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
24418 # Check to see if strftime() works.
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
24421 $as_echo_n "checking whether strftime() works... " >&6; }
24422 if ${libopts_cv_run_strftime+:} false; then :
24423 $as_echo_n "(cached) " >&6
24426 if test "$cross_compiling" = yes; then :
24427 libopts_cv_run_strftime=no
24430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24431 /* end confdefs.h. */
24433 #include <string.h>
24436 static char const z[] = "Thursday Aug 28 240";
24438 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
24439 tm.tm_min = 44; /* minutes after the hour [0, 59] */
24440 tm.tm_hour = 12; /* hour since midnight [0, 23] */
24441 tm.tm_mday = 28; /* day of the month [1, 31] */
24442 tm.tm_mon = 7; /* months since January [0, 11] */
24443 tm.tm_year = 86; /* years since 1900 */
24444 tm.tm_wday = 4; /* days since Sunday [0, 6] */
24445 tm.tm_yday = 239; /* days since January 1 [0, 365] */
24446 tm.tm_isdst = 1; /* flag for daylight savings time */
24447 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
24448 return (strcmp( t_buf, z ) != 0); }
24450 if ac_fn_c_try_run "$LINENO"; then :
24451 libopts_cv_run_strftime=yes
24453 libopts_cv_run_strftime=no
24455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24456 conftest.$ac_objext conftest.beam conftest.$ac_ext
24458 # end of RUN_IFELSE
24461 # end of AC_CACHE_VAL for libopts_cv_run_strftime
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
24463 $as_echo "${libopts_cv_run_strftime}" >&6; }
24464 if test "X${libopts_cv_run_strftime}" != Xno
24467 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
24473 # Check to see if fopen accepts "b" mode.
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
24476 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
24477 if ${libopts_cv_run_fopen_binary+:} false; then :
24478 $as_echo_n "(cached) " >&6
24481 if test "$cross_compiling" = yes; then :
24482 libopts_cv_run_fopen_binary=no
24485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24486 /* end confdefs.h. */
24488 int main (int argc, char ** argv) {
24489 FILE * fp = fopen("conftest.$ac_ext", "rb");
24490 return (fp == NULL) ? 1 : fclose(fp); }
24492 if ac_fn_c_try_run "$LINENO"; then :
24493 libopts_cv_run_fopen_binary=yes
24495 libopts_cv_run_fopen_binary=no
24497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24498 conftest.$ac_objext conftest.beam conftest.$ac_ext
24500 # end of RUN_IFELSE
24503 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
24505 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
24506 if test "X${libopts_cv_run_fopen_binary}" != Xno
24509 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
24513 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
24519 # Check to see if fopen accepts "t" mode.
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
24522 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
24523 if ${libopts_cv_run_fopen_text+:} false; then :
24524 $as_echo_n "(cached) " >&6
24527 if test "$cross_compiling" = yes; then :
24528 libopts_cv_run_fopen_text=no
24531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24532 /* end confdefs.h. */
24534 int main (int argc, char ** argv) {
24535 FILE * fp = fopen("conftest.$ac_ext", "rt");
24536 return (fp == NULL) ? 1 : fclose(fp); }
24538 if ac_fn_c_try_run "$LINENO"; then :
24539 libopts_cv_run_fopen_text=yes
24541 libopts_cv_run_fopen_text=no
24543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24544 conftest.$ac_objext conftest.beam conftest.$ac_ext
24546 # end of RUN_IFELSE
24549 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
24551 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
24552 if test "X${libopts_cv_run_fopen_text}" != Xno
24555 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
24559 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
24565 # Check to see if not wanting optional option args.
24567 # Check whether --enable-optional-args was given.
24568 if test "${enable_optional_args+set}" = set; then :
24569 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
24572 $as_echo_n "checking whether not wanting optional option args... " >&6; }
24573 if ${libopts_cv_enable_optional_args+:} false; then :
24574 $as_echo_n "(cached) " >&6
24576 libopts_cv_enable_optional_args=yes
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
24579 $as_echo "$libopts_cv_enable_optional_args" >&6; }
24582 # end of AC_ARG_ENABLE
24583 if test "X${libopts_cv_enable_optional_args}" = Xno
24586 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
24595 ac_config_files="$ac_config_files libopts/Makefile"
24597 # end of AC_DEFUN of LIBOPTS_CHECK
24600 # From when we only used libevent for sntp:
24603 # [NTP_LIBEVENT_CHECK],
24604 # [NTP_LIBEVENT_CHECK_NOBUILD]
24609 ntp_pkgconfig_min_version='0.15.0'
24610 if test -n "$ac_tool_prefix"; then
24611 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24612 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24614 $as_echo_n "checking for $ac_word... " >&6; }
24615 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24616 $as_echo_n "(cached) " >&6
24618 case $PKG_CONFIG in
24620 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24624 for as_dir in $PATH
24627 test -z "$as_dir" && as_dir=.
24628 for ac_exec_ext in '' $ac_executable_extensions; do
24629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24630 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24641 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24642 if test -n "$PKG_CONFIG"; then
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24644 $as_echo "$PKG_CONFIG" >&6; }
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24647 $as_echo "no" >&6; }
24652 if test -z "$ac_cv_path_PKG_CONFIG"; then
24653 ac_pt_PKG_CONFIG=$PKG_CONFIG
24654 # Extract the first word of "pkg-config", so it can be a program name with args.
24655 set dummy pkg-config; ac_word=$2
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24657 $as_echo_n "checking for $ac_word... " >&6; }
24658 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24659 $as_echo_n "(cached) " >&6
24661 case $ac_pt_PKG_CONFIG in
24663 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24667 for as_dir in $PATH
24670 test -z "$as_dir" && as_dir=.
24671 for ac_exec_ext in '' $ac_executable_extensions; do
24672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24673 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24684 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24685 if test -n "$ac_pt_PKG_CONFIG"; then
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24687 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24690 $as_echo "no" >&6; }
24693 if test "x$ac_pt_PKG_CONFIG" = x; then
24696 case $cross_compiling:$ac_tool_warned in
24698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24700 ac_tool_warned=yes ;;
24702 PKG_CONFIG=$ac_pt_PKG_CONFIG
24705 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24708 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
24709 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
24711 case "$PKG_CONFIG" in
24713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
24714 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
24715 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24717 $as_echo "yes" >&6; }
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24720 $as_echo "no" >&6; }
24729 # Check whether --enable-local-libevent was given.
24730 if test "${enable_local_libevent+set}" = set; then :
24731 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
24733 ntp_use_local_libevent=${ntp_use_local_libevent-detect}
24746 ntp_libevent_min_version=2
24747 ntp_libevent_tearoff=libevent
24753 case "$ntp_use_local_libevent" in
24756 *) # If we have (a good enough) pkg-config, see if it can find libevent
24757 case "$PKG_CONFIG" in
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
24760 $as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
24761 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
24763 ntp_use_local_libevent=no
24764 ntp_libevent_version="`$PKG_CONFIG --modversion libevent`"
24765 case "$ntp_libevent_version" in
24767 *) ntp_libevent_version='(unknown)' ;;
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_libevent_version" >&5
24770 $as_echo "yes, version $ntp_libevent_version" >&6; }
24771 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
24772 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
24773 # HMS: I hope the following is accurate.
24774 # We don't need -levent, we only need -levent_core.
24775 # While we could grab only the -L stuff, there *might* be
24776 # other flags there we want. Originally we just removed -levent
24777 # but then somebody decided to install -levent-2.0
24778 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
24779 # So now we dance...
24781 for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
24786 *) case "$LDADD_LIBEVENT" in
24787 '') LDADD_LIBEVENT="$i" ;;
24788 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
24793 case "$LIBISC_PTHREADS_NOTHREADS" in
24795 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
24797 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
24799 ntp_use_local_libevent=yes
24800 # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
24802 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24804 $as_echo "no" >&6; }
24808 ntp_use_local_libevent=yes
24814 case "$ntp_use_local_libevent" in
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
24817 $as_echo "$as_me: Using libevent tearoff" >&6;}
24818 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
24819 case "$LIBISC_PTHREADS_NOTHREADS" in
24821 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
24824 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
24829 if test "x$ntp_use_local_libevent" = "xyes"; then
24830 BUILD_LIBEVENT_TRUE=
24831 BUILD_LIBEVENT_FALSE='#'
24833 BUILD_LIBEVENT_TRUE='#'
24834 BUILD_LIBEVENT_FALSE=
24840 case "$ntp_libevent_tearoff" in
24844 as_fn_error $? "ntp_libevent.m4 dir must be libevent, not $ntp_libevent_tearoff" "$LINENO" 5
24848 case "$ntp_use_local_libevent" in
24850 ac_configure_args=" --disable-openssl${ac_configure_args}"
24851 ac_configure_args=" --disable-shared${ac_configure_args}"
24852 ac_configure_args=" --disable-libevent-regress${ac_configure_args}"
24853 ac_configure_args=" --disable-libevent-install${ac_configure_args}"
24854 ac_configure_args=" --enable-silent-rules${ac_configure_args}"
24855 ac_configure_args=" --enable-function-sections${ac_configure_args}"
24856 ac_configure_args=" LEP_CFLAGS='${NTP_HARD_CFLAGS}'${ac_configure_args}"
24857 ac_configure_args=" LEP_CPPFLAGS='${NTP_HARD_CPPFLAGS}'${ac_configure_args}"
24858 ac_configure_args=" LEP_LDFLAGS='${NTP_HARD_LDFLAGS}'${ac_configure_args}"
24859 subdirs="$subdirs libevent"
24863 NTP_FORCE_LIBEVENT_DIST=libevent
24869 # Checks for libraries.
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
24875 $as_echo_n "checking for library containing openlog... " >&6; }
24876 if ${ac_cv_search_openlog+:} false; then :
24877 $as_echo_n "(cached) " >&6
24879 ac_func_search_save_LIBS=$LIBS
24880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24881 /* end confdefs.h. */
24883 /* Override any GCC internal prototype to avoid an error.
24884 Use char because int might match the return type of a GCC
24885 builtin and then its argument prototype would still apply. */
24898 for ac_lib in '' gen syslog; do
24899 if test -z "$ac_lib"; then
24900 ac_res="none required"
24903 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24905 if ac_fn_c_try_link "$LINENO"; then :
24906 ac_cv_search_openlog=$ac_res
24908 rm -f core conftest.err conftest.$ac_objext \
24910 if ${ac_cv_search_openlog+:} false; then :
24914 if ${ac_cv_search_openlog+:} false; then :
24917 ac_cv_search_openlog=no
24919 rm conftest.$ac_ext
24920 LIBS=$ac_func_search_save_LIBS
24922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
24923 $as_echo "$ac_cv_search_openlog" >&6; }
24924 ac_res=$ac_cv_search_openlog
24925 if test "$ac_res" != no; then :
24926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24927 case "$ac_cv_search_openlog" in
24928 'none required') ;;
24930 *) LIB_SYSLOG="$ac_cv_search_openlog $LIB_SYSLOG" ;;
24936 # Checks for header files.
24937 for ac_header in netdb.h string.h strings.h syslog.h
24939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24940 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24941 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24942 cat >>confdefs.h <<_ACEOF
24943 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24952 for ac_header in sysexits.h
24954 ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
24955 if test "x$ac_cv_header_sysexits_h" = xyes; then :
24956 cat >>confdefs.h <<_ACEOF
24957 #define HAVE_SYSEXITS_H 1
24963 $as_echo "#define EX_OK 0" >>confdefs.h
24966 $as_echo "#define EX_SOFTWARE 70" >>confdefs.h
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
24976 $as_echo_n "checking for facilitynames in syslog.h... " >&6; }
24977 if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
24978 $as_echo_n "(cached) " >&6
24981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24982 /* end confdefs.h. */
24984 #define SYSLOG_NAMES
24985 #include <stdlib.h>
24986 #include <syslog.h>
24991 void *fnames; fnames = facilitynames;
24996 if ac_fn_c_try_compile "$LINENO"; then :
24997 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
24999 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
25001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
25004 $as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
25005 case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
25008 $as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
25013 $as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
25017 $as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
25022 # Checks for typedefs, structures, and compiler characteristics.
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
25024 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
25025 if ${ac_cv_header_stdbool_h+:} false; then :
25026 $as_echo_n "(cached) " >&6
25028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25029 /* end confdefs.h. */
25031 #include <stdbool.h>
25033 "error: bool is not defined"
25036 "error: false is not defined"
25039 "error: false is not 0"
25042 "error: true is not defined"
25045 "error: true is not 1"
25047 #ifndef __bool_true_false_are_defined
25048 "error: __bool_true_false_are_defined is not defined"
25051 struct s { _Bool s: 1; _Bool t; } s;
25053 char a[true == 1 ? 1 : -1];
25054 char b[false == 0 ? 1 : -1];
25055 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
25056 char d[(bool) 0.5 == true ? 1 : -1];
25057 /* See body of main program for 'e'. */
25058 char f[(_Bool) 0.0 == false ? 1 : -1];
25060 char h[sizeof (_Bool)];
25061 char i[sizeof s.t];
25062 enum { j = false, k = true, l = false * true, m = true * 256 };
25063 /* The following fails for
25064 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
25066 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
25067 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
25068 /* Catch a bug in an HP-UX C compiler. See
25069 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
25070 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
25082 /* Refer to every declared value, to avoid compiler optimizations. */
25083 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
25084 + !m + !n + !o + !p + !q + !pq);
25090 if ac_fn_c_try_compile "$LINENO"; then :
25091 ac_cv_header_stdbool_h=yes
25093 ac_cv_header_stdbool_h=no
25095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
25098 $as_echo "$ac_cv_header_stdbool_h" >&6; }
25099 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
25100 if test "x$ac_cv_type__Bool" = xyes; then :
25102 cat >>confdefs.h <<_ACEOF
25103 #define HAVE__BOOL 1
25110 if test $ac_cv_header_stdbool_h = yes; then
25112 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
25125 # Check whether --with-crypto was given.
25126 if test "${with_crypto+set}" = set; then :
25127 withval=$with_crypto;
25131 # Check whether --with-openssl-libdir was given.
25132 if test "${with_openssl_libdir+set}" = set; then :
25133 withval=$with_openssl_libdir;
25137 # Check whether --with-openssl-incdir was given.
25138 if test "${with_openssl_incdir+set}" = set; then :
25139 withval=$with_openssl_incdir;
25143 # Check whether --with-rpath was given.
25144 if test "${with_rpath+set}" = set; then :
25145 withval=$with_rpath;
25150 ntp_openssl_from_pkg_config=no
25152 with_crypto=${with_crypto:-openssl,libcrypto}
25153 case "$with_crypto" in
25155 with_crypto=openssl,libcrypto
25159 case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
25161 *:notempty:notgiven:notgiven)
25162 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
25164 $as_echo_n "checking pkg-config for $pkg... " >&6; }
25165 if $PKG_CONFIG --exists $pkg ; then
25166 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
25167 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
25168 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
25169 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
25170 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
25173 ntp_openssl_from_pkg_config=yes
25174 ntp_openssl_version="`$PKG_CONFIG --modversion $pkg`"
25175 case "$ntp_openssl_version" in
25177 *) ntp_openssl_version='(unknown)' ;;
25179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_openssl_version" >&5
25180 $as_echo "yes, version $ntp_openssl_version" >&6; }
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25185 $as_echo "no" >&6; }
25188 case "$with_crypto:$ntp_openssl" in
25193 case "${with_rpath-notgiven}" in
25195 # Lame - what to do if we need -Wl... but not -R?
25201 # This may really only be true for gcc
25202 need_dash_Wlrpath=1
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
25215 $as_echo_n "checking for openssl library directory... " >&6; }
25216 with_openssl_libdir=${with_openssl_libdir-notgiven}
25217 case "$with_openssl_libdir" in
25221 with_openssl_libdir=default
25224 with_openssl_libdir=no
25228 case "$with_openssl_libdir" in
25231 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
25232 with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
25233 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
25235 case "$with_openssl_libdir" in
25238 *) # Look for libcrypto.a and libssl.a:
25239 for i in $with_openssl_libdir no
25243 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
25246 test -f $i/libcrypto.so -a -f $i/libssl.so && break
25247 test -f $i/libcrypto.a -a -f $i/libssl.a && break
25254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
25255 $as_echo "$openssl_libdir" >&6; }
25256 case "$openssl_libdir" in
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
25260 $as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
25264 $as_echo_n "checking for openssl include directory... " >&6; }
25265 with_openssl_incdir=${with_openssl_incdir-notgiven}
25266 case "$with_openssl_incdir" in
25269 with_openssl_incdir="/usr/include /usr/sfw/include"
25270 with_openssl_incdir="$with_openssl_incdir /usr/local/include"
25271 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
25273 case "$with_openssl_incdir" in
25276 *) # look for openssl/evp.h:
25277 for i in $with_openssl_incdir no
25279 test -f $i/openssl/evp.h && break
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
25286 $as_echo "$openssl_incdir" >&6; }
25287 case "$openssl_incdir" in
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
25291 $as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
25293 if test -z "$openssl_libdir" -o -z "$openssl_incdir"
25300 case "$ntp_openssl" in
25302 # We have OpenSSL inc/lib dirs - use them.
25303 case "$openssl_incdir" in
25307 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
25310 case "$openssl_libdir" in
25314 LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
25315 case "$need_dash_r" in
25317 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
25319 case "$need_dash_Wlrpath" in
25321 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
25325 LDADD_NTP="$LDADD_NTP -lcrypto"
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
25330 $as_echo_n "checking if we will use crypto... " >&6; }
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
25332 $as_echo "$ntp_openssl" >&6; }
25334 case "$ntp_openssl" in
25336 for ac_header in openssl/cmac.h openssl/hmac.h
25338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25339 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25340 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25341 cat >>confdefs.h <<_ACEOF
25342 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25350 $as_echo "#define OPENSSL /**/" >>confdefs.h
25352 case "$VER_SUFFIX" in
25354 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
25359 NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
25360 CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
25361 NTPO_SAVED_LIBS="$LIBS"
25364 # check for linking with -lcrypto failure, and try -lcrypto -lz.
25365 # Helps m68k-atari-mint
25367 case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
25369 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
25370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
25371 $as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
25372 if ${ntp_cv_bare_lcrypto+:} false; then :
25373 $as_echo_n "(cached) " >&6
25375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25376 /* end confdefs.h. */
25378 #include "openssl/err.h"
25379 #include "openssl/evp.h"
25385 ERR_load_crypto_strings();
25386 OpenSSL_add_all_algorithms();
25393 if ac_fn_c_try_link "$LINENO"; then :
25394 ntp_cv_bare_lcrypto=yes
25396 ntp_cv_bare_lcrypto=no
25399 rm -f core conftest.err conftest.$ac_objext \
25400 conftest$ac_exeext conftest.$ac_ext
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
25404 $as_echo "$ntp_cv_bare_lcrypto" >&6; }
25405 case "$ntp_cv_bare_lcrypto" in
25407 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
25409 $as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
25410 if ${ntp_cv_lcrypto_lz+:} false; then :
25411 $as_echo_n "(cached) " >&6
25413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25414 /* end confdefs.h. */
25416 #include "openssl/err.h"
25417 #include "openssl/evp.h"
25423 ERR_load_crypto_strings();
25424 OpenSSL_add_all_algorithms();
25431 if ac_fn_c_try_link "$LINENO"; then :
25432 ntp_cv_lcrypto_lz=yes
25434 ntp_cv_lcrypto_lz=no
25437 rm -f core conftest.err conftest.$ac_objext \
25438 conftest$ac_exeext conftest.$ac_ext
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
25442 $as_echo "$ntp_cv_lcrypto_lz" >&6; }
25443 case "$ntp_cv_lcrypto_lz" in
25445 LDADD_NTP="$LDADD_NTP -lz"
25451 # Older OpenSSL headers have a number of callback prototypes inside
25452 # other function prototypes which trigger copious warnings with gcc's
25453 # -Wstrict-prototypes, which is included in -Wall.
25457 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
25458 # int (*cb)(), int sgckey);
25463 openssl_triggers_warnings=unknown
25464 NTPO_SAVED_CFLAGS="$CFLAGS"
25466 case "$ntp_openssl:$GCC" in
25468 CFLAGS="$CFLAGS -Werror"
25469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25470 /* end confdefs.h. */
25477 /* see if -Werror breaks gcc */
25484 if ac_fn_c_try_compile "$LINENO"; then :
25485 gcc_handles_Werror=yes
25487 gcc_handles_Werror=no
25490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25491 case "$gcc_handles_Werror" in
25493 # if this gcc doesn't do -Werror go ahead and use
25494 # -Wstrict-prototypes.
25495 openssl_triggers_warnings=yes
25498 CFLAGS="$CFLAGS -Wstrict-prototypes"
25499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25500 /* end confdefs.h. */
25502 #include "openssl/asn1_mac.h"
25503 #include "openssl/bn.h"
25504 #include "openssl/err.h"
25505 #include "openssl/evp.h"
25506 #include "openssl/pem.h"
25507 #include "openssl/rand.h"
25508 #include "openssl/x509v3.h"
25521 if ac_fn_c_try_compile "$LINENO"; then :
25522 openssl_triggers_warnings=no
25524 openssl_triggers_warnings=yes
25527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25529 case "$openssl_triggers_warnings" in
25531 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
25534 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
25538 # gcc without OpenSSL
25539 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
25542 # Because we don't want -Werror for the EVP_MD_do_all_sorted check
25543 CFLAGS="$NTPO_SAVED_CFLAGS"
25545 case "$ntp_openssl" in
25547 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
25548 for ac_func in EVP_MD_do_all_sorted
25550 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
25551 if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
25552 cat >>confdefs.h <<_ACEOF
25553 #define HAVE_EVP_MD_DO_ALL_SORTED 1
25563 CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
25564 LIBS="$NTPO_SAVED_LIBS"
25565 { NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
25566 { NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
25567 { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
25568 { openssl_triggers_warnings=; unset openssl_triggers_warnings;}
25569 { ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
25574 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
25575 if ${ntp_cv_sockaddr_storage+:} false; then :
25576 $as_echo_n "(cached) " >&6
25578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25579 /* end confdefs.h. */
25581 #ifdef HAVE_SYS_TYPES_H
25582 # include <sys/types.h>
25584 #ifdef HAVE_SYS_SOCKET_H
25585 # include <sys/socket.h>
25587 #ifdef HAVE_NETINET_IN_H
25588 # include <netinet/in.h>
25595 struct sockaddr_storage n;
25602 if ac_fn_c_try_compile "$LINENO"; then :
25603 ntp_cv_sockaddr_storage=yes
25605 ntp_cv_sockaddr_storage=no
25608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
25612 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
25613 case "$ntp_cv_sockaddr_storage" in
25616 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
25618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
25619 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
25620 if ${ntp_cv_have___ss_family+:} false; then :
25621 $as_echo_n "(cached) " >&6
25623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25624 /* end confdefs.h. */
25626 #ifdef HAVE_SYS_TYPES_H
25627 # include <sys/types.h>
25629 #ifdef HAVE_SYS_SOCKET_H
25630 # include <sys/socket.h>
25632 #ifdef HAVE_NETINET_IN_H
25633 # include <netinet/in.h>
25640 struct sockaddr_storage s;
25648 if ac_fn_c_try_compile "$LINENO"; then :
25649 ntp_cv_have___ss_family=yes
25651 ntp_cv_have___ss_family=no
25654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
25658 $as_echo "$ntp_cv_have___ss_family" >&6; }
25659 case "$ntp_cv_have___ss_family" in
25662 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
25670 # Look for in_port_t.
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
25673 $as_echo_n "checking for in_port_t... " >&6; }
25674 if ${isc_cv_have_in_port_t+:} false; then :
25675 $as_echo_n "(cached) " >&6
25677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25678 /* end confdefs.h. */
25680 #include <sys/types.h>
25681 #include <netinet/in.h>
25687 in_port_t port = 25;
25695 if ac_fn_c_try_compile "$LINENO"; then :
25696 isc_cv_have_in_port_t=yes
25698 isc_cv_have_in_port_t=no
25701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
25705 $as_echo "$isc_cv_have_in_port_t" >&6; }
25706 case "$isc_cv_have_in_port_t" in
25709 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
25714 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
25715 if ${ntp_cv_getsockname_socklen_type+:} false; then :
25716 $as_echo_n "(cached) " >&6
25719 getsockname_socklen_type_found=no
25720 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
25721 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
25722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25723 /* end confdefs.h. */
25725 #ifdef HAVE_SYS_TYPES_H
25726 # include <sys/types.h>
25728 #ifdef HAVE_SYS_SOCKET_H
25729 # include <sys/socket.h>
25737 getsockname(int, $getsockname_arg2,
25738 $ntp_cv_getsockname_socklen_type *);
25745 if ac_fn_c_try_compile "$LINENO"; then :
25746 getsockname_socklen_type_found=yes ; break 2
25748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25751 case "$getsockname_socklen_type_found" in
25753 ntp_cv_getsockname_socklen_type='socklen_t'
25755 { getsockname_arg2=; unset getsockname_arg2;}
25756 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
25760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
25761 $as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
25763 cat >>confdefs.h <<_ACEOF
25764 #define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
25769 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
25770 if ${isc_cv_platform_havesalen+:} false; then :
25771 $as_echo_n "(cached) " >&6
25773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25774 /* end confdefs.h. */
25776 #include <sys/types.h>
25777 #include <sys/socket.h>
25783 extern struct sockaddr *ps;
25791 if ac_fn_c_try_compile "$LINENO"; then :
25792 isc_cv_platform_havesalen=yes
25794 isc_cv_platform_havesalen=no
25797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
25801 $as_echo "$isc_cv_platform_havesalen" >&6; }
25802 case "$isc_cv_platform_havesalen" in
25805 $as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
25809 # Check whether --enable-ipv6 was given.
25810 if test "${enable_ipv6+set}" = set; then :
25811 enableval=$enable_ipv6;
25815 case "$enable_ipv6" in
25822 $as_echo "#define WANT_IPV6 1" >>confdefs.h
25835 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
25840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
25841 $as_echo_n "checking for IPv6 structures... " >&6; }
25842 if ${isc_cv_found_ipv6+:} false; then :
25843 $as_echo_n "(cached) " >&6
25845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25846 /* end confdefs.h. */
25848 #include <sys/types.h>
25849 #include <sys/socket.h>
25850 #include <netinet/in.h>
25856 struct sockaddr_in6 sin6;
25863 if ac_fn_c_try_compile "$LINENO"; then :
25864 isc_cv_found_ipv6=yes
25866 isc_cv_found_ipv6=no
25869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
25873 $as_echo "$isc_cv_found_ipv6" >&6; }
25876 # See whether IPv6 support is provided via a Kame add-on.
25877 # This is done before other IPv6 linking tests so LIBS is properly set.
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
25880 $as_echo_n "checking for Kame IPv6 support... " >&6; }
25882 # Check whether --with-kame was given.
25883 if test "${with_kame+set}" = set; then :
25884 withval=$with_kame; use_kame="$withval"
25890 case "$use_kame" in
25894 kame_path=/usr/local/v6
25897 kame_path="$use_kame"
25900 case "$use_kame" in
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25903 $as_echo "no" >&6; }
25906 if test -f $kame_path/lib/libinet6.a; then
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
25908 $as_echo "$kame_path/lib/libinet6.a" >&6; }
25909 LIBS="-L$kame_path/lib -linet6 $LIBS"
25911 as_fn_error $? "$kame_path/lib/libinet6.a not found.
25913 Please choose the proper path with the following command:
25915 configure --with-kame=PATH
25922 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
25923 # Including it on Kame-using platforms is very bad, though, because
25924 # Kame uses #error against direct inclusion. So include it on only
25925 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
25926 # This is done before the in6_pktinfo check because that's what
25927 # netinet6/in6.h is needed for.
25932 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
25934 isc_netinet6in6_hack="#include <netinet6/in6.h>"
25937 isc_netinet6in6_hack=""
25942 # This is similar to the netinet6/in6.h issue.
25945 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
25947 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
25949 isc_netinetin6_hack="#include <netinet/in6.h>"
25952 isc_netinetin6_hack=""
25957 case "$isc_cv_found_ipv6" in
25960 $as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
25963 $as_echo_n "checking for in6_pktinfo... " >&6; }
25964 if ${isc_cv_have_in6_pktinfo+:} false; then :
25965 $as_echo_n "(cached) " >&6
25967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25968 /* end confdefs.h. */
25970 #include <sys/types.h>
25971 #include <sys/socket.h>
25972 #include <netinet/in.h>
25973 $isc_netinetin6_hack
25974 $isc_netinet6in6_hack
25980 struct in6_pktinfo xyzzy;
25987 if ac_fn_c_try_compile "$LINENO"; then :
25988 isc_cv_have_in6_pktinfo=yes
25990 isc_cv_have_in6_pktinfo=no
25993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
25997 $as_echo "$isc_cv_have_in6_pktinfo" >&6; }
25998 case "$isc_cv_have_in6_pktinfo" in
26001 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
26006 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
26008 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
26009 if ${isc_cv_have_sin6_scope_id+:} false; then :
26010 $as_echo_n "(cached) " >&6
26012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26013 /* end confdefs.h. */
26015 #include <sys/types.h>
26016 #include <sys/socket.h>
26017 #include <netinet/in.h>
26018 $isc_netinetin6_hack
26019 $isc_netinet6in6_hack
26025 struct sockaddr_in6 xyzzy;
26026 xyzzy.sin6_scope_id = 0;
26033 if ac_fn_c_try_compile "$LINENO"; then :
26034 isc_cv_have_sin6_scope_id=yes
26036 isc_cv_have_sin6_scope_id=no
26039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
26043 $as_echo "$isc_cv_have_sin6_scope_id" >&6; }
26045 case "$isc_cv_have_sin6_scope_id" in
26048 $as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
26054 # We need this check run even without isc_cv_found_ipv6=yes
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
26057 $as_echo_n "checking for in6addr_any... " >&6; }
26058 if ${isc_cv_in6addr_any_links+:} false; then :
26059 $as_echo_n "(cached) " >&6
26063 LIBS="$LDADD_LIBNTP $LIBS"
26064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26065 /* end confdefs.h. */
26066 $ac_includes_default
26067 #include <sys/socket.h>
26068 #include <netinet/in.h>
26069 $isc_netinetin6_hack
26070 $isc_netinet6in6_hack
26076 printf("%x", in6addr_any.s6_addr[15]);
26083 if ac_fn_c_try_link "$LINENO"; then :
26084 isc_cv_in6addr_any_links=yes
26086 isc_cv_in6addr_any_links=no
26089 rm -f core conftest.err conftest.$ac_objext \
26090 conftest$ac_exeext conftest.$ac_ext
26092 { SAVED_LIBS=; unset SAVED_LIBS;}
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
26097 $as_echo "$isc_cv_in6addr_any_links" >&6; }
26099 case "$isc_cv_in6addr_any_links" in
26102 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
26108 $as_echo_n "checking for struct if_laddrconf... " >&6; }
26109 if ${isc_cv_struct_if_laddrconf+:} false; then :
26110 $as_echo_n "(cached) " >&6
26112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26113 /* end confdefs.h. */
26115 #include <sys/types.h>
26116 #include <net/if6.h>
26122 struct if_laddrconf a;
26129 if ac_fn_c_try_compile "$LINENO"; then :
26130 isc_cv_struct_if_laddrconf=yes
26132 isc_cv_struct_if_laddrconf=no
26135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
26139 $as_echo "$isc_cv_struct_if_laddrconf" >&6; }
26141 case "$isc_cv_struct_if_laddrconf" in
26144 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
26149 $as_echo_n "checking for struct if_laddrreq... " >&6; }
26150 if ${isc_cv_struct_if_laddrreq+:} false; then :
26151 $as_echo_n "(cached) " >&6
26153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26154 /* end confdefs.h. */
26156 #include <sys/types.h>
26157 #include <net/if6.h>
26163 struct if_laddrreq a;
26170 if ac_fn_c_try_compile "$LINENO"; then :
26171 isc_cv_struct_if_laddrreq=yes
26173 isc_cv_struct_if_laddrreq=no
26176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
26180 $as_echo "$isc_cv_struct_if_laddrreq" >&6; }
26182 case "$isc_cv_struct_if_laddrreq" in
26185 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
26190 $as_echo_n "checking for multicast IP support... " >&6; }
26191 if ${ntp_cv_multicast+:} false; then :
26192 $as_echo_n "(cached) " >&6
26195 ntp_cv_multicast=no
26197 i386-sequent-sysv4)
26200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26201 /* end confdefs.h. */
26203 #ifdef HAVE_NETINET_IN_H
26204 # include <netinet/in.h>
26211 struct ip_mreq ipmr;
26212 ipmr.imr_interface.s_addr = 0;
26219 if ac_fn_c_try_compile "$LINENO"; then :
26220 ntp_cv_multicast=yes
26222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
26229 $as_echo "$ntp_cv_multicast" >&6; }
26230 case "$ntp_cv_multicast" in
26233 $as_echo "#define MCAST 1" >>confdefs.h
26235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
26236 $as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
26237 if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
26238 $as_echo_n "(cached) " >&6
26242 *-*-netbsd*|*-*-*linux*)
26243 ntp_cv_typeof_ip_multicast_loop=u_int
26246 ntp_cv_typeof_ip_multicast_loop=u_char
26252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
26253 $as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
26255 cat >>confdefs.h <<_ACEOF
26256 #define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
26261 # Check whether --enable-getifaddrs was given.
26262 if test "${enable_getifaddrs+set}" = set; then :
26263 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
26265 want_getifaddrs="yes"
26270 case $want_getifaddrs in
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
26273 $as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
26275 case $want_getifaddrs in
26280 LIBS="$LDADD_LIBNTP $LIBS"
26281 for ac_func in getifaddrs
26283 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
26284 if test "x$ac_cv_func_getifaddrs" = xyes; then :
26285 cat >>confdefs.h <<_ACEOF
26286 #define HAVE_GETIFADDRS 1
26293 { SAVED_LIBS=; unset SAVED_LIBS;}
26298 # Check for if_nametoindex() for IPv6 scoped addresses support
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
26303 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
26304 if ${ac_cv_search_if_nametoindex+:} false; then :
26305 $as_echo_n "(cached) " >&6
26307 ac_func_search_save_LIBS=$LIBS
26308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26309 /* end confdefs.h. */
26311 /* Override any GCC internal prototype to avoid an error.
26312 Use char because int might match the return type of a GCC
26313 builtin and then its argument prototype would still apply. */
26317 char if_nametoindex ();
26321 return if_nametoindex ();
26326 for ac_lib in '' ipv6; do
26327 if test -z "$ac_lib"; then
26328 ac_res="none required"
26331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26333 if ac_fn_c_try_link "$LINENO"; then :
26334 ac_cv_search_if_nametoindex=$ac_res
26336 rm -f core conftest.err conftest.$ac_objext \
26338 if ${ac_cv_search_if_nametoindex+:} false; then :
26342 if ${ac_cv_search_if_nametoindex+:} false; then :
26345 ac_cv_search_if_nametoindex=no
26347 rm conftest.$ac_ext
26348 LIBS=$ac_func_search_save_LIBS
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
26351 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
26352 ac_res=$ac_cv_search_if_nametoindex
26353 if test "$ac_res" != no; then :
26354 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26360 LIBS="$LDADD_LIBNTP $LIBS"
26361 for ac_func in if_nametoindex
26363 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
26364 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
26365 cat >>confdefs.h <<_ACEOF
26366 #define HAVE_IF_NAMETOINDEX 1
26373 { SAVED_LIBS=; unset SAVED_LIBS;}
26374 case "$ac_cv_func_if_nametoindex" in
26377 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
26386 # these need work if we're to move libntp under sntp
26388 $as_echo "#define HAVE_NO_NICE 1" >>confdefs.h
26391 $as_echo "#define HAVE_TERMIOS 1" >>confdefs.h
26394 # Checks for library functions.
26395 for ac_func in socket
26397 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
26398 if test "x$ac_cv_func_socket" = xyes; then :
26399 cat >>confdefs.h <<_ACEOF
26400 #define HAVE_SOCKET 1
26408 # We may not need have_unity
26410 # Extract the first word of "ruby", so it can be a program name with args.
26411 set dummy ruby; ac_word=$2
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26413 $as_echo_n "checking for $ac_word... " >&6; }
26414 if ${ac_cv_path_PATH_RUBY+:} false; then :
26415 $as_echo_n "(cached) " >&6
26419 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
26422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26423 for as_dir in $PATH
26426 test -z "$as_dir" && as_dir=.
26427 for ac_exec_ext in '' $ac_executable_extensions; do
26428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26429 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
26430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26440 PATH_RUBY=$ac_cv_path_PATH_RUBY
26441 if test -n "$PATH_RUBY"; then
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
26443 $as_echo "$PATH_RUBY" >&6; }
26445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26446 $as_echo "no" >&6; }
26450 case "$PATH_RUBY" in
26454 *) PATH_RUBY="false"
26457 # We may not need UNITYBUILD_AVAILABLE
26458 if $have_unity; then
26459 UNITYBUILD_AVAILABLE_TRUE=
26460 UNITYBUILD_AVAILABLE_FALSE='#'
26462 UNITYBUILD_AVAILABLE_TRUE='#'
26463 UNITYBUILD_AVAILABLE_FALSE=
26468 ## HMS: if we don't find c++ we should not look for gtest.
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
26479 $as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
26480 # Check whether --enable-problem-tests was given.
26481 if test "${enable_problem_tests+set}" = set; then :
26482 enableval=$enable_problem_tests; sntp_ept=$enableval
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_ept" >&5
26489 $as_echo "$sntp_ept" >&6; }
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-kodDatabase" >&5
26492 $as_echo_n "checking if we can run test-kodDatabase... " >&6; }
26493 sntp_test_kodDatabase="no"
26494 case "$sntp_ept:$cross:$host" in
26495 no:0:*-apple-darwin12.6.0) ;;
26496 *) sntp_test_kodDatabase="yes" ;;
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_test_kodDatabase" >&5
26499 $as_echo "$sntp_test_kodDatabase" >&6; }
26500 if test x$sntp_test_kodDatabase = xyes; then
26501 BUILD_TEST_KODDATABASE_TRUE=
26502 BUILD_TEST_KODDATABASE_FALSE='#'
26504 BUILD_TEST_KODDATABASE_TRUE='#'
26505 BUILD_TEST_KODDATABASE_FALSE=
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-kodFile" >&5
26510 $as_echo_n "checking if we can run test-kodFile... " >&6; }
26511 sntp_test_kodFile="no"
26512 case "$sntp_ept:$cross:$host" in
26513 no:0:*-apple-darwin12.6.0) ;;
26514 *) sntp_test_kodFile="yes" ;;
26516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_test_kodFile" >&5
26517 $as_echo "$sntp_test_kodFile" >&6; }
26518 if test x$sntp_test_kodFile = xyes; then
26519 BUILD_TEST_KODFILE_TRUE=
26520 BUILD_TEST_KODFILE_FALSE='#'
26522 BUILD_TEST_KODFILE_TRUE='#'
26523 BUILD_TEST_KODFILE_FALSE=
26529 # All libraries should be in various LIB_* variables now.
26531 # Sadly not. There is a gettext() check somewhere, and on Solaris this pulls
26532 # in -lintl -lgen, outside our "scope".
26534 ac_config_files="$ac_config_files Makefile"
26536 ac_config_files="$ac_config_files include/Makefile"
26538 ac_config_files="$ac_config_files scripts/Makefile"
26540 ac_config_files="$ac_config_files tests/Makefile"
26542 ac_config_files="$ac_config_files tests/fileHandlingTest.h"
26544 ac_config_files="$ac_config_files unity/Makefile"
26547 cat >confcache <<\_ACEOF
26548 # This file is a shell script that caches the results of configure
26549 # tests run on this system so they can be shared between configure
26550 # scripts and configure runs, see configure's option --config-cache.
26551 # It is not useful on other systems. If it contains results you don't
26552 # want to keep, you may remove or edit it.
26554 # config.status only pays attention to the cache file if you give it
26555 # the --recheck option to rerun configure.
26557 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26558 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26559 # following values.
26563 # The following way of writing the cache mishandles newlines in values,
26564 # but we know of no workaround that is simple, portable, and efficient.
26565 # So, we kill variables containing newlines.
26566 # Ultrix sh set writes to stderr and can't be redirected directly,
26567 # and sets the high bit in the cache file unless we assign to the vars.
26569 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26570 eval ac_val=\$$ac_var
26574 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26575 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26578 _ | IFS | as_nl) ;; #(
26579 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26580 *) { eval $ac_var=; unset $ac_var;} ;;
26586 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26587 *${as_nl}ac_space=\ *)
26588 # `set' does not quote correctly, so add quotes: double-quote
26589 # substitution turns \\\\ into \\, and sed turns \\ into \.
26592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26595 # `set' quotes correctly as required by POSIX, so do not add quotes.
26596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26605 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26607 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26609 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26610 if test -w "$cache_file"; then
26611 if test "x$cache_file" != "x/dev/null"; then
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26613 $as_echo "$as_me: updating cache $cache_file" >&6;}
26614 if test ! -f "$cache_file" || test -h "$cache_file"; then
26615 cat confcache >"$cache_file"
26617 case $cache_file in #(
26619 mv -f confcache "$cache_file"$$ &&
26620 mv -f "$cache_file"$$ "$cache_file" ;; #(
26622 mv -f confcache "$cache_file" ;;
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26628 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26633 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26634 # Let make expand exec_prefix.
26635 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26637 DEFS=-DHAVE_CONFIG_H
26642 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26643 # 1. Remove the extension, and $U if already installed.
26644 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26645 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26646 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26647 # will be set to the directory where LIBOBJS objects are built.
26648 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26649 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26651 LIBOBJS=$ac_libobjs
26653 LTLIBOBJS=$ac_ltlibobjs
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26657 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26658 if test -n "$am_sleep_pid"; then
26659 # Hide warnings about reused PIDs.
26660 wait $am_sleep_pid 2>/dev/null
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26663 $as_echo "done" >&6; }
26664 if test -n "$EXEEXT"; then
26666 am__EXEEXT_FALSE='#'
26668 am__EXEEXT_TRUE='#'
26672 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26673 as_fn_error $? "conditional \"AMDEP\" was never defined.
26674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26676 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26677 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26681 if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
26682 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
26683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26685 if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
26686 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
26687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26689 if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
26690 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
26691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26693 if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
26694 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
26695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26697 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
26698 as_fn_error $? "conditional \"PTHREADS\" was never defined.
26699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26701 if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
26702 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
26703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26705 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
26706 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
26707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26709 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
26710 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
26711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26713 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
26714 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
26715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26717 if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
26718 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
26719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26721 if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
26722 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
26723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26725 if test -z "${BUILD_TEST_KODDATABASE_TRUE}" && test -z "${BUILD_TEST_KODDATABASE_FALSE}"; then
26726 as_fn_error $? "conditional \"BUILD_TEST_KODDATABASE\" was never defined.
26727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26729 if test -z "${BUILD_TEST_KODFILE_TRUE}" && test -z "${BUILD_TEST_KODFILE_FALSE}"; then
26730 as_fn_error $? "conditional \"BUILD_TEST_KODFILE\" was never defined.
26731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26734 : "${CONFIG_STATUS=./config.status}"
26736 ac_clean_files_save=$ac_clean_files
26737 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26738 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26739 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26741 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26743 # Generated by $as_me.
26744 # Run this file to recreate the current configuration.
26745 # Compiler output produced by configure, useful for debugging
26746 # configure, is in config.log if it exists.
26749 ac_cs_recheck=false
26752 SHELL=\${CONFIG_SHELL-$SHELL}
26755 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26756 ## -------------------- ##
26757 ## M4sh Initialization. ##
26758 ## -------------------- ##
26760 # Be more Bourne compatible
26761 DUALCASE=1; export DUALCASE # for MKS sh
26762 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26765 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26766 # is contrary to our usage. Disable this feature.
26767 alias -g '${1+"$@"}'='"$@"'
26768 setopt NO_GLOB_SUBST
26770 case `(set -o) 2>/dev/null` in #(
26782 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26783 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26784 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26785 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26786 # Prefer a ksh shell builtin over an external printf program on Solaris,
26787 # but without wasting forks for bash or zsh.
26788 if test -z "$BASH_VERSION$ZSH_VERSION" \
26789 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26790 as_echo='print -r --'
26791 as_echo_n='print -rn --'
26792 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26793 as_echo='printf %s\n'
26794 as_echo_n='printf %s'
26796 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26797 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26798 as_echo_n='/usr/ucb/echo -n'
26800 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26801 as_echo_n_body='eval
26805 expr "X$arg" : "X\\(.*\\)$as_nl";
26806 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26808 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26810 export as_echo_n_body
26811 as_echo_n='sh -c $as_echo_n_body as_echo'
26813 export as_echo_body
26814 as_echo='sh -c $as_echo_body as_echo'
26817 # The user is always right.
26818 if test "${PATH_SEPARATOR+set}" != set; then
26820 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26821 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26828 # We need space, tab and new line, in precisely that order. Quoting is
26829 # there to prevent editors from complaining about space-tab.
26830 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26831 # splitting by setting IFS to empty value.)
26834 # Find who we are. Look in the path if we contain no directory separator.
26837 *[\\/]* ) as_myself=$0 ;;
26838 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26839 for as_dir in $PATH
26842 test -z "$as_dir" && as_dir=.
26843 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26849 # We did not find ourselves, most probably we were run as `sh COMMAND'
26850 # in which case we are not to be found in the path.
26851 if test "x$as_myself" = x; then
26854 if test ! -f "$as_myself"; then
26855 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26859 # Unset variables that we do not need and which cause bugs (e.g. in
26860 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26861 # suppresses any "Segmentation fault" message there. '((' could
26862 # trigger a bug in pdksh 5.2.14.
26863 for as_var in BASH_ENV ENV MAIL MAILPATH
26864 do eval test x\${$as_var+set} = xset \
26865 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26878 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26881 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26882 # ----------------------------------------
26883 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26884 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26885 # script with STATUS, using 1 if that was 0.
26888 as_status=$1; test $as_status -eq 0 && as_status=1
26890 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26891 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26893 $as_echo "$as_me: error: $2" >&2
26894 as_fn_exit $as_status
26898 # as_fn_set_status STATUS
26899 # -----------------------
26900 # Set $? to STATUS, without forking.
26901 as_fn_set_status ()
26904 } # as_fn_set_status
26906 # as_fn_exit STATUS
26907 # -----------------
26908 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26912 as_fn_set_status $1
26918 # Portably unset VAR.
26921 { eval $1=; unset $1;}
26923 as_unset=as_fn_unset
26924 # as_fn_append VAR VALUE
26925 # ----------------------
26926 # Append the text in VALUE to the end of the definition contained in VAR. Take
26927 # advantage of any shell optimizations that allow amortized linear growth over
26928 # repeated appends, instead of the typical quadratic growth present in naive
26930 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26931 eval 'as_fn_append ()
26942 # as_fn_arith ARG...
26943 # ------------------
26944 # Perform arithmetic evaluation on the ARGs, and store the result in the
26945 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26946 # must be portable across $(()) and expr.
26947 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26948 eval 'as_fn_arith ()
26955 as_val=`expr "$@" || test $? -eq 1`
26960 if expr a : '\(a\)' >/dev/null 2>&1 &&
26961 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26967 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26968 as_basename=basename
26973 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26979 as_me=`$as_basename -- "$0" ||
26980 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26981 X"$0" : 'X\(//\)$' \| \
26982 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26984 sed '/^.*\/\([^/][^/]*\)\/*$/{
26998 # Avoid depending upon Character Ranges.
26999 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27000 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27001 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27002 as_cr_digits='0123456789'
27003 as_cr_alnum=$as_cr_Letters$as_cr_digits
27005 ECHO_C= ECHO_N= ECHO_T=
27006 case `echo -n x` in #(((((
27008 case `echo 'xy\c'` in
27009 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27011 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27018 rm -f conf$$ conf$$.exe conf$$.file
27019 if test -d conf$$.dir; then
27020 rm -f conf$$.dir/conf$$.file
27023 mkdir conf$$.dir 2>/dev/null
27025 if (echo >conf$$.file) 2>/dev/null; then
27026 if ln -s conf$$.file conf$$ 2>/dev/null; then
27028 # ... but there are two gotchas:
27029 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27030 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27031 # In both cases, we have to default to `cp -pR'.
27032 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27034 elif ln conf$$.file conf$$ 2>/dev/null; then
27042 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27043 rmdir conf$$.dir 2>/dev/null
27048 # Create "$as_dir" as a directory, including parents if necessary.
27053 -*) as_dir=./$as_dir;;
27055 test -d "$as_dir" || eval $as_mkdir_p || {
27059 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27060 *) as_qdir=$as_dir;;
27062 as_dirs="'$as_qdir' $as_dirs"
27063 as_dir=`$as_dirname -- "$as_dir" ||
27064 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27065 X"$as_dir" : 'X\(//\)[^/]' \| \
27066 X"$as_dir" : 'X\(//\)$' \| \
27067 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27068 $as_echo X"$as_dir" |
27069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27073 /^X\(\/\/\)[^/].*/{
27086 test -d "$as_dir" && break
27088 test -z "$as_dirs" || eval "mkdir $as_dirs"
27089 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27093 if mkdir -p . 2>/dev/null; then
27094 as_mkdir_p='mkdir -p "$as_dir"'
27096 test -d ./-p && rmdir ./-p
27101 # as_fn_executable_p FILE
27102 # -----------------------
27103 # Test if FILE is an executable regular file.
27104 as_fn_executable_p ()
27106 test -f "$1" && test -x "$1"
27107 } # as_fn_executable_p
27108 as_test_x='test -x'
27109 as_executable_p=as_fn_executable_p
27111 # Sed expression to map a string onto a valid CPP name.
27112 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27114 # Sed expression to map a string onto a valid variable name.
27115 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27119 ## ----------------------------------- ##
27120 ## Main body of $CONFIG_STATUS script. ##
27121 ## ----------------------------------- ##
27123 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27126 # Save the log message, to keep $0 and so on meaningful, and to
27127 # report actual input values of CONFIG_FILES etc. instead of their
27128 # values after options handling.
27130 This file was extended by sntp $as_me 4.2.8p12, which was
27131 generated by GNU Autoconf 2.69. Invocation command line was
27133 CONFIG_FILES = $CONFIG_FILES
27134 CONFIG_HEADERS = $CONFIG_HEADERS
27135 CONFIG_LINKS = $CONFIG_LINKS
27136 CONFIG_COMMANDS = $CONFIG_COMMANDS
27139 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27144 case $ac_config_files in *"
27145 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27148 case $ac_config_headers in *"
27149 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27154 # Files that config.status was made for.
27155 config_files="$ac_config_files"
27156 config_headers="$ac_config_headers"
27157 config_commands="$ac_config_commands"
27161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27163 \`$as_me' instantiates files and other configuration actions
27164 from templates according to the current configuration. Unless the files
27165 and actions are specified as TAGs, all are instantiated by default.
27167 Usage: $0 [OPTION]... [TAG]...
27169 -h, --help print this help, then exit
27170 -V, --version print version number and configuration settings, then exit
27171 --config print configuration, then exit
27172 -q, --quiet, --silent
27173 do not print progress messages
27174 -d, --debug don't remove temporary files
27175 --recheck update $as_me by reconfiguring in the same conditions
27176 --file=FILE[:TEMPLATE]
27177 instantiate the configuration file FILE
27178 --header=FILE[:TEMPLATE]
27179 instantiate the configuration header FILE
27181 Configuration files:
27184 Configuration headers:
27187 Configuration commands:
27190 Report bugs to <http://bugs.ntp.org./>.
27191 sntp home page: <http://www.ntp.org./>."
27194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27195 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27197 sntp config.status 4.2.8p12
27198 configured by $0, generated by GNU Autoconf 2.69,
27199 with options \\"\$ac_cs_config\\"
27201 Copyright (C) 2012 Free Software Foundation, Inc.
27202 This config.status script is free software; the Free Software Foundation
27203 gives unlimited permission to copy, distribute and modify it."
27210 test -n "\$AWK" || AWK=awk
27213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27214 # The default lists apply if the user does not specify any file.
27220 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27221 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27225 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27237 # Handling of the options.
27238 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27240 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27241 $as_echo "$ac_cs_version"; exit ;;
27242 --config | --confi | --conf | --con | --co | --c )
27243 $as_echo "$ac_cs_config"; exit ;;
27244 --debug | --debu | --deb | --de | --d | -d )
27246 --file | --fil | --fi | --f )
27249 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27250 '') as_fn_error $? "missing file argument" ;;
27252 as_fn_append CONFIG_FILES " '$ac_optarg'"
27253 ac_need_defaults=false;;
27254 --header | --heade | --head | --hea )
27257 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27259 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27260 ac_need_defaults=false;;
27262 # Conflict between --help and --header
27263 as_fn_error $? "ambiguous option: \`$1'
27264 Try \`$0 --help' for more information.";;
27265 --help | --hel | -h )
27266 $as_echo "$ac_cs_usage"; exit ;;
27267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27268 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27271 # This is an error.
27272 -*) as_fn_error $? "unrecognized option: \`$1'
27273 Try \`$0 --help' for more information." ;;
27275 *) as_fn_append ac_config_targets " $1"
27276 ac_need_defaults=false ;;
27282 ac_configure_extra_args=
27284 if $ac_cs_silent; then
27286 ac_configure_extra_args="$ac_configure_extra_args --silent"
27290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27291 if \$ac_cs_recheck; then
27292 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27294 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27295 CONFIG_SHELL='$SHELL'
27296 export CONFIG_SHELL
27301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27305 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27306 ## Running $as_me. ##
27312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27316 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27319 # The HP-UX ksh and POSIX shell print the target directory to stdout
27320 # if CDPATH is set.
27321 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27323 sed_quote_subst='$sed_quote_subst'
27324 double_quote_subst='$double_quote_subst'
27325 delay_variable_subst='$delay_variable_subst'
27326 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27327 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27328 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27329 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27330 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27331 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27332 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27333 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27334 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27335 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27336 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27337 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27338 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27339 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27340 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27341 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27342 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27343 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27344 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27345 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27346 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27347 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27348 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27349 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27350 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27351 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27352 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27353 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27354 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27355 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27356 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27357 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27358 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27359 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27360 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27361 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27362 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27363 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27364 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27365 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27366 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27367 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27368 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27369 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27370 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27371 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27372 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27373 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27374 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27375 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27376 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27377 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27378 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27379 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27380 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27381 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27382 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27383 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27384 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"`'
27385 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27386 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27387 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27388 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27389 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27390 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27391 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27392 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27393 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27394 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27395 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27396 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27397 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27398 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27399 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27400 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27401 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27402 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27403 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27404 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27405 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27406 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27407 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27408 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27409 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27410 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27411 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27412 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27413 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27414 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27415 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27416 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27417 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27418 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27419 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27420 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27421 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27422 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27423 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27424 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27425 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27426 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27427 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27428 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27429 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27430 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27431 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27432 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27433 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27434 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27435 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27436 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27437 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27438 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27439 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27440 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27441 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27442 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27443 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27444 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27445 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27446 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27447 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27448 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27449 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27450 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27451 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27452 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27453 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27454 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27455 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27456 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27457 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27458 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27459 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27460 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27463 LTCFLAGS='$LTCFLAGS'
27464 compiler='$compiler_DEFAULT'
27466 # A function that is used when there is no print builtin or printf.
27467 func_fallback_echo ()
27469 eval 'cat <<_LTECHO_EOF
27474 # Quote evaled strings.
27489 deplibs_check_method \
27494 sharedlib_from_linklib_cmd \
27497 archiver_list_spec \
27503 lt_cv_sys_global_symbol_pipe \
27504 lt_cv_sys_global_symbol_to_cdecl \
27505 lt_cv_sys_global_symbol_to_import \
27506 lt_cv_sys_global_symbol_to_c_name_address \
27507 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27508 lt_cv_nm_interface \
27509 nm_file_list_spec \
27510 lt_cv_truncate_bin \
27511 lt_prog_compiler_no_builtin_flag \
27512 lt_prog_compiler_pic \
27513 lt_prog_compiler_wl \
27514 lt_prog_compiler_static \
27515 lt_cv_prog_compiler_c_o \
27524 export_dynamic_flag_spec \
27525 whole_archive_flag_spec \
27526 compiler_needs_object \
27528 allow_undefined_flag \
27529 no_undefined_flag \
27530 hardcode_libdir_flag_spec \
27531 hardcode_libdir_separator \
27535 variables_saved_for_relink \
27537 library_names_spec \
27539 install_override_mode \
27543 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27544 *[\\\\\\\`\\"\\\$]*)
27545 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27548 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27553 # Double-quote double-evaled strings.
27554 for var in reload_cmds \
27555 old_postinstall_cmds \
27556 old_postuninstall_cmds \
27558 extract_expsyms_cmds \
27559 old_archive_from_new_cmds \
27560 old_archive_from_expsyms_cmds \
27562 archive_expsym_cmds \
27564 module_expsym_cmds \
27565 export_symbols_cmds \
27569 postuninstall_cmds \
27571 sys_lib_search_path_spec \
27572 configure_time_dlsearch_path \
27573 configure_time_lt_sys_library_path; do
27574 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27575 *[\\\\\\\`\\"\\\$]*)
27576 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27579 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27584 ac_aux_dir='$ac_aux_dir'
27586 # See if we are running on zsh, and set the options that allow our
27587 # commands through without removal of \ escapes INIT.
27588 if test -n "\${ZSH_VERSION+set}"; then
27589 setopt NO_GLOB_SUBST
27603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27605 # Handling of arguments.
27606 for ac_config_target in $ac_config_targets
27608 case $ac_config_target in
27609 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27610 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27611 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27612 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
27613 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27614 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27615 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
27616 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27617 "tests/fileHandlingTest.h") CONFIG_FILES="$CONFIG_FILES tests/fileHandlingTest.h" ;;
27618 "unity/Makefile") CONFIG_FILES="$CONFIG_FILES unity/Makefile" ;;
27620 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27625 # If the user did not use the arguments to specify the items to instantiate,
27626 # then the envvar interface is used. Set only those that are not.
27627 # We use the long form for the default assignment because of an extremely
27628 # bizarre bug on SunOS 4.1.3.
27629 if $ac_need_defaults; then
27630 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27631 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27632 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27635 # Have a temporary directory for convenience. Make it in the build tree
27636 # simply because there is no reason against having it here, and in addition,
27637 # creating and moving files from /tmp can sometimes cause problems.
27638 # Hook for its removal unless debugging.
27639 # Note that there is a small window in which the directory will not be cleaned:
27640 # after its creation but before its name has been assigned to `$tmp'.
27644 trap 'exit_status=$?
27645 : "${ac_tmp:=$tmp}"
27646 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27648 trap 'as_fn_exit 1' 1 2 13 15
27650 # Create a (secure) tmp directory for tmp files.
27653 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27657 tmp=./conf$$-$RANDOM
27658 (umask 077 && mkdir "$tmp")
27659 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27662 # Set up the scripts for CONFIG_FILES section.
27663 # No need to generate them if there are no CONFIG_FILES.
27664 # This happens for instance with `./config.status config.h'.
27665 if test -n "$CONFIG_FILES"; then
27668 ac_cr=`echo X | tr X '\015'`
27669 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27670 # But we know of no other shell where ac_cr would be empty at this
27671 # point, so we can use a bashism as a fallback.
27672 if test "x$ac_cr" = x; then
27673 eval ac_cr=\$\'\\r\'
27675 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27676 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27679 ac_cs_awk_cr=$ac_cr
27682 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27687 echo "cat >conf$$subs.awk <<_ACEOF" &&
27688 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27690 } >conf$$subs.sh ||
27691 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27692 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27694 for ac_last_try in false false false false false :; do
27695 . ./conf$$subs.sh ||
27696 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27698 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27699 if test $ac_delim_n = $ac_delim_num; then
27701 elif $ac_last_try; then
27702 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27704 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27707 rm -f conf$$subs.sh
27709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27710 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27714 s/^/S["/; s/!.*/"]=/
27724 s/\(.\{148\}\)..*/\1/
27726 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27731 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27738 s/\(.\{148\}\)..*/\1/
27740 s/["\\]/\\&/g; s/^/"/; s/$/"/
27744 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27749 ' <conf$$subs.awk | sed '
27754 ' >>$CONFIG_STATUS || ac_write_fail=1
27755 rm -f conf$$subs.awk
27756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27758 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27759 for (key in S) S_is_set[key] = 1
27765 nfields = split(line, field, "@")
27767 len = length(field[1])
27768 for (i = 2; i < nfields; i++) {
27770 keylen = length(key)
27771 if (S_is_set[key]) {
27773 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27774 len += length(value) + length(field[++i])
27785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27786 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27787 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27790 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27791 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27794 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27795 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27796 # trailing colons and then remove the whole line if VPATH becomes empty
27797 # (actually we leave an empty line to preserve line numbers).
27798 if test "x$srcdir" = x.; then
27799 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27818 fi # test -n "$CONFIG_FILES"
27820 # Set up the scripts for CONFIG_HEADERS section.
27821 # No need to generate them if there are no CONFIG_HEADERS.
27822 # This happens for instance with `./config.status Makefile'.
27823 if test -n "$CONFIG_HEADERS"; then
27824 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27828 # Transform confdefs.h into an awk script `defines.awk', embedded as
27829 # here-document in config.status, that substitutes the proper values into
27830 # config.h.in to produce config.h.
27832 # Create a delimiter string that does not exist in confdefs.h, to ease
27833 # handling of long lines.
27835 for ac_last_try in false false :; do
27836 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27837 if test -z "$ac_tt"; then
27839 elif $ac_last_try; then
27840 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27842 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27846 # For the awk script, D is an array of macro values keyed by name,
27847 # likewise P contains macro parameters if any. Preserve backslash
27848 # newline sequences.
27850 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27852 s/.\{148\}/&'"$ac_delim"'/g
27855 s/^[ ]*#[ ]*define[ ][ ]*/ /
27862 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27864 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27868 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27869 D["\1"]=" \3\\\\\\n"\\/p
27871 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27876 s/.\{148\}/&'"$ac_delim"'/g
27881 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27884 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27886 ' <confdefs.h | sed '
27887 s/'"$ac_delim"'/"\\\
27888 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27891 for (key in D) D_is_set[key] = 1
27894 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27896 split(line, arg, " ")
27897 if (arg[1] == "#") {
27901 defundef = substr(arg[1], 2)
27904 split(mac1, mac2, "(") #)
27906 prefix = substr(line, 1, index(line, defundef) - 1)
27907 if (D_is_set[macro]) {
27908 # Preserve the white space surrounding the "#".
27909 print prefix "define", macro P[macro] D[macro]
27912 # Replace #undef with comments. This is necessary, for example,
27913 # in the case of _POSIX_SOURCE, which is predefined and required
27914 # on some systems where configure will not decide to define it.
27915 if (defundef == "undef") {
27916 print "/*", prefix defundef, macro, "*/"
27924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27925 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27926 fi # test -n "$CONFIG_HEADERS"
27929 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27934 :[FHLC]) ac_mode=$ac_tag; continue;;
27936 case $ac_mode$ac_tag in
27938 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27939 :[FH]-) ac_tag=-:-;;
27940 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27957 -) ac_f="$ac_tmp/stdin";;
27958 *) # Look for the file first in the build tree, then in the source tree
27959 # (if the path is not absolute). The absolute path cannot be DOS-style,
27960 # because $ac_f cannot contain `:'.
27964 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27966 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27968 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27969 as_fn_append ac_file_inputs " '$ac_f'"
27972 # Let's still pretend it is `configure' which instantiates (i.e., don't
27973 # use $as_me), people would be surprised to read:
27974 # /* config.h. Generated by config.status. */
27975 configure_input='Generated from '`
27976 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27978 if test x"$ac_file" != x-; then
27979 configure_input="$ac_file. $configure_input"
27980 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27981 $as_echo "$as_me: creating $ac_file" >&6;}
27983 # Neutralize special characters interpreted by sed in replacement strings.
27984 case $configure_input in #(
27985 *\&* | *\|* | *\\* )
27986 ac_sed_conf_input=`$as_echo "$configure_input" |
27987 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27988 *) ac_sed_conf_input=$configure_input;;
27992 *:-:* | *:-) cat >"$ac_tmp/stdin" \
27993 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27998 ac_dir=`$as_dirname -- "$ac_file" ||
27999 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28000 X"$ac_file" : 'X\(//\)[^/]' \| \
28001 X"$ac_file" : 'X\(//\)$' \| \
28002 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28003 $as_echo X"$ac_file" |
28004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28008 /^X\(\/\/\)[^/].*/{
28021 as_dir="$ac_dir"; as_fn_mkdir_p
28025 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28027 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28028 # A ".." for each directory in $ac_dir_suffix.
28029 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28030 case $ac_top_builddir_sub in
28031 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28032 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28035 ac_abs_top_builddir=$ac_pwd
28036 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28037 # for backward compatibility:
28038 ac_top_builddir=$ac_top_build_prefix
28041 .) # We are building in place.
28043 ac_top_srcdir=$ac_top_builddir_sub
28044 ac_abs_top_srcdir=$ac_pwd ;;
28045 [\\/]* | ?:[\\/]* ) # Absolute name.
28046 ac_srcdir=$srcdir$ac_dir_suffix;
28047 ac_top_srcdir=$srcdir
28048 ac_abs_top_srcdir=$srcdir ;;
28049 *) # Relative name.
28050 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28051 ac_top_srcdir=$ac_top_build_prefix$srcdir
28052 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28054 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28064 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28065 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28067 ac_MKDIR_P=$MKDIR_P
28069 [\\/$]* | ?:[\\/]* ) ;;
28070 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28075 # If the template does not know about datarootdir, expand it.
28076 # FIXME: This hack should be removed a few years after 2.60.
28077 ac_datarootdir_hack=; ac_datarootdir_seen=
28088 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28089 *datarootdir*) ac_datarootdir_seen=yes;;
28090 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28092 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28095 ac_datarootdir_hack='
28096 s&@datadir@&$datadir&g
28097 s&@docdir@&$docdir&g
28098 s&@infodir@&$infodir&g
28099 s&@localedir@&$localedir&g
28100 s&@mandir@&$mandir&g
28101 s&\\\${datarootdir}&$datarootdir&g' ;;
28105 # Neutralize VPATH when `$srcdir' = `.'.
28106 # Shell code in configure.ac might set extrasub.
28107 # FIXME: do we really want to maintain this feature?
28108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28109 ac_sed_extra="$ac_vpsub
28112 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28114 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28115 s|@configure_input@|$ac_sed_conf_input|;t t
28116 s&@top_builddir@&$ac_top_builddir_sub&;t t
28117 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28118 s&@srcdir@&$ac_srcdir&;t t
28119 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28120 s&@top_srcdir@&$ac_top_srcdir&;t t
28121 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28122 s&@builddir@&$ac_builddir&;t t
28123 s&@abs_builddir@&$ac_abs_builddir&;t t
28124 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28125 s&@INSTALL@&$ac_INSTALL&;t t
28126 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28127 $ac_datarootdir_hack
28129 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28130 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28132 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28133 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28134 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28135 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28137 which seems to be undefined. Please make sure it is defined" >&5
28138 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28139 which seems to be undefined. Please make sure it is defined" >&2;}
28141 rm -f "$ac_tmp/stdin"
28143 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28144 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28152 if test x"$ac_file" != x-; then
28154 $as_echo "/* $configure_input */" \
28155 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28156 } >"$ac_tmp/config.h" \
28157 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28158 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28160 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28163 mv "$ac_tmp/config.h" "$ac_file" \
28164 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28167 $as_echo "/* $configure_input */" \
28168 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28169 || as_fn_error $? "could not create -" "$LINENO" 5
28171 # Compute "$ac_file"'s index in $config_headers.
28174 for _am_header in $config_headers :; do
28175 case $_am_header in
28176 $_am_arg | $_am_arg:* )
28179 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28182 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28183 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28184 X"$_am_arg" : 'X\(//\)[^/]' \| \
28185 X"$_am_arg" : 'X\(//\)$' \| \
28186 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28187 $as_echo X"$_am_arg" |
28188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28192 /^X\(\/\/\)[^/].*/{
28204 s/.*/./; q'`/stamp-h$_am_stamp_count
28207 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28208 $as_echo "$as_me: executing $ac_file commands" >&6;}
28213 case $ac_file$ac_mode in
28214 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28215 # Older Autoconf quotes --file arguments for eval, but not when files
28216 # are listed without --file. Let's play safe and only enable the eval
28217 # if we detect the quoting.
28218 case $CONFIG_FILES in
28219 *\'*) eval set x "$CONFIG_FILES" ;;
28220 *) set x $CONFIG_FILES ;;
28225 # Strip MF so we end up with the name of the file.
28226 mf=`echo "$mf" | sed -e 's/:.*$//'`
28227 # Check whether this is an Automake generated Makefile or not.
28228 # We used to match only the files named 'Makefile.in', but
28229 # some people rename them; so instead we look at the file content.
28230 # Grep'ing the first line is not enough: some people post-process
28231 # each Makefile.in and add a new line on top of each file to say so.
28232 # Grep'ing the whole file is not good either: AIX grep has a line
28233 # limit of 2048, but all sed's we know have understand at least 4000.
28234 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28235 dirpart=`$as_dirname -- "$mf" ||
28236 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28237 X"$mf" : 'X\(//\)[^/]' \| \
28238 X"$mf" : 'X\(//\)$' \| \
28239 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28245 /^X\(\/\/\)[^/].*/{
28261 # Extract the definition of DEPDIR, am__include, and am__quote
28262 # from the Makefile without running 'make'.
28263 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28264 test -z "$DEPDIR" && continue
28265 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28266 test -z "$am__include" && continue
28267 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28268 # Find all dependency output files, they are included files with
28269 # $(DEPDIR) in their names. We invoke sed twice because it is the
28270 # simplest approach to changing $(DEPDIR) to its actual value in the
28272 for file in `sed -n "
28273 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28274 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28275 # Make sure the directory exists.
28276 test -f "$dirpart/$file" && continue
28277 fdir=`$as_dirname -- "$file" ||
28278 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28279 X"$file" : 'X\(//\)[^/]' \| \
28280 X"$file" : 'X\(//\)$' \| \
28281 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28282 $as_echo X"$file" |
28283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28287 /^X\(\/\/\)[^/].*/{
28300 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28301 # echo "creating $dirpart/$file"
28302 echo '# dummy' > "$dirpart/$file"
28309 # See if we are running on zsh, and set the options that allow our
28310 # commands through without removal of \ escapes.
28311 if test -n "${ZSH_VERSION+set}"; then
28312 setopt NO_GLOB_SUBST
28316 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28319 cat <<_LT_EOF >> "$cfgfile"
28321 # Generated automatically by $as_me ($PACKAGE) $VERSION
28322 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28323 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28325 # Provide generalized library-building support services.
28326 # Written by Gordon Matzigkeit, 1996
28328 # Copyright (C) 2014 Free Software Foundation, Inc.
28329 # This is free software; see the source for copying conditions. There is NO
28330 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28332 # GNU Libtool is free software; you can redistribute it and/or modify
28333 # it under the terms of the GNU General Public License as published by
28334 # the Free Software Foundation; either version 2 of of the License, or
28335 # (at your option) any later version.
28337 # As a special exception to the GNU General Public License, if you
28338 # distribute this file as part of a program or library that is built
28339 # using GNU Libtool, you may include this file under the same
28340 # distribution terms that you use for the rest of that program.
28342 # GNU Libtool is distributed in the hope that it will be useful, but
28343 # WITHOUT ANY WARRANTY; without even the implied warranty of
28344 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28345 # GNU General Public License for more details.
28347 # You should have received a copy of the GNU General Public License
28348 # along with this program. If not, see <http://www.gnu.org/licenses/>.
28351 # The names of the tagged configurations supported by this script.
28354 # Configured defaults for sys_lib_dlsearch_path munging.
28355 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28357 # ### BEGIN LIBTOOL CONFIG
28359 # A sed program that does not truncate output.
28362 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28363 Xsed="\$SED -e 1s/^X//"
28365 # A grep program that handles long lines.
28371 # A literal string matcher.
28374 # Shell to use when invoking shell scripts.
28377 # An echo program that protects backslashes.
28380 # Whether or not to build shared libraries.
28381 build_libtool_libs=$enable_shared
28383 # Which release of libtool.m4 was used?
28384 macro_version=$macro_version
28385 macro_revision=$macro_revision
28387 # Whether or not to build static libraries.
28388 build_old_libs=$enable_static
28390 # What type of objects to build.
28393 # Whether or not to optimize for fast installation.
28394 fast_install=$enable_fast_install
28396 # Shared archive member basename,for filename based shared library versioning on AIX.
28397 shared_archive_member_spec=$shared_archive_member_spec
28399 # The PATH separator for the build system.
28400 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28403 host_alias=$host_alias
28407 # The build system.
28408 build_alias=$build_alias
28412 # A BSD- or MS-compatible name lister.
28415 # Whether we need soft or hard links.
28418 # What is the maximum length of a command?
28419 max_cmd_len=$max_cmd_len
28421 # Object file suffix (normally "o").
28424 # Executable file suffix (normally "").
28427 # whether the shell understands "unset".
28430 # turn spaces into newlines.
28433 # turn newlines into spaces.
28436 # convert \$build file names to \$host format.
28437 to_host_file_cmd=$lt_cv_to_host_file_cmd
28439 # convert \$build files to toolchain format.
28440 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28442 # An object symbol dumper.
28443 OBJDUMP=$lt_OBJDUMP
28445 # Method to check whether dependent libraries are shared objects.
28446 deplibs_check_method=$lt_deplibs_check_method
28448 # Command to use when deplibs_check_method = "file_magic".
28449 file_magic_cmd=$lt_file_magic_cmd
28451 # How to find potential files when deplibs_check_method = "file_magic".
28452 file_magic_glob=$lt_file_magic_glob
28454 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28455 want_nocaseglob=$lt_want_nocaseglob
28457 # DLL creation program.
28458 DLLTOOL=$lt_DLLTOOL
28460 # Command to associate shared and link libraries.
28461 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28466 # Flags to create an archive.
28467 AR_FLAGS=$lt_AR_FLAGS
28469 # How to feed a file listing to the archiver.
28470 archiver_list_spec=$lt_archiver_list_spec
28472 # A symbol stripping program.
28475 # Commands used to install an old-style archive.
28477 old_postinstall_cmds=$lt_old_postinstall_cmds
28478 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28480 # Whether to use a lock for old archive extraction.
28481 lock_old_archive_extraction=$lock_old_archive_extraction
28486 # LTCC compiler flags.
28487 LTCFLAGS=$lt_CFLAGS
28489 # Take the output of nm and produce a listing of raw symbols and C names.
28490 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28492 # Transform the output of nm in a proper C declaration.
28493 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28495 # Transform the output of nm into a list of symbols to manually relocate.
28496 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28498 # Transform the output of nm in a C name address pair.
28499 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28501 # Transform the output of nm in a C name address pair when lib prefix is needed.
28502 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28504 # The name lister interface.
28505 nm_interface=$lt_lt_cv_nm_interface
28507 # Specify filename containing input files for \$NM.
28508 nm_file_list_spec=$lt_nm_file_list_spec
28510 # The root where to search for dependent libraries,and where our libraries should be installed.
28511 lt_sysroot=$lt_sysroot
28513 # Command to truncate a binary pipe.
28514 lt_truncate_bin=$lt_lt_cv_truncate_bin
28516 # The name of the directory that contains temporary libtool files.
28519 # Used to examine libraries when file_magic_cmd begins with "file".
28520 MAGIC_CMD=$MAGIC_CMD
28522 # Must we lock files when doing compilation?
28523 need_locks=$lt_need_locks
28526 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28528 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28529 DSYMUTIL=$lt_DSYMUTIL
28531 # Tool to change global to local symbols on Mac OS X.
28534 # Tool to manipulate fat objects and archives on Mac OS X.
28537 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28540 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28541 OTOOL64=$lt_OTOOL64
28543 # Old archive suffix (normally "a").
28546 # Shared library suffix (normally ".so").
28547 shrext_cmds=$lt_shrext_cmds
28549 # The commands to extract the exported symbol list from a shared archive.
28550 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28552 # Variables whose values should be saved in libtool wrapper scripts and
28553 # restored at link time.
28554 variables_saved_for_relink=$lt_variables_saved_for_relink
28556 # Do we need the "lib" prefix for modules?
28557 need_lib_prefix=$need_lib_prefix
28559 # Do we need a version for libraries?
28560 need_version=$need_version
28562 # Library versioning type.
28563 version_type=$version_type
28565 # Shared library runtime path variable.
28566 runpath_var=$runpath_var
28568 # Shared library path variable.
28569 shlibpath_var=$shlibpath_var
28571 # Is shlibpath searched before the hard-coded library search path?
28572 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28574 # Format of library name prefix.
28575 libname_spec=$lt_libname_spec
28577 # List of archive names. First name is the real one, the rest are links.
28578 # The last name is the one that the linker finds with -lNAME
28579 library_names_spec=$lt_library_names_spec
28581 # The coded name of the library, if different from the real name.
28582 soname_spec=$lt_soname_spec
28584 # Permission mode override for installation of shared libraries.
28585 install_override_mode=$lt_install_override_mode
28587 # Command to use after installation of a shared archive.
28588 postinstall_cmds=$lt_postinstall_cmds
28590 # Command to use after uninstallation of a shared archive.
28591 postuninstall_cmds=$lt_postuninstall_cmds
28593 # Commands used to finish a libtool library installation in a directory.
28594 finish_cmds=$lt_finish_cmds
28596 # As "finish_cmds", except a single script fragment to be evaled but
28598 finish_eval=$lt_finish_eval
28600 # Whether we should hardcode library paths into libraries.
28601 hardcode_into_libs=$hardcode_into_libs
28603 # Compile-time system search path for libraries.
28604 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28606 # Detected run-time system search path for libraries.
28607 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28609 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28610 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28612 # Whether dlopen is supported.
28613 dlopen_support=$enable_dlopen
28615 # Whether dlopen of programs is supported.
28616 dlopen_self=$enable_dlopen_self
28618 # Whether dlopen of statically linked programs is supported.
28619 dlopen_self_static=$enable_dlopen_self_static
28621 # Commands to strip libraries.
28622 old_striplib=$lt_old_striplib
28623 striplib=$lt_striplib
28626 # The linker used to build libraries.
28629 # How to create reloadable object files.
28630 reload_flag=$lt_reload_flag
28631 reload_cmds=$lt_reload_cmds
28633 # Commands used to build an old-style archive.
28634 old_archive_cmds=$lt_old_archive_cmds
28636 # A language specific compiler.
28639 # Is the compiler the GNU compiler?
28642 # Compiler flag to turn off builtin functions.
28643 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28645 # Additional compiler flags for building library objects.
28646 pic_flag=$lt_lt_prog_compiler_pic
28648 # How to pass a linker flag through the compiler.
28649 wl=$lt_lt_prog_compiler_wl
28651 # Compiler flag to prevent dynamic linking.
28652 link_static_flag=$lt_lt_prog_compiler_static
28654 # Does compiler simultaneously support -c and -o options?
28655 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28657 # Whether or not to add -lc for building shared libraries.
28658 build_libtool_need_lc=$archive_cmds_need_lc
28660 # Whether or not to disallow shared libs when runtime libs are static.
28661 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28663 # Compiler flag to allow reflexive dlopens.
28664 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28666 # Compiler flag to generate shared objects directly from archives.
28667 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28669 # Whether the compiler copes with passing no objects directly.
28670 compiler_needs_object=$lt_compiler_needs_object
28672 # Create an old-style archive from a shared archive.
28673 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28675 # Create a temporary old-style archive to link instead of a shared archive.
28676 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28678 # Commands used to build a shared archive.
28679 archive_cmds=$lt_archive_cmds
28680 archive_expsym_cmds=$lt_archive_expsym_cmds
28682 # Commands used to build a loadable module if different from building
28683 # a shared archive.
28684 module_cmds=$lt_module_cmds
28685 module_expsym_cmds=$lt_module_expsym_cmds
28687 # Whether we are building with GNU ld or not.
28688 with_gnu_ld=$lt_with_gnu_ld
28690 # Flag that allows shared libraries with undefined symbols to be built.
28691 allow_undefined_flag=$lt_allow_undefined_flag
28693 # Flag that enforces no undefined symbols.
28694 no_undefined_flag=$lt_no_undefined_flag
28696 # Flag to hardcode \$libdir into a binary during linking.
28697 # This must work even if \$libdir does not exist
28698 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28700 # Whether we need a single "-rpath" flag with a separated argument.
28701 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28703 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28704 # DIR into the resulting binary.
28705 hardcode_direct=$hardcode_direct
28707 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28708 # DIR into the resulting binary and the resulting library dependency is
28709 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28710 # library is relocated.
28711 hardcode_direct_absolute=$hardcode_direct_absolute
28713 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28714 # into the resulting binary.
28715 hardcode_minus_L=$hardcode_minus_L
28717 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28718 # into the resulting binary.
28719 hardcode_shlibpath_var=$hardcode_shlibpath_var
28721 # Set to "yes" if building a shared library automatically hardcodes DIR
28722 # into the library and all subsequent libraries and executables linked
28724 hardcode_automatic=$hardcode_automatic
28726 # Set to yes if linker adds runtime paths of dependent libraries
28727 # to runtime path list.
28728 inherit_rpath=$inherit_rpath
28730 # Whether libtool must link a program against all its dependency libraries.
28731 link_all_deplibs=$link_all_deplibs
28733 # Set to "yes" if exported symbols are required.
28734 always_export_symbols=$always_export_symbols
28736 # The commands to list exported symbols.
28737 export_symbols_cmds=$lt_export_symbols_cmds
28739 # Symbols that should not be listed in the preloaded symbols.
28740 exclude_expsyms=$lt_exclude_expsyms
28742 # Symbols that must always be exported.
28743 include_expsyms=$lt_include_expsyms
28745 # Commands necessary for linking programs (against libraries) with templates.
28746 prelink_cmds=$lt_prelink_cmds
28748 # Commands necessary for finishing linking programs.
28749 postlink_cmds=$lt_postlink_cmds
28751 # Specify filename containing input files.
28752 file_list_spec=$lt_file_list_spec
28754 # How to hardcode a shared library path into an executable.
28755 hardcode_action=$hardcode_action
28757 # ### END LIBTOOL CONFIG
28761 cat <<'_LT_EOF' >> "$cfgfile"
28763 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28765 # func_munge_path_list VARIABLE PATH
28766 # -----------------------------------
28767 # VARIABLE is name of variable containing _space_ separated list of
28768 # directories to be munged by the contents of PATH, which is string
28771 # string "DIR[ DIR]" will be prepended to VARIABLE
28773 # string "DIR[ DIR]" will be appended to VARIABLE
28774 # "DIRP[:DIRP]::[DIRA:]DIRA"
28775 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28776 # "DIRA[ DIRA]" will be appended to VARIABLE
28778 # VARIABLE will be replaced by "DIR[ DIR]"
28779 func_munge_path_list ()
28785 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28788 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
28791 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
28792 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
28795 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
28801 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
28802 func_cc_basename ()
28804 for cc_temp in $*""; do
28806 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28807 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28812 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
28816 # ### END FUNCTIONS SHARED WITH CONFIGURE
28822 cat <<\_LT_EOF >> "$cfgfile"
28823 # AIX sometimes has problems with the GCC collect2 program. For some
28824 # reason, if we set the COLLECT_NAMES environment variable, the problems
28825 # vanish in a puff of smoke.
28826 if test set != "${COLLECT_NAMES+set}"; then
28828 export COLLECT_NAMES
28835 ltmain=$ac_aux_dir/ltmain.sh
28838 # We use sed instead of cat because bash on DJGPP gets confused if
28839 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28840 # text mode, it properly converts lines to CR/LF. This bash problem
28841 # is reportedly fixed, but why not run on old versions too?
28842 sed '$q' "$ltmain" >> "$cfgfile" \
28843 || (rm -f "$cfgfile"; exit 1)
28845 mv -f "$cfgfile" "$ofile" ||
28846 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28857 ac_clean_files=$ac_clean_files_save
28859 test $ac_write_fail = 0 ||
28860 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28863 # configure is writing to config.log, and then calls config.status.
28864 # config.status does its own redirection, appending to config.log.
28865 # Unfortunately, on DOS this fails, as config.log is still kept open
28866 # by configure, so config.status won't be able to write to it; its
28867 # output is simply discarded. So we exec the FD to /dev/null,
28868 # effectively closing config.log, so it can be properly (re)opened and
28869 # appended to by config.status. When coming back to configure, we
28870 # need to make the FD available again.
28871 if test "$no_create" != yes; then
28873 ac_config_status_args=
28874 test "$silent" = yes &&
28875 ac_config_status_args="$ac_config_status_args --quiet"
28877 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28879 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28880 # would make configure fail if this is the last instruction.
28881 $ac_cs_success || as_fn_exit 1
28885 # CONFIG_SUBDIRS section.
28887 if test "$no_recursion" != yes; then
28889 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28890 # so they do not pile up.
28891 ac_sub_configure_args=
28893 eval "set x $ac_configure_args"
28897 if test -n "$ac_prev"; then
28902 -cache-file | --cache-file | --cache-fil | --cache-fi \
28903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28904 ac_prev=cache_file ;;
28905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28909 --config-cache | -C)
28911 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28913 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28915 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28917 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28919 --disable-option-checking)
28923 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28925 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28929 # Always prepend --prefix to ensure using the same prefix
28930 # in subdir configurations.
28931 ac_arg="--prefix=$prefix"
28933 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28935 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28938 if test "$silent" = yes; then
28939 ac_sub_configure_args="--silent $ac_sub_configure_args"
28942 # Always prepend --disable-option-checking to silence warnings, since
28943 # different subdirs can have different --enable and --with options.
28944 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28947 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28949 # Do not complain, so a configure script can configure whichever
28950 # parts of a large source tree are present.
28951 test -d "$srcdir/$ac_dir" || continue
28953 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28954 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28955 $as_echo "$ac_msg" >&6
28956 as_dir="$ac_dir"; as_fn_mkdir_p
28960 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28962 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28963 # A ".." for each directory in $ac_dir_suffix.
28964 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28965 case $ac_top_builddir_sub in
28966 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28967 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28970 ac_abs_top_builddir=$ac_pwd
28971 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28972 # for backward compatibility:
28973 ac_top_builddir=$ac_top_build_prefix
28976 .) # We are building in place.
28978 ac_top_srcdir=$ac_top_builddir_sub
28979 ac_abs_top_srcdir=$ac_pwd ;;
28980 [\\/]* | ?:[\\/]* ) # Absolute name.
28981 ac_srcdir=$srcdir$ac_dir_suffix;
28982 ac_top_srcdir=$srcdir
28983 ac_abs_top_srcdir=$srcdir ;;
28984 *) # Relative name.
28985 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28986 ac_top_srcdir=$ac_top_build_prefix$srcdir
28987 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28989 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28994 # Check for guested configure; otherwise get Cygnus style configure.
28995 if test -f "$ac_srcdir/configure.gnu"; then
28996 ac_sub_configure=$ac_srcdir/configure.gnu
28997 elif test -f "$ac_srcdir/configure"; then
28998 ac_sub_configure=$ac_srcdir/configure
28999 elif test -f "$ac_srcdir/configure.in"; then
29000 # This should be Cygnus configure.
29001 ac_sub_configure=$ac_aux_dir/configure
29003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
29004 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
29008 # The recursion is here.
29009 if test -n "$ac_sub_configure"; then
29010 # Make the cache file name correct relative to the subdirectory.
29011 case $cache_file in
29012 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
29013 *) # Relative name.
29014 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
29017 { $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
29018 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
29019 # The eval makes quoting arguments work.
29020 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
29021 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
29022 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
29028 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29030 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}