2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sntp 4.2.8p14.
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.8p14'
594 PACKAGE_STRING='sntp 4.2.8p14'
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
922 enable_libopts_install
929 enable_local_libevent
939 ac_precious_vars='build_alias
949 ac_subdirs_all='libevent'
951 # Initialize some variables set by options.
953 ac_init_version=false
954 ac_unrecognized_opts=
956 # The variables have the same names as the options, with
957 # dashes changed to underlines.
965 program_transform_name=s,x,x,
973 # Installation directory options.
974 # These are left unexpanded so users can "make install exec_prefix=/foo"
975 # and all the variables that are supposed to be based on exec_prefix
976 # by default will actually change.
977 # Use braces instead of parens because sh, perl, etc. also accept them.
978 # (The list follows the same order as the GNU Coding Standards.)
979 bindir='${exec_prefix}/bin'
980 sbindir='${exec_prefix}/sbin'
981 libexecdir='${exec_prefix}/libexec'
982 datarootdir='${prefix}/share'
983 datadir='${datarootdir}'
984 sysconfdir='${prefix}/etc'
985 sharedstatedir='${prefix}/com'
986 localstatedir='${prefix}/var'
987 includedir='${prefix}/include'
988 oldincludedir='/usr/include'
989 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
990 infodir='${datarootdir}/info'
995 libdir='${exec_prefix}/lib'
996 localedir='${datarootdir}/locale'
997 mandir='${datarootdir}/man'
1003 # If the previous option needs an argument, assign it.
1004 if test -n "$ac_prev"; then
1005 eval $ac_prev=\$ac_option
1011 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1016 # Accept the important Cygnus configure options, so we can diagnose typos.
1018 case $ac_dashdash$ac_option in
1022 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1025 bindir=$ac_optarg ;;
1027 -build | --build | --buil | --bui | --bu)
1028 ac_prev=build_alias ;;
1029 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1030 build_alias=$ac_optarg ;;
1032 -cache-file | --cache-file | --cache-fil | --cache-fi \
1033 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1034 ac_prev=cache_file ;;
1035 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1036 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1037 cache_file=$ac_optarg ;;
1039 --config-cache | -C)
1040 cache_file=config.cache ;;
1042 -datadir | --datadir | --datadi | --datad)
1044 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1045 datadir=$ac_optarg ;;
1047 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1048 | --dataroo | --dataro | --datar)
1049 ac_prev=datarootdir ;;
1050 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1051 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1052 datarootdir=$ac_optarg ;;
1054 -disable-* | --disable-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error $? "invalid feature name: $ac_useropt"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1063 "enable_$ac_useropt"
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1068 eval enable_$ac_useropt=no ;;
1070 -docdir | --docdir | --docdi | --doc | --do)
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
1080 -enable-* | --enable-*)
1081 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 as_fn_error $? "invalid feature name: $ac_useropt"
1085 ac_useropt_orig=$ac_useropt
1086 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1087 case $ac_user_opts in
1089 "enable_$ac_useropt"
1091 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1092 ac_unrecognized_sep=', ';;
1094 eval enable_$ac_useropt=\$ac_optarg ;;
1096 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1097 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1098 | --exec | --exe | --ex)
1099 ac_prev=exec_prefix ;;
1100 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1101 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1102 | --exec=* | --exe=* | --ex=*)
1103 exec_prefix=$ac_optarg ;;
1105 -gas | --gas | --ga | --g)
1106 # Obsolete; use --with-gas.
1109 -help | --help | --hel | --he | -h)
1110 ac_init_help=long ;;
1111 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1112 ac_init_help=recursive ;;
1113 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1114 ac_init_help=short ;;
1116 -host | --host | --hos | --ho)
1117 ac_prev=host_alias ;;
1118 -host=* | --host=* | --hos=* | --ho=*)
1119 host_alias=$ac_optarg ;;
1121 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125 htmldir=$ac_optarg ;;
1127 -includedir | --includedir | --includedi | --included | --include \
1128 | --includ | --inclu | --incl | --inc)
1129 ac_prev=includedir ;;
1130 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1131 | --includ=* | --inclu=* | --incl=* | --inc=*)
1132 includedir=$ac_optarg ;;
1134 -infodir | --infodir | --infodi | --infod | --info | --inf)
1136 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1137 infodir=$ac_optarg ;;
1139 -libdir | --libdir | --libdi | --libd)
1141 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1142 libdir=$ac_optarg ;;
1144 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1145 | --libexe | --libex | --libe)
1146 ac_prev=libexecdir ;;
1147 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1148 | --libexe=* | --libex=* | --libe=*)
1149 libexecdir=$ac_optarg ;;
1151 -localedir | --localedir | --localedi | --localed | --locale)
1152 ac_prev=localedir ;;
1153 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1154 localedir=$ac_optarg ;;
1156 -localstatedir | --localstatedir | --localstatedi | --localstated \
1157 | --localstate | --localstat | --localsta | --localst | --locals)
1158 ac_prev=localstatedir ;;
1159 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1160 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1161 localstatedir=$ac_optarg ;;
1163 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1166 mandir=$ac_optarg ;;
1168 -nfp | --nfp | --nf)
1169 # Obsolete; use --without-fp.
1172 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1173 | --no-cr | --no-c | -n)
1176 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1177 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1180 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1181 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1182 | --oldin | --oldi | --old | --ol | --o)
1183 ac_prev=oldincludedir ;;
1184 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1185 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1186 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1187 oldincludedir=$ac_optarg ;;
1189 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1192 prefix=$ac_optarg ;;
1194 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1195 | --program-pre | --program-pr | --program-p)
1196 ac_prev=program_prefix ;;
1197 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1198 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1199 program_prefix=$ac_optarg ;;
1201 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1202 | --program-suf | --program-su | --program-s)
1203 ac_prev=program_suffix ;;
1204 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1205 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1206 program_suffix=$ac_optarg ;;
1208 -program-transform-name | --program-transform-name \
1209 | --program-transform-nam | --program-transform-na \
1210 | --program-transform-n | --program-transform- \
1211 | --program-transform | --program-transfor \
1212 | --program-transfo | --program-transf \
1213 | --program-trans | --program-tran \
1214 | --progr-tra | --program-tr | --program-t)
1215 ac_prev=program_transform_name ;;
1216 -program-transform-name=* | --program-transform-name=* \
1217 | --program-transform-nam=* | --program-transform-na=* \
1218 | --program-transform-n=* | --program-transform-=* \
1219 | --program-transform=* | --program-transfor=* \
1220 | --program-transfo=* | --program-transf=* \
1221 | --program-trans=* | --program-tran=* \
1222 | --progr-tra=* | --program-tr=* | --program-t=*)
1223 program_transform_name=$ac_optarg ;;
1225 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1228 pdfdir=$ac_optarg ;;
1230 -psdir | --psdir | --psdi | --psd | --ps)
1232 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1236 | -silent | --silent | --silen | --sile | --sil)
1239 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243 sbindir=$ac_optarg ;;
1245 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1246 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1247 | --sharedst | --shareds | --shared | --share | --shar \
1249 ac_prev=sharedstatedir ;;
1250 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1251 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1252 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254 sharedstatedir=$ac_optarg ;;
1256 -site | --site | --sit)
1258 -site=* | --site=* | --sit=*)
1261 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1264 srcdir=$ac_optarg ;;
1266 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1267 | --syscon | --sysco | --sysc | --sys | --sy)
1268 ac_prev=sysconfdir ;;
1269 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1270 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1271 sysconfdir=$ac_optarg ;;
1273 -target | --target | --targe | --targ | --tar | --ta | --t)
1274 ac_prev=target_alias ;;
1275 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1276 target_alias=$ac_optarg ;;
1278 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1281 -version | --version | --versio | --versi | --vers | -V)
1282 ac_init_version=: ;;
1285 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288 as_fn_error $? "invalid package name: $ac_useropt"
1289 ac_useropt_orig=$ac_useropt
1290 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1295 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1296 ac_unrecognized_sep=', ';;
1298 eval with_$ac_useropt=\$ac_optarg ;;
1300 -without-* | --without-*)
1301 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304 as_fn_error $? "invalid package name: $ac_useropt"
1305 ac_useropt_orig=$ac_useropt
1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1312 ac_unrecognized_sep=', ';;
1314 eval with_$ac_useropt=no ;;
1317 # Obsolete; use --with-x.
1320 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1321 | --x-incl | --x-inc | --x-in | --x-i)
1322 ac_prev=x_includes ;;
1323 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1324 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1325 x_includes=$ac_optarg ;;
1327 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1328 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1329 ac_prev=x_libraries ;;
1330 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1331 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1332 x_libraries=$ac_optarg ;;
1334 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1335 Try \`$0 --help' for more information"
1339 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1340 # Reject names that are not valid shell variable names.
1341 case $ac_envvar in #(
1342 '' | [0-9]* | *[!_$as_cr_alnum]* )
1343 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1345 eval $ac_envvar=\$ac_optarg
1346 export $ac_envvar ;;
1349 # FIXME: should be removed in autoconf 3.0.
1350 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1352 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1359 if test -n "$ac_prev"; then
1360 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1361 as_fn_error $? "missing argument to $ac_option"
1364 if test -n "$ac_unrecognized_opts"; then
1365 case $enable_option_checking in
1367 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1368 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1372 # Check all directory arguments for consistency.
1373 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1374 datadir sysconfdir sharedstatedir localstatedir includedir \
1375 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1376 libdir localedir mandir
1378 eval ac_val=\$$ac_var
1379 # Remove trailing slashes.
1382 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1383 eval $ac_var=\$ac_val;;
1385 # Be sure to have absolute directory names.
1387 [\\/$]* | ?:[\\/]* ) continue;;
1388 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1393 # There might be people who depend on the old broken behavior: `$host'
1394 # used to hold the argument of --host etc.
1395 # FIXME: To remove some day.
1398 target=$target_alias
1400 # FIXME: To remove some day.
1401 if test "x$host_alias" != x; then
1402 if test "x$build_alias" = x; then
1403 cross_compiling=maybe
1404 elif test "x$build_alias" != "x$host_alias"; then
1410 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1412 test "$silent" = yes && exec 6>/dev/null
1415 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1416 ac_ls_di=`ls -di .` &&
1417 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1418 as_fn_error $? "working directory cannot be determined"
1419 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420 as_fn_error $? "pwd does not report name of working directory"
1423 # Find the source files, if location was not specified.
1424 if test -z "$srcdir"; then
1425 ac_srcdir_defaulted=yes
1426 # Try the directory containing this script, then the parent directory.
1427 ac_confdir=`$as_dirname -- "$as_myself" ||
1428 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429 X"$as_myself" : 'X\(//\)[^/]' \| \
1430 X"$as_myself" : 'X\(//\)$' \| \
1431 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432 $as_echo X"$as_myself" |
1433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1455 ac_srcdir_defaulted=no
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1458 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1461 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1463 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1465 # When building in place, set srcdir=.
1466 if test "$ac_abs_confdir" = "$ac_pwd"; then
1469 # Remove unnecessary trailing slashes from srcdir.
1470 # Double slashes in file names in object file debugging info
1471 # mess up M-x gdb in Emacs.
1473 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475 for ac_var in $ac_precious_vars; do
1476 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_env_${ac_var}_value=\$${ac_var}
1478 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1479 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483 # Report the --help message.
1485 if test "$ac_init_help" = "long"; then
1486 # Omit some internal or obsolete options to make the list less imposing.
1487 # This message is too long to be a string in the A/UX 3.1 sh.
1489 \`configure' configures sntp 4.2.8p14 to adapt to many kinds of systems.
1491 Usage: $0 [OPTION]... [VAR=VALUE]...
1493 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1494 VAR=VALUE. See below for descriptions of some of the useful variables.
1496 Defaults for the options are specified in brackets.
1499 -h, --help display this help and exit
1500 --help=short display options specific to this package
1501 --help=recursive display the short help of all the included packages
1502 -V, --version display version information and exit
1503 -q, --quiet, --silent do not print \`checking ...' messages
1504 --cache-file=FILE cache test results in FILE [disabled]
1505 -C, --config-cache alias for \`--cache-file=config.cache'
1506 -n, --no-create do not create output files
1507 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1509 Installation directories:
1510 --prefix=PREFIX install architecture-independent files in PREFIX
1511 [$ac_default_prefix]
1512 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1515 By default, \`make install' will install all the files in
1516 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1517 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1518 for instance \`--prefix=\$HOME'.
1520 For better control, use the options below.
1522 Fine tuning of the installation directories:
1523 --bindir=DIR user executables [EPREFIX/bin]
1524 --sbindir=DIR system admin executables [EPREFIX/sbin]
1525 --libexecdir=DIR program executables [EPREFIX/libexec]
1526 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1527 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1528 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1529 --libdir=DIR object code libraries [EPREFIX/lib]
1530 --includedir=DIR C header files [PREFIX/include]
1531 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1532 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1533 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1534 --infodir=DIR info documentation [DATAROOTDIR/info]
1535 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1536 --mandir=DIR man documentation [DATAROOTDIR/man]
1537 --docdir=DIR documentation root [DATAROOTDIR/doc/sntp]
1538 --htmldir=DIR html documentation [DOCDIR]
1539 --dvidir=DIR dvi documentation [DOCDIR]
1540 --pdfdir=DIR pdf documentation [DOCDIR]
1541 --psdir=DIR ps documentation [DOCDIR]
1547 --program-prefix=PREFIX prepend PREFIX to installed program names
1548 --program-suffix=SUFFIX append SUFFIX to installed program names
1549 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1552 --build=BUILD configure for building on BUILD [guessed]
1553 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1557 if test -n "$ac_init_help"; then
1558 case $ac_init_help in
1559 short | recursive ) echo "Configuration of sntp 4.2.8p14:";;
1564 --disable-option-checking ignore unrecognized --enable/--with options
1565 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1566 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1567 --enable-silent-rules less verbose build output (undo: "make V=1")
1568 --disable-silent-rules verbose build output (undo: "make V=0")
1569 --enable-dependency-tracking
1570 do not reject slow dependency extractors
1571 --disable-dependency-tracking
1572 speeds up one-time build
1573 defaults: + yes, - no, s system-specific
1574 --enable-debugging + include ntpd debugging code
1575 --enable-thread-support s use threads (+ if available)
1576 --enable-c99-snprintf s force replacement
1577 --enable-clockctl s Use /dev/clockctl for non-root clock control
1578 --enable-linuxcaps + Use Linux capabilities for non-root clock control
1579 --enable-solarisprivs + Use Solaris privileges for non-root clock control
1580 --enable-trustedbsd-mac s Use TrustedBSD MAC policy for non-root clock
1582 --enable-signalled-io s Use signalled IO if we can
1583 --enable-shared[=PKGS] build shared libraries [default=no]
1584 --enable-static[=PKGS] build static libraries [default=yes]
1585 --enable-fast-install[=PKGS]
1586 optimize for fast installation [default=yes]
1587 --disable-libtool-lock avoid locking (might break parallel builds)
1588 --disable-nls disable nls support in libopts
1589 --enable-local-libopts Use the supplied libopts tearoff code
1590 --enable-libopts-install
1591 Install libopts with client installation
1592 --disable-optional-args not wanting optional option args
1593 --enable-local-libevent Force using the supplied libevent tearoff code
1594 --enable-ipv6 s use IPv6?
1596 --enable-getifaddrs + Enable the use of getifaddrs() [[yes|no]].
1597 --enable-problem-tests + enable tests with undiagnosed problems
1600 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1601 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1602 --with-hardenfile=XXX os-specific or "/dev/null"
1603 --with-locfile=XXX os-specific or "legacy"
1604 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1605 --with-lineeditlibs edit,editline (readline may be specified if desired)
1606 --with-threads with threads [auto]
1607 --with-yielding-select with yielding select [auto]
1608 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1610 --with-aix-soname=aix|svr4|both
1611 shared library versioning (aka "SONAME") variant to
1612 provide on AIX, [default=aix].
1613 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1614 compiler's sysroot if not specified).
1615 --without-sntp - disable building sntp and sntp/tests
1616 --with-autoopts-config specify the config-info script
1617 --with-regex-header a reg expr header is specified
1618 --with-libregex libregex installation prefix
1619 --with-libregex-cflags libregex compile flags
1620 --with-libregex-libs libregex link command arguments
1621 --with-crypto + =openssl,libcrypto
1623 --with-openssl-libdir + =/something/reasonable
1625 --with-openssl-incdir + =/something/reasonable
1627 --without-rpath s Disable auto-added -R linker paths
1629 --with-kame - =/usr/local/v6
1631 Some influential environment variables:
1632 CC C compiler command
1633 CFLAGS C compiler flags
1634 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1635 nonstandard directory <lib dir>
1636 LIBS libraries to pass to the linker, e.g. -l<library>
1637 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1638 you have headers in a nonstandard directory <include dir>
1641 User-defined run-time library search path.
1643 Use these variables to override the choices made by `configure' or to help
1644 it to find libraries and programs with nonstandard names/locations.
1646 Report bugs to <http://bugs.ntp.org./>.
1647 sntp home page: <http://www.ntp.org./>.
1652 if test "$ac_init_help" = "recursive"; then
1653 # If there are subdirs, report their specific --help.
1654 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1655 test -d "$ac_dir" ||
1656 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1664 # A ".." for each directory in $ac_dir_suffix.
1665 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1666 case $ac_top_builddir_sub in
1667 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1671 ac_abs_top_builddir=$ac_pwd
1672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673 # for backward compatibility:
1674 ac_top_builddir=$ac_top_build_prefix
1677 .) # We are building in place.
1679 ac_top_srcdir=$ac_top_builddir_sub
1680 ac_abs_top_srcdir=$ac_pwd ;;
1681 [\\/]* | ?:[\\/]* ) # Absolute name.
1682 ac_srcdir=$srcdir$ac_dir_suffix;
1683 ac_top_srcdir=$srcdir
1684 ac_abs_top_srcdir=$srcdir ;;
1686 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687 ac_top_srcdir=$ac_top_build_prefix$srcdir
1688 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692 cd "$ac_dir" || { ac_status=$?; continue; }
1693 # Check for guested configure.
1694 if test -f "$ac_srcdir/configure.gnu"; then
1696 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697 elif test -f "$ac_srcdir/configure"; then
1699 $SHELL "$ac_srcdir/configure" --help=recursive
1701 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703 cd "$ac_pwd" || { ac_status=$?; break; }
1707 test -n "$ac_init_help" && exit $ac_status
1708 if $ac_init_version; then
1710 sntp configure 4.2.8p14
1711 generated by GNU Autoconf 2.69
1713 Copyright (C) 2012 Free Software Foundation, Inc.
1714 This configure script is free software; the Free Software Foundation
1715 gives unlimited permission to copy, distribute and modify it.
1720 ## ------------------------ ##
1721 ## Autoconf initialization. ##
1722 ## ------------------------ ##
1724 # ac_fn_c_try_compile LINENO
1725 # --------------------------
1726 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_compile ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext
1731 if { { ac_try="$ac_compile"
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext; then :
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1760 } # ac_fn_c_try_compile
1762 # ac_fn_c_try_cpp LINENO
1763 # ----------------------
1764 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if { { ac_try="$ac_cpp conftest.$ac_ext"
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } > conftest.i && {
1784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 as_fn_set_status $ac_retval
1799 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1800 # -------------------------------------------------------
1801 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1802 # the include files in INCLUDES and setting the cache variable VAR
1804 ac_fn_c_check_header_mongrel ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 if eval \${$3+:} false; then :
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1817 # Is the header compilable?
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1819 $as_echo_n "checking $2 usability... " >&6; }
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1825 if ac_fn_c_try_compile "$LINENO"; then :
1826 ac_header_compiler=yes
1828 ac_header_compiler=no
1830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1832 $as_echo "$ac_header_compiler" >&6; }
1834 # Is the header present?
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1836 $as_echo_n "checking $2 presence... " >&6; }
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1841 if ac_fn_c_try_cpp "$LINENO"; then :
1842 ac_header_preproc=yes
1844 ac_header_preproc=no
1846 rm -f conftest.err conftest.i conftest.$ac_ext
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1848 $as_echo "$ac_header_preproc" >&6; }
1850 # So? What about this header?
1851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1854 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1860 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1862 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1864 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1866 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 ( $as_echo "## ------------------------------------ ##
1870 ## Report this to http://bugs.ntp.org./ ##
1871 ## ------------------------------------ ##"
1872 ) | sed "s/^/$as_me: WARNING: /" >&2
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if eval \${$3+:} false; then :
1878 $as_echo_n "(cached) " >&6
1880 eval "$3=\$ac_header_compiler"
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 } # ac_fn_c_check_header_mongrel
1890 # ac_fn_c_try_run LINENO
1891 # ----------------------
1892 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1893 # that executables *can* be run.
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 if { { ac_try="$ac_link"
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_link") 2>&5
1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1908 { { case "(($ac_try" in
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914 (eval "$ac_try") 2>&5
1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; }; }; then :
1920 $as_echo "$as_me: program exited with status $ac_status" >&5
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1924 ac_retval=$ac_status
1926 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 as_fn_set_status $ac_retval
1932 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1933 # -------------------------------------------------------
1934 # Tests whether HEADER exists and can be compiled using the include files in
1935 # INCLUDES, setting the cache variable VAR accordingly.
1936 ac_fn_c_check_header_compile ()
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1949 if ac_fn_c_try_compile "$LINENO"; then :
1954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961 } # ac_fn_c_check_header_compile
1963 # ac_fn_c_try_link LINENO
1964 # -----------------------
1965 # Try to link conftest.$ac_ext, and return whether this succeeded.
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 rm -f conftest.$ac_objext conftest$ac_exeext
1970 if { { ac_try="$ac_link"
1972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973 *) ac_try_echo=$ac_try;;
1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976 $as_echo "$ac_try_echo"; } >&5
1977 (eval "$ac_link") 2>conftest.err
1979 if test -s conftest.err; then
1980 grep -v '^ *+' conftest.err >conftest.er1
1981 cat conftest.er1 >&5
1982 mv -f conftest.er1 conftest.err
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; } && {
1986 test -z "$ac_c_werror_flag" ||
1987 test ! -s conftest.err
1988 } && test -s conftest$ac_exeext && {
1989 test "$cross_compiling" = yes ||
1990 test -x conftest$ac_exeext
1994 $as_echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1999 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2000 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2001 # interfere with the next link command; also delete a directory that is
2002 # left behind by Apple's compiler. We do this before executing the actions.
2003 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 as_fn_set_status $ac_retval
2007 } # ac_fn_c_try_link
2009 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2010 # -------------------------------------------
2011 # Tests whether TYPE exists after having included INCLUDES, setting cache
2012 # variable VAR accordingly.
2013 ac_fn_c_check_type ()
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2047 if ac_fn_c_try_compile "$LINENO"; then :
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 } # ac_fn_c_check_type
2063 # ac_fn_c_check_func LINENO FUNC VAR
2064 # ----------------------------------
2065 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2066 ac_fn_c_check_func ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070 $as_echo_n "checking for $2... " >&6; }
2071 if eval \${$3+:} false; then :
2072 $as_echo_n "(cached) " >&6
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2076 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2078 #define $2 innocuous_$2
2080 /* System header to define __stub macros and hopefully few prototypes,
2081 which can conflict with char $2 (); below.
2082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2083 <limits.h> exists even on freestanding compilers. */
2086 # include <limits.h>
2088 # include <assert.h>
2093 /* Override any GCC internal prototype to avoid an error.
2094 Use char because int might match the return type of a GCC
2095 builtin and then its argument prototype would still apply. */
2100 /* The GNU C library defines this for functions which it implements
2101 to always fail with ENOSYS. Some functions are actually named
2102 something starting with __ and the normal name is an alias. */
2103 #if defined __stub_$2 || defined __stub___$2
2115 if ac_fn_c_try_link "$LINENO"; then :
2120 rm -f core conftest.err conftest.$ac_objext \
2121 conftest$ac_exeext conftest.$ac_ext
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128 } # ac_fn_c_check_func
2130 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2131 # ---------------------------------------------
2132 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2134 ac_fn_c_check_decl ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 as_decl_name=`echo $2|sed 's/ *(.*//'`
2138 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2140 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2141 if eval \${$3+:} false; then :
2142 $as_echo_n "(cached) " >&6
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2150 #ifndef $as_decl_name
2152 (void) $as_decl_use;
2154 (void) $as_decl_name;
2162 if ac_fn_c_try_compile "$LINENO"; then :
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174 } # ac_fn_c_check_decl
2176 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2177 # --------------------------------------------
2178 # Tries to find the compile-time value of EXPR in a program that includes
2179 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2181 ac_fn_c_compute_int ()
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 if test "$cross_compiling" = yes; then
2185 # Depending upon the size, compute the lo and hi bounds.
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2192 static int test_array [1 - 2 * !(($2) >= 0)];
2194 return test_array [0];
2200 if ac_fn_c_try_compile "$LINENO"; then :
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2209 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2211 return test_array [0];
2217 if ac_fn_c_try_compile "$LINENO"; then :
2218 ac_hi=$ac_mid; break
2220 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2221 if test $ac_lo -le $ac_mid; then
2225 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2236 static int test_array [1 - 2 * !(($2) < 0)];
2238 return test_array [0];
2244 if ac_fn_c_try_compile "$LINENO"; then :
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2253 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2255 return test_array [0];
2261 if ac_fn_c_try_compile "$LINENO"; then :
2262 ac_lo=$ac_mid; break
2264 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2265 if test $ac_mid -le $ac_hi; then
2269 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 # Binary search between lo and hi bounds.
2280 while test "x$ac_lo" != "x$ac_hi"; do
2281 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2288 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2290 return test_array [0];
2296 if ac_fn_c_try_compile "$LINENO"; then :
2299 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2311 static long int longval () { return $2; }
2312 static unsigned long int ulongval () { return $2; }
2319 FILE *f = fopen ("conftest.val", "w");
2324 long int i = longval ();
2327 fprintf (f, "%ld", i);
2331 unsigned long int i = ulongval ();
2334 fprintf (f, "%lu", i);
2336 /* Do not output a trailing newline, as this causes \r\n confusion
2337 on some platforms. */
2338 return ferror (f) || fclose (f) != 0;
2344 if ac_fn_c_try_run "$LINENO"; then :
2345 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2350 conftest.$ac_objext conftest.beam conftest.$ac_ext
2354 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2355 as_fn_set_status $ac_retval
2357 } # ac_fn_c_compute_int
2359 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2360 # ----------------------------------------------------
2361 # Tries to find if the field MEMBER exists in type AGGR, after including
2362 # INCLUDES, setting cache variable VAR accordingly.
2363 ac_fn_c_check_member ()
2365 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2367 $as_echo_n "checking for $2.$3... " >&6; }
2368 if eval \${$4+:} false; then :
2369 $as_echo_n "(cached) " >&6
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h. */
2384 if ac_fn_c_try_compile "$LINENO"; then :
2387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388 /* end confdefs.h. */
2394 if (sizeof ac_aggr.$3)
2400 if ac_fn_c_try_compile "$LINENO"; then :
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2411 $as_echo "$ac_res" >&6; }
2412 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2414 } # ac_fn_c_check_member
2415 cat >config.log <<_ACEOF
2416 This file contains any messages produced by compilers while
2417 running configure, to aid debugging if configure makes a mistake.
2419 It was created by sntp $as_me 4.2.8p14, which was
2420 generated by GNU Autoconf 2.69. Invocation command line was
2432 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2433 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2434 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2435 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2436 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2438 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2439 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2441 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2442 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2443 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2444 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2445 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2446 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2447 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455 test -z "$as_dir" && as_dir=.
2456 $as_echo "PATH: $as_dir"
2472 # Keep a trace of the command line.
2473 # Strip out --no-create and --no-recursion so they do not pile up.
2474 # Strip out --silent because we don't want to record it for future runs.
2475 # Also quote any args containing shell meta-characters.
2476 # Make two passes to allow for proper duplicate-argument suppression.
2480 ac_must_keep_next=false
2486 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2487 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2488 | -silent | --silent | --silen | --sile | --sil)
2491 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2494 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2496 as_fn_append ac_configure_args1 " '$ac_arg'"
2497 if test $ac_must_keep_next = true; then
2498 ac_must_keep_next=false # Got value, back to normal.
2501 *=* | --config-cache | -C | -disable-* | --disable-* \
2502 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2503 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2504 | -with-* | --with-* | -without-* | --without-* | --x)
2505 case "$ac_configure_args0 " in
2506 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2509 -* ) ac_must_keep_next=true ;;
2512 as_fn_append ac_configure_args " '$ac_arg'"
2517 { ac_configure_args0=; unset ac_configure_args0;}
2518 { ac_configure_args1=; unset ac_configure_args1;}
2520 # When interrupted or exit'd, cleanup temporary files, and complete
2521 # config.log. We remove comments because anyway the quotes in there
2522 # would cause problems or look ugly.
2523 # WARNING: Use '\'' to represent an apostrophe within the trap.
2524 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2525 trap 'exit_status=$?
2526 # Save into config.log some information that might help in debugging.
2530 $as_echo "## ---------------- ##
2531 ## Cache variables. ##
2532 ## ---------------- ##"
2534 # The following way of writing the cache mishandles newlines in values,
2536 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2537 eval ac_val=\$$ac_var
2541 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2542 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2545 _ | IFS | as_nl) ;; #(
2546 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2547 *) { eval $ac_var=; unset $ac_var;} ;;
2552 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2553 *${as_nl}ac_space=\ *)
2555 "s/'\''/'\''\\\\'\'''\''/g;
2556 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2559 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2566 $as_echo "## ----------------- ##
2567 ## Output variables. ##
2568 ## ----------------- ##"
2570 for ac_var in $ac_subst_vars
2572 eval ac_val=\$$ac_var
2574 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2576 $as_echo "$ac_var='\''$ac_val'\''"
2580 if test -n "$ac_subst_files"; then
2581 $as_echo "## ------------------- ##
2582 ## File substitutions. ##
2583 ## ------------------- ##"
2585 for ac_var in $ac_subst_files
2587 eval ac_val=\$$ac_var
2589 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2591 $as_echo "$ac_var='\''$ac_val'\''"
2596 if test -s confdefs.h; then
2597 $as_echo "## ----------- ##
2604 test "$ac_signal" != 0 &&
2605 $as_echo "$as_me: caught signal $ac_signal"
2606 $as_echo "$as_me: exit $exit_status"
2608 rm -f core *.core core.conftest.* &&
2609 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2612 for ac_signal in 1 2 13 15; do
2613 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2617 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2618 rm -f -r conftest* confdefs.h
2620 $as_echo "/* confdefs.h */" > confdefs.h
2622 # Predefined preprocessor variables.
2624 cat >>confdefs.h <<_ACEOF
2625 #define PACKAGE_NAME "$PACKAGE_NAME"
2628 cat >>confdefs.h <<_ACEOF
2629 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2632 cat >>confdefs.h <<_ACEOF
2633 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2636 cat >>confdefs.h <<_ACEOF
2637 #define PACKAGE_STRING "$PACKAGE_STRING"
2640 cat >>confdefs.h <<_ACEOF
2641 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2644 cat >>confdefs.h <<_ACEOF
2645 #define PACKAGE_URL "$PACKAGE_URL"
2649 # Let the site file select an alternate cache file if it wants to.
2650 # Prefer an explicitly selected file to automatically selected ones.
2653 if test -n "$CONFIG_SITE"; then
2654 # We do not want a PATH search for config.site.
2655 case $CONFIG_SITE in #((
2656 -*) ac_site_file1=./$CONFIG_SITE;;
2657 */*) ac_site_file1=$CONFIG_SITE;;
2658 *) ac_site_file1=./$CONFIG_SITE;;
2660 elif test "x$prefix" != xNONE; then
2661 ac_site_file1=$prefix/share/config.site
2662 ac_site_file2=$prefix/etc/config.site
2664 ac_site_file1=$ac_default_prefix/share/config.site
2665 ac_site_file2=$ac_default_prefix/etc/config.site
2667 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2669 test "x$ac_site_file" = xNONE && continue
2670 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2672 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2673 sed 's/^/| /' "$ac_site_file" >&5
2675 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2677 as_fn_error $? "failed to load site script $ac_site_file
2678 See \`config.log' for more details" "$LINENO" 5; }
2682 if test -r "$cache_file"; then
2683 # Some versions of bash will fail to source /dev/null (special files
2684 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2685 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2687 $as_echo "$as_me: loading cache $cache_file" >&6;}
2689 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2690 *) . "./$cache_file";;
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2695 $as_echo "$as_me: creating cache $cache_file" >&6;}
2699 as_fn_append ac_header_list " stdarg.h"
2700 # Check that the precious variables saved in the cache have kept the same
2702 ac_cache_corrupted=false
2703 for ac_var in $ac_precious_vars; do
2704 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2705 eval ac_new_set=\$ac_env_${ac_var}_set
2706 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2707 eval ac_new_val=\$ac_env_${ac_var}_value
2708 case $ac_old_set,$ac_new_set in
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2711 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2712 ac_cache_corrupted=: ;;
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2715 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2716 ac_cache_corrupted=: ;;
2719 if test "x$ac_old_val" != "x$ac_new_val"; then
2720 # differences in whitespace do not lead to failure.
2721 ac_old_val_w=`echo x $ac_old_val`
2722 ac_new_val_w=`echo x $ac_new_val`
2723 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2725 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2726 ac_cache_corrupted=:
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2729 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2730 eval $ac_var=\$ac_old_val
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2733 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2735 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2738 # Pass precious variables to config.status.
2739 if test "$ac_new_set" = set; then
2741 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2742 *) ac_arg=$ac_var=$ac_new_val ;;
2744 case " $ac_configure_args " in
2745 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2746 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2750 if $ac_cache_corrupted; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2754 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2755 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2757 ## -------------------- ##
2758 ## Main body of script. ##
2759 ## -------------------- ##
2762 ac_cpp='$CPP $CPPFLAGS'
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2770 for ac_dir in libevent/build-aux "$srcdir"/libevent/build-aux; do
2771 if test -f "$ac_dir/install-sh"; then
2773 ac_install_sh="$ac_aux_dir/install-sh -c"
2775 elif test -f "$ac_dir/install.sh"; then
2777 ac_install_sh="$ac_aux_dir/install.sh -c"
2779 elif test -f "$ac_dir/shtool"; then
2781 ac_install_sh="$ac_aux_dir/shtool install -c"
2785 if test -z "$ac_aux_dir"; then
2786 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libevent/build-aux \"$srcdir\"/libevent/build-aux" "$LINENO" 5
2789 # These three variables are undocumented and unsupported,
2790 # and are intended to be withdrawn in a future Autoconf release.
2791 # They can cause serious problems if a builder's source tree is in a directory
2792 # whose full name contains unusual characters.
2793 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2794 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2795 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805 # Bump sntp_configure_cache_version for each change to configure.ac or
2806 # .m4 files which invalidates cached values from previous configure
2809 # If the change affects cache variables used only by the main NTP
2810 # configure.ac, then only its version number should be bumped, while
2811 # the subdir configure.ac version numbers should be unchanged. The
2812 # same is true for a test/variable that is used only by one subdir
2813 # being changed incompatibly; only that subdir's cache version needs
2816 # If a change affects variables shared by all NTP configure scripts,
2817 # please bump the version numbers of each. If you are not sure, the
2818 # safe choice is to bump all on any cache-invalidating change.
2820 # In order to avoid the risk of version stamp collision between -stable
2821 # and -dev branches, do not simply increment the version, instead use
2822 # the date YYYYMMDD optionally with -HHMM if there is more than one
2825 sntp_configure_cache_version=20120806
2827 # When the version of config.cache and configure do not
2828 # match, NTP_CACHEVERSION will flush the cache.
2834 case "$ntp_cv_sntp_cache_version" in
2835 $sntp_configure_cache_version)
2836 # same version, good
2840 # No cache, predates ntp_cv_sntp_cache_version, or is empty.
2841 case "$cache_file" in
2846 case "$NTP_CACHEVERSION_PARENT" in
2848 # Do not clear the cache immediately after it is created
2849 # empty as it is noisy. Differentiate a newly-created
2850 # config.cache from one predating the cache version
2851 # mechanism by looking for the first cached variable set
2853 case "$ac_cv_path_install" in
2855 # empty config.cache file
2860 # Parent configure just created cache from empty,
2861 # flushing would be counterproductive.
2868 # configure cache version mismatches config.cache version
2872 case "$ntp_cache_flush" in
2874 c_version="${ntp_cv_sntp_cache_version:-(no version found)}"
2876 # Do we flush all variables or exclude others' version stamps?
2878 case "$NTP_CACHEVERSION_PARENT" in
2880 # Clear all *_cv_* variables including our child subdirs'
2881 # ntp_cv_*_cache_version variables. This prevents subdir
2882 # configure scripts from noticing a version mismatch just
2883 # after the top configure in the invocation cleared and
2884 # recreated the cache.
2886 c_varname_list=`set |
2887 sed -n -e 's/=.*$//' \
2892 # This is not the top configure this particular invocation.
2893 # Clear all *_cv_* variables sparing the version stamps
2894 # of other configure scripts, so we don't trigger
2895 # useless repeated clearings.
2897 c_varname_list=`set |
2898 sed -n -e 's/=.*$//' \
2899 -e '/ntp_cv_.*_cache_version/d' \
2904 for c_varname in $c_varname_list
2906 { eval $c_varname=; unset $c_varname; }
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file saved by another version, ignored." >&5
2910 $as_echo "$as_me: $cache_file saved by another version, ignored." >&6;}
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script cache version: $sntp_configure_cache_version" >&5
2912 $as_echo "$as_me: configure script cache version: $sntp_configure_cache_version" >&6;}
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: $cache_file version: $c_version" >&5
2914 $as_echo "$as_me: $cache_file version: $c_version" >&6;}
2915 { c_varname=; unset c_varname;}
2916 { c_varname_list=; unset c_varname_list;}
2917 { c_version=; unset c_version;}
2920 { ntp_cache_flush=; unset ntp_cache_flush;}
2922 # save configure version in config.cache for next time
2923 ntp_cv_sntp_cache_version="$sntp_configure_cache_version"
2925 # let any subdir configure.ac NTP_CACHEVERSION invocations
2926 # know they are not the top level.
2927 NTP_CACHEVERSION_PARENT='sntp' ; export NTP_CACHEVERSION_PARENT
2930 am__api_version='1.15'
2932 # Find a good install program. We prefer a C program (faster),
2933 # so one script is as good as another. But avoid the broken or
2934 # incompatible versions:
2935 # SysV /etc/install, /usr/sbin/install
2936 # SunOS /usr/etc/install
2937 # IRIX /sbin/install
2939 # AmigaOS /C/install, which installs bootblocks on floppy discs
2940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2943 # OS/2's system install, which has a completely different semantic
2944 # ./install, which can be erroneously created by make from ./install.sh.
2945 # Reject install programs that cannot install multiple files.
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2947 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2948 if test -z "$INSTALL"; then
2949 if ${ac_cv_path_install+:} false; then :
2950 $as_echo_n "(cached) " >&6
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir=.
2957 # Account for people who put trailing slashes in PATH elements.
2958 case $as_dir/ in #((
2959 ./ | .// | /[cC]/* | \
2960 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2961 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2964 # OSF1 and SCO ODT 3.0 have their own names for install.
2965 # Don't use installbsd from OSF since it installs stuff as root
2967 for ac_prog in ginstall scoinst install; do
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2970 if test $ac_prog = install &&
2971 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2972 # AIX install. It has an incompatible calling convention.
2974 elif test $ac_prog = install &&
2975 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2976 # program-specific install script used by HP pwplus--don't use.
2979 rm -rf conftest.one conftest.two conftest.dir
2980 echo one > conftest.one
2981 echo two > conftest.two
2983 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2984 test -s conftest.one && test -s conftest.two &&
2985 test -s conftest.dir/conftest.one &&
2986 test -s conftest.dir/conftest.two
2988 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3001 rm -rf conftest.one conftest.two conftest.dir
3004 if test "${ac_cv_path_install+set}" = set; then
3005 INSTALL=$ac_cv_path_install
3007 # As a last resort, use the slow shell script. Don't cache a
3008 # value for INSTALL within a source directory, because that will
3009 # break other packages using the cache if that directory is
3010 # removed, or if the value is a relative name.
3011 INSTALL=$ac_install_sh
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3015 $as_echo "$INSTALL" >&6; }
3017 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3018 # It thinks the first close brace ends the variable substitution.
3019 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3021 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3023 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3026 $as_echo_n "checking whether build environment is sane... " >&6; }
3027 # Reject unsafe characters in $srcdir or the absolute working directory
3028 # name. Accept space and tab only in the latter.
3032 *[\\\"\#\$\&\'\`$am_lf]*)
3033 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3036 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3037 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3040 # Do 'set' in a subshell so we don't clobber the current shell's
3041 # arguments. Must try -L first in case configure is actually a
3042 # symlink; some systems play weird games with the mod time of symlinks
3043 # (eg FreeBSD returns the mod time of the symlink's containing
3047 for am_try in 1 2; do
3048 echo "timestamp, slept: $am_has_slept" > conftest.file
3049 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3050 if test "$*" = "X"; then
3052 set X `ls -t "$srcdir/configure" conftest.file`
3054 if test "$*" != "X $srcdir/configure conftest.file" \
3055 && test "$*" != "X conftest.file $srcdir/configure"; then
3057 # If neither matched, then we have a broken ls. This can happen
3058 # if, for instance, CONFIG_SHELL is bash and it inherits a
3059 # broken ls alias from the environment. This has actually
3060 # happened. Such a system could not be considered "sane".
3061 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3062 alias in your environment" "$LINENO" 5
3064 if test "$2" = conftest.file || test $am_try -eq 2; then
3071 test "$2" = conftest.file
3077 as_fn_error $? "newly created file is older than distributed files!
3078 Check your system clock" "$LINENO" 5
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3081 $as_echo "yes" >&6; }
3082 # If we didn't sleep, we still need to ensure time stamps of config.status and
3083 # generated files are strictly newer.
3085 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3092 test "$program_prefix" != NONE &&
3093 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3094 # Use a double $ so make ignores it.
3095 test "$program_suffix" != NONE &&
3096 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3097 # Double any \ or $.
3098 # By default was `s,x,x', remove it if useless.
3099 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3100 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3102 # Expand $ac_aux_dir to an absolute path.
3103 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3105 if test x"${MISSING+set}" != xset; then
3108 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3110 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3113 # Use eval to expand $SHELL
3114 if eval "$MISSING --is-lightweight"; then
3115 am_missing_run="$MISSING "
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3119 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3122 if test x"${install_sh+set}" != xset; then
3125 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3127 install_sh="\${SHELL} $am_aux_dir/install-sh"
3131 # Installed binaries are usually stripped using 'strip' when the user
3132 # run "make install-strip". However 'strip' might not be the right
3133 # tool to use in cross-compilation environments, therefore Automake
3134 # will honor the 'STRIP' environment variable to overrule this program.
3135 if test "$cross_compiling" != no; then
3136 if test -n "$ac_tool_prefix"; then
3137 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3138 set dummy ${ac_tool_prefix}strip; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_STRIP+:} false; then :
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$STRIP"; then
3145 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 STRIP=$ac_cv_prog_STRIP
3165 if test -n "$STRIP"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3167 $as_echo "$STRIP" >&6; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3175 if test -z "$ac_cv_prog_STRIP"; then
3177 # Extract the first word of "strip", so it can be a program name with args.
3178 set dummy strip; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3182 $as_echo_n "(cached) " >&6
3184 if test -n "$ac_ct_STRIP"; then
3185 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194 ac_cv_prog_ac_ct_STRIP="strip"
3195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3205 if test -n "$ac_ct_STRIP"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3207 $as_echo "$ac_ct_STRIP" >&6; }
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3213 if test "x$ac_ct_STRIP" = x; then
3216 case $cross_compiling:$ac_tool_warned in
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3225 STRIP="$ac_cv_prog_STRIP"
3229 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3232 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3233 if test -z "$MKDIR_P"; then
3234 if ${ac_cv_path_mkdir+:} false; then :
3235 $as_echo_n "(cached) " >&6
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3241 test -z "$as_dir" && as_dir=.
3242 for ac_prog in mkdir gmkdir; do
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3245 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3246 'mkdir (GNU coreutils) '* | \
3247 'mkdir (coreutils) '* | \
3248 'mkdir (fileutils) '4.1*)
3249 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3259 test -d ./--version && rmdir ./--version
3260 if test "${ac_cv_path_mkdir+set}" = set; then
3261 MKDIR_P="$ac_cv_path_mkdir -p"
3263 # As a last resort, use the slow shell script. Don't cache a
3264 # value for MKDIR_P within a source directory, because that will
3265 # break other packages using the cache if that directory is
3266 # removed, or if the value is a relative name.
3267 MKDIR_P="$ac_install_sh -d"
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3271 $as_echo "$MKDIR_P" >&6; }
3273 for ac_prog in gawk mawk nawk awk
3275 # Extract the first word of "$ac_prog", so it can be a program name with args.
3276 set dummy $ac_prog; ac_word=$2
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if ${ac_cv_prog_AWK+:} false; then :
3280 $as_echo_n "(cached) " >&6
3282 if test -n "$AWK"; then
3283 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 test -z "$as_dir" && as_dir=.
3290 for ac_exec_ext in '' $ac_executable_extensions; do
3291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3292 ac_cv_prog_AWK="$ac_prog"
3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 if test -n "$AWK"; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3305 $as_echo "$AWK" >&6; }
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 $as_echo "no" >&6; }
3312 test -n "$AWK" && break
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3316 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3318 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3319 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3320 $as_echo_n "(cached) " >&6
3322 cat >conftest.make <<\_ACEOF
3325 @echo '@@@%%%=$(MAKE)=@@@%%%'
3327 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3328 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3330 eval ac_cv_prog_make_${ac_make}_set=yes;;
3332 eval ac_cv_prog_make_${ac_make}_set=no;;
3336 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3338 $as_echo "yes" >&6; }
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 SET_MAKE="MAKE=${MAKE-make}"
3346 rm -rf .tst 2>/dev/null
3347 mkdir .tst 2>/dev/null
3348 if test -d .tst; then
3353 rmdir .tst 2>/dev/null
3355 # Check whether --enable-silent-rules was given.
3356 if test "${enable_silent_rules+set}" = set; then :
3357 enableval=$enable_silent_rules;
3360 case $enable_silent_rules in # (((
3361 yes) AM_DEFAULT_VERBOSITY=0;;
3362 no) AM_DEFAULT_VERBOSITY=1;;
3363 *) AM_DEFAULT_VERBOSITY=1;;
3365 am_make=${MAKE-make}
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3367 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3368 if ${am_cv_make_support_nested_variables+:} false; then :
3369 $as_echo_n "(cached) " >&6
3371 if $as_echo 'TRUE=$(BAR$(V))
3377 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3378 am_cv_make_support_nested_variables=yes
3380 am_cv_make_support_nested_variables=no
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3384 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3385 if test $am_cv_make_support_nested_variables = yes; then
3387 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3389 AM_V=$AM_DEFAULT_VERBOSITY
3390 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3394 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3395 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3396 # is not polluted with repeated "-I."
3397 am__isrc=' -I$(srcdir)'
3398 # test to see if srcdir already configured
3399 if test -f $srcdir/config.status; then
3400 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3404 # test whether we have cygpath
3405 if test -z "$CYGPATH_W"; then
3406 if (cygpath --version) >/dev/null 2>/dev/null; then
3407 CYGPATH_W='cygpath -w'
3414 # Define the identity of the package.
3419 cat >>confdefs.h <<_ACEOF
3420 #define PACKAGE "$PACKAGE"
3424 cat >>confdefs.h <<_ACEOF
3425 #define VERSION "$VERSION"
3428 # Some tools Automake needs.
3430 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3433 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3436 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3439 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3442 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3444 # For better backward compatibility. To be removed once Automake 1.9.x
3445 # dies out for good. For more background, see:
3446 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3447 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3448 mkdir_p='$(MKDIR_P)'
3450 # We need awk for the "check" target (and possibly the TAP driver). The
3451 # system "awk" is bad on some platforms.
3452 # Always define AMTAR for backward compatibility. Yes, it's still used
3453 # in the wild :-( We should find a proper way to deprecate it ...
3457 # We'll loop over all known methods to create a tar archive until one works.
3458 _am_tools='gnutar pax cpio none'
3460 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3467 # POSIX will say in a future version that running "rm -f" with no argument
3468 # is OK; and we want to be able to make that assumption in our Makefile
3469 # recipes. So use an aggressive probe to check that the usage we want is
3470 # actually supported "in the wild" to an acceptable degree.
3471 # See automake bug#10828.
3472 # To make any issue more visible, cause the running configure to be aborted
3473 # by default if the 'rm' program in use doesn't match our expectations; the
3474 # user can still override this though.
3475 if rm -f && rm -fr && rm -rf; then : OK; else
3479 Your 'rm' program seems unable to run without file operands specified
3480 on the command line, even when the '-f' option is present. This is contrary
3481 to the behaviour of most rm programs out there, and not conforming with
3482 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3484 Please tell bug-automake@gnu.org about your system, including the value
3485 of your $PATH and any error possibly output before this message. This
3486 can help us improve future automake versions.
3489 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3490 echo 'Configuration will proceed anyway, since you have set the' >&2
3491 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3495 Aborting the configuration process, to ensure you take notice of the issue.
3497 You can download and install GNU coreutils to get an 'rm' implementation
3498 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3500 If you want to complete the configuration process using your problematic
3501 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3502 to "yes", and re-run configure.
3505 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3510 # Check whether --enable-silent-rules was given.
3511 if test "${enable_silent_rules+set}" = set; then :
3512 enableval=$enable_silent_rules;
3515 case $enable_silent_rules in # (((
3516 yes) AM_DEFAULT_VERBOSITY=0;;
3517 no) AM_DEFAULT_VERBOSITY=1;;
3518 *) AM_DEFAULT_VERBOSITY=0;;
3520 am_make=${MAKE-make}
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3522 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3523 if ${am_cv_make_support_nested_variables+:} false; then :
3524 $as_echo_n "(cached) " >&6
3526 if $as_echo 'TRUE=$(BAR$(V))
3532 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3533 am_cv_make_support_nested_variables=yes
3535 am_cv_make_support_nested_variables=no
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3539 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3540 if test $am_cv_make_support_nested_variables = yes; then
3542 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3544 AM_V=$AM_DEFAULT_VERBOSITY
3545 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3550 # Make sure we can run config.sub.
3551 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3552 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3555 $as_echo_n "checking build system type... " >&6; }
3556 if ${ac_cv_build+:} false; then :
3557 $as_echo_n "(cached) " >&6
3559 ac_build_alias=$build_alias
3560 test "x$ac_build_alias" = x &&
3561 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3562 test "x$ac_build_alias" = x &&
3563 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3564 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3565 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3569 $as_echo "$ac_cv_build" >&6; }
3570 case $ac_cv_build in
3572 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3575 ac_save_IFS=$IFS; IFS='-'
3581 # Remember, the first character of IFS is used to create $*,
3582 # except with old shells:
3585 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3589 $as_echo_n "checking host system type... " >&6; }
3590 if ${ac_cv_host+:} false; then :
3591 $as_echo_n "(cached) " >&6
3593 if test "x$host_alias" = x; then
3594 ac_cv_host=$ac_cv_build
3596 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3597 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3602 $as_echo "$ac_cv_host" >&6; }
3605 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3608 ac_save_IFS=$IFS; IFS='-'
3614 # Remember, the first character of IFS is used to create $*,
3615 # except with old shells:
3618 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3622 cat >>confdefs.h <<_ACEOF
3623 #define STR_SYSTEM "$host"
3626 ac_config_headers="$ac_config_headers config.h"
3629 DEPDIR="${am__leading_dot}deps"
3631 ac_config_commands="$ac_config_commands depfiles"
3634 am_make=${MAKE-make}
3635 cat > confinc << 'END'
3637 @echo this is the am__doit target
3640 # If we don't find an include directive, just comment out the code.
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3642 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3646 # First try GNU make style include.
3647 echo "include confinc" > confmf
3648 # Ignore all kinds of additional output from 'make'.
3649 case `$am_make -s -f confmf 2> /dev/null` in #(
3650 *the\ am__doit\ target*)
3656 # Now try BSD make style include.
3657 if test "$am__include" = "#"; then
3658 echo '.include "confinc"' > confmf
3659 case `$am_make -s -f confmf 2> /dev/null` in #(
3660 *the\ am__doit\ target*)
3661 am__include=.include
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3670 $as_echo "$_am_result" >&6; }
3671 rm -f confinc confmf
3673 # Check whether --enable-dependency-tracking was given.
3674 if test "${enable_dependency_tracking+set}" = set; then :
3675 enableval=$enable_dependency_tracking;
3678 if test "x$enable_dependency_tracking" != xno; then
3679 am_depcomp="$ac_aux_dir/depcomp"
3683 if test "x$enable_dependency_tracking" != xno; then
3703 #AC_USE_SYSTEM_EXTENSIONS
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710 if test -n "$ac_tool_prefix"; then
3711 for ac_prog in $cclist
3713 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3714 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716 $as_echo_n "checking for $ac_word... " >&6; }
3717 if ${ac_cv_prog_CC+:} false; then :
3718 $as_echo_n "(cached) " >&6
3720 if test -n "$CC"; then
3721 ac_cv_prog_CC="$CC" # Let the user override the test.
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 test -z "$as_dir" && as_dir=.
3728 for ac_exec_ext in '' $ac_executable_extensions; do
3729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3730 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 if test -n "$CC"; then
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3743 $as_echo "$CC" >&6; }
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 $as_echo "no" >&6; }
3750 test -n "$CC" && break
3753 if test -z "$CC"; then
3755 for ac_prog in $cclist
3757 # Extract the first word of "$ac_prog", so it can be a program name with args.
3758 set dummy $ac_prog; ac_word=$2
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760 $as_echo_n "checking for $ac_word... " >&6; }
3761 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3762 $as_echo_n "(cached) " >&6
3764 if test -n "$ac_ct_CC"; then
3765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_ac_ct_CC="$ac_prog"
3775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3785 if test -n "$ac_ct_CC"; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3787 $as_echo "$ac_ct_CC" >&6; }
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 $as_echo "no" >&6; }
3794 test -n "$ac_ct_CC" && break
3797 if test "x$ac_ct_CC" = x; then
3800 case $cross_compiling:$ac_tool_warned in
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3804 ac_tool_warned=yes ;;
3811 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3813 as_fn_error $? "no acceptable C compiler found in \$PATH
3814 See \`config.log' for more details" "$LINENO" 5; }
3816 # Provide some information about the compiler.
3817 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3820 for ac_option in --version -v -V -qversion; do
3821 { { ac_try="$ac_compiler $ac_option >&5"
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827 $as_echo "$ac_try_echo"; } >&5
3828 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3830 if test -s conftest.err; then
3832 ... rest of stderr output deleted ...
3833 10q' conftest.err >conftest.er1
3834 cat conftest.er1 >&5
3836 rm -f conftest.er1 conftest.err
3837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838 test $ac_status = 0; }
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3852 ac_clean_files_save=$ac_clean_files
3853 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3854 # Try to create an executable without -o first, disregard a.out.
3855 # It will help us diagnose broken compilers, and finding out an intuition
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3858 $as_echo_n "checking whether the C compiler works... " >&6; }
3859 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3861 # The possible output files:
3862 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3865 for ac_file in $ac_files
3868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3869 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3874 if { { ac_try="$ac_link_default"
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 $as_echo "$ac_try_echo"; } >&5
3881 (eval "$ac_link_default") 2>&5
3883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; }; then :
3885 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3886 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3887 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3888 # so that the user can short-circuit this test for compilers unknown to
3890 for ac_file in $ac_files ''
3892 test -f "$ac_file" || continue
3894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3897 # We found the default executable, but exeext='' is most
3901 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3903 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3905 # We set ac_cv_exeext here because the later test for it is not
3906 # safe: cross compilers may not add the suffix if given an `-o'
3907 # argument, so we may need to know it at that point already.
3908 # Even if this section looks crufty: it has the advantage of
3915 test "$ac_cv_exeext" = no && ac_cv_exeext=
3920 if test -z "$ac_file"; then :
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3923 $as_echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928 as_fn_error 77 "C compiler cannot create executables
3929 See \`config.log' for more details" "$LINENO" 5; }
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3932 $as_echo "yes" >&6; }
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3935 $as_echo_n "checking for C compiler default output file name... " >&6; }
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3937 $as_echo "$ac_file" >&6; }
3938 ac_exeext=$ac_cv_exeext
3940 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3941 ac_clean_files=$ac_clean_files_save
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3943 $as_echo_n "checking for suffix of executables... " >&6; }
3944 if { { ac_try="$ac_link"
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 $as_echo "$ac_try_echo"; } >&5
3951 (eval "$ac_link") 2>&5
3953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3954 test $ac_status = 0; }; then :
3955 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3956 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3957 # work properly (i.e., refer to `conftest.exe'), while it won't with
3959 for ac_file in conftest.exe conftest conftest.*; do
3960 test -f "$ac_file" || continue
3962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3963 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3972 See \`config.log' for more details" "$LINENO" 5; }
3974 rm -f conftest conftest$ac_cv_exeext
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3976 $as_echo "$ac_cv_exeext" >&6; }
3978 rm -f conftest.$ac_ext
3979 EXEEXT=$ac_cv_exeext
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3987 FILE *f = fopen ("conftest.out", "w");
3988 return ferror (f) || fclose (f) != 0;
3994 ac_clean_files="$ac_clean_files conftest.out"
3995 # Check that the compiler produces executables we can run. If not, either
3996 # the compiler is broken, or we cross compile.
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3998 $as_echo_n "checking whether we are cross compiling... " >&6; }
3999 if test "$cross_compiling" != yes; then
4000 { { ac_try="$ac_link"
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006 $as_echo "$ac_try_echo"; } >&5
4007 (eval "$ac_link") 2>&5
4009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 test $ac_status = 0; }
4011 if { ac_try='./conftest$ac_cv_exeext'
4012 { { case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018 (eval "$ac_try") 2>&5
4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }; }; then
4024 if test "$cross_compiling" = maybe; then
4027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4029 as_fn_error $? "cannot run C compiled programs.
4030 If you meant to cross compile, use \`--host'.
4031 See \`config.log' for more details" "$LINENO" 5; }
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4036 $as_echo "$cross_compiling" >&6; }
4038 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4039 ac_clean_files=$ac_clean_files_save
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4041 $as_echo_n "checking for suffix of object files... " >&6; }
4042 if ${ac_cv_objext+:} false; then :
4043 $as_echo_n "(cached) " >&6
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4056 rm -f conftest.o conftest.obj
4057 if { { ac_try="$ac_compile"
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4063 $as_echo "$ac_try_echo"; } >&5
4064 (eval "$ac_compile") 2>&5
4066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4067 test $ac_status = 0; }; then :
4068 for ac_file in conftest.o conftest.obj conftest.*; do
4069 test -f "$ac_file" || continue;
4071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4072 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4077 $as_echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4082 as_fn_error $? "cannot compute suffix of object files: cannot compile
4083 See \`config.log' for more details" "$LINENO" 5; }
4085 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4088 $as_echo "$ac_cv_objext" >&6; }
4089 OBJEXT=$ac_cv_objext
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4092 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4093 if ${ac_cv_c_compiler_gnu+:} false; then :
4094 $as_echo_n "(cached) " >&6
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4110 if ac_fn_c_try_compile "$LINENO"; then :
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4120 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4121 if test $ac_compiler_gnu = yes; then
4126 ac_test_CFLAGS=${CFLAGS+set}
4127 ac_save_CFLAGS=$CFLAGS
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4129 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4130 if ${ac_cv_prog_cc_g+:} false; then :
4131 $as_echo_n "(cached) " >&6
4133 ac_save_c_werror_flag=$ac_c_werror_flag
4134 ac_c_werror_flag=yes
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4148 if ac_fn_c_try_compile "$LINENO"; then :
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4163 if ac_fn_c_try_compile "$LINENO"; then :
4166 ac_c_werror_flag=$ac_save_c_werror_flag
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4179 if ac_fn_c_try_compile "$LINENO"; then :
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 ac_c_werror_flag=$ac_save_c_werror_flag
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4190 $as_echo "$ac_cv_prog_cc_g" >&6; }
4191 if test "$ac_test_CFLAGS" = set; then
4192 CFLAGS=$ac_save_CFLAGS
4193 elif test $ac_cv_prog_cc_g = yes; then
4194 if test "$GCC" = yes; then
4200 if test "$GCC" = yes; then
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4207 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4208 if ${ac_cv_prog_cc_c89+:} false; then :
4209 $as_echo_n "(cached) " >&6
4211 ac_cv_prog_cc_c89=no
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4218 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4219 struct buf { int x; };
4220 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4221 static char *e (p, i)
4227 static char *f (char * (*g) (char **, int), char **p, ...)
4232 s = g (p, va_arg (v,int));
4237 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4238 function prototypes and stuff, but not '\xHH' hex character constants.
4239 These don't provoke an error unfortunately, instead are silently treated
4240 as 'x'. The following induces an error, until -std is added to get
4241 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4242 array size at least. It's necessary to write '\x00'==0 to get something
4243 that's true only with -std. */
4244 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4246 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4247 inside strings and character constants. */
4249 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4251 int test (int i, double x);
4252 struct s1 {int (*f) (int a);};
4253 struct s2 {int (*f) (double a);};
4254 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4260 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4265 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4266 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4268 CC="$ac_save_CC $ac_arg"
4269 if ac_fn_c_try_compile "$LINENO"; then :
4270 ac_cv_prog_cc_c89=$ac_arg
4272 rm -f core conftest.err conftest.$ac_objext
4273 test "x$ac_cv_prog_cc_c89" != "xno" && break
4275 rm -f conftest.$ac_ext
4280 case "x$ac_cv_prog_cc_c89" in
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4283 $as_echo "none needed" >&6; } ;;
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4286 $as_echo "unsupported" >&6; } ;;
4288 CC="$CC $ac_cv_prog_cc_c89"
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4290 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4292 if test "x$ac_cv_prog_cc_c89" != xno; then :
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303 ac_cpp='$CPP $CPPFLAGS'
4304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4308 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4309 if ${am_cv_prog_cc_c_o+:} false; then :
4310 $as_echo_n "(cached) " >&6
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4323 # Make sure it works both with $CC and with simple cc.
4324 # Following AC_PROG_CC_C_O, we do the test twice because some
4325 # compilers refuse to overwrite an existing .o file with -o,
4326 # though they will create one.
4327 am_cv_prog_cc_c_o=yes
4329 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4330 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } \
4334 && test -f conftest2.$ac_objext; then
4337 am_cv_prog_cc_c_o=no
4341 rm -f core conftest*
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4345 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4346 if test "$am_cv_prog_cc_c_o" != yes; then
4347 # Losing compiler, so override with the script.
4348 # FIXME: It is wrong to rewrite CC.
4349 # But if we don't then we get into trouble of one sort or another.
4350 # A longer-term fix would be to have automake use am__CC in this case,
4351 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4352 CC="$am_aux_dir/compile $CC"
4355 ac_cpp='$CPP $CPPFLAGS'
4356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4361 depcc="$CC" am_compiler_list=
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4364 $as_echo_n "checking dependency style of $depcc... " >&6; }
4365 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4366 $as_echo_n "(cached) " >&6
4368 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4369 # We make a subdir and do the tests there. Otherwise we can end up
4370 # making bogus files that we don't know about and never remove. For
4371 # instance it was reported that on HP-UX the gcc test will end up
4372 # making a dummy file named 'D' -- because '-MD' means "put the output
4376 # Copy depcomp to subdir because otherwise we won't find it if we're
4377 # using a relative directory.
4378 cp "$am_depcomp" conftest.dir
4380 # We will build objects and dependencies in a subdirectory because
4381 # it helps to detect inapplicable dependency modes. For instance
4382 # both Tru64's cc and ICC support -MD to output dependencies as a
4383 # side effect of compilation, but ICC will put the dependencies in
4384 # the current directory while Tru64 will put them in the object
4388 am_cv_CC_dependencies_compiler_type=none
4389 if test "$am_compiler_list" = ""; then
4390 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4393 case " $depcc " in #(
4394 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4397 for depmode in $am_compiler_list; do
4398 # Setup a source with many dependencies, because some compilers
4399 # like to wrap large dependency lists on column 80 (with \), and
4400 # we should not choose a depcomp mode which is confused by this.
4402 # We need to recreate these files for each test, as the compiler may
4403 # overwrite some of them when testing with obscure command lines.
4404 # This happens at least with the AIX C compiler.
4406 for i in 1 2 3 4 5 6; do
4407 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4408 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4409 # Solaris 10 /bin/sh.
4410 echo '/* dummy */' > sub/conftst$i.h
4412 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4414 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4415 # mode. It turns out that the SunPro C++ compiler does not properly
4416 # handle '-M -o', and we need to detect this. Also, some Intel
4417 # versions had trouble with output in subdirs.
4418 am__obj=sub/conftest.${OBJEXT-o}
4419 am__minus_obj="-o $am__obj"
4422 # This depmode causes a compiler race in universal mode.
4423 test "$am__universal" = false || continue
4426 # After this tag, mechanisms are not by side-effect, so they'll
4427 # only be used when explicitly requested.
4428 if test "x$enable_dependency_tracking" = xyes; then
4434 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4435 # This compiler won't grok '-c -o', but also, the minuso test has
4436 # not run yet. These depmodes are late enough in the game, and
4437 # so weak that their functioning should not be impacted.
4438 am__obj=conftest.${OBJEXT-o}
4443 if depmode=$depmode \
4444 source=sub/conftest.c object=$am__obj \
4445 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4446 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4447 >/dev/null 2>conftest.err &&
4448 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4449 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4450 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4451 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4452 # icc doesn't choke on unknown options, it will just issue warnings
4453 # or remarks (even with -Werror). So we grep stderr for any message
4454 # that says an option was ignored or not supported.
4455 # When given -MP, icc 7.0 and 7.1 complain thusly:
4456 # icc: Command line warning: ignoring option '-M'; no argument required
4457 # The diagnosis changed in icc 8.0:
4458 # icc: Command line remark: option '-MP' not supported
4459 if (grep 'ignoring option' conftest.err ||
4460 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4461 am_cv_CC_dependencies_compiler_type=$depmode
4470 am_cv_CC_dependencies_compiler_type=none
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4475 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4476 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4479 test "x$enable_dependency_tracking" != xno \
4480 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4482 am__fastdepCC_FALSE='#'
4484 am__fastdepCC_TRUE='#'
4485 am__fastdepCC_FALSE=
4493 ac_cpp='$CPP $CPPFLAGS'
4494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4498 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4499 # On Suns, sometimes $CPP names a directory.
4500 if test -n "$CPP" && test -d "$CPP"; then
4503 if test -z "$CPP"; then
4504 if ${ac_cv_prog_CPP+:} false; then :
4505 $as_echo_n "(cached) " >&6
4507 # Double quotes because CPP needs to be expanded
4508 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4511 for ac_c_preproc_warn_flag in '' yes
4513 # Use a header file that comes with gcc, so configuring glibc
4514 # with a fresh cross-compiler works.
4515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4516 # <limits.h> exists even on freestanding compilers.
4517 # On the NeXT, cc -E runs the code through the compiler's parser,
4518 # not just through cpp. "Syntax error" is here to catch this case.
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4522 # include <limits.h>
4524 # include <assert.h>
4528 if ac_fn_c_try_cpp "$LINENO"; then :
4531 # Broken: fails on valid input.
4534 rm -f conftest.err conftest.i conftest.$ac_ext
4536 # OK, works on sane cases. Now check whether nonexistent headers
4537 # can be detected and how.
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4540 #include <ac_nonexistent.h>
4542 if ac_fn_c_try_cpp "$LINENO"; then :
4543 # Broken: success on invalid input.
4546 # Passes both tests.
4550 rm -f conftest.err conftest.i conftest.$ac_ext
4553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4554 rm -f conftest.i conftest.err conftest.$ac_ext
4555 if $ac_preproc_ok; then :
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4568 $as_echo "$CPP" >&6; }
4570 for ac_c_preproc_warn_flag in '' yes
4572 # Use a header file that comes with gcc, so configuring glibc
4573 # with a fresh cross-compiler works.
4574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4575 # <limits.h> exists even on freestanding compilers.
4576 # On the NeXT, cc -E runs the code through the compiler's parser,
4577 # not just through cpp. "Syntax error" is here to catch this case.
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4581 # include <limits.h>
4583 # include <assert.h>
4587 if ac_fn_c_try_cpp "$LINENO"; then :
4590 # Broken: fails on valid input.
4593 rm -f conftest.err conftest.i conftest.$ac_ext
4595 # OK, works on sane cases. Now check whether nonexistent headers
4596 # can be detected and how.
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4599 #include <ac_nonexistent.h>
4601 if ac_fn_c_try_cpp "$LINENO"; then :
4602 # Broken: success on invalid input.
4605 # Passes both tests.
4609 rm -f conftest.err conftest.i conftest.$ac_ext
4612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4613 rm -f conftest.i conftest.err conftest.$ac_ext
4614 if $ac_preproc_ok; then :
4617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4619 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4620 See \`config.log' for more details" "$LINENO" 5; }
4624 ac_cpp='$CPP $CPPFLAGS'
4625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4631 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4632 if ${ac_cv_path_GREP+:} false; then :
4633 $as_echo_n "(cached) " >&6
4635 if test -z "$GREP"; then
4636 ac_path_GREP_found=false
4637 # Loop through the user's path and test for each of PROGNAME-LIST
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4642 test -z "$as_dir" && as_dir=.
4643 for ac_prog in grep ggrep; do
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4646 as_fn_executable_p "$ac_path_GREP" || continue
4647 # Check for GNU ac_path_GREP and select it if it is found.
4648 # Check for GNU $ac_path_GREP
4649 case `"$ac_path_GREP" --version 2>&1` in
4651 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4654 $as_echo_n 0123456789 >"conftest.in"
4657 cat "conftest.in" "conftest.in" >"conftest.tmp"
4658 mv "conftest.tmp" "conftest.in"
4659 cp "conftest.in" "conftest.nl"
4660 $as_echo 'GREP' >> "conftest.nl"
4661 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4663 as_fn_arith $ac_count + 1 && ac_count=$as_val
4664 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4665 # Best one so far, save it but keep looking for a better one
4666 ac_cv_path_GREP="$ac_path_GREP"
4667 ac_path_GREP_max=$ac_count
4669 # 10*(2^10) chars as input seems more than enough
4670 test $ac_count -gt 10 && break
4672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4675 $ac_path_GREP_found && break 3
4680 if test -z "$ac_cv_path_GREP"; then
4681 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4684 ac_cv_path_GREP=$GREP
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4689 $as_echo "$ac_cv_path_GREP" >&6; }
4690 GREP="$ac_cv_path_GREP"
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4694 $as_echo_n "checking for egrep... " >&6; }
4695 if ${ac_cv_path_EGREP+:} false; then :
4696 $as_echo_n "(cached) " >&6
4698 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4699 then ac_cv_path_EGREP="$GREP -E"
4701 if test -z "$EGREP"; then
4702 ac_path_EGREP_found=false
4703 # Loop through the user's path and test for each of PROGNAME-LIST
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4708 test -z "$as_dir" && as_dir=.
4709 for ac_prog in egrep; do
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4712 as_fn_executable_p "$ac_path_EGREP" || continue
4713 # Check for GNU ac_path_EGREP and select it if it is found.
4714 # Check for GNU $ac_path_EGREP
4715 case `"$ac_path_EGREP" --version 2>&1` in
4717 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4720 $as_echo_n 0123456789 >"conftest.in"
4723 cat "conftest.in" "conftest.in" >"conftest.tmp"
4724 mv "conftest.tmp" "conftest.in"
4725 cp "conftest.in" "conftest.nl"
4726 $as_echo 'EGREP' >> "conftest.nl"
4727 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4729 as_fn_arith $ac_count + 1 && ac_count=$as_val
4730 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4731 # Best one so far, save it but keep looking for a better one
4732 ac_cv_path_EGREP="$ac_path_EGREP"
4733 ac_path_EGREP_max=$ac_count
4735 # 10*(2^10) chars as input seems more than enough
4736 test $ac_count -gt 10 && break
4738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4741 $ac_path_EGREP_found && break 3
4746 if test -z "$ac_cv_path_EGREP"; then
4747 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4750 ac_cv_path_EGREP=$EGREP
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4756 $as_echo "$ac_cv_path_EGREP" >&6; }
4757 EGREP="$ac_cv_path_EGREP"
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4761 $as_echo_n "checking for ANSI C header files... " >&6; }
4762 if ${ac_cv_header_stdc+:} false; then :
4763 $as_echo_n "(cached) " >&6
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4780 if ac_fn_c_try_compile "$LINENO"; then :
4781 ac_cv_header_stdc=yes
4783 ac_cv_header_stdc=no
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 if test $ac_cv_header_stdc = yes; then
4788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4795 $EGREP "memchr" >/dev/null 2>&1; then :
4798 ac_cv_header_stdc=no
4804 if test $ac_cv_header_stdc = yes; then
4805 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4812 $EGREP "free" >/dev/null 2>&1; then :
4815 ac_cv_header_stdc=no
4821 if test $ac_cv_header_stdc = yes; then
4822 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4823 if test "$cross_compiling" = yes; then :
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4830 #if ((' ' & 0x0FF) == 0x020)
4831 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4832 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4834 # define ISLOWER(c) \
4835 (('a' <= (c) && (c) <= 'i') \
4836 || ('j' <= (c) && (c) <= 'r') \
4837 || ('s' <= (c) && (c) <= 'z'))
4838 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4841 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4846 for (i = 0; i < 256; i++)
4847 if (XOR (islower (i), ISLOWER (i))
4848 || toupper (i) != TOUPPER (i))
4853 if ac_fn_c_try_run "$LINENO"; then :
4856 ac_cv_header_stdc=no
4858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4859 conftest.$ac_objext conftest.beam conftest.$ac_ext
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4865 $as_echo "$ac_cv_header_stdc" >&6; }
4866 if test $ac_cv_header_stdc = yes; then
4868 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4872 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4873 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4874 inttypes.h stdint.h unistd.h
4876 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4877 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4879 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4880 cat >>confdefs.h <<_ACEOF
4881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4890 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4891 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4898 if test "$MINIX" = yes; then
4900 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4903 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4906 $as_echo "#define _MINIX 1" >>confdefs.h
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4912 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4913 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4914 $as_echo_n "(cached) " >&6
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4919 # define __EXTENSIONS__ 1
4920 $ac_includes_default
4929 if ac_fn_c_try_compile "$LINENO"; then :
4930 ac_cv_safe_to_define___extensions__=yes
4932 ac_cv_safe_to_define___extensions__=no
4934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4937 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4938 test $ac_cv_safe_to_define___extensions__ = yes &&
4939 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4941 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4943 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4945 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4947 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4951 case $ac_cv_prog_cc_stdc in #(
4953 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4956 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4957 if ${ac_cv_prog_cc_c99+:} false; then :
4958 $as_echo_n "(cached) " >&6
4960 ac_cv_prog_cc_c99=no
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4965 #include <stdbool.h>
4970 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4971 #define debug(...) fprintf (stderr, __VA_ARGS__)
4972 #define showlist(...) puts (#__VA_ARGS__)
4973 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4975 test_varargs_macros (void)
4980 debug ("X = %d\n", x);
4981 showlist (The first, second, and third items.);
4982 report (x>y, "x is %d but y is %d", x, y);
4985 // Check long long types.
4986 #define BIG64 18446744073709551615ull
4987 #define BIG32 4294967295ul
4988 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4990 your preprocessor is broken;
4994 your preprocessor is broken;
4996 static long long int bignum = -9223372036854775807LL;
4997 static unsigned long long int ubignum = BIG64;
4999 struct incomplete_array
5007 const wchar_t *name;
5011 typedef const char *ccp;
5014 test_restrict (ccp restrict text)
5016 // See if C++-style comments work.
5017 // Iterate through items via the restricted pointer.
5018 // Also check for declarations in for loops.
5019 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5024 // Check varargs and va_copy.
5026 test_varargs (const char *format, ...)
5029 va_start (args, format);
5031 va_copy (args_copy, args);
5042 str = va_arg (args_copy, const char *);
5045 number = va_arg (args_copy, int);
5048 fnumber = va_arg (args_copy, double);
5063 _Bool success = false;
5066 if (test_restrict ("String literal") == 0)
5068 char *restrict newvar = "Another string";
5071 test_varargs ("s, d' f .", "string", 65, 34.234);
5072 test_varargs_macros ();
5074 // Check flexible array members.
5075 struct incomplete_array *ia =
5076 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5078 for (int i = 0; i < ia->datasize; ++i)
5079 ia->data[i] = i * 1.234;
5081 // Check named initializers.
5082 struct named_init ni = {
5084 .name = L"Test wide string",
5085 .average = 543.34343,
5090 int dynamic_array[ni.number];
5091 dynamic_array[ni.number - 1] = 543;
5093 // work around unused variable warnings
5094 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5095 || dynamic_array[ni.number - 1] != 543);
5101 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5103 CC="$ac_save_CC $ac_arg"
5104 if ac_fn_c_try_compile "$LINENO"; then :
5105 ac_cv_prog_cc_c99=$ac_arg
5107 rm -f core conftest.err conftest.$ac_objext
5108 test "x$ac_cv_prog_cc_c99" != "xno" && break
5110 rm -f conftest.$ac_ext
5115 case "x$ac_cv_prog_cc_c99" in
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5118 $as_echo "none needed" >&6; } ;;
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5121 $as_echo "unsupported" >&6; } ;;
5123 CC="$CC $ac_cv_prog_cc_c99"
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5125 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5127 if test "x$ac_cv_prog_cc_c99" != xno; then :
5128 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5131 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5132 if ${ac_cv_prog_cc_c89+:} false; then :
5133 $as_echo_n "(cached) " >&6
5135 ac_cv_prog_cc_c89=no
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5142 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5143 struct buf { int x; };
5144 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5145 static char *e (p, i)
5151 static char *f (char * (*g) (char **, int), char **p, ...)
5156 s = g (p, va_arg (v,int));
5161 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5162 function prototypes and stuff, but not '\xHH' hex character constants.
5163 These don't provoke an error unfortunately, instead are silently treated
5164 as 'x'. The following induces an error, until -std is added to get
5165 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5166 array size at least. It's necessary to write '\x00'==0 to get something
5167 that's true only with -std. */
5168 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5170 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5171 inside strings and character constants. */
5173 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5175 int test (int i, double x);
5176 struct s1 {int (*f) (int a);};
5177 struct s2 {int (*f) (double a);};
5178 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5184 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5189 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5190 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5192 CC="$ac_save_CC $ac_arg"
5193 if ac_fn_c_try_compile "$LINENO"; then :
5194 ac_cv_prog_cc_c89=$ac_arg
5196 rm -f core conftest.err conftest.$ac_objext
5197 test "x$ac_cv_prog_cc_c89" != "xno" && break
5199 rm -f conftest.$ac_ext
5204 case "x$ac_cv_prog_cc_c89" in
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5207 $as_echo "none needed" >&6; } ;;
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5210 $as_echo "unsupported" >&6; } ;;
5212 CC="$CC $ac_cv_prog_cc_c89"
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5214 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5216 if test "x$ac_cv_prog_cc_c89" != xno; then :
5217 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5219 ac_cv_prog_cc_stdc=no
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5226 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5227 if ${ac_cv_prog_cc_stdc+:} false; then :
5228 $as_echo_n "(cached) " >&6
5231 case $ac_cv_prog_cc_stdc in #(
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5234 $as_echo "unsupported" >&6; } ;; #(
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5237 $as_echo "none needed" >&6; } ;; #(
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5240 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5247 # Ralf Wildenhues: With per-target flags we need CC_C_O
5248 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
5250 if test $ac_cv_c_compiler_gnu = yes; then
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5252 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5253 if ${ac_cv_prog_gcc_traditional+:} false; then :
5254 $as_echo_n "(cached) " >&6
5256 ac_pattern="Autoconf.*'x'"
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5263 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5264 ac_cv_prog_gcc_traditional=yes
5266 ac_cv_prog_gcc_traditional=no
5271 if test $ac_cv_prog_gcc_traditional = no; then
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5278 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5279 ac_cv_prog_gcc_traditional=yes
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5286 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5287 if test $ac_cv_prog_gcc_traditional = yes; then
5288 CC="$CC -traditional"
5303 case "$ac_cv_prog_cc_c89" in
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5306 version 4.2.5 and higher." >&5
5307 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5308 version 4.2.5 and higher." >&2;}
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
5313 $as_echo_n "checking if $CC can handle #warning... " >&6; }
5314 if ${ntp_cv_cpp_warning+:} false; then :
5315 $as_echo_n "(cached) " >&6
5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h. */
5328 if ac_fn_c_try_compile "$LINENO"; then :
5329 ntp_cv_cpp_warning=yes
5331 ntp_cv_cpp_warning=no
5334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
5338 $as_echo "$ntp_cv_cpp_warning" >&6; }
5339 case "$ntp_cv_cpp_warning" in
5342 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
5347 $as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
5348 if ${ntp_cv_cc_attribute+:} false; then :
5349 $as_echo_n "(cached) " >&6
5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5357 void foo(void) __attribute__((__noreturn__));
5363 if ac_fn_c_try_compile "$LINENO"; then :
5364 ntp_cv_cc_attribute=yes
5366 ntp_cv_cc_attribute=no
5369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
5373 $as_echo "$ntp_cv_cc_attribute" >&6; }
5374 case "$ntp_cv_cc_attribute" in
5377 $as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
5384 SAVED_CFLAGS="$CFLAGS"
5385 CFLAGS="$CFLAGS -Wstrict-overflow"
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
5387 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
5388 if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
5389 $as_echo_n "(cached) " >&6
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5402 if ac_fn_c_try_compile "$LINENO"; then :
5403 ntp_cv_gcc_Wstrict_overflow=yes
5405 ntp_cv_gcc_Wstrict_overflow=no
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
5412 $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
5414 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
5417 CFLAGS="$SAVED_CFLAGS -Winit-self"
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
5419 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
5420 if ${ntp_cv_gcc_Winit_self+:} false; then :
5421 $as_echo_n "(cached) " >&6
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5435 if ac_fn_c_try_compile "$LINENO"; then :
5436 ntp_cv_gcc_Winit_self=yes
5438 ntp_cv_gcc_Winit_self=no
5441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
5446 $as_echo "$ntp_cv_gcc_Winit_self" >&6; }
5447 CFLAGS="$SAVED_CFLAGS"
5448 { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
5450 # $ntp_cv_gcc_Winit_self is tested later to add the
5451 # flag to CFLAGS_NTP.
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
5454 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
5455 if ${ntp_cv_gc_sections_runs+:} false; then :
5456 $as_echo_n "(cached) " >&6
5459 origCFLAGS="$CFLAGS"
5460 CFLAGS="$CFLAGS -Wl,--gc-sections"
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5474 int read_success_once;
5476 fpC = fopen("conftest.c", "r");
5480 cch = fread(buf, sizeof(buf), 1, fpC);
5481 read_success_once |= (0 != cch);
5483 if (!read_success_once)
5487 if (0 != fclose(fpC))
5497 if ac_fn_c_try_link "$LINENO"; then :
5499 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
5500 ntp_cv_gc_sections_runs=no
5502 ntp_cv_gc_sections_runs=no
5503 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
5507 ntp_cv_gc_sections_runs=no
5510 rm -f core conftest.err conftest.$ac_objext \
5511 conftest$ac_exeext conftest.$ac_ext
5512 CFLAGS="$origCFLAGS"
5513 { origCFLAGS=; unset origCFLAGS;}
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
5518 $as_echo "$ntp_cv_gc_sections_runs" >&6; }
5519 case "$ntp_cv_gc_sections_runs" in
5521 LDADD_LIBNTP="-Wl,--gc-sections"
5522 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
5528 CFLAGS_NTP="$CFLAGS_NTP -Wall"
5529 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
5530 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
5531 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
5532 # CFLAGS_NTP="$CFLAGS_NTP -Werror"
5533 # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
5534 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
5535 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
5536 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
5537 CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
5538 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
5539 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
5540 case "$ntp_cv_gcc_Winit_self" in
5542 CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
5544 case "$ntp_cv_gcc_Wstrict_overflow" in
5546 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
5548 # -W[no-]strict-prototypes might be added by NTP_OPENSSL
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
5553 $as_echo_n "checking additional compiler flags... " >&6; }
5554 # allow ntp_os_cflags to be preset to skip this stuff
5555 case "${ntp_os_cflags+set}" in
5564 # turn on additional headers
5565 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
5568 # avoid circular dependencies in yp headers, and more
5569 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
5570 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
5573 # XXX Only verified thru AIX6.
5574 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
5575 # avoid circular dependencies in yp headers
5576 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
5577 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
5578 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
5579 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
5580 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
5583 ntp_os_cflags="-DSYS_AMIGA"
5585 darwin*|macosx*|rhapsody*)
5586 ntp_os_cflags="-D_P1003_1B_VISIBLE"
5588 hpux10.*) # at least for hppa2.0-hp-hpux10.20
5593 # use Ansi compiler on HPUX, and some -Wp magic
5594 ntp_os_cflags="-Ae -Wp,-H18816"
5597 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5604 # use Ansi compiler on HPUX
5607 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5612 # do not use 64-bit compiler
5613 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
5617 ntp_os_cflags="-posix"
5619 solaris1*|solaris2.[0-5]|solaris2.5.*)
5621 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
5624 # turn on 64-bit file offset interface
5625 ntp_os_cflags="-D_LARGEFILE64_SOURCE"
5632 # Quick and dirty sanity check
5633 case "$VX_KERNEL" in
5635 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
5637 ntp_os_cflags="-DSYS_VXWORKS"
5642 case "$ntp_os_cflags" in
5644 ntp_os_cflags_msg="none needed"
5647 ntp_os_cflags_msg="$ntp_os_cflags"
5649 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
5651 $as_echo "$ntp_os_cflags_msg" >&6; }
5652 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
5655 $as_echo_n "checking additional linker flags... " >&6; }
5656 # HMS: The following might still need tweaking
5657 # allow ntp_os_ldflags to be preset to skip this stuff
5658 case "${ntp_os_ldflags+set}" in
5667 ntp_os_ldflags="-Wl,+allowdups"
5674 case "$ntp_os_ldflags" in
5676 ntp_os_ldflags_msg="none needed"
5679 ntp_os_ldflags_msg="$ntp_os_ldflags"
5681 LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
5683 $as_echo "$ntp_os_ldflags_msg" >&6; }
5684 { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5688 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5689 if ${ac_cv_c_bigendian+:} false; then :
5690 $as_echo_n "(cached) " >&6
5692 ac_cv_c_bigendian=unknown
5693 # See if we're dealing with a universal compiler.
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 #ifndef __APPLE_CC__
5697 not a universal capable compiler
5702 if ac_fn_c_try_compile "$LINENO"; then :
5704 # Check for potential -arch flags. It is not universal unless
5705 # there are at least two -arch flags with different values.
5708 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5709 if test -n "$ac_prev"; then
5711 i?86 | x86_64 | ppc | ppc64)
5712 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5715 ac_cv_c_bigendian=universal
5721 elif test "x$ac_word" = "x-arch"; then
5726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727 if test $ac_cv_c_bigendian = unknown; then
5728 # See if sys/param.h defines the BYTE_ORDER macro.
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731 #include <sys/types.h>
5732 #include <sys/param.h>
5737 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5738 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5747 if ac_fn_c_try_compile "$LINENO"; then :
5748 # It does; now see whether it defined to BIG_ENDIAN or not.
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 #include <sys/types.h>
5752 #include <sys/param.h>
5757 #if BYTE_ORDER != BIG_ENDIAN
5765 if ac_fn_c_try_compile "$LINENO"; then :
5766 ac_cv_c_bigendian=yes
5768 ac_cv_c_bigendian=no
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 if test $ac_cv_c_bigendian = unknown; then
5775 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5783 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5791 if ac_fn_c_try_compile "$LINENO"; then :
5792 # It does; now see whether it defined to _BIG_ENDIAN or not.
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5808 if ac_fn_c_try_compile "$LINENO"; then :
5809 ac_cv_c_bigendian=yes
5811 ac_cv_c_bigendian=no
5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817 if test $ac_cv_c_bigendian = unknown; then
5818 # Compile a test program.
5819 if test "$cross_compiling" = yes; then :
5820 # Try to guess by grepping values from an object file.
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5823 short int ascii_mm[] =
5824 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5825 short int ascii_ii[] =
5826 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5827 int use_ascii (int i) {
5828 return ascii_mm[i] + ascii_ii[i];
5830 short int ebcdic_ii[] =
5831 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5832 short int ebcdic_mm[] =
5833 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5834 int use_ebcdic (int i) {
5835 return ebcdic_mm[i] + ebcdic_ii[i];
5842 return use_ascii (foo) == use_ebcdic (foo);
5847 if ac_fn_c_try_compile "$LINENO"; then :
5848 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5849 ac_cv_c_bigendian=yes
5851 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5852 if test "$ac_cv_c_bigendian" = unknown; then
5853 ac_cv_c_bigendian=no
5855 # finding both strings is unlikely to happen, but who knows?
5856 ac_cv_c_bigendian=unknown
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5864 $ac_includes_default
5869 /* Are we little or big endian? From Harbison&Steele. */
5873 char c[sizeof (long int)];
5876 return u.c[sizeof (long int) - 1] == 1;
5882 if ac_fn_c_try_run "$LINENO"; then :
5883 ac_cv_c_bigendian=no
5885 ac_cv_c_bigendian=yes
5887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5888 conftest.$ac_objext conftest.beam conftest.$ac_ext
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5894 $as_echo "$ac_cv_c_bigendian" >&6; }
5895 case $ac_cv_c_bigendian in #(
5897 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5903 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5907 as_fn_error $? "unknown endianness
5908 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5912 $as_echo_n "checking for working volatile... " >&6; }
5913 if ${ac_cv_c_volatile+:} false; then :
5914 $as_echo_n "(cached) " >&6
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5924 int * volatile y = (int *) 0;
5930 if ac_fn_c_try_compile "$LINENO"; then :
5931 ac_cv_c_volatile=yes
5935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5938 $as_echo "$ac_cv_c_volatile" >&6; }
5939 if test $ac_cv_c_volatile = no; then
5941 $as_echo "#define volatile /**/" >>confdefs.h
5946 ac_cpp='$CPP $CPPFLAGS'
5947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5951 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5952 # On Suns, sometimes $CPP names a directory.
5953 if test -n "$CPP" && test -d "$CPP"; then
5956 if test -z "$CPP"; then
5957 if ${ac_cv_prog_CPP+:} false; then :
5958 $as_echo_n "(cached) " >&6
5960 # Double quotes because CPP needs to be expanded
5961 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5964 for ac_c_preproc_warn_flag in '' yes
5966 # Use a header file that comes with gcc, so configuring glibc
5967 # with a fresh cross-compiler works.
5968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5969 # <limits.h> exists even on freestanding compilers.
5970 # On the NeXT, cc -E runs the code through the compiler's parser,
5971 # not just through cpp. "Syntax error" is here to catch this case.
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h. */
5975 # include <limits.h>
5977 # include <assert.h>
5981 if ac_fn_c_try_cpp "$LINENO"; then :
5984 # Broken: fails on valid input.
5987 rm -f conftest.err conftest.i conftest.$ac_ext
5989 # OK, works on sane cases. Now check whether nonexistent headers
5990 # can be detected and how.
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5993 #include <ac_nonexistent.h>
5995 if ac_fn_c_try_cpp "$LINENO"; then :
5996 # Broken: success on invalid input.
5999 # Passes both tests.
6003 rm -f conftest.err conftest.i conftest.$ac_ext
6006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6007 rm -f conftest.i conftest.err conftest.$ac_ext
6008 if $ac_preproc_ok; then :
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6021 $as_echo "$CPP" >&6; }
6023 for ac_c_preproc_warn_flag in '' yes
6025 # Use a header file that comes with gcc, so configuring glibc
6026 # with a fresh cross-compiler works.
6027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6028 # <limits.h> exists even on freestanding compilers.
6029 # On the NeXT, cc -E runs the code through the compiler's parser,
6030 # not just through cpp. "Syntax error" is here to catch this case.
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6034 # include <limits.h>
6036 # include <assert.h>
6040 if ac_fn_c_try_cpp "$LINENO"; then :
6043 # Broken: fails on valid input.
6046 rm -f conftest.err conftest.i conftest.$ac_ext
6048 # OK, works on sane cases. Now check whether nonexistent headers
6049 # can be detected and how.
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6052 #include <ac_nonexistent.h>
6054 if ac_fn_c_try_cpp "$LINENO"; then :
6055 # Broken: success on invalid input.
6058 # Passes both tests.
6062 rm -f conftest.err conftest.i conftest.$ac_ext
6065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6066 rm -f conftest.i conftest.err conftest.$ac_ext
6067 if $ac_preproc_ok; then :
6070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6072 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6073 See \`config.log' for more details" "$LINENO" 5; }
6077 ac_cpp='$CPP $CPPFLAGS'
6078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
6087 $as_echo_n "checking for compile/link hardening flags... " >&6; }
6090 # Check whether --with-hardenfile was given.
6091 if test "${with_hardenfile+set}" = set; then :
6092 withval=$with_hardenfile;
6100 SENTINEL_DIR="$PWD" && \
6102 case "$with_hardenfile" in \
6104 scripts/genHardFlags -d "$SENTINEL_DIR" \
6107 scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_hardenfile" \
6110 ) > genHardFlags.i 2> genHardFlags.err
6113 case "$GENHARDFLAG" in
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
6116 $as_echo "in file $GENHARDFLAGFILE" >&6; }
6117 rm genHardFlags.err genHardFlags.i
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6121 $as_echo "failed." >&6; }
6122 as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
6135 $as_echo_n "checking for install dir and man conventions... " >&6; }
6138 # Check whether --with-locfile was given.
6139 if test "${with_locfile+set}" = set; then :
6140 withval=$with_locfile;
6148 SENTINEL_DIR="$PWD" && \
6150 case "$with_locfile" in \
6152 scripts/genLocInfo -d "$SENTINEL_DIR" \
6155 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \
6158 ) > genLocInfo.i 2> genLocInfo.err
6161 case "$GENLOCINFO" in
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
6164 $as_echo "in file $GENLOCINFOFILE" >&6; }
6165 rm genLocInfo.err genLocInfo.i
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6169 $as_echo "failed." >&6; }
6170 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
6174 if test "$CALC_TICKADJ_MS" ; then
6175 WANT_CALC_TICKADJ_MS_TRUE=
6176 WANT_CALC_TICKADJ_MS_FALSE='#'
6178 WANT_CALC_TICKADJ_MS_TRUE='#'
6179 WANT_CALC_TICKADJ_MS_FALSE=
6224 if test -z "$NTPSWEEP_NI" ; then
6225 INSTALL_NTPSWEEP_TRUE=
6226 INSTALL_NTPSWEEP_FALSE='#'
6228 INSTALL_NTPSWEEP_TRUE='#'
6229 INSTALL_NTPSWEEP_FALSE=
6272 if test -z "$UPDATE_LEAP_NI" ; then
6273 INSTALL_UPDATE_LEAP_TRUE=
6274 INSTALL_UPDATE_LEAP_FALSE='#'
6276 INSTALL_UPDATE_LEAP_TRUE='#'
6277 INSTALL_UPDATE_LEAP_FALSE=
6283 if test -n "$ac_tool_prefix"; then
6284 for ac_prog in ar lib "link -lib"
6286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289 $as_echo_n "checking for $ac_word... " >&6; }
6290 if ${ac_cv_prog_AR+:} false; then :
6291 $as_echo_n "(cached) " >&6
6293 if test -n "$AR"; then
6294 ac_cv_prog_AR="$AR" # Let the user override the test.
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6303 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6314 if test -n "$AR"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6316 $as_echo "$AR" >&6; }
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6323 test -n "$AR" && break
6326 if test -z "$AR"; then
6328 for ac_prog in ar lib "link -lib"
6330 # Extract the first word of "$ac_prog", so it can be a program name with args.
6331 set dummy $ac_prog; ac_word=$2
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333 $as_echo_n "checking for $ac_word... " >&6; }
6334 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6335 $as_echo_n "(cached) " >&6
6337 if test -n "$ac_ct_AR"; then
6338 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6347 ac_cv_prog_ac_ct_AR="$ac_prog"
6348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6358 if test -n "$ac_ct_AR"; then
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6360 $as_echo "$ac_ct_AR" >&6; }
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363 $as_echo "no" >&6; }
6367 test -n "$ac_ct_AR" && break
6370 if test "x$ac_ct_AR" = x; then
6373 case $cross_compiling:$ac_tool_warned in
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6377 ac_tool_warned=yes ;;
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6386 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6387 if ${am_cv_ar_interface+:} false; then :
6388 $as_echo_n "(cached) " >&6
6391 ac_cpp='$CPP $CPPFLAGS'
6392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6396 am_cv_ar_interface=ar
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6399 int some_variable = 0;
6401 if ac_fn_c_try_compile "$LINENO"; then :
6402 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6404 (eval $am_ar_try) 2>&5
6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407 test $ac_status = 0; }
6408 if test "$ac_status" -eq 0; then
6409 am_cv_ar_interface=ar
6411 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6413 (eval $am_ar_try) 2>&5
6415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6416 test $ac_status = 0; }
6417 if test "$ac_status" -eq 0; then
6418 am_cv_ar_interface=lib
6420 am_cv_ar_interface=unknown
6423 rm -f conftest.lib libconftest.a
6426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428 ac_cpp='$CPP $CPPFLAGS'
6429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6435 $as_echo "$am_cv_ar_interface" >&6; }
6437 case $am_cv_ar_interface in
6441 # Microsoft lib, so override with the ar-lib wrapper script.
6442 # FIXME: It is wrong to rewrite AR.
6443 # But if we don't then we get into trouble of one sort or another.
6444 # A longer-term fix would be to have automake use am__AR in this case,
6445 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6447 AR="$am_aux_dir/ar-lib $AR"
6450 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6458 # Expose a cross-compilation indicator to makefiles
6459 if test $build != $host; then
6460 NTP_CROSSCOMPILE_TRUE=
6461 NTP_CROSSCOMPILE_FALSE='#'
6463 NTP_CROSSCOMPILE_TRUE='#'
6464 NTP_CROSSCOMPILE_FALSE=
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6470 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6471 if ${ac_cv_path_SED+:} false; then :
6472 $as_echo_n "(cached) " >&6
6474 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6475 for ac_i in 1 2 3 4 5 6 7; do
6476 ac_script="$ac_script$as_nl$ac_script"
6478 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6479 { ac_script=; unset ac_script;}
6480 if test -z "$SED"; then
6481 ac_path_SED_found=false
6482 # Loop through the user's path and test for each of PROGNAME-LIST
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 test -z "$as_dir" && as_dir=.
6488 for ac_prog in sed gsed; do
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6491 as_fn_executable_p "$ac_path_SED" || continue
6492 # Check for GNU ac_path_SED and select it if it is found.
6493 # Check for GNU $ac_path_SED
6494 case `"$ac_path_SED" --version 2>&1` in
6496 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6499 $as_echo_n 0123456789 >"conftest.in"
6502 cat "conftest.in" "conftest.in" >"conftest.tmp"
6503 mv "conftest.tmp" "conftest.in"
6504 cp "conftest.in" "conftest.nl"
6505 $as_echo '' >> "conftest.nl"
6506 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6507 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6508 as_fn_arith $ac_count + 1 && ac_count=$as_val
6509 if test $ac_count -gt ${ac_path_SED_max-0}; then
6510 # Best one so far, save it but keep looking for a better one
6511 ac_cv_path_SED="$ac_path_SED"
6512 ac_path_SED_max=$ac_count
6514 # 10*(2^10) chars as input seems more than enough
6515 test $ac_count -gt 10 && break
6517 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6520 $ac_path_SED_found && break 3
6525 if test -z "$ac_cv_path_SED"; then
6526 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6534 $as_echo "$ac_cv_path_SED" >&6; }
6535 SED="$ac_cv_path_SED"
6538 test -z "$SED" && SED=sed
6539 Xsed="$SED -e 1s/^X//"
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6552 $as_echo_n "checking for fgrep... " >&6; }
6553 if ${ac_cv_path_FGREP+:} false; then :
6554 $as_echo_n "(cached) " >&6
6556 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6557 then ac_cv_path_FGREP="$GREP -F"
6559 if test -z "$FGREP"; then
6560 ac_path_FGREP_found=false
6561 # Loop through the user's path and test for each of PROGNAME-LIST
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6566 test -z "$as_dir" && as_dir=.
6567 for ac_prog in fgrep; do
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6570 as_fn_executable_p "$ac_path_FGREP" || continue
6571 # Check for GNU ac_path_FGREP and select it if it is found.
6572 # Check for GNU $ac_path_FGREP
6573 case `"$ac_path_FGREP" --version 2>&1` in
6575 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6578 $as_echo_n 0123456789 >"conftest.in"
6581 cat "conftest.in" "conftest.in" >"conftest.tmp"
6582 mv "conftest.tmp" "conftest.in"
6583 cp "conftest.in" "conftest.nl"
6584 $as_echo 'FGREP' >> "conftest.nl"
6585 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6586 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6587 as_fn_arith $ac_count + 1 && ac_count=$as_val
6588 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6589 # Best one so far, save it but keep looking for a better one
6590 ac_cv_path_FGREP="$ac_path_FGREP"
6591 ac_path_FGREP_max=$ac_count
6593 # 10*(2^10) chars as input seems more than enough
6594 test $ac_count -gt 10 && break
6596 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6599 $ac_path_FGREP_found && break 3
6604 if test -z "$ac_cv_path_FGREP"; then
6605 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6608 ac_cv_path_FGREP=$FGREP
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6614 $as_echo "$ac_cv_path_FGREP" >&6; }
6615 FGREP="$ac_cv_path_FGREP"
6618 test -z "$GREP" && GREP=grep
6636 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6637 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6638 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6641 $as_echo_n "checking how to print strings... " >&6; }
6642 # Test print first, because it will be a builtin if present.
6643 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6644 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6646 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6649 # Use this function as a fallback that always works.
6650 func_fallback_echo ()
6652 eval 'cat <<_LTECHO_EOF
6656 ECHO='func_fallback_echo'
6659 # func_echo_all arg...
6660 # Invoke $ECHO with all args, space-separated.
6667 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6668 $as_echo "printf" >&6; } ;;
6669 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6670 $as_echo "print -r" >&6; } ;;
6671 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6672 $as_echo "cat" >&6; } ;;
6688 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6689 if test "x$ac_cv_type_pid_t" = xyes; then :
6693 cat >>confdefs.h <<_ACEOF
6699 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6700 if test "x$ac_cv_type_size_t" = xyes; then :
6704 cat >>confdefs.h <<_ACEOF
6705 #define size_t unsigned int
6711 # Check whether --enable-c99-snprintf was given.
6712 if test "${enable_c99_snprintf+set}" = set; then :
6713 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
6715 force_c99_snprintf=no
6719 case "$force_c99_snprintf" in
6721 hw_force_rpl_snprintf=yes
6722 hw_force_rpl_vsnprintf=yes
6730 for ac_header in $ac_header_list
6732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6733 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6736 cat >>confdefs.h <<_ACEOF
6737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6751 $as_echo_n "checking for unsigned long long int... " >&6; }
6752 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6753 $as_echo_n "(cached) " >&6
6755 ac_cv_type_unsigned_long_long_int=yes
6756 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6760 /* For now, do not test the preprocessor; as of 2007 there are too many
6761 implementations with broken preprocessors. Perhaps this can
6762 be revisited in 2012. In the meantime, code should not expect
6763 #if to work with literals wider than 32 bits. */
6764 /* Test literals. */
6765 long long int ll = 9223372036854775807ll;
6766 long long int nll = -9223372036854775807LL;
6767 unsigned long long int ull = 18446744073709551615ULL;
6768 /* Test constant expressions. */
6769 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6771 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6777 /* Test availability of runtime routines for shift and division. */
6778 long long int llmax = 9223372036854775807ll;
6779 unsigned long long int ullmax = 18446744073709551615ull;
6780 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6781 | (llmax / ll) | (llmax % ll)
6782 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6783 | (ullmax / ull) | (ullmax % ull));
6789 if ac_fn_c_try_link "$LINENO"; then :
6792 ac_cv_type_unsigned_long_long_int=no
6794 rm -f core conftest.err conftest.$ac_objext \
6795 conftest$ac_exeext conftest.$ac_ext
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6799 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6800 if test $ac_cv_type_unsigned_long_long_int = yes; then
6802 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6807 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
6808 if test "x$ac_cv_func_vsnprintf" = xyes; then :
6809 hw_cv_func_vsnprintf=yes
6811 hw_cv_func_vsnprintf=no
6814 if test "$hw_cv_func_vsnprintf" = yes; then :
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
6816 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
6817 if ${hw_cv_func_vsnprintf_c99+:} false; then :
6818 $as_echo_n "(cached) " >&6
6820 if test "$cross_compiling" = yes; then :
6821 hw_cv_func_vsnprintf_c99=no
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6829 static int testprintf(char *buf, size_t size, const char *format, ...)
6833 va_start(ap, format);
6834 result = vsnprintf(buf, size, format, ap);
6842 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
6843 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
6844 buf[0] != 'T' || buf[3] != '\0')
6850 if ac_fn_c_try_run "$LINENO"; then :
6851 hw_cv_func_vsnprintf_c99=yes
6853 hw_cv_func_vsnprintf_c99=no
6855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6856 conftest.$ac_objext conftest.beam conftest.$ac_ext
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
6861 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
6863 hw_cv_func_vsnprintf_c99=no
6866 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
6869 $as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
6870 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
6871 hw_use_rpl_vsnprintf=yes
6873 hw_use_rpl_vsnprintf=no
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
6876 $as_echo "$hw_use_rpl_vsnprintf" >&6; }
6877 if test "$hw_use_rpl_vsnprintf" = yes; then :
6879 $as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
6881 if test ${hw_nodef_vsnprintf=no} = no; then :
6883 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
6886 for ac_header in inttypes.h locale.h stddef.h stdint.h
6888 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6889 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6890 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6891 cat >>confdefs.h <<_ACEOF
6892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6899 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
6901 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
6903 cat >>confdefs.h <<_ACEOF
6904 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
6909 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
6911 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
6913 cat >>confdefs.h <<_ACEOF
6914 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6922 $as_echo_n "checking for long double... " >&6; }
6923 if ${ac_cv_type_long_double+:} false; then :
6924 $as_echo_n "(cached) " >&6
6926 if test "$GCC" = yes; then
6927 ac_cv_type_long_double=yes
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931 /* The Stardent Vistra knows sizeof (long double), but does
6933 long double foo = 0.0L;
6937 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6938 sizeof (double) <= sizeof (long double))];
6940 return test_array [0];
6946 if ac_fn_c_try_compile "$LINENO"; then :
6947 ac_cv_type_long_double=yes
6949 ac_cv_type_long_double=no
6951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
6955 $as_echo "$ac_cv_type_long_double" >&6; }
6956 if test $ac_cv_type_long_double = yes; then
6958 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6965 $as_echo_n "checking for long long int... " >&6; }
6966 if ${ac_cv_type_long_long_int+:} false; then :
6967 $as_echo_n "(cached) " >&6
6969 ac_cv_type_long_long_int=yes
6970 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6971 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6972 if test $ac_cv_type_long_long_int = yes; then
6973 if test "$cross_compiling" = yes; then :
6976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977 /* end confdefs.h. */
6981 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6982 # define LLONG_MAX (HALF - 1 + HALF)
6987 long long int n = 1;
6991 long long int m = n << i;
6994 if (LLONG_MAX / 2 < m)
7002 if ac_fn_c_try_run "$LINENO"; then :
7005 ac_cv_type_long_long_int=no
7007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7008 conftest.$ac_objext conftest.beam conftest.$ac_ext
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7015 $as_echo "$ac_cv_type_long_long_int" >&6; }
7016 if test $ac_cv_type_long_long_int = yes; then
7018 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7024 $as_echo_n "checking for unsigned long long int... " >&6; }
7025 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7026 $as_echo_n "(cached) " >&6
7028 ac_cv_type_unsigned_long_long_int=yes
7029 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7033 /* For now, do not test the preprocessor; as of 2007 there are too many
7034 implementations with broken preprocessors. Perhaps this can
7035 be revisited in 2012. In the meantime, code should not expect
7036 #if to work with literals wider than 32 bits. */
7037 /* Test literals. */
7038 long long int ll = 9223372036854775807ll;
7039 long long int nll = -9223372036854775807LL;
7040 unsigned long long int ull = 18446744073709551615ULL;
7041 /* Test constant expressions. */
7042 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7044 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7050 /* Test availability of runtime routines for shift and division. */
7051 long long int llmax = 9223372036854775807ll;
7052 unsigned long long int ullmax = 18446744073709551615ull;
7053 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7054 | (llmax / ll) | (llmax % ll)
7055 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7056 | (ullmax / ull) | (ullmax % ull));
7062 if ac_fn_c_try_link "$LINENO"; then :
7065 ac_cv_type_unsigned_long_long_int=no
7067 rm -f core conftest.err conftest.$ac_objext \
7068 conftest$ac_exeext conftest.$ac_ext
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7072 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7073 if test $ac_cv_type_unsigned_long_long_int = yes; then
7075 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7079 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7080 if test "x$ac_cv_type_size_t" = xyes; then :
7084 cat >>confdefs.h <<_ACEOF
7085 #define size_t unsigned int
7092 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
7093 if test "x$ac_cv_type_intmax_t" = xyes; then :
7095 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
7098 test $ac_cv_type_long_long_int = yes \
7099 && ac_type='long long int' \
7100 || ac_type='long int'
7102 cat >>confdefs.h <<_ACEOF
7103 #define intmax_t $ac_type
7111 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
7112 if test "x$ac_cv_type_uintmax_t" = xyes; then :
7114 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7117 test $ac_cv_type_unsigned_long_long_int = yes \
7118 && ac_type='unsigned long long int' \
7119 || ac_type='unsigned long int'
7121 cat >>confdefs.h <<_ACEOF
7122 #define uintmax_t $ac_type
7129 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
7130 if test "x$ac_cv_type_uintptr_t" = xyes; then :
7132 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
7135 for ac_type in 'unsigned int' 'unsigned long int' \
7136 'unsigned long long int'; do
7137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138 /* end confdefs.h. */
7139 $ac_includes_default
7143 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
7145 return test_array [0];
7151 if ac_fn_c_try_compile "$LINENO"; then :
7153 cat >>confdefs.h <<_ACEOF
7154 #define uintptr_t $ac_type
7159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7160 test -z "$ac_type" && break
7165 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7166 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
7168 cat >>confdefs.h <<_ACEOF
7169 #define HAVE_PTRDIFF_T 1
7175 for ac_func in localeconv
7177 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
7178 if test "x$ac_cv_func_localeconv" = xyes; then :
7179 cat >>confdefs.h <<_ACEOF
7180 #define HAVE_LOCALECONV 1
7187 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7189 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7190 if ${ac_cv_c_const+:} false; then :
7191 $as_echo_n "(cached) " >&6
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7201 /* Ultrix mips cc rejects this sort of thing. */
7202 typedef int charset[2];
7203 const charset cs = { 0, 0 };
7204 /* SunOS 4.1.1 cc rejects this. */
7205 char const *const *pcpcc;
7207 /* NEC SVR4.0.2 mips cc rejects this. */
7208 struct point {int x, y;};
7209 static struct point const zero = {0,0};
7210 /* AIX XL C 1.02.0.0 rejects this.
7211 It does not let you subtract one const X* pointer from another in
7212 an arm of an if-expression whose if-part is not a constant
7214 const char *g = "string";
7215 pcpcc = &g + (g ? g-g : 0);
7216 /* HPUX 7.0 cc rejects these. */
7218 ppc = (char**) pcpcc;
7219 pcpcc = (char const *const *) ppc;
7220 { /* SCO 3.2v4 cc rejects this sort of thing. */
7223 char const *s = 0 ? (char *) 0 : (char const *) 0;
7228 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7230 const int *foo = &x[0];
7233 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7234 typedef const int *iptr;
7238 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7239 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7240 struct s { int j; const int *ap[3]; } bx;
7241 struct s *b = &bx; b->j = 5;
7243 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7247 return !cs[0] && !zero.x;
7254 if ac_fn_c_try_compile "$LINENO"; then :
7259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7262 $as_echo "$ac_cv_c_const" >&6; }
7263 if test $ac_cv_c_const = no; then
7265 $as_echo "#define const /**/" >>confdefs.h
7272 case " $LIBOBJS " in
7273 *" snprintf.$ac_objext "* ) ;;
7274 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7278 _hw_cv_func_xprintf_replace_done=yes
7284 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
7285 if test "x$ac_cv_func_snprintf" = xyes; then :
7286 hw_cv_func_snprintf=yes
7288 hw_cv_func_snprintf=no
7291 if test "$hw_cv_func_snprintf" = yes; then :
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
7293 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
7294 if ${hw_cv_func_snprintf_c99+:} false; then :
7295 $as_echo_n "(cached) " >&6
7297 if test "$cross_compiling" = yes; then :
7298 hw_cv_func_snprintf_c99=no
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7307 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
7308 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
7309 buf[0] != 'T' || buf[3] != '\0')
7315 if ac_fn_c_try_run "$LINENO"; then :
7316 hw_cv_func_snprintf_c99=yes
7318 hw_cv_func_snprintf_c99=no
7320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7321 conftest.$ac_objext conftest.beam conftest.$ac_ext
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
7326 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
7328 hw_cv_func_snprintf_c99=no
7331 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
7334 $as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
7335 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
7336 hw_use_rpl_snprintf=yes
7338 hw_use_rpl_snprintf=no
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
7341 $as_echo "$hw_use_rpl_snprintf" >&6; }
7342 if test "$hw_use_rpl_snprintf" = yes; then :
7344 $as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
7346 if test ${hw_nodef_snprintf=no} = no; then :
7348 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
7352 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7354 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7355 if ${ac_cv_c_const+:} false; then :
7356 $as_echo_n "(cached) " >&6
7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h. */
7366 /* Ultrix mips cc rejects this sort of thing. */
7367 typedef int charset[2];
7368 const charset cs = { 0, 0 };
7369 /* SunOS 4.1.1 cc rejects this. */
7370 char const *const *pcpcc;
7372 /* NEC SVR4.0.2 mips cc rejects this. */
7373 struct point {int x, y;};
7374 static struct point const zero = {0,0};
7375 /* AIX XL C 1.02.0.0 rejects this.
7376 It does not let you subtract one const X* pointer from another in
7377 an arm of an if-expression whose if-part is not a constant
7379 const char *g = "string";
7380 pcpcc = &g + (g ? g-g : 0);
7381 /* HPUX 7.0 cc rejects these. */
7383 ppc = (char**) pcpcc;
7384 pcpcc = (char const *const *) ppc;
7385 { /* SCO 3.2v4 cc rejects this sort of thing. */
7388 char const *s = 0 ? (char *) 0 : (char const *) 0;
7393 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7395 const int *foo = &x[0];
7398 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7399 typedef const int *iptr;
7403 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7404 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7405 struct s { int j; const int *ap[3]; } bx;
7406 struct s *b = &bx; b->j = 5;
7408 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7412 return !cs[0] && !zero.x;
7419 if ac_fn_c_try_compile "$LINENO"; then :
7424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7427 $as_echo "$ac_cv_c_const" >&6; }
7428 if test $ac_cv_c_const = no; then
7430 $as_echo "#define const /**/" >>confdefs.h
7437 case " $LIBOBJS " in
7438 *" snprintf.$ac_objext "* ) ;;
7439 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7443 _hw_cv_func_xprintf_replace_done=yes
7452 # HMS: Save $LIBS and empty it.
7453 # any LIBS we add here should go in to LDADD_LIBNTP
7460 # [Bug 2332] because we need to know if we are using GNU ld...
7463 # Check whether --with-gnu-ld was given.
7464 if test "${with_gnu_ld+set}" = set; then :
7465 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7471 if test yes = "$GCC"; then
7472 # Check if gcc -print-prog-name=ld gives a path.
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7474 $as_echo_n "checking for ld used by $CC... " >&6; }
7477 # gcc leaves a trailing carriage return, which upsets mingw
7478 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7480 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7483 # Accept absolute paths.
7485 re_direlt='/[^/][^/]*/\.\./'
7486 # Canonicalize the pathname of ld
7487 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7488 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7489 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7491 test -z "$LD" && LD=$ac_prog
7494 # If it fails, then pretend we aren't using GCC.
7498 # If it is relative, then search for the first ld in PATH.
7502 elif test yes = "$with_gnu_ld"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7504 $as_echo_n "checking for GNU ld... " >&6; }
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7507 $as_echo_n "checking for non-GNU ld... " >&6; }
7509 if ${lt_cv_path_LD+:} false; then :
7510 $as_echo_n "(cached) " >&6
7512 if test -z "$LD"; then
7513 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7514 for ac_dir in $PATH; do
7516 test -z "$ac_dir" && ac_dir=.
7517 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7518 lt_cv_path_LD=$ac_dir/$ac_prog
7519 # Check to see if the program is GNU ld. I'd rather use --version,
7520 # but apparently some variants of GNU ld only accept -v.
7521 # Break only if it was the GNU/non-GNU ld that we prefer.
7522 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7523 *GNU* | *'with BFD'*)
7524 test no != "$with_gnu_ld" && break
7527 test yes != "$with_gnu_ld" && break
7534 lt_cv_path_LD=$LD # Let the user override the test with a path.
7539 if test -n "$LD"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7541 $as_echo "$LD" >&6; }
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7546 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7548 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7549 if ${lt_cv_prog_gnu_ld+:} false; then :
7550 $as_echo_n "(cached) " >&6
7552 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7553 case `$LD -v 2>&1 </dev/null` in
7554 *GNU* | *'with BFD'*)
7555 lt_cv_prog_gnu_ld=yes
7558 lt_cv_prog_gnu_ld=no
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7563 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7564 with_gnu_ld=$lt_cv_prog_gnu_ld
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
7577 $as_echo_n "checking for directory path separator... " >&6; }
7578 if ${ntp_cv_dir_sep+:} false; then :
7579 $as_echo_n "(cached) " >&6
7582 case "$ntp_cv_dir_sep" in
7585 *djgpp | *mingw32* | *emx*)
7586 ntp_cv_dir_sep="'\\'"
7589 ntp_cv_dir_sep="'/'"
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
7597 $as_echo "$ntp_cv_dir_sep" >&6; }
7599 cat >>confdefs.h <<_ACEOF
7600 #define DIR_SEP $ntp_cv_dir_sep
7605 NTP_ORIG_LIBS="$LIBS"
7607 # Check whether --with-lineeditlibs was given.
7608 if test "${with_lineeditlibs+set}" = set; then :
7609 withval=$with_lineeditlibs; use_lineeditlibs="$withval"
7611 use_lineeditlibs="edit,editline"
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
7616 $as_echo_n "checking line editing libraries... " >&6; }
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
7618 $as_echo "$use_lineeditlibs" >&6; }
7619 case "$use_lineeditlibs" in
7624 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
7625 for term_lib in "" termcap curses ncurses; do
7628 TRY_LIB="-l$lineedit_lib"
7631 TRY_LIB="-l$lineedit_lib -l$term_lib"
7634 LIBS="$NTP_ORIG_LIBS $TRY_LIB"
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
7636 $as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7640 /* Override any GCC internal prototype to avoid an error.
7641 Use char because int might match the return type of a GCC
7642 builtin and then its argument prototype would still apply. */
7655 if ac_fn_c_try_link "$LINENO"; then :
7656 ntp_lib_lineedit="$TRY_LIB"
7658 rm -f core conftest.err conftest.$ac_objext \
7659 conftest$ac_exeext conftest.$ac_ext
7660 case "$ntp_lib_lineedit" in
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7668 $as_echo "yes" >&6; }
7673 # do not try el_gets without a terminal library
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
7677 $as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7681 /* Override any GCC internal prototype to avoid an error.
7682 Use char because int might match the return type of a GCC
7683 builtin and then its argument prototype would still apply. */
7696 if ac_fn_c_try_link "$LINENO"; then :
7697 ntp_lib_lineedit="$TRY_LIB"
7699 rm -f core conftest.err conftest.$ac_objext \
7700 conftest$ac_exeext conftest.$ac_ext
7701 case "$ntp_lib_lineedit" in
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704 $as_echo "no" >&6; }
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7708 $as_echo "yes" >&6; }
7711 esac # $ntp_lib_lineedit
7714 case "$ntp_lib_lineedit" in
7722 LIBS="$NTP_ORIG_LIBS"
7724 esac # $use_lineeditlibs
7726 case "$ntp_lib_lineedit" in
7728 ntp_lib_lineedit="no"
7733 EDITLINE_LIBS="$ntp_lib_lineedit"
7736 esac # $ntp_lib_lineedit
7738 case "$ntp_lib_lineedit" in
7742 for ac_header in readline.h readline/readline.h histedit.h
7744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7745 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7746 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7747 cat >>confdefs.h <<_ACEOF
7748 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7755 for ac_header in history.h readline/history.h
7757 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7758 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7759 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7760 cat >>confdefs.h <<_ACEOF
7761 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7769 case "$ac_cv_header_histedit_h" in
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
7772 $as_echo_n "checking number of arguments to el_init()... " >&6; }
7773 if ${ntp_cv_el_init_args+:} false; then :
7774 $as_echo_n "(cached) " >&6
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7780 #include <histedit.h>
7786 el_init("conftest", stdin, stdout, stderr);
7793 if ac_fn_c_try_compile "$LINENO"; then :
7794 ntp_cv_el_init_args=4
7796 ntp_cv_el_init_args=3
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
7803 $as_echo "$ntp_cv_el_init_args" >&6; }
7805 cat >>confdefs.h <<_ACEOF
7806 #define EL_INIT_ARGS $ntp_cv_el_init_args
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
7812 $as_echo_n "checking whether readline supports history... " >&6; }
7814 ntp_lib_lineedit_history="no"
7816 LIBS="$ORIG_LIBS $ntp_lib_lineedit"
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7820 /* Override any GCC internal prototype to avoid an error.
7821 Use char because int might match the return type of a GCC
7822 builtin and then its argument prototype would still apply. */
7826 char add_history ();
7830 return add_history ();
7835 if ac_fn_c_try_link "$LINENO"; then :
7836 ntp_lib_lineedit_history="yes"
7838 rm -f core conftest.err conftest.$ac_objext \
7839 conftest$ac_exeext conftest.$ac_ext
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
7843 $as_echo "$ntp_lib_lineedit_history" >&6; }
7845 case "$ntp_lib_lineedit_history" in
7848 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
7851 esac # $ntp_lib_lineedit
7852 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
7853 { ORIG_LIBS=; unset ORIG_LIBS;}
7854 { TRY_LIB=; unset TRY_LIB;}
7855 { use_lineeditlibs=; unset use_lineeditlibs;}
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
7865 $as_echo_n "checking for library containing cos... " >&6; }
7866 if ${ac_cv_search_cos+:} false; then :
7867 $as_echo_n "(cached) " >&6
7869 ac_func_search_save_LIBS=$LIBS
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7873 /* Override any GCC internal prototype to avoid an error.
7874 Use char because int might match the return type of a GCC
7875 builtin and then its argument prototype would still apply. */
7888 for ac_lib in '' m; do
7889 if test -z "$ac_lib"; then
7890 ac_res="none required"
7893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7895 if ac_fn_c_try_link "$LINENO"; then :
7896 ac_cv_search_cos=$ac_res
7898 rm -f core conftest.err conftest.$ac_objext \
7900 if ${ac_cv_search_cos+:} false; then :
7904 if ${ac_cv_search_cos+:} false; then :
7910 LIBS=$ac_func_search_save_LIBS
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
7913 $as_echo "$ac_cv_search_cos" >&6; }
7914 ac_res=$ac_cv_search_cos
7915 if test "$ac_res" != no; then :
7916 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7924 { _libs=; unset _libs;}
7927 for ac_header in vfork.h
7929 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7930 if test "x$ac_cv_header_vfork_h" = xyes; then :
7931 cat >>confdefs.h <<_ACEOF
7932 #define HAVE_VFORK_H 1
7939 for ac_func in fork vfork
7941 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7942 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7943 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7944 cat >>confdefs.h <<_ACEOF
7945 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7951 if test "x$ac_cv_func_fork" = xyes; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7953 $as_echo_n "checking for working fork... " >&6; }
7954 if ${ac_cv_func_fork_works+:} false; then :
7955 $as_echo_n "(cached) " >&6
7957 if test "$cross_compiling" = yes; then :
7958 ac_cv_func_fork_works=cross
7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7962 $ac_includes_default
7967 /* By Ruediger Kuhlmann. */
7974 if ac_fn_c_try_run "$LINENO"; then :
7975 ac_cv_func_fork_works=yes
7977 ac_cv_func_fork_works=no
7979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7980 conftest.$ac_objext conftest.beam conftest.$ac_ext
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7985 $as_echo "$ac_cv_func_fork_works" >&6; }
7988 ac_cv_func_fork_works=$ac_cv_func_fork
7990 if test "x$ac_cv_func_fork_works" = xcross; then
7992 *-*-amigaos* | *-*-msdosdjgpp*)
7993 # Override, as these systems have only a dummy fork() stub
7994 ac_cv_func_fork_works=no
7997 ac_cv_func_fork_works=yes
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8001 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8003 ac_cv_func_vfork_works=$ac_cv_func_vfork
8004 if test "x$ac_cv_func_vfork" = xyes; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8006 $as_echo_n "checking for working vfork... " >&6; }
8007 if ${ac_cv_func_vfork_works+:} false; then :
8008 $as_echo_n "(cached) " >&6
8010 if test "$cross_compiling" = yes; then :
8011 ac_cv_func_vfork_works=cross
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8015 /* Thanks to Paul Eggert for this test. */
8016 $ac_includes_default
8017 #include <sys/wait.h>
8021 /* On some sparc systems, changes by the child to local and incoming
8022 argument registers are propagated back to the parent. The compiler
8023 is told about this with #include <vfork.h>, but some compilers
8024 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8025 static variable whose address is put into a register that is
8026 clobbered by the vfork. */
8029 sparc_address_test (int arg)
8031 sparc_address_test (arg) int arg;
8052 pid_t parent = getpid ();
8055 sparc_address_test (0);
8060 /* Here is another test for sparc vfork register problems. This
8061 test uses lots of local variables, at least as many local
8062 variables as main has allocated so far including compiler
8063 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8064 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8065 reuse the register of parent for one of the local variables,
8066 since it will think that parent can't possibly be used any more
8067 in this routine. Assigning to the local variable will thus
8068 munge parent in the parent process. */
8070 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8071 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8072 /* Convince the compiler that p..p7 are live; otherwise, it might
8073 use the same hardware register for all 8 local variables. */
8074 if (p != p1 || p != p2 || p != p3 || p != p4
8075 || p != p5 || p != p6 || p != p7)
8078 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8079 from child file descriptors. If the child closes a descriptor
8080 before it execs or exits, this munges the parent's descriptor
8081 as well. Test for this by closing stdout in the child. */
8082 _exit(close(fileno(stdout)) != 0);
8087 while (wait(&status) != child)
8090 /* Was there some problem with vforking? */
8093 /* Did the child fail? (This shouldn't happen.) */
8096 /* Did the vfork/compiler bug occur? */
8097 || parent != getpid()
8099 /* Did the file descriptor bug occur? */
8100 || fstat(fileno(stdout), &st) != 0
8105 if ac_fn_c_try_run "$LINENO"; then :
8106 ac_cv_func_vfork_works=yes
8108 ac_cv_func_vfork_works=no
8110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8111 conftest.$ac_objext conftest.beam conftest.$ac_ext
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8116 $as_echo "$ac_cv_func_vfork_works" >&6; }
8119 if test "x$ac_cv_func_fork_works" = xcross; then
8120 ac_cv_func_vfork_works=$ac_cv_func_vfork
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8122 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8125 if test "x$ac_cv_func_vfork_works" = xyes; then
8127 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8131 $as_echo "#define vfork fork" >>confdefs.h
8134 if test "x$ac_cv_func_fork_works" = xyes; then
8136 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8140 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8141 # for constant arguments. Useless!
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8143 $as_echo_n "checking for working alloca.h... " >&6; }
8144 if ${ac_cv_working_alloca_h+:} false; then :
8145 $as_echo_n "(cached) " >&6
8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8153 char *p = (char *) alloca (2 * sizeof (int));
8159 if ac_fn_c_try_link "$LINENO"; then :
8160 ac_cv_working_alloca_h=yes
8162 ac_cv_working_alloca_h=no
8164 rm -f core conftest.err conftest.$ac_objext \
8165 conftest$ac_exeext conftest.$ac_ext
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8168 $as_echo "$ac_cv_working_alloca_h" >&6; }
8169 if test $ac_cv_working_alloca_h = yes; then
8171 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8176 $as_echo_n "checking for alloca... " >&6; }
8177 if ${ac_cv_func_alloca_works+:} false; then :
8178 $as_echo_n "(cached) " >&6
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8183 # define alloca __builtin_alloca
8186 # include <malloc.h>
8187 # define alloca _alloca
8189 # ifdef HAVE_ALLOCA_H
8190 # include <alloca.h>
8195 # ifndef alloca /* predefined by HP cc +Olibcalls */
8196 void *alloca (size_t);
8206 char *p = (char *) alloca (1);
8212 if ac_fn_c_try_link "$LINENO"; then :
8213 ac_cv_func_alloca_works=yes
8215 ac_cv_func_alloca_works=no
8217 rm -f core conftest.err conftest.$ac_objext \
8218 conftest$ac_exeext conftest.$ac_ext
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8221 $as_echo "$ac_cv_func_alloca_works" >&6; }
8223 if test $ac_cv_func_alloca_works = yes; then
8225 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8228 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8229 # that cause trouble. Some versions do not even contain alloca or
8230 # contain a buggy version. If you still want to use their alloca,
8231 # use ar to extract alloca.o from them instead of compiling alloca.c.
8233 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8235 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8239 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8240 if ${ac_cv_os_cray+:} false; then :
8241 $as_echo_n "(cached) " >&6
8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h. */
8245 #if defined CRAY && ! defined CRAY2
8252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8253 $EGREP "webecray" >/dev/null 2>&1; then :
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8262 $as_echo "$ac_cv_os_cray" >&6; }
8263 if test $ac_cv_os_cray = yes; then
8264 for ac_func in _getb67 GETB67 getb67; do
8265 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8266 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8267 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8269 cat >>confdefs.h <<_ACEOF
8270 #define CRAY_STACKSEG_END $ac_func
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8280 $as_echo_n "checking stack direction for C alloca... " >&6; }
8281 if ${ac_cv_c_stack_direction+:} false; then :
8282 $as_echo_n "(cached) " >&6
8284 if test "$cross_compiling" = yes; then :
8285 ac_cv_c_stack_direction=0
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8289 $ac_includes_default
8291 find_stack_direction (int *addr, int depth)
8296 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8297 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8302 main (int argc, char **argv)
8304 return find_stack_direction (0, argc + !argv + 20) < 0;
8307 if ac_fn_c_try_run "$LINENO"; then :
8308 ac_cv_c_stack_direction=1
8310 ac_cv_c_stack_direction=-1
8312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8313 conftest.$ac_objext conftest.beam conftest.$ac_ext
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8318 $as_echo "$ac_cv_c_stack_direction" >&6; }
8319 cat >>confdefs.h <<_ACEOF
8320 #define STACK_DIRECTION $ac_cv_c_stack_direction
8326 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8327 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
8333 cat >>confdefs.h <<_ACEOF
8334 #define HAVE_DECL_STRERROR_R $ac_have_decl
8337 for ac_func in strerror_r
8339 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8340 if test "x$ac_cv_func_strerror_r" = xyes; then :
8341 cat >>confdefs.h <<_ACEOF
8342 #define HAVE_STRERROR_R 1
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8349 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8350 if ${ac_cv_func_strerror_r_char_p+:} false; then :
8351 $as_echo_n "(cached) " >&6
8354 ac_cv_func_strerror_r_char_p=no
8355 if test $ac_cv_have_decl_strerror_r = yes; then
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8358 $ac_includes_default
8364 char x = *strerror_r (0, buf, sizeof buf);
8365 char *p = strerror_r (0, buf, sizeof buf);
8372 if ac_fn_c_try_compile "$LINENO"; then :
8373 ac_cv_func_strerror_r_char_p=yes
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377 # strerror_r is not declared. Choose between
8378 # systems that have relatively inaccessible declarations for the
8379 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8380 # former has a strerror_r that returns char*, while the latter
8381 # has a strerror_r that returns `int'.
8382 # This test should segfault on the DEC system.
8383 if test "$cross_compiling" = yes; then :
8386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387 /* end confdefs.h. */
8388 $ac_includes_default
8389 extern char *strerror_r ();
8394 char x = *strerror_r (0, buf, sizeof buf);
8395 return ! isalpha (x);
8400 if ac_fn_c_try_run "$LINENO"; then :
8401 ac_cv_func_strerror_r_char_p=yes
8403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8404 conftest.$ac_objext conftest.beam conftest.$ac_ext
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8411 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8412 if test $ac_cv_func_strerror_r_char_p = yes; then
8414 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8419 ac_busted_vpath_in_make=no
8421 *-*-irix6.1*) # 64 bit only
8424 *-*-irix6*) # 6.2 (and later?)
8425 ac_busted_vpath_in_make=yes
8428 ac_busted_vpath_in_make=yes
8431 ac_busted_vpath_in_make=yes
8435 case "$ac_busted_vpath_in_make$srcdir" in
8438 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
8440 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
8448 # Was *-*-aix[[4-9]]*
8449 # XXX only verified thru AIX6. But...
8450 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
8451 # that this support would be in 5.3, removed in 6, and added back.
8453 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
8454 # (returning ENOSYS). I didn't check 4.2. If, in the future,
8455 # IBM pulls its thumbs out long enough to implement clock_settime,
8456 # this conditional will need to change. Maybe use AC_TRY_RUN
8457 # instead to try to set the time to itself and check errno.
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
8461 $as_echo_n "checking for library containing clock_gettime... " >&6; }
8462 if ${ac_cv_search_clock_gettime+:} false; then :
8463 $as_echo_n "(cached) " >&6
8465 ac_func_search_save_LIBS=$LIBS
8466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h. */
8469 /* Override any GCC internal prototype to avoid an error.
8470 Use char because int might match the return type of a GCC
8471 builtin and then its argument prototype would still apply. */
8475 char clock_gettime ();
8479 return clock_gettime ();
8484 for ac_lib in '' rt; do
8485 if test -z "$ac_lib"; then
8486 ac_res="none required"
8489 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8491 if ac_fn_c_try_link "$LINENO"; then :
8492 ac_cv_search_clock_gettime=$ac_res
8494 rm -f core conftest.err conftest.$ac_objext \
8496 if ${ac_cv_search_clock_gettime+:} false; then :
8500 if ${ac_cv_search_clock_gettime+:} false; then :
8503 ac_cv_search_clock_gettime=no
8506 LIBS=$ac_func_search_save_LIBS
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
8509 $as_echo "$ac_cv_search_clock_gettime" >&6; }
8510 ac_res=$ac_cv_search_clock_gettime
8511 if test "$ac_res" != no; then :
8512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8513 case "$ac_cv_search_clock_gettime" in
8516 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
8521 for ac_func in clock_getres clock_gettime clock_settime
8523 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8524 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8525 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8526 cat >>confdefs.h <<_ACEOF
8527 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8536 for ac_func in getclock stime timegm strlcpy strlcat
8538 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8539 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8540 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8541 cat >>confdefs.h <<_ACEOF
8542 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
8553 $as_echo_n "checking for library containing snprintb... " >&6; }
8554 if ${ac_cv_search_snprintb+:} false; then :
8555 $as_echo_n "(cached) " >&6
8557 ac_func_search_save_LIBS=$LIBS
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8561 /* Override any GCC internal prototype to avoid an error.
8562 Use char because int might match the return type of a GCC
8563 builtin and then its argument prototype would still apply. */
8576 for ac_lib in '' util; do
8577 if test -z "$ac_lib"; then
8578 ac_res="none required"
8581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8583 if ac_fn_c_try_link "$LINENO"; then :
8584 ac_cv_search_snprintb=$ac_res
8586 rm -f core conftest.err conftest.$ac_objext \
8588 if ${ac_cv_search_snprintb+:} false; then :
8592 if ${ac_cv_search_snprintb+:} false; then :
8595 ac_cv_search_snprintb=no
8598 LIBS=$ac_func_search_save_LIBS
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
8601 $as_echo "$ac_cv_search_snprintb" >&6; }
8602 ac_res=$ac_cv_search_snprintb
8603 if test "$ac_res" != no; then :
8604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8605 case "$ac_cv_search_snprintb" in
8608 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
8611 $as_echo "#define USE_SNPRINTB 1" >>confdefs.h
8617 for ac_header in errno.h sys/socket.h sys/types.h time.h
8619 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8620 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8621 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8622 cat >>confdefs.h <<_ACEOF
8623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8630 for ac_header in net/if.h
8632 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
8633 #ifdef HAVE_SYS_SOCKET_H
8634 # include <sys/socket.h>
8638 if test "x$ac_cv_header_net_if_h" = xyes; then :
8639 cat >>confdefs.h <<_ACEOF
8640 #define HAVE_NET_IF_H 1
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
8650 $as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
8651 if ${ntp_cv_predecl_mpinfou+:} false; then :
8652 $as_echo_n "(cached) " >&6
8655 np_cv_predecl_mpinfou=no
8656 case "$ac_cv_header_net_if_h" in
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8661 typedef union mpinfou {
8662 struct pdk_mpinfo *pdkptr;
8663 struct mpinfo *pikptr;
8665 #ifdef HAVE_SYS_SOCKET_H
8666 # include <sys/socket.h>
8680 if ac_fn_c_try_compile "$LINENO"; then :
8682 ntp_cv_predecl_mpinfou=yes
8683 ac_cv_header_net_if_h=yes
8687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
8693 $as_echo "$ntp_cv_predecl_mpinfou" >&6; }
8694 case "$ntp_cv_predecl_mpinfou" in
8696 cat >>confdefs.h <<_ACEOF
8697 #ifndef MPINFOU_PREDECLARED
8698 # define MPINFOU_PREDECLARED
8699 typedef union mpinfou {
8700 struct pdk_mpinfo *pdkptr;
8701 struct mpinfo *pikptr;
8711 for ac_header in linux/if_addr.h
8713 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
8714 #ifdef HAVE_SYS_SOCKET_H
8715 # include <sys/socket.h>
8719 if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
8720 cat >>confdefs.h <<_ACEOF
8721 #define HAVE_LINUX_IF_ADDR_H 1
8729 $as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h
8733 for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
8735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8736 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8737 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8738 cat >>confdefs.h <<_ACEOF
8739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8746 # sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
8747 for ac_header in sys/sysctl.h
8749 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
8750 #if defined HAVE_SYS_PARAM_H
8751 # include <sys/param.h>
8755 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
8756 cat >>confdefs.h <<_ACEOF
8757 #define HAVE_SYS_SYSCTL_H 1
8764 for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
8766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8767 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8768 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8769 cat >>confdefs.h <<_ACEOF
8770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8778 for ac_header in resolv.h
8780 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
8781 #ifdef HAVE_SYS_TYPES_H
8782 # include <sys/types.h>
8784 #ifdef HAVE_NETINET_IN_H
8785 # include <netinet/in.h>
8787 #ifdef HAVE_ARPA_NAMESER_H
8788 # include <arpa/nameser.h>
8792 if test "x$ac_cv_header_resolv_h" = xyes; then :
8793 cat >>confdefs.h <<_ACEOF
8794 #define HAVE_RESOLV_H 1
8802 for ac_header in net/if_var.h
8804 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
8805 #if HAVE_SYS_TYPES_H
8806 # include <sys/types.h>
8808 #ifdef HAVE_SYS_SOCKET_H
8809 # include <sys/socket.h>
8811 #ifdef HAVE_NETINET_IN_H
8812 # include <netinet/in.h>
8814 #ifdef HAVE_NET_IF_H
8815 # include <net/if.h>
8819 if test "x$ac_cv_header_net_if_var_h" = xyes; then :
8820 cat >>confdefs.h <<_ACEOF
8821 #define HAVE_NET_IF_VAR_H 1
8829 for ac_header in netinet/ip.h netinet/in_var.h
8831 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8832 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8833 #ifdef HAVE_SYS_TYPES_H
8834 # include <sys/types.h>
8836 #ifdef HAVE_SYS_SOCKET_H
8837 # include <sys/socket.h>
8839 #ifdef HAVE_NET_IF_H
8840 # include <net/if.h>
8842 #ifdef HAVE_NETINET_IN_H
8843 # include <netinet/in.h>
8845 #ifdef HAVE_NET_IF_VAR_H
8846 # include <net/if_var.h>
8848 #ifdef HAVE_NETINET_IN_SYSTM_H
8849 # include <netinet/in_systm.h>
8853 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8854 cat >>confdefs.h <<_ACEOF
8855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8863 # HMS: Do we need to check for -lsocket before or after these tests?
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
8865 $as_echo_n "checking for library containing inet_pton... " >&6; }
8866 if ${ac_cv_search_inet_pton+:} false; then :
8867 $as_echo_n "(cached) " >&6
8869 ac_func_search_save_LIBS=$LIBS
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8873 /* Override any GCC internal prototype to avoid an error.
8874 Use char because int might match the return type of a GCC
8875 builtin and then its argument prototype would still apply. */
8883 return inet_pton ();
8888 for ac_lib in '' nsl; do
8889 if test -z "$ac_lib"; then
8890 ac_res="none required"
8893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8895 if ac_fn_c_try_link "$LINENO"; then :
8896 ac_cv_search_inet_pton=$ac_res
8898 rm -f core conftest.err conftest.$ac_objext \
8900 if ${ac_cv_search_inet_pton+:} false; then :
8904 if ${ac_cv_search_inet_pton+:} false; then :
8907 ac_cv_search_inet_pton=no
8910 LIBS=$ac_func_search_save_LIBS
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
8913 $as_echo "$ac_cv_search_inet_pton" >&6; }
8914 ac_res=$ac_cv_search_inet_pton
8915 if test "$ac_res" != no; then :
8916 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8917 case "$ac_cv_search_inet_pton" in
8920 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
8926 $as_echo_n "checking for library containing inet_ntop... " >&6; }
8927 if ${ac_cv_search_inet_ntop+:} false; then :
8928 $as_echo_n "(cached) " >&6
8930 ac_func_search_save_LIBS=$LIBS
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8934 /* Override any GCC internal prototype to avoid an error.
8935 Use char because int might match the return type of a GCC
8936 builtin and then its argument prototype would still apply. */
8944 return inet_ntop ();
8949 for ac_lib in '' resolv; do
8950 if test -z "$ac_lib"; then
8951 ac_res="none required"
8954 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
8956 if ac_fn_c_try_link "$LINENO"; then :
8957 ac_cv_search_inet_ntop=$ac_res
8959 rm -f core conftest.err conftest.$ac_objext \
8961 if ${ac_cv_search_inet_ntop+:} false; then :
8965 if ${ac_cv_search_inet_ntop+:} false; then :
8968 ac_cv_search_inet_ntop=no
8971 LIBS=$ac_func_search_save_LIBS
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
8974 $as_echo "$ac_cv_search_inet_ntop" >&6; }
8975 ac_res=$ac_cv_search_inet_ntop
8976 if test "$ac_res" != no; then :
8977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8978 case "$ac_cv_search_inet_ntop" in
8981 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
8987 # [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to
8988 # avoid keying on the OS name: If we find socket functions in
8989 # libsocket, next try for them in libxnet without libsocket, if found,
8990 # list both. If we simply tested libxnet first, we would find the
8991 # functions there and never add libsocket. See also [Bug 660]
8992 # http://bugs.ntp.org/show_bug.cgi?id=660#c9
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
8995 $as_echo_n "checking for library containing setsockopt... " >&6; }
8996 if ${ac_cv_search_setsockopt+:} false; then :
8997 $as_echo_n "(cached) " >&6
8999 ac_func_search_save_LIBS=$LIBS
9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9003 /* Override any GCC internal prototype to avoid an error.
9004 Use char because int might match the return type of a GCC
9005 builtin and then its argument prototype would still apply. */
9013 return setsockopt ();
9018 for ac_lib in '' socket; do
9019 if test -z "$ac_lib"; then
9020 ac_res="none required"
9023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9025 if ac_fn_c_try_link "$LINENO"; then :
9026 ac_cv_search_setsockopt=$ac_res
9028 rm -f core conftest.err conftest.$ac_objext \
9030 if ${ac_cv_search_setsockopt+:} false; then :
9034 if ${ac_cv_search_setsockopt+:} false; then :
9037 ac_cv_search_setsockopt=no
9040 LIBS=$ac_func_search_save_LIBS
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
9043 $as_echo "$ac_cv_search_setsockopt" >&6; }
9044 ac_res=$ac_cv_search_setsockopt
9045 if test "$ac_res" != no; then :
9046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9047 case "$ac_cv_search_setsockopt" in
9050 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
9055 case "$ac_cv_search_setsockopt" in
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
9059 $as_echo_n "checking for library containing getsockopt... " >&6; }
9060 if ${ac_cv_search_getsockopt+:} false; then :
9061 $as_echo_n "(cached) " >&6
9063 ac_func_search_save_LIBS=$LIBS
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9067 /* Override any GCC internal prototype to avoid an error.
9068 Use char because int might match the return type of a GCC
9069 builtin and then its argument prototype would still apply. */
9077 return getsockopt ();
9082 for ac_lib in '' xnet; do
9083 if test -z "$ac_lib"; then
9084 ac_res="none required"
9087 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9089 if ac_fn_c_try_link "$LINENO"; then :
9090 ac_cv_search_getsockopt=$ac_res
9092 rm -f core conftest.err conftest.$ac_objext \
9094 if ${ac_cv_search_getsockopt+:} false; then :
9098 if ${ac_cv_search_getsockopt+:} false; then :
9101 ac_cv_search_getsockopt=no
9104 LIBS=$ac_func_search_save_LIBS
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
9107 $as_echo "$ac_cv_search_getsockopt" >&6; }
9108 ac_res=$ac_cv_search_getsockopt
9109 if test "$ac_res" != no; then :
9110 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9111 case "$ac_cv_search_getsockopt" in
9114 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
9119 # XXX Possible trouble here - reading the comments above and looking at the
9120 # code below I wonder if we'll add -lxnet when we don't need it.
9121 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
9122 # there when it is not needed?
9123 case "$ac_cv_search_getsockopt" in
9125 LIBS="-lxnet -lsocket $saved_LIBS"
9127 *) LIBS="-lsocket $saved_LIBS"
9132 { saved_LIBS=; unset saved_LIBS;}
9134 # Bug 2427 - look for recvmsg here.
9135 for ac_func in recvmsg
9137 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
9138 if test "x$ac_cv_func_recvmsg" = xyes; then :
9139 cat >>confdefs.h <<_ACEOF
9140 #define HAVE_RECVMSG 1
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9148 $as_echo_n "checking for inline... " >&6; }
9149 if ${ac_cv_c_inline+:} false; then :
9150 $as_echo_n "(cached) " >&6
9153 for ac_kw in inline __inline__ __inline; do
9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h. */
9158 static $ac_kw foo_t static_foo () {return 0; }
9159 $ac_kw foo_t foo () {return 0; }
9163 if ac_fn_c_try_compile "$LINENO"; then :
9164 ac_cv_c_inline=$ac_kw
9166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9167 test "$ac_cv_c_inline" != no && break
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9172 $as_echo "$ac_cv_c_inline" >&6; }
9174 case $ac_cv_c_inline in
9177 case $ac_cv_c_inline in
9179 *) ac_val=$ac_cv_c_inline;;
9181 cat >>confdefs.h <<_ACEOF
9183 #define inline $ac_val
9190 case "$ac_cv_c_inline" in
9195 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9201 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9202 if ${ac_cv_header_time+:} false; then :
9203 $as_echo_n "(cached) " >&6
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 #include <sys/types.h>
9208 #include <sys/time.h>
9214 if ((struct tm *) 0)
9220 if ac_fn_c_try_compile "$LINENO"; then :
9221 ac_cv_header_time=yes
9223 ac_cv_header_time=no
9225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9228 $as_echo "$ac_cv_header_time" >&6; }
9229 if test $ac_cv_header_time = yes; then
9231 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9235 # The cast to long int works around a bug in the HP C Compiler
9236 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9237 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9238 # This bug is HP SR number 8606223364.
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
9240 $as_echo_n "checking size of time_t... " >&6; }
9241 if ${ac_cv_sizeof_time_t+:} false; then :
9242 $as_echo_n "(cached) " >&6
9244 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
9247 if test "$ac_cv_type_time_t" = yes; then
9248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9250 as_fn_error 77 "cannot compute sizeof (time_t)
9251 See \`config.log' for more details" "$LINENO" 5; }
9253 ac_cv_sizeof_time_t=0
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
9259 $as_echo "$ac_cv_sizeof_time_t" >&6; }
9263 cat >>confdefs.h <<_ACEOF
9264 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
9269 $as_echo_n "checking whether char is unsigned... " >&6; }
9270 if ${ac_cv_c_char_unsigned+:} false; then :
9271 $as_echo_n "(cached) " >&6
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9275 $ac_includes_default
9279 static int test_array [1 - 2 * !(((char) -1) < 0)];
9281 return test_array [0];
9287 if ac_fn_c_try_compile "$LINENO"; then :
9288 ac_cv_c_char_unsigned=no
9290 ac_cv_c_char_unsigned=yes
9292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
9295 $as_echo "$ac_cv_c_char_unsigned" >&6; }
9296 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
9297 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
9300 # The cast to long int works around a bug in the HP C Compiler
9301 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9302 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9303 # This bug is HP SR number 8606223364.
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
9305 $as_echo_n "checking size of signed char... " >&6; }
9306 if ${ac_cv_sizeof_signed_char+:} false; then :
9307 $as_echo_n "(cached) " >&6
9309 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
9312 if test "$ac_cv_type_signed_char" = yes; then
9313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9315 as_fn_error 77 "cannot compute sizeof (signed char)
9316 See \`config.log' for more details" "$LINENO" 5; }
9318 ac_cv_sizeof_signed_char=0
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
9324 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
9328 cat >>confdefs.h <<_ACEOF
9329 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
9333 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
9334 if test "x$ac_cv_type_s_char" = xyes; then :
9336 cat >>confdefs.h <<_ACEOF
9337 #define HAVE_S_CHAR 1
9342 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
9343 if test "x$ac_cv_type_long_long" = xyes; then :
9345 cat >>confdefs.h <<_ACEOF
9346 #define HAVE_LONG_LONG 1
9352 # The cast to long int works around a bug in the HP C Compiler
9353 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9354 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9355 # This bug is HP SR number 8606223364.
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
9357 $as_echo_n "checking size of short... " >&6; }
9358 if ${ac_cv_sizeof_short+:} false; then :
9359 $as_echo_n "(cached) " >&6
9361 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
9364 if test "$ac_cv_type_short" = yes; then
9365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9367 as_fn_error 77 "cannot compute sizeof (short)
9368 See \`config.log' for more details" "$LINENO" 5; }
9370 ac_cv_sizeof_short=0
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
9376 $as_echo "$ac_cv_sizeof_short" >&6; }
9380 cat >>confdefs.h <<_ACEOF
9381 #define SIZEOF_SHORT $ac_cv_sizeof_short
9385 # The cast to long int works around a bug in the HP C Compiler
9386 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9387 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9388 # This bug is HP SR number 8606223364.
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
9390 $as_echo_n "checking size of int... " >&6; }
9391 if ${ac_cv_sizeof_int+:} false; then :
9392 $as_echo_n "(cached) " >&6
9394 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
9397 if test "$ac_cv_type_int" = yes; then
9398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9400 as_fn_error 77 "cannot compute sizeof (int)
9401 See \`config.log' for more details" "$LINENO" 5; }
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
9409 $as_echo "$ac_cv_sizeof_int" >&6; }
9413 cat >>confdefs.h <<_ACEOF
9414 #define SIZEOF_INT $ac_cv_sizeof_int
9418 # The cast to long int works around a bug in the HP C Compiler
9419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9421 # This bug is HP SR number 8606223364.
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
9423 $as_echo_n "checking size of long... " >&6; }
9424 if ${ac_cv_sizeof_long+:} false; then :
9425 $as_echo_n "(cached) " >&6
9427 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
9430 if test "$ac_cv_type_long" = yes; then
9431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9433 as_fn_error 77 "cannot compute sizeof (long)
9434 See \`config.log' for more details" "$LINENO" 5; }
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
9442 $as_echo "$ac_cv_sizeof_long" >&6; }
9446 cat >>confdefs.h <<_ACEOF
9447 #define SIZEOF_LONG $ac_cv_sizeof_long
9452 case "$ac_cv_type_long_long" in
9456 # The cast to long int works around a bug in the HP C Compiler
9457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9458 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9459 # This bug is HP SR number 8606223364.
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
9461 $as_echo_n "checking size of long long... " >&6; }
9462 if ${ac_cv_sizeof_long_long+:} false; then :
9463 $as_echo_n "(cached) " >&6
9465 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
9468 if test "$ac_cv_type_long_long" = yes; then
9469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9471 as_fn_error 77 "cannot compute sizeof (long long)
9472 See \`config.log' for more details" "$LINENO" 5; }
9474 ac_cv_sizeof_long_long=0
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
9480 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9484 cat >>confdefs.h <<_ACEOF
9485 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9492 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
9494 # We have a typedef for s_char. Might as well believe it...
9497 # We have signed chars, can't say 'signed char', no s_char typedef.
9499 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
9503 # We have signed chars, can say 'signed char', no s_char typedef.
9505 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
9509 # We have unsigned chars, can't say 'signed char', no s_char typedef.
9510 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
9513 # We have unsigned chars, can say 'signed char', no s_char typedef.
9515 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9521 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9522 if ${ac_cv_type_uid_t+:} false; then :
9523 $as_echo_n "(cached) " >&6
9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9527 #include <sys/types.h>
9530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9531 $EGREP "uid_t" >/dev/null 2>&1; then :
9532 ac_cv_type_uid_t=yes
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9540 $as_echo "$ac_cv_type_uid_t" >&6; }
9541 if test $ac_cv_type_uid_t = no; then
9543 $as_echo "#define uid_t int" >>confdefs.h
9546 $as_echo "#define gid_t int" >>confdefs.h
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
9556 $as_echo_n "checking if we're including debugging code... " >&6; }
9557 # Check whether --enable-debugging was given.
9558 if test "${enable_debugging+set}" = set; then :
9559 enableval=$enable_debugging; ntp_ok=$enableval
9568 $as_echo "#define DEBUG 1" >>confdefs.h
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
9572 $as_echo "$ntp_ok" >&6; }
9576 # check if we can compile with pthreads
9577 for ac_header in semaphore.h
9579 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
9580 if test "x$ac_cv_header_semaphore_h" = xyes; then :
9581 cat >>confdefs.h <<_ACEOF
9582 #define HAVE_SEMAPHORE_H 1
9589 for ac_func in socketpair
9591 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
9592 if test "x$ac_cv_func_socketpair" = xyes; then :
9593 cat >>confdefs.h <<_ACEOF
9594 #define HAVE_SOCKETPAIR 1
9600 # Check whether --enable-thread-support was given.
9601 if test "${enable_thread_support+set}" = set; then :
9602 enableval=$enable_thread_support;
9604 enable_thread_support=yes
9609 case "$enable_thread_support" in
9612 ol_found_pthreads=no
9617 ac_cpp='$CPP $CPPFLAGS'
9618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9622 # OpenLDAP --with-threads
9624 # Check whether --with-threads was given.
9625 if test "${with_threads+set}" = set; then :
9626 withval=$with_threads;
9628 for ol_val in auto nt posix mach pth lwp yes no manual ; do
9629 if test "$withval" = "$ol_val" ; then
9633 if test "$ol_arg" = "invalid" ; then
9634 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
9636 ol_with_threads="$ol_arg"
9639 ol_with_threads="auto"
9641 # end --with-threads
9644 case "$ol_with_threads$host" in
9645 auto*-*-solaris2.[0-6])
9653 *-*-aix*) if test -z "$CC" ; then
9654 case "$ol_with_threads" in
9655 auto | yes | posix) ol_aix_threads=yes ;;
9661 if test $ol_aix_threads = yes ; then
9662 if test -z "${CC}" ; then
9663 for ac_prog in cc_r xlc_r cc
9665 # Extract the first word of "$ac_prog", so it can be a program name with args.
9666 set dummy $ac_prog; ac_word=$2
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9668 $as_echo_n "checking for $ac_word... " >&6; }
9669 if ${ac_cv_prog_CC+:} false; then :
9670 $as_echo_n "(cached) " >&6
9672 if test -n "$CC"; then
9673 ac_cv_prog_CC="$CC" # Let the user override the test.
9675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9679 test -z "$as_dir" && as_dir=.
9680 for ac_exec_ext in '' $ac_executable_extensions; do
9681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9682 ac_cv_prog_CC="$ac_prog"
9683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9693 if test -n "$CC"; then
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9695 $as_echo "$CC" >&6; }
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9698 $as_echo "no" >&6; }
9702 test -n "$CC" && break
9706 if test "$CC" = cc ; then
9707 if test $ol_with_threads != auto ; then
9708 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
9711 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
9717 case ${CC} in cc_r | xlc_r)
9718 ol_with_threads=posix
9719 ol_cv_pthread_create=yes
9725 # OpenLDAP --with-yielding_select
9727 # Check whether --with-yielding_select was given.
9728 if test "${with_yielding_select+set}" = set; then :
9729 withval=$with_yielding_select;
9731 for ol_val in auto yes no manual ; do
9732 if test "$withval" = "$ol_val" ; then
9736 if test "$ol_arg" = "invalid" ; then
9737 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
9739 ol_with_yielding_select="$ol_arg"
9742 ol_with_yielding_select="auto"
9744 # end --with-yielding_select
9747 case $ol_with_threads in auto | yes | nt)
9750 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
9751 if test "x$ac_cv_func__beginthread" = xyes; then :
9756 if test $ac_cv_func__beginthread = yes ; then
9758 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
9760 ol_cv_nt_threads=yes
9764 if test "$ol_cv_nt_threads" = yes ; then
9766 ol_with_threads=found
9767 ol_with_yielding_select=yes
9770 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
9773 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
9777 if test $ol_with_threads = nt ; then
9778 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
9783 case $ol_with_threads in auto | yes | posix)
9785 for ac_header in pthread.h
9787 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9788 if test "x$ac_cv_header_pthread_h" = xyes; then :
9789 cat >>confdefs.h <<_ACEOF
9790 #define HAVE_PTHREAD_H 1
9798 if test $ac_cv_header_pthread_h = yes ; then
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
9800 $as_echo_n "checking POSIX thread version... " >&6; }
9801 if ${ol_cv_pthread_version+:} false; then :
9802 $as_echo_n "(cached) " >&6
9805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9806 /* end confdefs.h. */
9808 # include <pthread.h>
9814 int i = PTHREAD_CREATE_JOINABLE;
9820 if ac_fn_c_try_compile "$LINENO"; then :
9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h. */
9824 #include <pthread.h>
9827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9828 $EGREP "pthread_detach" >/dev/null 2>&1; then :
9829 ol_cv_pthread_version=10
9831 ol_cv_pthread_version=8
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9840 # include <pthread.h>
9841 # ifdef PTHREAD_CREATE_UNDETACHED
9846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9847 $EGREP "draft7" >/dev/null 2>&1; then :
9848 ol_cv_pthread_version=7
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9853 #include <pthread.h>
9856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9857 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
9858 ol_cv_pthread_version=6
9861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862 /* end confdefs.h. */
9864 # include <pthread.h>
9865 #ifdef PTHREAD_MUTEX_INITIALIZER
9870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9871 $EGREP "draft5" >/dev/null 2>&1; then :
9872 ol_cv_pthread_version=5
9874 ol_cv_pthread_version=4
9885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
9889 $as_echo "$ol_cv_pthread_version" >&6; }
9892 if test $ol_cv_pthread_version != 0 ; then
9894 cat >>confdefs.h <<_ACEOF
9895 #define HAVE_PTHREADS $ol_cv_pthread_version
9899 as_fn_error $? "unknown pthread version" "$LINENO" 5
9902 # consider threads found
9903 ol_with_threads=found
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
9907 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
9908 if ${ol_cv_header_linux_threads+:} false; then :
9909 $as_echo_n "(cached) " >&6
9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h. */
9913 #include <pthread.h>
9915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9916 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
9917 ol_cv_header_linux_threads=yes
9919 ol_cv_header_linux_threads=no
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
9926 $as_echo "$ol_cv_header_linux_threads" >&6; }
9927 if test $ol_cv_header_linux_threads = yes; then
9929 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
9935 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
9936 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
9937 $as_echo_n "(cached) " >&6
9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940 /* end confdefs.h. */
9941 #include <pthread.h>
9942 #ifdef _POSIX_THREAD_IS_GNU_PTH
9947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9948 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
9949 ol_cv_header_gnu_pth_pthread_h=yes
9951 ol_cv_header_gnu_pth_pthread_h=no
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
9958 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
9961 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
9962 for ac_header in sched.h
9964 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
9965 if test "x$ac_cv_header_sched_h" = xyes; then :
9966 cat >>confdefs.h <<_ACEOF
9967 #define HAVE_SCHED_H 1
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
9978 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
9979 if ${ol_cv_pthread_create+:} false; then :
9980 $as_echo_n "(cached) " >&6
9983 if test "$cross_compiling" = yes; then :
9984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985 /* end confdefs.h. */
9987 /* pthread test headers */
9988 #include <pthread.h>
9989 #if HAVE_PTHREADS < 7
9993 #define NULL (void*)0
9996 static void *task(p)
9999 return (void *) (p == NULL);
10006 /* pthread test function */
10007 #ifndef PTHREAD_CREATE_DETACHED
10008 #define PTHREAD_CREATE_DETACHED 1
10012 int detach = PTHREAD_CREATE_DETACHED;
10014 #if HAVE_PTHREADS > 4
10015 /* Final pthreads */
10016 pthread_attr_t attr;
10018 status = pthread_attr_init(&attr);
10019 if( status ) return status;
10021 #if HAVE_PTHREADS < 7
10022 status = pthread_attr_setdetachstate(&attr, &detach);
10023 if( status < 0 ) status = errno;
10025 status = pthread_attr_setdetachstate(&attr, detach);
10027 if( status ) return status;
10028 status = pthread_create( &t, &attr, task, NULL );
10029 #if HAVE_PTHREADS < 7
10030 if( status < 0 ) status = errno;
10032 if( status ) return status;
10034 /* Draft 4 pthreads */
10035 status = pthread_create( &t, pthread_attr_default, task, NULL );
10036 if( status ) return errno;
10038 /* give thread a chance to complete */
10039 /* it should remain joinable and hence detachable */
10042 status = pthread_detach( &t );
10043 if( status ) return errno;
10046 #ifdef HAVE_LINUX_THREADS
10047 pthread_kill_other_threads_np();
10056 if ac_fn_c_try_link "$LINENO"; then :
10057 ol_cv_pthread_create=yes
10059 ol_cv_pthread_create=no
10061 rm -f core conftest.err conftest.$ac_objext \
10062 conftest$ac_exeext conftest.$ac_ext
10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065 /* end confdefs.h. */
10068 /* pthread test headers */
10069 #include <pthread.h>
10070 #if HAVE_PTHREADS < 7
10074 #define NULL (void*)0
10077 static void *task(p)
10080 return (void *) (p == NULL);
10084 int main(argc, argv)
10089 /* pthread test function */
10090 #ifndef PTHREAD_CREATE_DETACHED
10091 #define PTHREAD_CREATE_DETACHED 1
10095 int detach = PTHREAD_CREATE_DETACHED;
10097 #if HAVE_PTHREADS > 4
10098 /* Final pthreads */
10099 pthread_attr_t attr;
10101 status = pthread_attr_init(&attr);
10102 if( status ) return status;
10104 #if HAVE_PTHREADS < 7
10105 status = pthread_attr_setdetachstate(&attr, &detach);
10106 if( status < 0 ) status = errno;
10108 status = pthread_attr_setdetachstate(&attr, detach);
10110 if( status ) return status;
10111 status = pthread_create( &t, &attr, task, NULL );
10112 #if HAVE_PTHREADS < 7
10113 if( status < 0 ) status = errno;
10115 if( status ) return status;
10117 /* Draft 4 pthreads */
10118 status = pthread_create( &t, pthread_attr_default, task, NULL );
10119 if( status ) return errno;
10121 /* give thread a chance to complete */
10122 /* it should remain joinable and hence detachable */
10125 status = pthread_detach( &t );
10126 if( status ) return errno;
10129 #ifdef HAVE_LINUX_THREADS
10130 pthread_kill_other_threads_np();
10138 if ac_fn_c_try_run "$LINENO"; then :
10139 ol_cv_pthread_create=yes
10141 ol_cv_pthread_create=no
10143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10144 conftest.$ac_objext conftest.beam conftest.$ac_ext
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
10149 $as_echo "$ol_cv_pthread_create" >&6; }
10151 if test $ol_cv_pthread_create != no ; then
10152 ol_link_threads=posix
10153 ol_link_pthreads=""
10156 # Pthread try link: -kthread (ol_cv_pthread_kthread)
10157 if test "$ol_link_threads" = no ; then
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
10160 $as_echo_n "checking for pthread link with -kthread... " >&6; }
10161 if ${ol_cv_pthread_kthread+:} false; then :
10162 $as_echo_n "(cached) " >&6
10167 LIBS="-kthread $LIBS"
10169 if test "$cross_compiling" = yes; then :
10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171 /* end confdefs.h. */
10173 /* pthread test headers */
10174 #include <pthread.h>
10175 #if HAVE_PTHREADS < 7
10179 #define NULL (void*)0
10182 static void *task(p)
10185 return (void *) (p == NULL);
10192 /* pthread test function */
10193 #ifndef PTHREAD_CREATE_DETACHED
10194 #define PTHREAD_CREATE_DETACHED 1
10198 int detach = PTHREAD_CREATE_DETACHED;
10200 #if HAVE_PTHREADS > 4
10201 /* Final pthreads */
10202 pthread_attr_t attr;
10204 status = pthread_attr_init(&attr);
10205 if( status ) return status;
10207 #if HAVE_PTHREADS < 7
10208 status = pthread_attr_setdetachstate(&attr, &detach);
10209 if( status < 0 ) status = errno;
10211 status = pthread_attr_setdetachstate(&attr, detach);
10213 if( status ) return status;
10214 status = pthread_create( &t, &attr, task, NULL );
10215 #if HAVE_PTHREADS < 7
10216 if( status < 0 ) status = errno;
10218 if( status ) return status;
10220 /* Draft 4 pthreads */
10221 status = pthread_create( &t, pthread_attr_default, task, NULL );
10222 if( status ) return errno;
10224 /* give thread a chance to complete */
10225 /* it should remain joinable and hence detachable */
10228 status = pthread_detach( &t );
10229 if( status ) return errno;
10232 #ifdef HAVE_LINUX_THREADS
10233 pthread_kill_other_threads_np();
10242 if ac_fn_c_try_link "$LINENO"; then :
10243 ol_cv_pthread_kthread=yes
10245 ol_cv_pthread_kthread=no
10247 rm -f core conftest.err conftest.$ac_objext \
10248 conftest$ac_exeext conftest.$ac_ext
10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10254 /* pthread test headers */
10255 #include <pthread.h>
10256 #if HAVE_PTHREADS < 7
10260 #define NULL (void*)0
10263 static void *task(p)
10266 return (void *) (p == NULL);
10270 int main(argc, argv)
10275 /* pthread test function */
10276 #ifndef PTHREAD_CREATE_DETACHED
10277 #define PTHREAD_CREATE_DETACHED 1
10281 int detach = PTHREAD_CREATE_DETACHED;
10283 #if HAVE_PTHREADS > 4
10284 /* Final pthreads */
10285 pthread_attr_t attr;
10287 status = pthread_attr_init(&attr);
10288 if( status ) return status;
10290 #if HAVE_PTHREADS < 7
10291 status = pthread_attr_setdetachstate(&attr, &detach);
10292 if( status < 0 ) status = errno;
10294 status = pthread_attr_setdetachstate(&attr, detach);
10296 if( status ) return status;
10297 status = pthread_create( &t, &attr, task, NULL );
10298 #if HAVE_PTHREADS < 7
10299 if( status < 0 ) status = errno;
10301 if( status ) return status;
10303 /* Draft 4 pthreads */
10304 status = pthread_create( &t, pthread_attr_default, task, NULL );
10305 if( status ) return errno;
10307 /* give thread a chance to complete */
10308 /* it should remain joinable and hence detachable */
10311 status = pthread_detach( &t );
10312 if( status ) return errno;
10315 #ifdef HAVE_LINUX_THREADS
10316 pthread_kill_other_threads_np();
10324 if ac_fn_c_try_run "$LINENO"; then :
10325 ol_cv_pthread_kthread=yes
10327 ol_cv_pthread_kthread=no
10329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10330 conftest.$ac_objext conftest.beam conftest.$ac_ext
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
10339 $as_echo "$ol_cv_pthread_kthread" >&6; }
10341 if test $ol_cv_pthread_kthread = yes ; then
10342 ol_link_pthreads="-kthread"
10343 ol_link_threads=posix
10347 # Pthread try link: -pthread (ol_cv_pthread_pthread)
10348 if test "$ol_link_threads" = no ; then
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
10351 $as_echo_n "checking for pthread link with -pthread... " >&6; }
10352 if ${ol_cv_pthread_pthread+:} false; then :
10353 $as_echo_n "(cached) " >&6
10358 LIBS="-pthread $LIBS"
10360 if test "$cross_compiling" = yes; then :
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10364 /* pthread test headers */
10365 #include <pthread.h>
10366 #if HAVE_PTHREADS < 7
10370 #define NULL (void*)0
10373 static void *task(p)
10376 return (void *) (p == NULL);
10383 /* pthread test function */
10384 #ifndef PTHREAD_CREATE_DETACHED
10385 #define PTHREAD_CREATE_DETACHED 1
10389 int detach = PTHREAD_CREATE_DETACHED;
10391 #if HAVE_PTHREADS > 4
10392 /* Final pthreads */
10393 pthread_attr_t attr;
10395 status = pthread_attr_init(&attr);
10396 if( status ) return status;
10398 #if HAVE_PTHREADS < 7
10399 status = pthread_attr_setdetachstate(&attr, &detach);
10400 if( status < 0 ) status = errno;
10402 status = pthread_attr_setdetachstate(&attr, detach);
10404 if( status ) return status;
10405 status = pthread_create( &t, &attr, task, NULL );
10406 #if HAVE_PTHREADS < 7
10407 if( status < 0 ) status = errno;
10409 if( status ) return status;
10411 /* Draft 4 pthreads */
10412 status = pthread_create( &t, pthread_attr_default, task, NULL );
10413 if( status ) return errno;
10415 /* give thread a chance to complete */
10416 /* it should remain joinable and hence detachable */
10419 status = pthread_detach( &t );
10420 if( status ) return errno;
10423 #ifdef HAVE_LINUX_THREADS
10424 pthread_kill_other_threads_np();
10433 if ac_fn_c_try_link "$LINENO"; then :
10434 ol_cv_pthread_pthread=yes
10436 ol_cv_pthread_pthread=no
10438 rm -f core conftest.err conftest.$ac_objext \
10439 conftest$ac_exeext conftest.$ac_ext
10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h. */
10445 /* pthread test headers */
10446 #include <pthread.h>
10447 #if HAVE_PTHREADS < 7
10451 #define NULL (void*)0
10454 static void *task(p)
10457 return (void *) (p == NULL);
10461 int main(argc, argv)
10466 /* pthread test function */
10467 #ifndef PTHREAD_CREATE_DETACHED
10468 #define PTHREAD_CREATE_DETACHED 1
10472 int detach = PTHREAD_CREATE_DETACHED;
10474 #if HAVE_PTHREADS > 4
10475 /* Final pthreads */
10476 pthread_attr_t attr;
10478 status = pthread_attr_init(&attr);
10479 if( status ) return status;
10481 #if HAVE_PTHREADS < 7
10482 status = pthread_attr_setdetachstate(&attr, &detach);
10483 if( status < 0 ) status = errno;
10485 status = pthread_attr_setdetachstate(&attr, detach);
10487 if( status ) return status;
10488 status = pthread_create( &t, &attr, task, NULL );
10489 #if HAVE_PTHREADS < 7
10490 if( status < 0 ) status = errno;
10492 if( status ) return status;
10494 /* Draft 4 pthreads */
10495 status = pthread_create( &t, pthread_attr_default, task, NULL );
10496 if( status ) return errno;
10498 /* give thread a chance to complete */
10499 /* it should remain joinable and hence detachable */
10502 status = pthread_detach( &t );
10503 if( status ) return errno;
10506 #ifdef HAVE_LINUX_THREADS
10507 pthread_kill_other_threads_np();
10515 if ac_fn_c_try_run "$LINENO"; then :
10516 ol_cv_pthread_pthread=yes
10518 ol_cv_pthread_pthread=no
10520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10521 conftest.$ac_objext conftest.beam conftest.$ac_ext
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
10530 $as_echo "$ol_cv_pthread_pthread" >&6; }
10532 if test $ol_cv_pthread_pthread = yes ; then
10533 ol_link_pthreads="-pthread"
10534 ol_link_threads=posix
10538 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
10539 if test "$ol_link_threads" = no ; then
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
10542 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
10543 if ${ol_cv_pthread_pthreads+:} false; then :
10544 $as_echo_n "(cached) " >&6
10549 LIBS="-pthreads $LIBS"
10551 if test "$cross_compiling" = yes; then :
10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h. */
10555 /* pthread test headers */
10556 #include <pthread.h>
10557 #if HAVE_PTHREADS < 7
10561 #define NULL (void*)0
10564 static void *task(p)
10567 return (void *) (p == NULL);
10574 /* pthread test function */
10575 #ifndef PTHREAD_CREATE_DETACHED
10576 #define PTHREAD_CREATE_DETACHED 1
10580 int detach = PTHREAD_CREATE_DETACHED;
10582 #if HAVE_PTHREADS > 4
10583 /* Final pthreads */
10584 pthread_attr_t attr;
10586 status = pthread_attr_init(&attr);
10587 if( status ) return status;
10589 #if HAVE_PTHREADS < 7
10590 status = pthread_attr_setdetachstate(&attr, &detach);
10591 if( status < 0 ) status = errno;
10593 status = pthread_attr_setdetachstate(&attr, detach);
10595 if( status ) return status;
10596 status = pthread_create( &t, &attr, task, NULL );
10597 #if HAVE_PTHREADS < 7
10598 if( status < 0 ) status = errno;
10600 if( status ) return status;
10602 /* Draft 4 pthreads */
10603 status = pthread_create( &t, pthread_attr_default, task, NULL );
10604 if( status ) return errno;
10606 /* give thread a chance to complete */
10607 /* it should remain joinable and hence detachable */
10610 status = pthread_detach( &t );
10611 if( status ) return errno;
10614 #ifdef HAVE_LINUX_THREADS
10615 pthread_kill_other_threads_np();
10624 if ac_fn_c_try_link "$LINENO"; then :
10625 ol_cv_pthread_pthreads=yes
10627 ol_cv_pthread_pthreads=no
10629 rm -f core conftest.err conftest.$ac_objext \
10630 conftest$ac_exeext conftest.$ac_ext
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10636 /* pthread test headers */
10637 #include <pthread.h>
10638 #if HAVE_PTHREADS < 7
10642 #define NULL (void*)0
10645 static void *task(p)
10648 return (void *) (p == NULL);
10652 int main(argc, argv)
10657 /* pthread test function */
10658 #ifndef PTHREAD_CREATE_DETACHED
10659 #define PTHREAD_CREATE_DETACHED 1
10663 int detach = PTHREAD_CREATE_DETACHED;
10665 #if HAVE_PTHREADS > 4
10666 /* Final pthreads */
10667 pthread_attr_t attr;
10669 status = pthread_attr_init(&attr);
10670 if( status ) return status;
10672 #if HAVE_PTHREADS < 7
10673 status = pthread_attr_setdetachstate(&attr, &detach);
10674 if( status < 0 ) status = errno;
10676 status = pthread_attr_setdetachstate(&attr, detach);
10678 if( status ) return status;
10679 status = pthread_create( &t, &attr, task, NULL );
10680 #if HAVE_PTHREADS < 7
10681 if( status < 0 ) status = errno;
10683 if( status ) return status;
10685 /* Draft 4 pthreads */
10686 status = pthread_create( &t, pthread_attr_default, task, NULL );
10687 if( status ) return errno;
10689 /* give thread a chance to complete */
10690 /* it should remain joinable and hence detachable */
10693 status = pthread_detach( &t );
10694 if( status ) return errno;
10697 #ifdef HAVE_LINUX_THREADS
10698 pthread_kill_other_threads_np();
10706 if ac_fn_c_try_run "$LINENO"; then :
10707 ol_cv_pthread_pthreads=yes
10709 ol_cv_pthread_pthreads=no
10711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10712 conftest.$ac_objext conftest.beam conftest.$ac_ext
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
10721 $as_echo "$ol_cv_pthread_pthreads" >&6; }
10723 if test $ol_cv_pthread_pthreads = yes ; then
10724 ol_link_pthreads="-pthreads"
10725 ol_link_threads=posix
10729 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
10730 if test "$ol_link_threads" = no ; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
10733 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
10734 if ${ol_cv_pthread_mthreads+:} false; then :
10735 $as_echo_n "(cached) " >&6
10740 LIBS="-mthreads $LIBS"
10742 if test "$cross_compiling" = yes; then :
10743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10746 /* pthread test headers */
10747 #include <pthread.h>
10748 #if HAVE_PTHREADS < 7
10752 #define NULL (void*)0
10755 static void *task(p)
10758 return (void *) (p == NULL);
10765 /* pthread test function */
10766 #ifndef PTHREAD_CREATE_DETACHED
10767 #define PTHREAD_CREATE_DETACHED 1
10771 int detach = PTHREAD_CREATE_DETACHED;
10773 #if HAVE_PTHREADS > 4
10774 /* Final pthreads */
10775 pthread_attr_t attr;
10777 status = pthread_attr_init(&attr);
10778 if( status ) return status;
10780 #if HAVE_PTHREADS < 7
10781 status = pthread_attr_setdetachstate(&attr, &detach);
10782 if( status < 0 ) status = errno;
10784 status = pthread_attr_setdetachstate(&attr, detach);
10786 if( status ) return status;
10787 status = pthread_create( &t, &attr, task, NULL );
10788 #if HAVE_PTHREADS < 7
10789 if( status < 0 ) status = errno;
10791 if( status ) return status;
10793 /* Draft 4 pthreads */
10794 status = pthread_create( &t, pthread_attr_default, task, NULL );
10795 if( status ) return errno;
10797 /* give thread a chance to complete */
10798 /* it should remain joinable and hence detachable */
10801 status = pthread_detach( &t );
10802 if( status ) return errno;
10805 #ifdef HAVE_LINUX_THREADS
10806 pthread_kill_other_threads_np();
10815 if ac_fn_c_try_link "$LINENO"; then :
10816 ol_cv_pthread_mthreads=yes
10818 ol_cv_pthread_mthreads=no
10820 rm -f core conftest.err conftest.$ac_objext \
10821 conftest$ac_exeext conftest.$ac_ext
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h. */
10827 /* pthread test headers */
10828 #include <pthread.h>
10829 #if HAVE_PTHREADS < 7
10833 #define NULL (void*)0
10836 static void *task(p)
10839 return (void *) (p == NULL);
10843 int main(argc, argv)
10848 /* pthread test function */
10849 #ifndef PTHREAD_CREATE_DETACHED
10850 #define PTHREAD_CREATE_DETACHED 1
10854 int detach = PTHREAD_CREATE_DETACHED;
10856 #if HAVE_PTHREADS > 4
10857 /* Final pthreads */
10858 pthread_attr_t attr;
10860 status = pthread_attr_init(&attr);
10861 if( status ) return status;
10863 #if HAVE_PTHREADS < 7
10864 status = pthread_attr_setdetachstate(&attr, &detach);
10865 if( status < 0 ) status = errno;
10867 status = pthread_attr_setdetachstate(&attr, detach);
10869 if( status ) return status;
10870 status = pthread_create( &t, &attr, task, NULL );
10871 #if HAVE_PTHREADS < 7
10872 if( status < 0 ) status = errno;
10874 if( status ) return status;
10876 /* Draft 4 pthreads */
10877 status = pthread_create( &t, pthread_attr_default, task, NULL );
10878 if( status ) return errno;
10880 /* give thread a chance to complete */
10881 /* it should remain joinable and hence detachable */
10884 status = pthread_detach( &t );
10885 if( status ) return errno;
10888 #ifdef HAVE_LINUX_THREADS
10889 pthread_kill_other_threads_np();
10897 if ac_fn_c_try_run "$LINENO"; then :
10898 ol_cv_pthread_mthreads=yes
10900 ol_cv_pthread_mthreads=no
10902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10903 conftest.$ac_objext conftest.beam conftest.$ac_ext
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
10912 $as_echo "$ol_cv_pthread_mthreads" >&6; }
10914 if test $ol_cv_pthread_mthreads = yes ; then
10915 ol_link_pthreads="-mthreads"
10916 ol_link_threads=posix
10920 # Pthread try link: -thread (ol_cv_pthread_thread)
10921 if test "$ol_link_threads" = no ; then
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
10924 $as_echo_n "checking for pthread link with -thread... " >&6; }
10925 if ${ol_cv_pthread_thread+:} false; then :
10926 $as_echo_n "(cached) " >&6
10931 LIBS="-thread $LIBS"
10933 if test "$cross_compiling" = yes; then :
10934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10935 /* end confdefs.h. */
10937 /* pthread test headers */
10938 #include <pthread.h>
10939 #if HAVE_PTHREADS < 7
10943 #define NULL (void*)0
10946 static void *task(p)
10949 return (void *) (p == NULL);
10956 /* pthread test function */
10957 #ifndef PTHREAD_CREATE_DETACHED
10958 #define PTHREAD_CREATE_DETACHED 1
10962 int detach = PTHREAD_CREATE_DETACHED;
10964 #if HAVE_PTHREADS > 4
10965 /* Final pthreads */
10966 pthread_attr_t attr;
10968 status = pthread_attr_init(&attr);
10969 if( status ) return status;
10971 #if HAVE_PTHREADS < 7
10972 status = pthread_attr_setdetachstate(&attr, &detach);
10973 if( status < 0 ) status = errno;
10975 status = pthread_attr_setdetachstate(&attr, detach);
10977 if( status ) return status;
10978 status = pthread_create( &t, &attr, task, NULL );
10979 #if HAVE_PTHREADS < 7
10980 if( status < 0 ) status = errno;
10982 if( status ) return status;
10984 /* Draft 4 pthreads */
10985 status = pthread_create( &t, pthread_attr_default, task, NULL );
10986 if( status ) return errno;
10988 /* give thread a chance to complete */
10989 /* it should remain joinable and hence detachable */
10992 status = pthread_detach( &t );
10993 if( status ) return errno;
10996 #ifdef HAVE_LINUX_THREADS
10997 pthread_kill_other_threads_np();
11006 if ac_fn_c_try_link "$LINENO"; then :
11007 ol_cv_pthread_thread=yes
11009 ol_cv_pthread_thread=no
11011 rm -f core conftest.err conftest.$ac_objext \
11012 conftest$ac_exeext conftest.$ac_ext
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h. */
11018 /* pthread test headers */
11019 #include <pthread.h>
11020 #if HAVE_PTHREADS < 7
11024 #define NULL (void*)0
11027 static void *task(p)
11030 return (void *) (p == NULL);
11034 int main(argc, argv)
11039 /* pthread test function */
11040 #ifndef PTHREAD_CREATE_DETACHED
11041 #define PTHREAD_CREATE_DETACHED 1
11045 int detach = PTHREAD_CREATE_DETACHED;
11047 #if HAVE_PTHREADS > 4
11048 /* Final pthreads */
11049 pthread_attr_t attr;
11051 status = pthread_attr_init(&attr);
11052 if( status ) return status;
11054 #if HAVE_PTHREADS < 7
11055 status = pthread_attr_setdetachstate(&attr, &detach);
11056 if( status < 0 ) status = errno;
11058 status = pthread_attr_setdetachstate(&attr, detach);
11060 if( status ) return status;
11061 status = pthread_create( &t, &attr, task, NULL );
11062 #if HAVE_PTHREADS < 7
11063 if( status < 0 ) status = errno;
11065 if( status ) return status;
11067 /* Draft 4 pthreads */
11068 status = pthread_create( &t, pthread_attr_default, task, NULL );
11069 if( status ) return errno;
11071 /* give thread a chance to complete */
11072 /* it should remain joinable and hence detachable */
11075 status = pthread_detach( &t );
11076 if( status ) return errno;
11079 #ifdef HAVE_LINUX_THREADS
11080 pthread_kill_other_threads_np();
11088 if ac_fn_c_try_run "$LINENO"; then :
11089 ol_cv_pthread_thread=yes
11091 ol_cv_pthread_thread=no
11093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11094 conftest.$ac_objext conftest.beam conftest.$ac_ext
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
11103 $as_echo "$ol_cv_pthread_thread" >&6; }
11105 if test $ol_cv_pthread_thread = yes ; then
11106 ol_link_pthreads="-thread"
11107 ol_link_threads=posix
11112 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
11113 if test "$ol_link_threads" = no ; then
11114 # try -lpthread -lmach -lexc -lc_r
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
11116 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
11117 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
11118 $as_echo_n "(cached) " >&6
11123 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
11125 if test "$cross_compiling" = yes; then :
11126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127 /* end confdefs.h. */
11129 /* pthread test headers */
11130 #include <pthread.h>
11131 #if HAVE_PTHREADS < 7
11135 #define NULL (void*)0
11138 static void *task(p)
11141 return (void *) (p == NULL);
11148 /* pthread test function */
11149 #ifndef PTHREAD_CREATE_DETACHED
11150 #define PTHREAD_CREATE_DETACHED 1
11154 int detach = PTHREAD_CREATE_DETACHED;
11156 #if HAVE_PTHREADS > 4
11157 /* Final pthreads */
11158 pthread_attr_t attr;
11160 status = pthread_attr_init(&attr);
11161 if( status ) return status;
11163 #if HAVE_PTHREADS < 7
11164 status = pthread_attr_setdetachstate(&attr, &detach);
11165 if( status < 0 ) status = errno;
11167 status = pthread_attr_setdetachstate(&attr, detach);
11169 if( status ) return status;
11170 status = pthread_create( &t, &attr, task, NULL );
11171 #if HAVE_PTHREADS < 7
11172 if( status < 0 ) status = errno;
11174 if( status ) return status;
11176 /* Draft 4 pthreads */
11177 status = pthread_create( &t, pthread_attr_default, task, NULL );
11178 if( status ) return errno;
11180 /* give thread a chance to complete */
11181 /* it should remain joinable and hence detachable */
11184 status = pthread_detach( &t );
11185 if( status ) return errno;
11188 #ifdef HAVE_LINUX_THREADS
11189 pthread_kill_other_threads_np();
11198 if ac_fn_c_try_link "$LINENO"; then :
11199 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
11201 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
11203 rm -f core conftest.err conftest.$ac_objext \
11204 conftest$ac_exeext conftest.$ac_ext
11206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207 /* end confdefs.h. */
11210 /* pthread test headers */
11211 #include <pthread.h>
11212 #if HAVE_PTHREADS < 7
11216 #define NULL (void*)0
11219 static void *task(p)
11222 return (void *) (p == NULL);
11226 int main(argc, argv)
11231 /* pthread test function */
11232 #ifndef PTHREAD_CREATE_DETACHED
11233 #define PTHREAD_CREATE_DETACHED 1
11237 int detach = PTHREAD_CREATE_DETACHED;
11239 #if HAVE_PTHREADS > 4
11240 /* Final pthreads */
11241 pthread_attr_t attr;
11243 status = pthread_attr_init(&attr);
11244 if( status ) return status;
11246 #if HAVE_PTHREADS < 7
11247 status = pthread_attr_setdetachstate(&attr, &detach);
11248 if( status < 0 ) status = errno;
11250 status = pthread_attr_setdetachstate(&attr, detach);
11252 if( status ) return status;
11253 status = pthread_create( &t, &attr, task, NULL );
11254 #if HAVE_PTHREADS < 7
11255 if( status < 0 ) status = errno;
11257 if( status ) return status;
11259 /* Draft 4 pthreads */
11260 status = pthread_create( &t, pthread_attr_default, task, NULL );
11261 if( status ) return errno;
11263 /* give thread a chance to complete */
11264 /* it should remain joinable and hence detachable */
11267 status = pthread_detach( &t );
11268 if( status ) return errno;
11271 #ifdef HAVE_LINUX_THREADS
11272 pthread_kill_other_threads_np();
11280 if ac_fn_c_try_run "$LINENO"; then :
11281 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
11283 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
11285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11286 conftest.$ac_objext conftest.beam conftest.$ac_ext
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
11295 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
11297 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
11298 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
11299 ol_link_threads=posix
11303 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
11304 if test "$ol_link_threads" = no ; then
11305 # try -lpthread -lmach -lexc
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
11307 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
11308 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
11309 $as_echo_n "(cached) " >&6
11314 LIBS="-lpthread -lmach -lexc $LIBS"
11316 if test "$cross_compiling" = yes; then :
11317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318 /* end confdefs.h. */
11320 /* pthread test headers */
11321 #include <pthread.h>
11322 #if HAVE_PTHREADS < 7
11326 #define NULL (void*)0
11329 static void *task(p)
11332 return (void *) (p == NULL);
11339 /* pthread test function */
11340 #ifndef PTHREAD_CREATE_DETACHED
11341 #define PTHREAD_CREATE_DETACHED 1
11345 int detach = PTHREAD_CREATE_DETACHED;
11347 #if HAVE_PTHREADS > 4
11348 /* Final pthreads */
11349 pthread_attr_t attr;
11351 status = pthread_attr_init(&attr);
11352 if( status ) return status;
11354 #if HAVE_PTHREADS < 7
11355 status = pthread_attr_setdetachstate(&attr, &detach);
11356 if( status < 0 ) status = errno;
11358 status = pthread_attr_setdetachstate(&attr, detach);
11360 if( status ) return status;
11361 status = pthread_create( &t, &attr, task, NULL );
11362 #if HAVE_PTHREADS < 7
11363 if( status < 0 ) status = errno;
11365 if( status ) return status;
11367 /* Draft 4 pthreads */
11368 status = pthread_create( &t, pthread_attr_default, task, NULL );
11369 if( status ) return errno;
11371 /* give thread a chance to complete */
11372 /* it should remain joinable and hence detachable */
11375 status = pthread_detach( &t );
11376 if( status ) return errno;
11379 #ifdef HAVE_LINUX_THREADS
11380 pthread_kill_other_threads_np();
11389 if ac_fn_c_try_link "$LINENO"; then :
11390 ol_cv_pthread_lpthread_lmach_lexc=yes
11392 ol_cv_pthread_lpthread_lmach_lexc=no
11394 rm -f core conftest.err conftest.$ac_objext \
11395 conftest$ac_exeext conftest.$ac_ext
11397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h. */
11401 /* pthread test headers */
11402 #include <pthread.h>
11403 #if HAVE_PTHREADS < 7
11407 #define NULL (void*)0
11410 static void *task(p)
11413 return (void *) (p == NULL);
11417 int main(argc, argv)
11422 /* pthread test function */
11423 #ifndef PTHREAD_CREATE_DETACHED
11424 #define PTHREAD_CREATE_DETACHED 1
11428 int detach = PTHREAD_CREATE_DETACHED;
11430 #if HAVE_PTHREADS > 4
11431 /* Final pthreads */
11432 pthread_attr_t attr;
11434 status = pthread_attr_init(&attr);
11435 if( status ) return status;
11437 #if HAVE_PTHREADS < 7
11438 status = pthread_attr_setdetachstate(&attr, &detach);
11439 if( status < 0 ) status = errno;
11441 status = pthread_attr_setdetachstate(&attr, detach);
11443 if( status ) return status;
11444 status = pthread_create( &t, &attr, task, NULL );
11445 #if HAVE_PTHREADS < 7
11446 if( status < 0 ) status = errno;
11448 if( status ) return status;
11450 /* Draft 4 pthreads */
11451 status = pthread_create( &t, pthread_attr_default, task, NULL );
11452 if( status ) return errno;
11454 /* give thread a chance to complete */
11455 /* it should remain joinable and hence detachable */
11458 status = pthread_detach( &t );
11459 if( status ) return errno;
11462 #ifdef HAVE_LINUX_THREADS
11463 pthread_kill_other_threads_np();
11471 if ac_fn_c_try_run "$LINENO"; then :
11472 ol_cv_pthread_lpthread_lmach_lexc=yes
11474 ol_cv_pthread_lpthread_lmach_lexc=no
11476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11477 conftest.$ac_objext conftest.beam conftest.$ac_ext
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
11486 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
11488 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
11489 ol_link_pthreads="-lpthread -lmach -lexc"
11490 ol_link_threads=posix
11495 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
11496 if test "$ol_link_threads" = no ; then
11497 # try -lpthread -Wl,-woff,85
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
11499 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
11500 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
11501 $as_echo_n "(cached) " >&6
11506 LIBS="-lpthread -Wl,-woff,85 $LIBS"
11508 if test "$cross_compiling" = yes; then :
11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510 /* end confdefs.h. */
11512 /* pthread test headers */
11513 #include <pthread.h>
11514 #if HAVE_PTHREADS < 7
11518 #define NULL (void*)0
11521 static void *task(p)
11524 return (void *) (p == NULL);
11531 /* pthread test function */
11532 #ifndef PTHREAD_CREATE_DETACHED
11533 #define PTHREAD_CREATE_DETACHED 1
11537 int detach = PTHREAD_CREATE_DETACHED;
11539 #if HAVE_PTHREADS > 4
11540 /* Final pthreads */
11541 pthread_attr_t attr;
11543 status = pthread_attr_init(&attr);
11544 if( status ) return status;
11546 #if HAVE_PTHREADS < 7
11547 status = pthread_attr_setdetachstate(&attr, &detach);
11548 if( status < 0 ) status = errno;
11550 status = pthread_attr_setdetachstate(&attr, detach);
11552 if( status ) return status;
11553 status = pthread_create( &t, &attr, task, NULL );
11554 #if HAVE_PTHREADS < 7
11555 if( status < 0 ) status = errno;
11557 if( status ) return status;
11559 /* Draft 4 pthreads */
11560 status = pthread_create( &t, pthread_attr_default, task, NULL );
11561 if( status ) return errno;
11563 /* give thread a chance to complete */
11564 /* it should remain joinable and hence detachable */
11567 status = pthread_detach( &t );
11568 if( status ) return errno;
11571 #ifdef HAVE_LINUX_THREADS
11572 pthread_kill_other_threads_np();
11581 if ac_fn_c_try_link "$LINENO"; then :
11582 ol_cv_pthread_lib_lpthread_woff=yes
11584 ol_cv_pthread_lib_lpthread_woff=no
11586 rm -f core conftest.err conftest.$ac_objext \
11587 conftest$ac_exeext conftest.$ac_ext
11589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11590 /* end confdefs.h. */
11593 /* pthread test headers */
11594 #include <pthread.h>
11595 #if HAVE_PTHREADS < 7
11599 #define NULL (void*)0
11602 static void *task(p)
11605 return (void *) (p == NULL);
11609 int main(argc, argv)
11614 /* pthread test function */
11615 #ifndef PTHREAD_CREATE_DETACHED
11616 #define PTHREAD_CREATE_DETACHED 1
11620 int detach = PTHREAD_CREATE_DETACHED;
11622 #if HAVE_PTHREADS > 4
11623 /* Final pthreads */
11624 pthread_attr_t attr;
11626 status = pthread_attr_init(&attr);
11627 if( status ) return status;
11629 #if HAVE_PTHREADS < 7
11630 status = pthread_attr_setdetachstate(&attr, &detach);
11631 if( status < 0 ) status = errno;
11633 status = pthread_attr_setdetachstate(&attr, detach);
11635 if( status ) return status;
11636 status = pthread_create( &t, &attr, task, NULL );
11637 #if HAVE_PTHREADS < 7
11638 if( status < 0 ) status = errno;
11640 if( status ) return status;
11642 /* Draft 4 pthreads */
11643 status = pthread_create( &t, pthread_attr_default, task, NULL );
11644 if( status ) return errno;
11646 /* give thread a chance to complete */
11647 /* it should remain joinable and hence detachable */
11650 status = pthread_detach( &t );
11651 if( status ) return errno;
11654 #ifdef HAVE_LINUX_THREADS
11655 pthread_kill_other_threads_np();
11663 if ac_fn_c_try_run "$LINENO"; then :
11664 ol_cv_pthread_lib_lpthread_woff=yes
11666 ol_cv_pthread_lib_lpthread_woff=no
11668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11669 conftest.$ac_objext conftest.beam conftest.$ac_ext
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
11678 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
11680 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
11681 ol_link_pthreads="-lpthread -Wl,-woff,85"
11682 ol_link_threads=posix
11687 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
11688 if test "$ol_link_threads" = no ; then
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
11691 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
11692 if ${ol_cv_pthread_lpthread+:} false; then :
11693 $as_echo_n "(cached) " >&6
11698 LIBS="-lpthread $LIBS"
11700 if test "$cross_compiling" = yes; then :
11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11704 /* pthread test headers */
11705 #include <pthread.h>
11706 #if HAVE_PTHREADS < 7
11710 #define NULL (void*)0
11713 static void *task(p)
11716 return (void *) (p == NULL);
11723 /* pthread test function */
11724 #ifndef PTHREAD_CREATE_DETACHED
11725 #define PTHREAD_CREATE_DETACHED 1
11729 int detach = PTHREAD_CREATE_DETACHED;
11731 #if HAVE_PTHREADS > 4
11732 /* Final pthreads */
11733 pthread_attr_t attr;
11735 status = pthread_attr_init(&attr);
11736 if( status ) return status;
11738 #if HAVE_PTHREADS < 7
11739 status = pthread_attr_setdetachstate(&attr, &detach);
11740 if( status < 0 ) status = errno;
11742 status = pthread_attr_setdetachstate(&attr, detach);
11744 if( status ) return status;
11745 status = pthread_create( &t, &attr, task, NULL );
11746 #if HAVE_PTHREADS < 7
11747 if( status < 0 ) status = errno;
11749 if( status ) return status;
11751 /* Draft 4 pthreads */
11752 status = pthread_create( &t, pthread_attr_default, task, NULL );
11753 if( status ) return errno;
11755 /* give thread a chance to complete */
11756 /* it should remain joinable and hence detachable */
11759 status = pthread_detach( &t );
11760 if( status ) return errno;
11763 #ifdef HAVE_LINUX_THREADS
11764 pthread_kill_other_threads_np();
11773 if ac_fn_c_try_link "$LINENO"; then :
11774 ol_cv_pthread_lpthread=yes
11776 ol_cv_pthread_lpthread=no
11778 rm -f core conftest.err conftest.$ac_objext \
11779 conftest$ac_exeext conftest.$ac_ext
11781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11782 /* end confdefs.h. */
11785 /* pthread test headers */
11786 #include <pthread.h>
11787 #if HAVE_PTHREADS < 7
11791 #define NULL (void*)0
11794 static void *task(p)
11797 return (void *) (p == NULL);
11801 int main(argc, argv)
11806 /* pthread test function */
11807 #ifndef PTHREAD_CREATE_DETACHED
11808 #define PTHREAD_CREATE_DETACHED 1
11812 int detach = PTHREAD_CREATE_DETACHED;
11814 #if HAVE_PTHREADS > 4
11815 /* Final pthreads */
11816 pthread_attr_t attr;
11818 status = pthread_attr_init(&attr);
11819 if( status ) return status;
11821 #if HAVE_PTHREADS < 7
11822 status = pthread_attr_setdetachstate(&attr, &detach);
11823 if( status < 0 ) status = errno;
11825 status = pthread_attr_setdetachstate(&attr, detach);
11827 if( status ) return status;
11828 status = pthread_create( &t, &attr, task, NULL );
11829 #if HAVE_PTHREADS < 7
11830 if( status < 0 ) status = errno;
11832 if( status ) return status;
11834 /* Draft 4 pthreads */
11835 status = pthread_create( &t, pthread_attr_default, task, NULL );
11836 if( status ) return errno;
11838 /* give thread a chance to complete */
11839 /* it should remain joinable and hence detachable */
11842 status = pthread_detach( &t );
11843 if( status ) return errno;
11846 #ifdef HAVE_LINUX_THREADS
11847 pthread_kill_other_threads_np();
11855 if ac_fn_c_try_run "$LINENO"; then :
11856 ol_cv_pthread_lpthread=yes
11858 ol_cv_pthread_lpthread=no
11860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11861 conftest.$ac_objext conftest.beam conftest.$ac_ext
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
11870 $as_echo "$ol_cv_pthread_lpthread" >&6; }
11872 if test $ol_cv_pthread_lpthread = yes ; then
11873 ol_link_pthreads="-lpthread"
11874 ol_link_threads=posix
11878 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
11879 if test "$ol_link_threads" = no ; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
11882 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
11883 if ${ol_cv_pthread_lc_r+:} false; then :
11884 $as_echo_n "(cached) " >&6
11891 if test "$cross_compiling" = yes; then :
11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h. */
11895 /* pthread test headers */
11896 #include <pthread.h>
11897 #if HAVE_PTHREADS < 7
11901 #define NULL (void*)0
11904 static void *task(p)
11907 return (void *) (p == NULL);
11914 /* pthread test function */
11915 #ifndef PTHREAD_CREATE_DETACHED
11916 #define PTHREAD_CREATE_DETACHED 1
11920 int detach = PTHREAD_CREATE_DETACHED;
11922 #if HAVE_PTHREADS > 4
11923 /* Final pthreads */
11924 pthread_attr_t attr;
11926 status = pthread_attr_init(&attr);
11927 if( status ) return status;
11929 #if HAVE_PTHREADS < 7
11930 status = pthread_attr_setdetachstate(&attr, &detach);
11931 if( status < 0 ) status = errno;
11933 status = pthread_attr_setdetachstate(&attr, detach);
11935 if( status ) return status;
11936 status = pthread_create( &t, &attr, task, NULL );
11937 #if HAVE_PTHREADS < 7
11938 if( status < 0 ) status = errno;
11940 if( status ) return status;
11942 /* Draft 4 pthreads */
11943 status = pthread_create( &t, pthread_attr_default, task, NULL );
11944 if( status ) return errno;
11946 /* give thread a chance to complete */
11947 /* it should remain joinable and hence detachable */
11950 status = pthread_detach( &t );
11951 if( status ) return errno;
11954 #ifdef HAVE_LINUX_THREADS
11955 pthread_kill_other_threads_np();
11964 if ac_fn_c_try_link "$LINENO"; then :
11965 ol_cv_pthread_lc_r=yes
11967 ol_cv_pthread_lc_r=no
11969 rm -f core conftest.err conftest.$ac_objext \
11970 conftest$ac_exeext conftest.$ac_ext
11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973 /* end confdefs.h. */
11976 /* pthread test headers */
11977 #include <pthread.h>
11978 #if HAVE_PTHREADS < 7
11982 #define NULL (void*)0
11985 static void *task(p)
11988 return (void *) (p == NULL);
11992 int main(argc, argv)
11997 /* pthread test function */
11998 #ifndef PTHREAD_CREATE_DETACHED
11999 #define PTHREAD_CREATE_DETACHED 1
12003 int detach = PTHREAD_CREATE_DETACHED;
12005 #if HAVE_PTHREADS > 4
12006 /* Final pthreads */
12007 pthread_attr_t attr;
12009 status = pthread_attr_init(&attr);
12010 if( status ) return status;
12012 #if HAVE_PTHREADS < 7
12013 status = pthread_attr_setdetachstate(&attr, &detach);
12014 if( status < 0 ) status = errno;
12016 status = pthread_attr_setdetachstate(&attr, detach);
12018 if( status ) return status;
12019 status = pthread_create( &t, &attr, task, NULL );
12020 #if HAVE_PTHREADS < 7
12021 if( status < 0 ) status = errno;
12023 if( status ) return status;
12025 /* Draft 4 pthreads */
12026 status = pthread_create( &t, pthread_attr_default, task, NULL );
12027 if( status ) return errno;
12029 /* give thread a chance to complete */
12030 /* it should remain joinable and hence detachable */
12033 status = pthread_detach( &t );
12034 if( status ) return errno;
12037 #ifdef HAVE_LINUX_THREADS
12038 pthread_kill_other_threads_np();
12046 if ac_fn_c_try_run "$LINENO"; then :
12047 ol_cv_pthread_lc_r=yes
12049 ol_cv_pthread_lc_r=no
12051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12052 conftest.$ac_objext conftest.beam conftest.$ac_ext
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
12061 $as_echo "$ol_cv_pthread_lc_r" >&6; }
12063 if test $ol_cv_pthread_lc_r = yes ; then
12064 ol_link_pthreads="-lc_r"
12065 ol_link_threads=posix
12070 # Pthread try link: -threads (ol_cv_pthread_threads)
12071 if test "$ol_link_threads" = no ; then
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
12074 $as_echo_n "checking for pthread link with -threads... " >&6; }
12075 if ${ol_cv_pthread_threads+:} false; then :
12076 $as_echo_n "(cached) " >&6
12081 LIBS="-threads $LIBS"
12083 if test "$cross_compiling" = yes; then :
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12087 /* pthread test headers */
12088 #include <pthread.h>
12089 #if HAVE_PTHREADS < 7
12093 #define NULL (void*)0
12096 static void *task(p)
12099 return (void *) (p == NULL);
12106 /* pthread test function */
12107 #ifndef PTHREAD_CREATE_DETACHED
12108 #define PTHREAD_CREATE_DETACHED 1
12112 int detach = PTHREAD_CREATE_DETACHED;
12114 #if HAVE_PTHREADS > 4
12115 /* Final pthreads */
12116 pthread_attr_t attr;
12118 status = pthread_attr_init(&attr);
12119 if( status ) return status;
12121 #if HAVE_PTHREADS < 7
12122 status = pthread_attr_setdetachstate(&attr, &detach);
12123 if( status < 0 ) status = errno;
12125 status = pthread_attr_setdetachstate(&attr, detach);
12127 if( status ) return status;
12128 status = pthread_create( &t, &attr, task, NULL );
12129 #if HAVE_PTHREADS < 7
12130 if( status < 0 ) status = errno;
12132 if( status ) return status;
12134 /* Draft 4 pthreads */
12135 status = pthread_create( &t, pthread_attr_default, task, NULL );
12136 if( status ) return errno;
12138 /* give thread a chance to complete */
12139 /* it should remain joinable and hence detachable */
12142 status = pthread_detach( &t );
12143 if( status ) return errno;
12146 #ifdef HAVE_LINUX_THREADS
12147 pthread_kill_other_threads_np();
12156 if ac_fn_c_try_link "$LINENO"; then :
12157 ol_cv_pthread_threads=yes
12159 ol_cv_pthread_threads=no
12161 rm -f core conftest.err conftest.$ac_objext \
12162 conftest$ac_exeext conftest.$ac_ext
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12168 /* pthread test headers */
12169 #include <pthread.h>
12170 #if HAVE_PTHREADS < 7
12174 #define NULL (void*)0
12177 static void *task(p)
12180 return (void *) (p == NULL);
12184 int main(argc, argv)
12189 /* pthread test function */
12190 #ifndef PTHREAD_CREATE_DETACHED
12191 #define PTHREAD_CREATE_DETACHED 1
12195 int detach = PTHREAD_CREATE_DETACHED;
12197 #if HAVE_PTHREADS > 4
12198 /* Final pthreads */
12199 pthread_attr_t attr;
12201 status = pthread_attr_init(&attr);
12202 if( status ) return status;
12204 #if HAVE_PTHREADS < 7
12205 status = pthread_attr_setdetachstate(&attr, &detach);
12206 if( status < 0 ) status = errno;
12208 status = pthread_attr_setdetachstate(&attr, detach);
12210 if( status ) return status;
12211 status = pthread_create( &t, &attr, task, NULL );
12212 #if HAVE_PTHREADS < 7
12213 if( status < 0 ) status = errno;
12215 if( status ) return status;
12217 /* Draft 4 pthreads */
12218 status = pthread_create( &t, pthread_attr_default, task, NULL );
12219 if( status ) return errno;
12221 /* give thread a chance to complete */
12222 /* it should remain joinable and hence detachable */
12225 status = pthread_detach( &t );
12226 if( status ) return errno;
12229 #ifdef HAVE_LINUX_THREADS
12230 pthread_kill_other_threads_np();
12238 if ac_fn_c_try_run "$LINENO"; then :
12239 ol_cv_pthread_threads=yes
12241 ol_cv_pthread_threads=no
12243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12244 conftest.$ac_objext conftest.beam conftest.$ac_ext
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
12253 $as_echo "$ol_cv_pthread_threads" >&6; }
12255 if test $ol_cv_pthread_threads = yes ; then
12256 ol_link_pthreads="-threads"
12257 ol_link_threads=posix
12262 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
12263 if test "$ol_link_threads" = no ; then
12264 # try -lpthreads -lmach -lexc -lc_r
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
12266 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
12267 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
12268 $as_echo_n "(cached) " >&6
12273 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
12275 if test "$cross_compiling" = yes; then :
12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12279 /* pthread test headers */
12280 #include <pthread.h>
12281 #if HAVE_PTHREADS < 7
12285 #define NULL (void*)0
12288 static void *task(p)
12291 return (void *) (p == NULL);
12298 /* pthread test function */
12299 #ifndef PTHREAD_CREATE_DETACHED
12300 #define PTHREAD_CREATE_DETACHED 1
12304 int detach = PTHREAD_CREATE_DETACHED;
12306 #if HAVE_PTHREADS > 4
12307 /* Final pthreads */
12308 pthread_attr_t attr;
12310 status = pthread_attr_init(&attr);
12311 if( status ) return status;
12313 #if HAVE_PTHREADS < 7
12314 status = pthread_attr_setdetachstate(&attr, &detach);
12315 if( status < 0 ) status = errno;
12317 status = pthread_attr_setdetachstate(&attr, detach);
12319 if( status ) return status;
12320 status = pthread_create( &t, &attr, task, NULL );
12321 #if HAVE_PTHREADS < 7
12322 if( status < 0 ) status = errno;
12324 if( status ) return status;
12326 /* Draft 4 pthreads */
12327 status = pthread_create( &t, pthread_attr_default, task, NULL );
12328 if( status ) return errno;
12330 /* give thread a chance to complete */
12331 /* it should remain joinable and hence detachable */
12334 status = pthread_detach( &t );
12335 if( status ) return errno;
12338 #ifdef HAVE_LINUX_THREADS
12339 pthread_kill_other_threads_np();
12348 if ac_fn_c_try_link "$LINENO"; then :
12349 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
12351 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
12353 rm -f core conftest.err conftest.$ac_objext \
12354 conftest$ac_exeext conftest.$ac_ext
12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h. */
12360 /* pthread test headers */
12361 #include <pthread.h>
12362 #if HAVE_PTHREADS < 7
12366 #define NULL (void*)0
12369 static void *task(p)
12372 return (void *) (p == NULL);
12376 int main(argc, argv)
12381 /* pthread test function */
12382 #ifndef PTHREAD_CREATE_DETACHED
12383 #define PTHREAD_CREATE_DETACHED 1
12387 int detach = PTHREAD_CREATE_DETACHED;
12389 #if HAVE_PTHREADS > 4
12390 /* Final pthreads */
12391 pthread_attr_t attr;
12393 status = pthread_attr_init(&attr);
12394 if( status ) return status;
12396 #if HAVE_PTHREADS < 7
12397 status = pthread_attr_setdetachstate(&attr, &detach);
12398 if( status < 0 ) status = errno;
12400 status = pthread_attr_setdetachstate(&attr, detach);
12402 if( status ) return status;
12403 status = pthread_create( &t, &attr, task, NULL );
12404 #if HAVE_PTHREADS < 7
12405 if( status < 0 ) status = errno;
12407 if( status ) return status;
12409 /* Draft 4 pthreads */
12410 status = pthread_create( &t, pthread_attr_default, task, NULL );
12411 if( status ) return errno;
12413 /* give thread a chance to complete */
12414 /* it should remain joinable and hence detachable */
12417 status = pthread_detach( &t );
12418 if( status ) return errno;
12421 #ifdef HAVE_LINUX_THREADS
12422 pthread_kill_other_threads_np();
12430 if ac_fn_c_try_run "$LINENO"; then :
12431 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
12433 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
12435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12436 conftest.$ac_objext conftest.beam conftest.$ac_ext
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
12445 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
12447 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
12448 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
12449 ol_link_threads=posix
12453 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
12454 if test "$ol_link_threads" = no ; then
12455 # try -lpthreads -lmach -lexc
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
12457 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
12458 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
12459 $as_echo_n "(cached) " >&6
12464 LIBS="-lpthreads -lmach -lexc $LIBS"
12466 if test "$cross_compiling" = yes; then :
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h. */
12470 /* pthread test headers */
12471 #include <pthread.h>
12472 #if HAVE_PTHREADS < 7
12476 #define NULL (void*)0
12479 static void *task(p)
12482 return (void *) (p == NULL);
12489 /* pthread test function */
12490 #ifndef PTHREAD_CREATE_DETACHED
12491 #define PTHREAD_CREATE_DETACHED 1
12495 int detach = PTHREAD_CREATE_DETACHED;
12497 #if HAVE_PTHREADS > 4
12498 /* Final pthreads */
12499 pthread_attr_t attr;
12501 status = pthread_attr_init(&attr);
12502 if( status ) return status;
12504 #if HAVE_PTHREADS < 7
12505 status = pthread_attr_setdetachstate(&attr, &detach);
12506 if( status < 0 ) status = errno;
12508 status = pthread_attr_setdetachstate(&attr, detach);
12510 if( status ) return status;
12511 status = pthread_create( &t, &attr, task, NULL );
12512 #if HAVE_PTHREADS < 7
12513 if( status < 0 ) status = errno;
12515 if( status ) return status;
12517 /* Draft 4 pthreads */
12518 status = pthread_create( &t, pthread_attr_default, task, NULL );
12519 if( status ) return errno;
12521 /* give thread a chance to complete */
12522 /* it should remain joinable and hence detachable */
12525 status = pthread_detach( &t );
12526 if( status ) return errno;
12529 #ifdef HAVE_LINUX_THREADS
12530 pthread_kill_other_threads_np();
12539 if ac_fn_c_try_link "$LINENO"; then :
12540 ol_cv_pthread_lpthreads_lmach_lexc=yes
12542 ol_cv_pthread_lpthreads_lmach_lexc=no
12544 rm -f core conftest.err conftest.$ac_objext \
12545 conftest$ac_exeext conftest.$ac_ext
12547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12548 /* end confdefs.h. */
12551 /* pthread test headers */
12552 #include <pthread.h>
12553 #if HAVE_PTHREADS < 7
12557 #define NULL (void*)0
12560 static void *task(p)
12563 return (void *) (p == NULL);
12567 int main(argc, argv)
12572 /* pthread test function */
12573 #ifndef PTHREAD_CREATE_DETACHED
12574 #define PTHREAD_CREATE_DETACHED 1
12578 int detach = PTHREAD_CREATE_DETACHED;
12580 #if HAVE_PTHREADS > 4
12581 /* Final pthreads */
12582 pthread_attr_t attr;
12584 status = pthread_attr_init(&attr);
12585 if( status ) return status;
12587 #if HAVE_PTHREADS < 7
12588 status = pthread_attr_setdetachstate(&attr, &detach);
12589 if( status < 0 ) status = errno;
12591 status = pthread_attr_setdetachstate(&attr, detach);
12593 if( status ) return status;
12594 status = pthread_create( &t, &attr, task, NULL );
12595 #if HAVE_PTHREADS < 7
12596 if( status < 0 ) status = errno;
12598 if( status ) return status;
12600 /* Draft 4 pthreads */
12601 status = pthread_create( &t, pthread_attr_default, task, NULL );
12602 if( status ) return errno;
12604 /* give thread a chance to complete */
12605 /* it should remain joinable and hence detachable */
12608 status = pthread_detach( &t );
12609 if( status ) return errno;
12612 #ifdef HAVE_LINUX_THREADS
12613 pthread_kill_other_threads_np();
12621 if ac_fn_c_try_run "$LINENO"; then :
12622 ol_cv_pthread_lpthreads_lmach_lexc=yes
12624 ol_cv_pthread_lpthreads_lmach_lexc=no
12626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12627 conftest.$ac_objext conftest.beam conftest.$ac_ext
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
12636 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
12638 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
12639 ol_link_pthreads="-lpthreads -lmach -lexc"
12640 ol_link_threads=posix
12644 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
12645 if test "$ol_link_threads" = no ; then
12646 # try -lpthreads -lexc
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
12648 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
12649 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
12650 $as_echo_n "(cached) " >&6
12655 LIBS="-lpthreads -lexc $LIBS"
12657 if test "$cross_compiling" = yes; then :
12658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659 /* end confdefs.h. */
12661 /* pthread test headers */
12662 #include <pthread.h>
12663 #if HAVE_PTHREADS < 7
12667 #define NULL (void*)0
12670 static void *task(p)
12673 return (void *) (p == NULL);
12680 /* pthread test function */
12681 #ifndef PTHREAD_CREATE_DETACHED
12682 #define PTHREAD_CREATE_DETACHED 1
12686 int detach = PTHREAD_CREATE_DETACHED;
12688 #if HAVE_PTHREADS > 4
12689 /* Final pthreads */
12690 pthread_attr_t attr;
12692 status = pthread_attr_init(&attr);
12693 if( status ) return status;
12695 #if HAVE_PTHREADS < 7
12696 status = pthread_attr_setdetachstate(&attr, &detach);
12697 if( status < 0 ) status = errno;
12699 status = pthread_attr_setdetachstate(&attr, detach);
12701 if( status ) return status;
12702 status = pthread_create( &t, &attr, task, NULL );
12703 #if HAVE_PTHREADS < 7
12704 if( status < 0 ) status = errno;
12706 if( status ) return status;
12708 /* Draft 4 pthreads */
12709 status = pthread_create( &t, pthread_attr_default, task, NULL );
12710 if( status ) return errno;
12712 /* give thread a chance to complete */
12713 /* it should remain joinable and hence detachable */
12716 status = pthread_detach( &t );
12717 if( status ) return errno;
12720 #ifdef HAVE_LINUX_THREADS
12721 pthread_kill_other_threads_np();
12730 if ac_fn_c_try_link "$LINENO"; then :
12731 ol_cv_pthread_lpthreads_lexc=yes
12733 ol_cv_pthread_lpthreads_lexc=no
12735 rm -f core conftest.err conftest.$ac_objext \
12736 conftest$ac_exeext conftest.$ac_ext
12738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12739 /* end confdefs.h. */
12742 /* pthread test headers */
12743 #include <pthread.h>
12744 #if HAVE_PTHREADS < 7
12748 #define NULL (void*)0
12751 static void *task(p)
12754 return (void *) (p == NULL);
12758 int main(argc, argv)
12763 /* pthread test function */
12764 #ifndef PTHREAD_CREATE_DETACHED
12765 #define PTHREAD_CREATE_DETACHED 1
12769 int detach = PTHREAD_CREATE_DETACHED;
12771 #if HAVE_PTHREADS > 4
12772 /* Final pthreads */
12773 pthread_attr_t attr;
12775 status = pthread_attr_init(&attr);
12776 if( status ) return status;
12778 #if HAVE_PTHREADS < 7
12779 status = pthread_attr_setdetachstate(&attr, &detach);
12780 if( status < 0 ) status = errno;
12782 status = pthread_attr_setdetachstate(&attr, detach);
12784 if( status ) return status;
12785 status = pthread_create( &t, &attr, task, NULL );
12786 #if HAVE_PTHREADS < 7
12787 if( status < 0 ) status = errno;
12789 if( status ) return status;
12791 /* Draft 4 pthreads */
12792 status = pthread_create( &t, pthread_attr_default, task, NULL );
12793 if( status ) return errno;
12795 /* give thread a chance to complete */
12796 /* it should remain joinable and hence detachable */
12799 status = pthread_detach( &t );
12800 if( status ) return errno;
12803 #ifdef HAVE_LINUX_THREADS
12804 pthread_kill_other_threads_np();
12812 if ac_fn_c_try_run "$LINENO"; then :
12813 ol_cv_pthread_lpthreads_lexc=yes
12815 ol_cv_pthread_lpthreads_lexc=no
12817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12818 conftest.$ac_objext conftest.beam conftest.$ac_ext
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
12827 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
12829 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
12830 ol_link_pthreads="-lpthreads -lexc"
12831 ol_link_threads=posix
12836 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
12837 if test "$ol_link_threads" = no ; then
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
12840 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
12841 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
12842 $as_echo_n "(cached) " >&6
12847 LIBS="-lpthreads $LIBS"
12849 if test "$cross_compiling" = yes; then :
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12853 /* pthread test headers */
12854 #include <pthread.h>
12855 #if HAVE_PTHREADS < 7
12859 #define NULL (void*)0
12862 static void *task(p)
12865 return (void *) (p == NULL);
12872 /* pthread test function */
12873 #ifndef PTHREAD_CREATE_DETACHED
12874 #define PTHREAD_CREATE_DETACHED 1
12878 int detach = PTHREAD_CREATE_DETACHED;
12880 #if HAVE_PTHREADS > 4
12881 /* Final pthreads */
12882 pthread_attr_t attr;
12884 status = pthread_attr_init(&attr);
12885 if( status ) return status;
12887 #if HAVE_PTHREADS < 7
12888 status = pthread_attr_setdetachstate(&attr, &detach);
12889 if( status < 0 ) status = errno;
12891 status = pthread_attr_setdetachstate(&attr, detach);
12893 if( status ) return status;
12894 status = pthread_create( &t, &attr, task, NULL );
12895 #if HAVE_PTHREADS < 7
12896 if( status < 0 ) status = errno;
12898 if( status ) return status;
12900 /* Draft 4 pthreads */
12901 status = pthread_create( &t, pthread_attr_default, task, NULL );
12902 if( status ) return errno;
12904 /* give thread a chance to complete */
12905 /* it should remain joinable and hence detachable */
12908 status = pthread_detach( &t );
12909 if( status ) return errno;
12912 #ifdef HAVE_LINUX_THREADS
12913 pthread_kill_other_threads_np();
12922 if ac_fn_c_try_link "$LINENO"; then :
12923 ol_cv_pthread_lib_lpthreads=yes
12925 ol_cv_pthread_lib_lpthreads=no
12927 rm -f core conftest.err conftest.$ac_objext \
12928 conftest$ac_exeext conftest.$ac_ext
12930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12931 /* end confdefs.h. */
12934 /* pthread test headers */
12935 #include <pthread.h>
12936 #if HAVE_PTHREADS < 7
12940 #define NULL (void*)0
12943 static void *task(p)
12946 return (void *) (p == NULL);
12950 int main(argc, argv)
12955 /* pthread test function */
12956 #ifndef PTHREAD_CREATE_DETACHED
12957 #define PTHREAD_CREATE_DETACHED 1
12961 int detach = PTHREAD_CREATE_DETACHED;
12963 #if HAVE_PTHREADS > 4
12964 /* Final pthreads */
12965 pthread_attr_t attr;
12967 status = pthread_attr_init(&attr);
12968 if( status ) return status;
12970 #if HAVE_PTHREADS < 7
12971 status = pthread_attr_setdetachstate(&attr, &detach);
12972 if( status < 0 ) status = errno;
12974 status = pthread_attr_setdetachstate(&attr, detach);
12976 if( status ) return status;
12977 status = pthread_create( &t, &attr, task, NULL );
12978 #if HAVE_PTHREADS < 7
12979 if( status < 0 ) status = errno;
12981 if( status ) return status;
12983 /* Draft 4 pthreads */
12984 status = pthread_create( &t, pthread_attr_default, task, NULL );
12985 if( status ) return errno;
12987 /* give thread a chance to complete */
12988 /* it should remain joinable and hence detachable */
12991 status = pthread_detach( &t );
12992 if( status ) return errno;
12995 #ifdef HAVE_LINUX_THREADS
12996 pthread_kill_other_threads_np();
13004 if ac_fn_c_try_run "$LINENO"; then :
13005 ol_cv_pthread_lib_lpthreads=yes
13007 ol_cv_pthread_lib_lpthreads=no
13009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13010 conftest.$ac_objext conftest.beam conftest.$ac_ext
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
13019 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
13021 if test $ol_cv_pthread_lib_lpthreads = yes ; then
13022 ol_link_pthreads="-lpthreads"
13023 ol_link_threads=posix
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
13029 $as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
13031 if test $ol_link_threads != no ; then
13032 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
13034 save_CPPFLAGS="$CPPFLAGS"
13036 LIBS="$LTHREAD_LIBS $LIBS"
13038 for ac_func in sched_yield pthread_yield thr_yield
13040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13041 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13042 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13043 cat >>confdefs.h <<_ACEOF
13044 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13051 if test $ac_cv_func_sched_yield = no &&
13052 test $ac_cv_func_pthread_yield = no &&
13053 test $ac_cv_func_thr_yield = no ; then
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
13055 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
13056 if ${ac_cv_lib_rt_sched_yield+:} false; then :
13057 $as_echo_n "(cached) " >&6
13059 ac_check_lib_save_LIBS=$LIBS
13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h. */
13064 /* Override any GCC internal prototype to avoid an error.
13065 Use char because int might match the return type of a GCC
13066 builtin and then its argument prototype would still apply. */
13070 char sched_yield ();
13074 return sched_yield ();
13079 if ac_fn_c_try_link "$LINENO"; then :
13080 ac_cv_lib_rt_sched_yield=yes
13082 ac_cv_lib_rt_sched_yield=no
13084 rm -f core conftest.err conftest.$ac_objext \
13085 conftest$ac_exeext conftest.$ac_ext
13086 LIBS=$ac_check_lib_save_LIBS
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
13089 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
13090 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
13091 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
13093 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
13095 ac_cv_func_sched_yield=yes
13097 ac_cv_func_sched_yield=no
13101 if test $ac_cv_func_sched_yield = no &&
13102 test $ac_cv_func_pthread_yield = no &&
13103 test "$ac_cv_func_thr_yield" = no ; then
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
13105 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
13108 for ac_func in pthread_kill
13110 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
13111 if test "x$ac_cv_func_pthread_kill" = xyes; then :
13112 cat >>confdefs.h <<_ACEOF
13113 #define HAVE_PTHREAD_KILL 1
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
13121 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
13122 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
13123 $as_echo_n "(cached) " >&6
13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13129 #include <pthread.h>
13130 pthread_rwlock_t rwlock;
13135 pthread_rwlock_destroy(&rwlock);
13140 if ac_fn_c_try_link "$LINENO"; then :
13141 ol_cv_func_pthread_rwlock_destroy=yes
13143 ol_cv_func_pthread_rwlock_destroy=no
13145 rm -f core conftest.err conftest.$ac_objext \
13146 conftest$ac_exeext conftest.$ac_ext
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
13150 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
13151 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
13153 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
13158 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
13159 if ${ol_cv_func_pthread_detach+:} false; then :
13160 $as_echo_n "(cached) " >&6
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13166 #include <pthread.h>
13168 #define NULL (void*)0
13174 pthread_detach(NULL);
13179 if ac_fn_c_try_link "$LINENO"; then :
13180 ol_cv_func_pthread_detach=yes
13182 ol_cv_func_pthread_detach=no
13184 rm -f core conftest.err conftest.$ac_objext \
13185 conftest$ac_exeext conftest.$ac_ext
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
13189 $as_echo "$ol_cv_func_pthread_detach" >&6; }
13191 if test $ol_cv_func_pthread_detach = no ; then
13192 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
13196 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
13200 pthread_setconcurrency \
13201 pthread_getconcurrency \
13202 thr_setconcurrency \
13203 thr_getconcurrency \
13206 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13207 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13208 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13209 cat >>confdefs.h <<_ACEOF
13210 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13218 for ac_func in pthread_kill_other_threads_np
13220 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
13221 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
13222 cat >>confdefs.h <<_ACEOF
13223 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
13230 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
13231 if ${ol_cv_sys_linux_threads+:} false; then :
13232 $as_echo_n "(cached) " >&6
13234 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
13237 $as_echo "$ol_cv_sys_linux_threads" >&6; }
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
13243 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
13244 if ${ol_cv_linux_threads+:} false; then :
13245 $as_echo_n "(cached) " >&6
13248 if test $ol_cv_header_linux_threads = yes &&
13249 test $ol_cv_sys_linux_threads = yes; then
13250 ol_cv_linux_threads=yes
13251 elif test $ol_cv_header_linux_threads = no &&
13252 test $ol_cv_sys_linux_threads = no; then
13253 ol_cv_linux_threads=no
13255 ol_cv_linux_threads=error
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
13260 $as_echo "$ol_cv_linux_threads" >&6; }
13263 if test $ol_cv_linux_threads = error; then
13264 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
13268 $as_echo_n "checking if pthread_create() works... " >&6; }
13269 if ${ol_cv_pthread_create_works+:} false; then :
13270 $as_echo_n "(cached) " >&6
13273 if test "$cross_compiling" = yes; then :
13274 ol_cv_pthread_create_works=yes
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13280 /* pthread test headers */
13281 #include <pthread.h>
13282 #if HAVE_PTHREADS < 7
13286 #define NULL (void*)0
13289 static void *task(p)
13292 return (void *) (p == NULL);
13296 int main(argc, argv)
13301 /* pthread test function */
13302 #ifndef PTHREAD_CREATE_DETACHED
13303 #define PTHREAD_CREATE_DETACHED 1
13307 int detach = PTHREAD_CREATE_DETACHED;
13309 #if HAVE_PTHREADS > 4
13310 /* Final pthreads */
13311 pthread_attr_t attr;
13313 status = pthread_attr_init(&attr);
13314 if( status ) return status;
13316 #if HAVE_PTHREADS < 7
13317 status = pthread_attr_setdetachstate(&attr, &detach);
13318 if( status < 0 ) status = errno;
13320 status = pthread_attr_setdetachstate(&attr, detach);
13322 if( status ) return status;
13323 status = pthread_create( &t, &attr, task, NULL );
13324 #if HAVE_PTHREADS < 7
13325 if( status < 0 ) status = errno;
13327 if( status ) return status;
13329 /* Draft 4 pthreads */
13330 status = pthread_create( &t, pthread_attr_default, task, NULL );
13331 if( status ) return errno;
13333 /* give thread a chance to complete */
13334 /* it should remain joinable and hence detachable */
13337 status = pthread_detach( &t );
13338 if( status ) return errno;
13341 #ifdef HAVE_LINUX_THREADS
13342 pthread_kill_other_threads_np();
13350 if ac_fn_c_try_run "$LINENO"; then :
13351 ol_cv_pthread_create_works=yes
13353 ol_cv_pthread_create_works=no
13355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13356 conftest.$ac_objext conftest.beam conftest.$ac_ext
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
13361 $as_echo "$ol_cv_pthread_create_works" >&6; }
13363 if test $ol_cv_pthread_create_works = no ; then
13364 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
13367 ol_replace_broken_yield=no
13369 if test $ol_replace_broken_yield = yes ; then
13371 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
13375 if test x$ol_with_yielding_select = xauto ; then
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
13377 $as_echo_n "checking if select yields when using pthreads... " >&6; }
13378 if ${ol_cv_pthread_select_yields+:} false; then :
13379 $as_echo_n "(cached) " >&6
13382 if test "$cross_compiling" = yes; then :
13383 ol_cv_pthread_select_yields=cross
13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13388 #include <sys/types.h>
13389 #include <sys/time.h>
13390 #include <unistd.h>
13391 #include <pthread.h>
13393 #define NULL (void*) 0
13396 static int fildes[2];
13398 static void *task(p)
13410 FD_SET(fildes[0], &rfds);
13412 /* we're not interested in any fds */
13413 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
13420 exit(0); /* if we exit here, the select blocked the whole process */
13423 int main(argc, argv)
13429 /* create a pipe to select */
13430 if(pipe(&fildes[0])) {
13435 #ifdef HAVE_PTHREAD_SETCONCURRENCY
13436 (void) pthread_setconcurrency(2);
13438 #ifdef HAVE_THR_SETCONCURRENCY
13439 /* Set Solaris LWP concurrency to 2 */
13440 thr_setconcurrency(2);
13444 #if HAVE_PTHREADS < 6
13445 pthread_create(&t, pthread_attr_default, task, NULL);
13447 pthread_create(&t, NULL, task, NULL);
13450 /* make sure task runs first */
13451 #ifdef HAVE_THR_YIELD
13453 #elif defined( HAVE_SCHED_YIELD )
13455 #elif defined( HAVE_PTHREAD_YIELD )
13462 if ac_fn_c_try_run "$LINENO"; then :
13463 ol_cv_pthread_select_yields=no
13465 ol_cv_pthread_select_yields=yes
13467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13468 conftest.$ac_objext conftest.beam conftest.$ac_ext
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
13473 $as_echo "$ol_cv_pthread_select_yields" >&6; }
13475 if test $ol_cv_pthread_select_yields = cross ; then
13476 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
13479 if test $ol_cv_pthread_select_yields = yes ; then
13480 ol_with_yielding_select=yes
13484 CPPFLAGS="$save_CPPFLAGS"
13487 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
13491 if test $ol_with_threads = posix ; then
13492 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
13497 case $ol_with_threads in auto | yes | mach)
13499 for ac_header in mach/cthreads.h cthreads.h
13501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13502 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13503 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13504 cat >>confdefs.h <<_ACEOF
13505 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13512 if test $ac_cv_header_mach_cthreads_h = yes ; then
13513 ol_with_threads=found
13515 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
13516 if test "x$ac_cv_func_cthread_fork" = xyes; then :
13517 ol_link_threads=yes
13521 if test $ol_link_threads = no ; then
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
13523 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
13524 if ${ol_cv_cthread_all_load+:} false; then :
13525 $as_echo_n "(cached) " >&6
13529 LIBS="-all_load $LIBS"
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13532 #include <mach/cthreads.h>
13537 cthread_fork((void *)0, (void *)0);
13543 if ac_fn_c_try_link "$LINENO"; then :
13544 ol_cv_cthread_all_load=yes
13546 ol_cv_cthread_all_load=no
13548 rm -f core conftest.err conftest.$ac_objext \
13549 conftest$ac_exeext conftest.$ac_ext
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
13554 $as_echo "$ol_cv_cthread_all_load" >&6; }
13556 if test $ol_cv_cthread_all_load = yes ; then
13557 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
13558 ol_link_threads=mach
13559 ol_with_threads=found
13563 elif test $ac_cv_header_cthreads_h = yes ; then
13565 ol_with_threads=found
13568 LIBS="$LIBS -lthreads"
13569 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
13570 if test "x$ac_cv_func_cthread_fork" = xyes; then :
13571 ol_link_threads=yes
13576 if test $ol_link_threads = yes ; then
13577 LTHREAD_LIBS="-lthreads"
13578 ol_link_threads=mach
13579 ol_with_threads=found
13581 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
13584 elif test $ol_with_threads = mach ; then
13585 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
13588 if test $ol_link_threads = mach ; then
13590 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
13592 elif test $ol_with_threads = found ; then
13593 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
13598 case $ol_with_threads in auto | yes | pth)
13600 for ac_header in pth.h
13602 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
13603 if test "x$ac_cv_header_pth_h" = xyes; then :
13604 cat >>confdefs.h <<_ACEOF
13605 #define HAVE_PTH_H 1
13613 if test $ac_cv_header_pth_h = yes ; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
13615 $as_echo_n "checking for pth_version in -lpth... " >&6; }
13616 if ${ac_cv_lib_pth_pth_version+:} false; then :
13617 $as_echo_n "(cached) " >&6
13619 ac_check_lib_save_LIBS=$LIBS
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13624 /* Override any GCC internal prototype to avoid an error.
13625 Use char because int might match the return type of a GCC
13626 builtin and then its argument prototype would still apply. */
13630 char pth_version ();
13634 return pth_version ();
13639 if ac_fn_c_try_link "$LINENO"; then :
13640 ac_cv_lib_pth_pth_version=yes
13642 ac_cv_lib_pth_pth_version=no
13644 rm -f core conftest.err conftest.$ac_objext \
13645 conftest$ac_exeext conftest.$ac_ext
13646 LIBS=$ac_check_lib_save_LIBS
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
13649 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
13650 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
13657 if test $have_pth = yes ; then
13659 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
13661 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
13662 ol_link_threads=pth
13663 ol_with_threads=found
13665 if test x$ol_with_yielding_select = xauto ; then
13666 ol_with_yielding_select=yes
13673 case $ol_with_threads in auto | yes | lwp)
13675 for ac_header in thread.h synch.h
13677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13678 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13679 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13680 cat >>confdefs.h <<_ACEOF
13681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13688 if test $ac_cv_header_thread_h = yes &&
13689 test $ac_cv_header_synch_h = yes ; then
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
13691 $as_echo_n "checking for thr_create in -lthread... " >&6; }
13692 if ${ac_cv_lib_thread_thr_create+:} false; then :
13693 $as_echo_n "(cached) " >&6
13695 ac_check_lib_save_LIBS=$LIBS
13696 LIBS="-lthread $LIBS"
13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h. */
13700 /* Override any GCC internal prototype to avoid an error.
13701 Use char because int might match the return type of a GCC
13702 builtin and then its argument prototype would still apply. */
13706 char thr_create ();
13710 return thr_create ();
13715 if ac_fn_c_try_link "$LINENO"; then :
13716 ac_cv_lib_thread_thr_create=yes
13718 ac_cv_lib_thread_thr_create=no
13720 rm -f core conftest.err conftest.$ac_objext \
13721 conftest$ac_exeext conftest.$ac_ext
13722 LIBS=$ac_check_lib_save_LIBS
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
13725 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
13726 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
13733 if test $have_thr = yes ; then
13735 $as_echo "#define HAVE_THR 1" >>confdefs.h
13737 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
13738 ol_link_threads=thr
13740 if test x$ol_with_yielding_select = xauto ; then
13741 ol_with_yielding_select=yes
13745 thr_setconcurrency \
13746 thr_getconcurrency \
13749 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13750 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13751 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13752 cat >>confdefs.h <<_ACEOF
13753 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13762 for ac_header in lwp/lwp.h
13764 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
13765 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
13766 cat >>confdefs.h <<_ACEOF
13767 #define HAVE_LWP_LWP_H 1
13774 if test $ac_cv_header_lwp_lwp_h = yes ; then
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
13776 $as_echo_n "checking for lwp_create in -llwp... " >&6; }
13777 if ${ac_cv_lib_lwp_lwp_create+:} false; then :
13778 $as_echo_n "(cached) " >&6
13780 ac_check_lib_save_LIBS=$LIBS
13782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783 /* end confdefs.h. */
13785 /* Override any GCC internal prototype to avoid an error.
13786 Use char because int might match the return type of a GCC
13787 builtin and then its argument prototype would still apply. */
13791 char lwp_create ();
13795 return lwp_create ();
13800 if ac_fn_c_try_link "$LINENO"; then :
13801 ac_cv_lib_lwp_lwp_create=yes
13803 ac_cv_lib_lwp_lwp_create=no
13805 rm -f core conftest.err conftest.$ac_objext \
13806 conftest$ac_exeext conftest.$ac_ext
13807 LIBS=$ac_check_lib_save_LIBS
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
13810 $as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
13811 if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
13818 if test $have_lwp = yes ; then
13820 $as_echo "#define HAVE_LWP 1" >>confdefs.h
13822 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
13823 ol_link_threads=lwp
13825 if test x$ol_with_yielding_select = xauto ; then
13826 ol_with_yielding_select=no
13833 if test $ol_with_yielding_select = yes ; then
13835 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
13839 if test $ol_with_threads = manual ; then
13840 ol_link_threads=yes
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
13843 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
13845 for ac_header in pthread.h sched.h
13847 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13848 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13849 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13850 cat >>confdefs.h <<_ACEOF
13851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13858 for ac_func in sched_yield pthread_yield
13860 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13861 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13862 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13863 cat >>confdefs.h <<_ACEOF
13864 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
13872 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
13873 if ${ol_cv_header_linux_threads+:} false; then :
13874 $as_echo_n "(cached) " >&6
13876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13877 /* end confdefs.h. */
13878 #include <pthread.h>
13880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13881 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
13882 ol_cv_header_linux_threads=yes
13884 ol_cv_header_linux_threads=no
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
13891 $as_echo "$ol_cv_header_linux_threads" >&6; }
13892 if test $ol_cv_header_linux_threads = yes; then
13894 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
13899 for ac_header in mach/cthreads.h
13901 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
13902 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
13903 cat >>confdefs.h <<_ACEOF
13904 #define HAVE_MACH_CTHREADS_H 1
13911 for ac_header in lwp/lwp.h
13913 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
13914 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
13915 cat >>confdefs.h <<_ACEOF
13916 #define HAVE_LWP_LWP_H 1
13923 for ac_header in thread.h synch.h
13925 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13926 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13927 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13928 cat >>confdefs.h <<_ACEOF
13929 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13938 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
13940 $as_echo "#define REENTRANT 1" >>confdefs.h
13943 $as_echo "#define _REENTRANT 1" >>confdefs.h
13946 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
13949 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
13952 $as_echo "#define THREADSAFE 1" >>confdefs.h
13955 $as_echo "#define _THREADSAFE 1" >>confdefs.h
13958 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
13962 $as_echo_n "checking for thread specific errno... " >&6; }
13963 if ${ol_cv_errno_thread_specific+:} false; then :
13964 $as_echo_n "(cached) " >&6
13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13968 /* end confdefs.h. */
13978 if ac_fn_c_try_link "$LINENO"; then :
13979 ol_cv_errno_thread_specific=yes
13981 ol_cv_errno_thread_specific=no
13983 rm -f core conftest.err conftest.$ac_objext \
13984 conftest$ac_exeext conftest.$ac_ext
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
13988 $as_echo "$ol_cv_errno_thread_specific" >&6; }
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
13991 $as_echo_n "checking for thread specific h_errno... " >&6; }
13992 if ${ol_cv_h_errno_thread_specific+:} false; then :
13993 $as_echo_n "(cached) " >&6
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
14007 if ac_fn_c_try_link "$LINENO"; then :
14008 ol_cv_h_errno_thread_specific=yes
14010 ol_cv_h_errno_thread_specific=no
14012 rm -f core conftest.err conftest.$ac_objext \
14013 conftest$ac_exeext conftest.$ac_ext
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
14017 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
14019 if test $ol_cv_errno_thread_specific != yes ||
14020 test $ol_cv_h_errno_thread_specific != yes ; then
14021 LIBS="$LTHREAD_LIBS $LIBS"
14027 if test $ol_link_threads = no ; then
14028 if test $ol_with_threads = yes ; then
14029 as_fn_error $? "no suitable thread support" "$LINENO" 5
14032 if test $ol_with_threads = auto ; then
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
14034 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
14039 $as_echo "#define NO_THREADS 1" >>confdefs.h
14047 if test $ol_link_threads != no ; then
14049 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
14053 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14054 case "$ol_with_threads" in
14060 ol_found_pthreads=yes
14065 ac_cpp='$CPP $CPPFLAGS'
14066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14075 case "$ol_found_pthreads" in
14078 LIBS="$LTHREAD_LIBS $LIBS"
14079 saved_CFLAGS="$CFLAGS"
14080 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
14081 for ac_func in sem_timedwait
14083 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14084 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
14085 cat >>confdefs.h <<_ACEOF
14086 #define HAVE_SEM_TIMEDWAIT 1
14093 { saved_LIBS=; unset saved_LIBS;}
14094 CFLAGS="$saved_CFLAGS"
14095 { saved_CFLAGS=; unset saved_CFLAGS;}
14096 case "$ac_cv_func_sem_timedwait" in
14098 PTHREAD_LIBS="$LTHREAD_LIBS"
14104 case "$have_pthreads" in
14106 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
14108 LIBS="$LTHREAD_LIBS $LIBS"
14109 saved_CFLAGS="$CFLAGS"
14110 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
14111 # The cast to long int works around a bug in the HP C Compiler
14112 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14113 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14114 # This bug is HP SR number 8606223364.
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14116 $as_echo_n "checking size of pthread_t... " >&6; }
14117 if ${ac_cv_sizeof_pthread_t+:} false; then :
14118 $as_echo_n "(cached) " >&6
14120 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
14121 $ac_includes_default
14122 #include <pthread.h>
14128 if test "$ac_cv_type_pthread_t" = yes; then
14129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14131 as_fn_error 77 "cannot compute sizeof (pthread_t)
14132 See \`config.log' for more details" "$LINENO" 5; }
14134 ac_cv_sizeof_pthread_t=0
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14140 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14144 cat >>confdefs.h <<_ACEOF
14145 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14149 LIBISC_PTHREADS_NOTHREADS=pthreads
14151 $as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
14154 # We'd like to use sigwait() too
14156 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
14157 if test "x$ac_cv_func_sigwait" = xyes; then :
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
14161 $as_echo_n "checking for sigwait in -lc... " >&6; }
14162 if ${ac_cv_lib_c_sigwait+:} false; then :
14163 $as_echo_n "(cached) " >&6
14165 ac_check_lib_save_LIBS=$LIBS
14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14168 /* end confdefs.h. */
14170 /* Override any GCC internal prototype to avoid an error.
14171 Use char because int might match the return type of a GCC
14172 builtin and then its argument prototype would still apply. */
14185 if ac_fn_c_try_link "$LINENO"; then :
14186 ac_cv_lib_c_sigwait=yes
14188 ac_cv_lib_c_sigwait=no
14190 rm -f core conftest.err conftest.$ac_objext \
14191 conftest$ac_exeext conftest.$ac_ext
14192 LIBS=$ac_check_lib_save_LIBS
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
14195 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
14196 if test "x$ac_cv_lib_c_sigwait" = xyes; then :
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
14200 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
14201 if ${ac_cv_lib_pthread_sigwait+:} false; then :
14202 $as_echo_n "(cached) " >&6
14204 ac_check_lib_save_LIBS=$LIBS
14205 LIBS="-lpthread $LIBS"
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14209 /* Override any GCC internal prototype to avoid an error.
14210 Use char because int might match the return type of a GCC
14211 builtin and then its argument prototype would still apply. */
14224 if ac_fn_c_try_link "$LINENO"; then :
14225 ac_cv_lib_pthread_sigwait=yes
14227 ac_cv_lib_pthread_sigwait=no
14229 rm -f core conftest.err conftest.$ac_objext \
14230 conftest$ac_exeext conftest.$ac_ext
14231 LIBS=$ac_check_lib_save_LIBS
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
14234 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
14235 if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
14239 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
14240 if ${ac_cv_lib_pthread__Psigwait+:} false; then :
14241 $as_echo_n "(cached) " >&6
14243 ac_check_lib_save_LIBS=$LIBS
14244 LIBS="-lpthread $LIBS"
14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14248 /* Override any GCC internal prototype to avoid an error.
14249 Use char because int might match the return type of a GCC
14250 builtin and then its argument prototype would still apply. */
14258 return _Psigwait ();
14263 if ac_fn_c_try_link "$LINENO"; then :
14264 ac_cv_lib_pthread__Psigwait=yes
14266 ac_cv_lib_pthread__Psigwait=no
14268 rm -f core conftest.err conftest.$ac_objext \
14269 conftest$ac_exeext conftest.$ac_ext
14270 LIBS=$ac_check_lib_save_LIBS
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
14273 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
14274 if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
14290 case "$host:$have_sigwait" in
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
14293 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
14294 if ${ac_cv_lib_c_r_sigwait+:} false; then :
14295 $as_echo_n "(cached) " >&6
14297 ac_check_lib_save_LIBS=$LIBS
14299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14300 /* end confdefs.h. */
14302 /* Override any GCC internal prototype to avoid an error.
14303 Use char because int might match the return type of a GCC
14304 builtin and then its argument prototype would still apply. */
14317 if ac_fn_c_try_link "$LINENO"; then :
14318 ac_cv_lib_c_r_sigwait=yes
14320 ac_cv_lib_c_r_sigwait=no
14322 rm -f core conftest.err conftest.$ac_objext \
14323 conftest$ac_exeext conftest.$ac_ext
14324 LIBS=$ac_check_lib_save_LIBS
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
14327 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
14328 if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
14334 case "$have_sigwait" in
14336 ac_cv_func_sigwait=yes
14338 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
14342 for ac_func in pthread_attr_getstacksize
14344 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
14345 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
14346 cat >>confdefs.h <<_ACEOF
14347 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
14353 for ac_func in pthread_attr_setstacksize sysconf
14355 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14356 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14357 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14358 cat >>confdefs.h <<_ACEOF
14359 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14367 *-freebsd5.[012]|*-freebsd5.[012].*)
14369 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
14371 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
14374 *-bsdi3.*|*-bsdi4.0*)
14376 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
14381 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
14385 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
14387 for ac_func in pthread_setconcurrency
14389 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
14390 if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
14391 cat >>confdefs.h <<_ACEOF
14392 #define HAVE_PTHREAD_SETCONCURRENCY 1
14398 case "$ac_cv_func_pthread_setconcurrency" in
14401 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
14405 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
14407 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
14411 hack_shutup_pthreadonceinit=no
14414 hack_shutup_pthreadonceinit=yes
14417 hack_shutup_pthreadonceinit=yes
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
14421 $as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
14422 if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
14423 $as_echo_n "(cached) " >&6
14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426 /* end confdefs.h. */
14428 #include <pthread.h>
14434 static pthread_once_t once_test =
14442 if ac_fn_c_try_compile "$LINENO"; then :
14443 ntp_cv_braces_around_pthread_once_init=no
14445 ntp_cv_braces_around_pthread_once_init=yes
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
14452 $as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
14453 case "$ntp_cv_braces_around_pthread_once_init" in
14455 hack_shutup_pthreadonceinit=yes
14459 case "$hack_shutup_pthreadonceinit" in
14462 $as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
14466 { saved_LIBS=; unset saved_LIBS;}
14467 CFLAGS="$saved_CFLAGS"
14468 { saved_CFLAGS=; unset saved_CFLAGS;}
14471 LIBISC_PTHREADS_NOTHREADS=nothreads
14475 if test "$have_pthreads" != "no"; then
14489 case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
14492 $as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
14493 if ${ntp_cv_vsnprintf_percent_m+:} false; then :
14494 $as_echo_n "(cached) " >&6
14496 if test "$cross_compiling" = yes; then :
14497 ntp_cv_vsnprintf_percent_m=no
14500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h. */
14503 #include <stdarg.h>
14506 #include <string.h>
14508 int call_vsnprintf(
14515 int call_vsnprintf(
14526 rc = vsnprintf(dst, sz, fmt, ap);
14540 strcpy(sbuf, strerror(ENOENT));
14542 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
14544 return strcmp(sbuf, pbuf);
14551 if ac_fn_c_try_run "$LINENO"; then :
14552 ntp_cv_vsnprintf_percent_m=yes
14554 ntp_cv_vsnprintf_percent_m=no
14556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14557 conftest.$ac_objext conftest.beam conftest.$ac_ext
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
14563 $as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
14564 case "$ntp_cv_vsnprintf_percent_m" in
14567 $as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
14572 for ac_header in sys/clockctl.h
14574 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
14575 if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
14576 cat >>confdefs.h <<_ACEOF
14577 #define HAVE_SYS_CLOCKCTL_H 1
14585 # Check whether --enable-clockctl was given.
14586 if test "${enable_clockctl+set}" = set; then :
14587 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
14589 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
14595 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
14597 $as_echo "$ntp_use_dev_clockctl" >&6; }
14600 for ac_header in sys/capability.h sys/prctl.h
14602 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14603 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14604 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14605 cat >>confdefs.h <<_ACEOF
14606 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
14615 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
14617 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
14621 ntp_have_linuxcaps=no
14623 *) ntp_have_linuxcaps=yes
14628 ntp_have_linuxcaps=no
14632 # Check whether --enable-linuxcaps was given.
14633 if test "${enable_linuxcaps+set}" = set; then :
14634 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
14640 $as_echo "$ntp_have_linuxcaps" >&6; }
14642 case "$ntp_have_linuxcaps" in
14645 $as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
14652 for ac_header in priv.h
14654 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
14655 if test "x$ac_cv_header_priv_h" = xyes; then :
14656 cat >>confdefs.h <<_ACEOF
14657 #define HAVE_PRIV_H 1
14664 case "$ac_cv_header_priv_h" in
14668 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
14669 if test "x$ac_cv_func_setppriv" = xyes; then :
14670 ntp_have_solarisprivs=yes
14672 ntp_have_solarisprivs=no
14680 # Check whether --enable-solarisprivs was given.
14681 if test "${enable_solarisprivs+set}" = set; then :
14682 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
14688 $as_echo_n "checking if we have solaris privileges... " >&6; }
14690 case "$ntp_have_solarisprivs" in
14693 $as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
14696 '') ntp_have_solarisprivs="no"
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
14701 $as_echo "$ntp_have_solarisprivs" >&6; }
14703 for ac_header in sys/mac.h
14705 ac_fn_c_check_header_mongrel "$LINENO" "sys/mac.h" "ac_cv_header_sys_mac_h" "$ac_includes_default"
14706 if test "x$ac_cv_header_sys_mac_h" = xyes; then :
14707 cat >>confdefs.h <<_ACEOF
14708 #define HAVE_SYS_MAC_H 1
14716 # Check whether --enable-trustedbsd_mac was given.
14717 if test "${enable_trustedbsd_mac+set}" = set; then :
14718 enableval=$enable_trustedbsd_mac; ntp_use_trustedbsd_mac=$enableval
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use TrustedBSD MAC privileges" >&5
14724 $as_echo_n "checking if we should use TrustedBSD MAC privileges... " >&6; }
14726 case "$ntp_use_trustedbsd_mac$ac_cv_header_sys_mac_h" in
14729 $as_echo "#define HAVE_TRUSTEDBSD_MAC 1" >>confdefs.h
14732 *) ntp_use_trustedbsd_mac="no";
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_trustedbsd_mac" >&5
14737 $as_echo "$ntp_use_trustedbsd_mac" >&6; }
14739 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs$ntp_use_trustedbsd_mac" in
14742 $as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
14749 $as_echo_n "checking for library containing res_9_init... " >&6; }
14750 if ${ac_cv_search_res_9_init+:} false; then :
14751 $as_echo_n "(cached) " >&6
14753 ac_func_search_save_LIBS=$LIBS
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14757 /* Override any GCC internal prototype to avoid an error.
14758 Use char because int might match the return type of a GCC
14759 builtin and then its argument prototype would still apply. */
14763 char res_9_init ();
14767 return res_9_init ();
14772 for ac_lib in '' resolv; do
14773 if test -z "$ac_lib"; then
14774 ac_res="none required"
14777 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14779 if ac_fn_c_try_link "$LINENO"; then :
14780 ac_cv_search_res_9_init=$ac_res
14782 rm -f core conftest.err conftest.$ac_objext \
14784 if ${ac_cv_search_res_9_init+:} false; then :
14788 if ${ac_cv_search_res_9_init+:} false; then :
14791 ac_cv_search_res_9_init=no
14793 rm conftest.$ac_ext
14794 LIBS=$ac_func_search_save_LIBS
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
14797 $as_echo "$ac_cv_search_res_9_init" >&6; }
14798 ac_res=$ac_cv_search_res_9_init
14799 if test "$ac_res" != no; then :
14800 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14805 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
14806 $as_echo_n "checking for library containing res_init... " >&6; }
14807 if ${ac_cv_search_res_init+:} false; then :
14808 $as_echo_n "(cached) " >&6
14810 ac_func_search_save_LIBS=$LIBS
14811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14812 /* end confdefs.h. */
14814 /* Override any GCC internal prototype to avoid an error.
14815 Use char because int might match the return type of a GCC
14816 builtin and then its argument prototype would still apply. */
14824 return res_init ();
14829 for ac_lib in '' resolv; do
14830 if test -z "$ac_lib"; then
14831 ac_res="none required"
14834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14836 if ac_fn_c_try_link "$LINENO"; then :
14837 ac_cv_search_res_init=$ac_res
14839 rm -f core conftest.err conftest.$ac_objext \
14841 if ${ac_cv_search_res_init+:} false; then :
14845 if ${ac_cv_search_res_init+:} false; then :
14848 ac_cv_search_res_init=no
14850 rm conftest.$ac_ext
14851 LIBS=$ac_func_search_save_LIBS
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
14854 $as_echo "$ac_cv_search_res_init" >&6; }
14855 ac_res=$ac_cv_search_res_init
14856 if test "$ac_res" != no; then :
14857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14863 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
14865 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14866 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
14867 # include <sys/types.h>
14869 #ifdef HAVE_NETINET_IN_H
14870 # include <netinet/in.h> /* inet_ functions / structs */
14872 #ifdef HAVE_ARPA_NAMESER_H
14873 # include <arpa/nameser.h> /* DNS HEADER struct */
14875 #ifdef HAVE_NETDB_H
14876 # include <netdb.h>
14879 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14880 cat >>confdefs.h <<_ACEOF
14881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14889 #HMS: Why do we do this check so "early"?
14890 for ac_func in res_init
14892 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
14893 if test "x$ac_cv_func_res_init" = xyes; then :
14894 cat >>confdefs.h <<_ACEOF
14895 #define HAVE_RES_INIT 1
14899 for ac_func in __res_init
14901 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
14902 if test "x$ac_cv_func___res_init" = xyes; then :
14903 cat >>confdefs.h <<_ACEOF
14904 #define HAVE___RES_INIT 1
14914 # We also need -lsocket, but we have tested for that already.
14915 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
14916 if test "x$ac_cv_func_inet_ntop" = xyes; then :
14920 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
14924 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
14925 if test "x$ac_cv_func_inet_pton" = xyes; then :
14929 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
14934 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14935 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14937 cat >>confdefs.h <<_ACEOF
14938 #define HAVE_UINTPTR_T 1
14943 ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
14944 if test "x$ac_cv_type_int32" = xyes; then :
14946 cat >>confdefs.h <<_ACEOF
14947 #define HAVE_INT32 1
14952 ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
14953 if test "x$ac_cv_type_u_int32" = xyes; then :
14955 cat >>confdefs.h <<_ACEOF
14956 #define HAVE_U_INT32 1
14965 case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
14968 $as_echo_n "checking for int32 with DNS headers included... " >&6; }
14969 if ${ntp_cv_type_int32_with_dns+:} false; then :
14970 $as_echo_n "(cached) " >&6
14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h. */
14975 #ifdef HAVE_ARPA_NAMESER_H
14976 # include <arpa/nameser.h>
14978 #include <resolv.h>
14984 size_t cb = sizeof(int32);
14991 if ac_fn_c_try_compile "$LINENO"; then :
14992 ntp_cv_type_int32_with_dns=yes
14994 ntp_cv_type_int32_with_dns=no
14997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
15001 $as_echo "$ntp_cv_type_int32_with_dns" >&6; }
15002 case "$ntp_cv_type_int32_with_dns" in
15005 $as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
15010 case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
15013 $as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
15014 if ${ntp_cv_type_u_int32_with_dns+:} false; then :
15015 $as_echo_n "(cached) " >&6
15017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15018 /* end confdefs.h. */
15020 #ifdef HAVE_ARPA_NAMESER_H
15021 # include <arpa/nameser.h>
15023 #include <resolv.h>
15029 size_t cb = sizeof(u_int32);
15036 if ac_fn_c_try_compile "$LINENO"; then :
15037 ntp_cv_type_u_int32_with_dns=yes
15039 ntp_cv_type_u_int32_with_dns=no
15042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
15046 $as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
15047 case "$ntp_cv_type_u_int32_with_dns" in
15050 $as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
15055 for ac_header in sys/timepps.h
15057 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
15058 #ifdef HAVE_SYS_TIME_H
15059 # include <sys/time.h>
15061 #ifdef HAVE_ERRNO_H
15062 # include <errno.h>
15067 if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
15068 cat >>confdefs.h <<_ACEOF
15069 #define HAVE_SYS_TIMEPPS_H 1
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
15078 $as_echo_n "checking for struct timespec... " >&6; }
15079 if ${ntp_cv_struct_timespec+:} false; then :
15080 $as_echo_n "(cached) " >&6
15082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15083 /* end confdefs.h. */
15085 #include <sys/time.h>
15086 /* Under SunOS, timespec is in sys/timepps.h,
15087 which needs errno.h and FRAC */
15088 #ifdef HAVE_ERRNO_H
15089 # include <errno.h>
15091 #ifdef HAVE_SYS_TIMEPPS_H
15092 # define FRAC 4294967296
15093 # include <sys/timepps.h>
15107 if ac_fn_c_try_compile "$LINENO"; then :
15108 ntp_cv_struct_timespec=yes
15110 ntp_cv_struct_timespec=no
15113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
15117 $as_echo "$ntp_cv_struct_timespec" >&6; }
15118 case "$ntp_cv_struct_timespec" in
15121 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
15126 $as_echo_n "checking for struct ntptimeval... " >&6; }
15127 if ${ntp_cv_struct_ntptimeval+:} false; then :
15128 $as_echo_n "(cached) " >&6
15130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15131 /* end confdefs.h. */
15133 #include <sys/time.h>
15134 #include <sys/timex.h>
15140 struct ntptimeval n;
15147 if ac_fn_c_try_compile "$LINENO"; then :
15148 ntp_cv_struct_ntptimeval=yes
15150 ntp_cv_struct_ntptimeval=no
15153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
15157 $as_echo "$ntp_cv_struct_ntptimeval" >&6; }
15158 case "$ntp_cv_struct_ntptimeval" in
15161 $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
15165 for ac_header in md5.h
15167 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
15168 #ifdef HAVE_SYS_TYPES_H
15169 # include <sys/types.h>
15174 if test "x$ac_cv_header_md5_h" = xyes; then :
15175 cat >>confdefs.h <<_ACEOF
15176 #define HAVE_MD5_H 1
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
15185 $as_echo_n "checking for library containing MD5Init... " >&6; }
15186 if ${ac_cv_search_MD5Init+:} false; then :
15187 $as_echo_n "(cached) " >&6
15189 ac_func_search_save_LIBS=$LIBS
15190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15191 /* end confdefs.h. */
15193 /* Override any GCC internal prototype to avoid an error.
15194 Use char because int might match the return type of a GCC
15195 builtin and then its argument prototype would still apply. */
15208 for ac_lib in '' md5 md; do
15209 if test -z "$ac_lib"; then
15210 ac_res="none required"
15213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15215 if ac_fn_c_try_link "$LINENO"; then :
15216 ac_cv_search_MD5Init=$ac_res
15218 rm -f core conftest.err conftest.$ac_objext \
15220 if ${ac_cv_search_MD5Init+:} false; then :
15224 if ${ac_cv_search_MD5Init+:} false; then :
15227 ac_cv_search_MD5Init=no
15229 rm conftest.$ac_ext
15230 LIBS=$ac_func_search_save_LIBS
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
15233 $as_echo "$ac_cv_search_MD5Init" >&6; }
15234 ac_res=$ac_cv_search_MD5Init
15235 if test "$ac_res" != no; then :
15236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15240 for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
15242 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15243 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15244 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15245 cat >>confdefs.h <<_ACEOF
15246 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15253 # HMS: does this need to be a cached variable?
15254 # Check whether --enable-signalled-io was given.
15255 if test "${enable_signalled_io+set}" = set; then :
15256 enableval=$enable_signalled_io; use_signalled_io=$enableval
15258 use_signalled_io=yes
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
15264 $as_echo_n "checking for SIGIO... " >&6; }
15265 if ${ntp_cv_hdr_def_sigio+:} false; then :
15266 $as_echo_n "(cached) " >&6
15268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269 /* end confdefs.h. */
15271 #include <signal.h>
15278 if ac_fn_c_try_cpp "$LINENO"; then :
15279 ntp_cv_hdr_def_sigio=yes
15281 ntp_cv_hdr_def_sigio=no
15284 rm -f conftest.err conftest.i conftest.$ac_ext
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
15288 $as_echo "$ntp_cv_hdr_def_sigio" >&6; }
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
15291 $as_echo_n "checking if we want to use SIGIO... " >&6; }
15293 case "$ntp_cv_hdr_def_sigio" in
15297 alpha*-dec-osf4*|alpha*-dec-osf5*)
15339 ans="Possible for $host but disabled because of reported problems"
15346 case "$use_signalled_io" in
15349 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
15352 *) ans="Allowed for $host but --disable-signalled-io was given"
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15357 $as_echo "$ans" >&6; }
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
15360 $as_echo_n "checking for SIGPOLL... " >&6; }
15361 if ${ntp_cv_hdr_def_sigpoll+:} false; then :
15362 $as_echo_n "(cached) " >&6
15364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15365 /* end confdefs.h. */
15367 #include <signal.h>
15374 if ac_fn_c_try_cpp "$LINENO"; then :
15375 ntp_cv_hdr_def_sigpoll=yes
15377 ntp_cv_hdr_def_sigpoll=no
15380 rm -f conftest.err conftest.i conftest.$ac_ext
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
15384 $as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
15387 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
15389 case "$ntp_cv_hdr_def_sigpoll" in
15408 # XXX Only verified thru AIX6
15446 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15450 $as_echo "$ans" >&6; }
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
15453 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
15455 case "$ntp_cv_hdr_def_sigpoll" in
15474 # XXX Only verified thru AIX6
15509 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15513 $as_echo "$ans" >&6; }
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
15516 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
15517 if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
15518 $as_echo_n "(cached) " >&6
15520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15521 /* end confdefs.h. */
15523 #include <sys/time.h>
15529 gettimeofday(0, 0);
15530 settimeofday(0, 0);
15537 if ac_fn_c_try_compile "$LINENO"; then :
15538 ntp_cv_func_Xettimeofday_nargs=2
15540 ntp_cv_func_Xettimeofday_nargs=1
15543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
15547 $as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
15548 case "$ntp_cv_func_Xettimeofday_nargs" in
15551 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
15555 for ac_func in settimeofday
15557 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
15558 if test "x$ac_cv_func_settimeofday" = xyes; then :
15559 cat >>confdefs.h <<_ACEOF
15560 #define HAVE_SETTIMEOFDAY 1
15566 *-*-mpeix*) ac_cv_func_settimeofday=yes
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
15574 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
15575 ntp_warning='GRONK'
15577 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
15580 ans='clock_settime()'
15583 ntp_warning='But clock_settime() would be better (if we had it)'
15584 ans='settimeofday()'
15587 ntp_warning='Which is the worst of the three'
15593 ntp_warning='Which leaves us with nothing to use!'
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15597 $as_echo "$ans" >&6; }
15598 case "$ntp_warning" in
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
15603 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
15608 LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
15610 { __LIBS=; unset __LIBS;}
15614 # Check whether --enable-shared was given.
15615 if test "${enable_shared+set}" = set; then :
15616 enableval=$enable_shared; p=${PACKAGE-default}
15618 yes) enable_shared=yes ;;
15619 no) enable_shared=no ;;
15622 # Look at the argument we got. We use all the common list separators.
15623 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15624 for pkg in $enableval; do
15626 if test "X$pkg" = "X$p"; then
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
15648 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
15653 macro_version='2.4.6'
15654 macro_revision='2.4.6'
15668 ltmain=$ac_aux_dir/ltmain.sh
15670 # Backslashify metacharacters that are still active within
15671 # double-quoted strings.
15672 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
15674 # Same as above, but do not quote variable references.
15675 double_quote_subst='s/\(["`\\]\)/\\\1/g'
15677 # Sed substitution to delay expansion of an escaped shell variable in a
15678 # double_quote_subst'ed string.
15679 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15681 # Sed substitution to delay expansion of an escaped single quote.
15682 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
15684 # Sed substitution to avoid accidental globbing in evaled expressions
15685 no_glob_subst='s/\*/\\\*/g'
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15688 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15689 if ${lt_cv_path_NM+:} false; then :
15690 $as_echo_n "(cached) " >&6
15692 if test -n "$NM"; then
15693 # Let the user override the test.
15696 lt_nm_to_check=${ac_tool_prefix}nm
15697 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15698 lt_nm_to_check="$lt_nm_to_check nm"
15700 for lt_tmp_nm in $lt_nm_to_check; do
15701 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15702 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
15704 test -z "$ac_dir" && ac_dir=.
15705 tmp_nm=$ac_dir/$lt_tmp_nm
15706 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
15707 # Check to see if the nm accepts a BSD-compat flag.
15708 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
15709 # nm: unknown option "B" ignored
15710 # Tru64's nm complains that /dev/null is an invalid object file
15711 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
15713 mingw*) lt_bad_file=conftest.nm/nofile ;;
15714 *) lt_bad_file=/dev/null ;;
15716 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
15717 *$lt_bad_file* | *'Invalid file or object type'*)
15718 lt_cv_path_NM="$tmp_nm -B"
15722 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
15724 lt_cv_path_NM="$tmp_nm -p"
15728 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15729 continue # so that we can try to find one that supports BSD flags
15738 : ${lt_cv_path_NM=no}
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15742 $as_echo "$lt_cv_path_NM" >&6; }
15743 if test no != "$lt_cv_path_NM"; then
15746 # Didn't find any BSD compatible name lister, look for dumpbin.
15747 if test -n "$DUMPBIN"; then :
15748 # Let the user override the test.
15750 if test -n "$ac_tool_prefix"; then
15751 for ac_prog in dumpbin "link -dump"
15753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15756 $as_echo_n "checking for $ac_word... " >&6; }
15757 if ${ac_cv_prog_DUMPBIN+:} false; then :
15758 $as_echo_n "(cached) " >&6
15760 if test -n "$DUMPBIN"; then
15761 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
15763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15764 for as_dir in $PATH
15767 test -z "$as_dir" && as_dir=.
15768 for ac_exec_ext in '' $ac_executable_extensions; do
15769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15770 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
15771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15780 DUMPBIN=$ac_cv_prog_DUMPBIN
15781 if test -n "$DUMPBIN"; then
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15783 $as_echo "$DUMPBIN" >&6; }
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15786 $as_echo "no" >&6; }
15790 test -n "$DUMPBIN" && break
15793 if test -z "$DUMPBIN"; then
15794 ac_ct_DUMPBIN=$DUMPBIN
15795 for ac_prog in dumpbin "link -dump"
15797 # Extract the first word of "$ac_prog", so it can be a program name with args.
15798 set dummy $ac_prog; ac_word=$2
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15800 $as_echo_n "checking for $ac_word... " >&6; }
15801 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
15802 $as_echo_n "(cached) " >&6
15804 if test -n "$ac_ct_DUMPBIN"; then
15805 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
15807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15808 for as_dir in $PATH
15811 test -z "$as_dir" && as_dir=.
15812 for ac_exec_ext in '' $ac_executable_extensions; do
15813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15814 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
15815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15824 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
15825 if test -n "$ac_ct_DUMPBIN"; then
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15827 $as_echo "$ac_ct_DUMPBIN" >&6; }
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15830 $as_echo "no" >&6; }
15834 test -n "$ac_ct_DUMPBIN" && break
15837 if test "x$ac_ct_DUMPBIN" = x; then
15840 case $cross_compiling:$ac_tool_warned in
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15844 ac_tool_warned=yes ;;
15846 DUMPBIN=$ac_ct_DUMPBIN
15850 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
15852 DUMPBIN="$DUMPBIN -symbols -headers"
15860 if test : != "$DUMPBIN"; then
15864 test -z "$NM" && NM=nm
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
15872 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
15873 if ${lt_cv_nm_interface+:} false; then :
15874 $as_echo_n "(cached) " >&6
15876 lt_cv_nm_interface="BSD nm"
15877 echo "int some_variable = 0;" > conftest.$ac_ext
15878 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15879 (eval "$ac_compile" 2>conftest.err)
15880 cat conftest.err >&5
15881 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15882 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
15883 cat conftest.err >&5
15884 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
15885 cat conftest.out >&5
15886 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
15887 lt_cv_nm_interface="MS dumpbin"
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
15892 $as_echo "$lt_cv_nm_interface" >&6; }
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15895 $as_echo_n "checking whether ln -s works... " >&6; }
15897 if test "$LN_S" = "ln -s"; then
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15899 $as_echo "yes" >&6; }
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15902 $as_echo "no, using $LN_S" >&6; }
15905 # find the maximum length of command line arguments
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
15907 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
15908 if ${lt_cv_sys_max_cmd_len+:} false; then :
15909 $as_echo_n "(cached) " >&6
15916 # On DJGPP, this test can blow up pretty badly due to problems in libc
15917 # (any single argument exceeding 2000 bytes causes a buffer overrun
15918 # during glob expansion). Even if it were fixed, the result of this
15919 # check would be larger than it should be.
15920 lt_cv_sys_max_cmd_len=12288; # 12K is about right
15924 # Under GNU Hurd, this test is not required because there is
15925 # no limit to the length of command line arguments.
15926 # Libtool will interpret -1 as no limit whatsoever
15927 lt_cv_sys_max_cmd_len=-1;
15930 cygwin* | mingw* | cegcc*)
15931 # On Win9x/ME, this test blows up -- it succeeds, but takes
15932 # about 5 minutes as the teststring grows exponentially.
15933 # Worse, since 9x/ME are not pre-emptively multitasking,
15934 # you end up with a "frozen" computer, even though with patience
15935 # the test eventually succeeds (with a max line length of 256k).
15936 # Instead, let's just punt: use the minimum linelength reported by
15937 # all of the supported platforms: 8192 (on NT/2K/XP).
15938 lt_cv_sys_max_cmd_len=8192;
15942 # On MiNT this can take a long time and run out of memory.
15943 lt_cv_sys_max_cmd_len=8192;
15947 # On AmigaOS with pdksh, this test takes hours, literally.
15948 # So we just punt and use a minimum line length of 8192.
15949 lt_cv_sys_max_cmd_len=8192;
15952 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
15953 # This has been around since 386BSD, at least. Likely further.
15954 if test -x /sbin/sysctl; then
15955 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
15956 elif test -x /usr/sbin/sysctl; then
15957 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
15959 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
15961 # And add a safety zone
15962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15963 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15967 # We know the value 262144 and hardcode it with a safety zone (like BSD)
15968 lt_cv_sys_max_cmd_len=196608
15972 # The test takes a long time on OS/2.
15973 lt_cv_sys_max_cmd_len=8192
15977 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15978 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15979 # nice to cause kernel panics so lets avoid the loop below.
15980 # First set a reasonable default.
15981 lt_cv_sys_max_cmd_len=16384
15983 if test -x /sbin/sysconfig; then
15984 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15985 *1*) lt_cv_sys_max_cmd_len=-1 ;;
15990 lt_cv_sys_max_cmd_len=102400
15992 sysv5* | sco5v6* | sysv4.2uw2*)
15993 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15994 if test -n "$kargmax"; then
15995 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
15997 lt_cv_sys_max_cmd_len=32768
16001 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
16002 if test -n "$lt_cv_sys_max_cmd_len" && \
16003 test undefined != "$lt_cv_sys_max_cmd_len"; then
16004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16005 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16007 # Make teststring a little bigger before we do anything with it.
16008 # a 1K string should be a reasonable start.
16009 for i in 1 2 3 4 5 6 7 8; do
16010 teststring=$teststring$teststring
16012 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16013 # If test is not a shell built-in, we'll probably end up computing a
16014 # maximum length that is only half of the actual maximum length, but
16016 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
16017 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
16018 test 17 != "$i" # 1/2 MB should be enough
16021 teststring=$teststring$teststring
16023 # Only check the string length outside the loop.
16024 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
16026 # Add a significant safety factor because C++ compilers can tack on
16027 # massive amounts of additional arguments before passing them to the
16028 # linker. It appears as though 1/2 is a usable value.
16029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16036 if test -n "$lt_cv_sys_max_cmd_len"; then
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
16038 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16041 $as_echo "none" >&6; }
16043 max_cmd_len=$lt_cv_sys_max_cmd_len
16054 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16064 # test EBCDIC or ASCII
16065 case `echo X|tr X '\101'` in
16066 A) # ASCII based system
16067 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16068 lt_SP2NL='tr \040 \012'
16069 lt_NL2SP='tr \015\012 \040\040'
16071 *) # EBCDIC based system
16072 lt_SP2NL='tr \100 \n'
16073 lt_NL2SP='tr \r\n \100\100'
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
16086 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
16087 if ${lt_cv_to_host_file_cmd+:} false; then :
16088 $as_echo_n "(cached) " >&6
16093 *-*-mingw* ) # actually msys
16094 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
16097 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
16099 * ) # otherwise, assume *nix
16100 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
16106 *-*-mingw* ) # actually msys
16107 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
16110 lt_cv_to_host_file_cmd=func_convert_file_noop
16112 * ) # otherwise, assume *nix
16113 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
16117 * ) # unhandled hosts (and "normal" native builds)
16118 lt_cv_to_host_file_cmd=func_convert_file_noop
16124 to_host_file_cmd=$lt_cv_to_host_file_cmd
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
16126 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
16133 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
16134 if ${lt_cv_to_tool_file_cmd+:} false; then :
16135 $as_echo_n "(cached) " >&6
16137 #assume ordinary cross tools, or native build.
16138 lt_cv_to_tool_file_cmd=func_convert_file_noop
16142 *-*-mingw* ) # actually msys
16143 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
16151 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
16153 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
16160 $as_echo_n "checking for $LD option to reload object files... " >&6; }
16161 if ${lt_cv_ld_reload_flag+:} false; then :
16162 $as_echo_n "(cached) " >&6
16164 lt_cv_ld_reload_flag='-r'
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
16167 $as_echo "$lt_cv_ld_reload_flag" >&6; }
16168 reload_flag=$lt_cv_ld_reload_flag
16169 case $reload_flag in
16171 *) reload_flag=" $reload_flag" ;;
16173 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16175 cygwin* | mingw* | pw32* | cegcc*)
16176 if test yes != "$GCC"; then
16181 if test yes = "$GCC"; then
16182 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
16184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16197 if test -n "$ac_tool_prefix"; then
16198 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16199 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16201 $as_echo_n "checking for $ac_word... " >&6; }
16202 if ${ac_cv_prog_OBJDUMP+:} false; then :
16203 $as_echo_n "(cached) " >&6
16205 if test -n "$OBJDUMP"; then
16206 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16209 for as_dir in $PATH
16212 test -z "$as_dir" && as_dir=.
16213 for ac_exec_ext in '' $ac_executable_extensions; do
16214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16215 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16225 OBJDUMP=$ac_cv_prog_OBJDUMP
16226 if test -n "$OBJDUMP"; then
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16228 $as_echo "$OBJDUMP" >&6; }
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16231 $as_echo "no" >&6; }
16236 if test -z "$ac_cv_prog_OBJDUMP"; then
16237 ac_ct_OBJDUMP=$OBJDUMP
16238 # Extract the first word of "objdump", so it can be a program name with args.
16239 set dummy objdump; ac_word=$2
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16241 $as_echo_n "checking for $ac_word... " >&6; }
16242 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16243 $as_echo_n "(cached) " >&6
16245 if test -n "$ac_ct_OBJDUMP"; then
16246 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16249 for as_dir in $PATH
16252 test -z "$as_dir" && as_dir=.
16253 for ac_exec_ext in '' $ac_executable_extensions; do
16254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16255 ac_cv_prog_ac_ct_OBJDUMP="objdump"
16256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16265 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16266 if test -n "$ac_ct_OBJDUMP"; then
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16268 $as_echo "$ac_ct_OBJDUMP" >&6; }
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16271 $as_echo "no" >&6; }
16274 if test "x$ac_ct_OBJDUMP" = x; then
16277 case $cross_compiling:$ac_tool_warned in
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16281 ac_tool_warned=yes ;;
16283 OBJDUMP=$ac_ct_OBJDUMP
16286 OBJDUMP="$ac_cv_prog_OBJDUMP"
16289 test -z "$OBJDUMP" && OBJDUMP=objdump
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
16300 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
16301 if ${lt_cv_deplibs_check_method+:} false; then :
16302 $as_echo_n "(cached) " >&6
16304 lt_cv_file_magic_cmd='$MAGIC_CMD'
16305 lt_cv_file_magic_test_file=
16306 lt_cv_deplibs_check_method='unknown'
16307 # Need to set the preceding variable on all platforms that support
16308 # interlibrary dependencies.
16309 # 'none' -- dependencies not supported.
16310 # 'unknown' -- same as none, but documents that we really don't know.
16311 # 'pass_all' -- all dependencies passed with no checks.
16312 # 'test_compile' -- check by making test program.
16313 # 'file_magic [[regex]]' -- check by looking for files in library path
16314 # that responds to the $file_magic_cmd with a given extended regex.
16315 # If you have 'file' or equivalent on your system and you're not sure
16316 # whether 'pass_all' will *always* work, you probably want this one.
16320 lt_cv_deplibs_check_method=pass_all
16324 lt_cv_deplibs_check_method=pass_all
16328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16329 lt_cv_file_magic_cmd='/usr/bin/file -L'
16330 lt_cv_file_magic_test_file=/shlib/libc.so
16334 # func_win32_libid is a shell function defined in ltmain.sh
16335 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16336 lt_cv_file_magic_cmd='func_win32_libid'
16340 # Base MSYS/MinGW do not provide the 'file' command needed by
16341 # func_win32_libid shell function, so use a weaker test based on 'objdump',
16342 # unless we find 'file', for example because we are cross-compiling.
16343 if ( file / ) >/dev/null 2>&1; then
16344 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16345 lt_cv_file_magic_cmd='func_win32_libid'
16347 # Keep this pattern in sync with the one in func_win32_libid.
16348 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
16349 lt_cv_file_magic_cmd='$OBJDUMP -f'
16354 # use the weaker test based on 'objdump'. See mingw*.
16355 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16356 lt_cv_file_magic_cmd='$OBJDUMP -f'
16359 darwin* | rhapsody*)
16360 lt_cv_deplibs_check_method=pass_all
16363 freebsd* | dragonfly*)
16364 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16367 # Not sure whether the presence of OpenBSD here was a mistake.
16368 # Let's accept both of them until this is cleared up.
16369 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16370 lt_cv_file_magic_cmd=/usr/bin/file
16371 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16375 lt_cv_deplibs_check_method=pass_all
16380 lt_cv_deplibs_check_method=pass_all
16383 hpux10.20* | hpux11*)
16384 lt_cv_file_magic_cmd=/usr/bin/file
16387 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16388 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16391 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]'
16392 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16395 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
16396 lt_cv_file_magic_test_file=/usr/lib/libc.sl
16402 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
16403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
16406 irix5* | irix6* | nonstopux*)
16408 *-32|*"-32 ") libmagic=32-bit;;
16409 *-n32|*"-n32 ") libmagic=N32;;
16410 *-64|*"-64 ") libmagic=64-bit;;
16411 *) libmagic=never-match;;
16413 lt_cv_deplibs_check_method=pass_all
16416 # This must be glibc/ELF.
16417 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16418 lt_cv_deplibs_check_method=pass_all
16422 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
16430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
16431 lt_cv_file_magic_cmd=/usr/bin/file
16432 lt_cv_file_magic_test_file=/usr/lib/libnls.so
16436 lt_cv_deplibs_check_method=pass_all
16439 openbsd* | bitrig*)
16440 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
16443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16447 osf3* | osf4* | osf5*)
16448 lt_cv_deplibs_check_method=pass_all
16452 lt_cv_deplibs_check_method=pass_all
16456 lt_cv_deplibs_check_method=pass_all
16459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16460 lt_cv_deplibs_check_method=pass_all
16464 case $host_vendor in
16466 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]'
16467 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
16470 lt_cv_deplibs_check_method=pass_all
16473 lt_cv_file_magic_cmd='/bin/file'
16474 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
16477 lt_cv_file_magic_cmd='/bin/file'
16478 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
16479 lt_cv_file_magic_test_file=/lib/libc.so
16482 lt_cv_deplibs_check_method=pass_all
16485 lt_cv_deplibs_check_method=pass_all
16491 lt_cv_deplibs_check_method=pass_all
16494 lt_cv_deplibs_check_method=pass_all
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
16500 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16504 if test "$build" = "$host"; then
16507 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
16508 want_nocaseglob=yes
16510 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
16516 file_magic_cmd=$lt_cv_file_magic_cmd
16517 deplibs_check_method=$lt_cv_deplibs_check_method
16518 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16541 if test -n "$ac_tool_prefix"; then
16542 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
16543 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16545 $as_echo_n "checking for $ac_word... " >&6; }
16546 if ${ac_cv_prog_DLLTOOL+:} false; then :
16547 $as_echo_n "(cached) " >&6
16549 if test -n "$DLLTOOL"; then
16550 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16553 for as_dir in $PATH
16556 test -z "$as_dir" && as_dir=.
16557 for ac_exec_ext in '' $ac_executable_extensions; do
16558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16559 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
16560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16569 DLLTOOL=$ac_cv_prog_DLLTOOL
16570 if test -n "$DLLTOOL"; then
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
16572 $as_echo "$DLLTOOL" >&6; }
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16575 $as_echo "no" >&6; }
16580 if test -z "$ac_cv_prog_DLLTOOL"; then
16581 ac_ct_DLLTOOL=$DLLTOOL
16582 # Extract the first word of "dlltool", so it can be a program name with args.
16583 set dummy dlltool; ac_word=$2
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16585 $as_echo_n "checking for $ac_word... " >&6; }
16586 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
16587 $as_echo_n "(cached) " >&6
16589 if test -n "$ac_ct_DLLTOOL"; then
16590 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16593 for as_dir in $PATH
16596 test -z "$as_dir" && as_dir=.
16597 for ac_exec_ext in '' $ac_executable_extensions; do
16598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16599 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16609 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16610 if test -n "$ac_ct_DLLTOOL"; then
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
16612 $as_echo "$ac_ct_DLLTOOL" >&6; }
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16615 $as_echo "no" >&6; }
16618 if test "x$ac_ct_DLLTOOL" = x; then
16621 case $cross_compiling:$ac_tool_warned in
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16625 ac_tool_warned=yes ;;
16627 DLLTOOL=$ac_ct_DLLTOOL
16630 DLLTOOL="$ac_cv_prog_DLLTOOL"
16633 test -z "$DLLTOOL" && DLLTOOL=dlltool
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
16645 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
16646 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
16647 $as_echo_n "(cached) " >&6
16649 lt_cv_sharedlib_from_linklib_cmd='unknown'
16652 cygwin* | mingw* | pw32* | cegcc*)
16653 # two different shell functions defined in ltmain.sh;
16654 # decide which one to use based on capabilities of $DLLTOOL
16655 case `$DLLTOOL --help 2>&1` in
16656 *--identify-strict*)
16657 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
16660 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
16665 # fallback: assume linklib IS sharedlib
16666 lt_cv_sharedlib_from_linklib_cmd=$ECHO
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
16672 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
16673 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
16674 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
16682 if test -n "$ac_tool_prefix"; then
16685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16688 $as_echo_n "checking for $ac_word... " >&6; }
16689 if ${ac_cv_prog_AR+:} false; then :
16690 $as_echo_n "(cached) " >&6
16692 if test -n "$AR"; then
16693 ac_cv_prog_AR="$AR" # Let the user override the test.
16695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16696 for as_dir in $PATH
16699 test -z "$as_dir" && as_dir=.
16700 for ac_exec_ext in '' $ac_executable_extensions; do
16701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16702 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
16703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16713 if test -n "$AR"; then
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16715 $as_echo "$AR" >&6; }
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16718 $as_echo "no" >&6; }
16722 test -n "$AR" && break
16725 if test -z "$AR"; then
16729 # Extract the first word of "$ac_prog", so it can be a program name with args.
16730 set dummy $ac_prog; ac_word=$2
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16732 $as_echo_n "checking for $ac_word... " >&6; }
16733 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16734 $as_echo_n "(cached) " >&6
16736 if test -n "$ac_ct_AR"; then
16737 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16740 for as_dir in $PATH
16743 test -z "$as_dir" && as_dir=.
16744 for ac_exec_ext in '' $ac_executable_extensions; do
16745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16746 ac_cv_prog_ac_ct_AR="$ac_prog"
16747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16756 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16757 if test -n "$ac_ct_AR"; then
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16759 $as_echo "$ac_ct_AR" >&6; }
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16762 $as_echo "no" >&6; }
16766 test -n "$ac_ct_AR" && break
16769 if test "x$ac_ct_AR" = x; then
16772 case $cross_compiling:$ac_tool_warned in
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16776 ac_tool_warned=yes ;;
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
16796 $as_echo_n "checking for archiver @FILE support... " >&6; }
16797 if ${lt_cv_ar_at_file+:} false; then :
16798 $as_echo_n "(cached) " >&6
16800 lt_cv_ar_at_file=no
16801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16802 /* end confdefs.h. */
16812 if ac_fn_c_try_compile "$LINENO"; then :
16813 echo conftest.$ac_objext > conftest.lst
16814 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
16815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16816 (eval $lt_ar_try) 2>&5
16818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16819 test $ac_status = 0; }
16820 if test 0 -eq "$ac_status"; then
16821 # Ensure the archiver fails upon bogus file names.
16822 rm -f conftest.$ac_objext libconftest.a
16823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16824 (eval $lt_ar_try) 2>&5
16826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16827 test $ac_status = 0; }
16828 if test 0 -ne "$ac_status"; then
16832 rm -f conftest.* libconftest.a
16835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
16839 $as_echo "$lt_cv_ar_at_file" >&6; }
16841 if test no = "$lt_cv_ar_at_file"; then
16842 archiver_list_spec=
16844 archiver_list_spec=$lt_cv_ar_at_file
16853 if test -n "$ac_tool_prefix"; then
16854 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16855 set dummy ${ac_tool_prefix}strip; ac_word=$2
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16857 $as_echo_n "checking for $ac_word... " >&6; }
16858 if ${ac_cv_prog_STRIP+:} false; then :
16859 $as_echo_n "(cached) " >&6
16861 if test -n "$STRIP"; then
16862 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16865 for as_dir in $PATH
16868 test -z "$as_dir" && as_dir=.
16869 for ac_exec_ext in '' $ac_executable_extensions; do
16870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16871 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16881 STRIP=$ac_cv_prog_STRIP
16882 if test -n "$STRIP"; then
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16884 $as_echo "$STRIP" >&6; }
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16887 $as_echo "no" >&6; }
16892 if test -z "$ac_cv_prog_STRIP"; then
16894 # Extract the first word of "strip", so it can be a program name with args.
16895 set dummy strip; ac_word=$2
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16897 $as_echo_n "checking for $ac_word... " >&6; }
16898 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16899 $as_echo_n "(cached) " >&6
16901 if test -n "$ac_ct_STRIP"; then
16902 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16905 for as_dir in $PATH
16908 test -z "$as_dir" && as_dir=.
16909 for ac_exec_ext in '' $ac_executable_extensions; do
16910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16911 ac_cv_prog_ac_ct_STRIP="strip"
16912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16921 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16922 if test -n "$ac_ct_STRIP"; then
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16924 $as_echo "$ac_ct_STRIP" >&6; }
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16927 $as_echo "no" >&6; }
16930 if test "x$ac_ct_STRIP" = x; then
16933 case $cross_compiling:$ac_tool_warned in
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16937 ac_tool_warned=yes ;;
16942 STRIP="$ac_cv_prog_STRIP"
16945 test -z "$STRIP" && STRIP=:
16952 if test -n "$ac_tool_prefix"; then
16953 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16954 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16956 $as_echo_n "checking for $ac_word... " >&6; }
16957 if ${ac_cv_prog_RANLIB+:} false; then :
16958 $as_echo_n "(cached) " >&6
16960 if test -n "$RANLIB"; then
16961 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16964 for as_dir in $PATH
16967 test -z "$as_dir" && as_dir=.
16968 for ac_exec_ext in '' $ac_executable_extensions; do
16969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16970 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16980 RANLIB=$ac_cv_prog_RANLIB
16981 if test -n "$RANLIB"; then
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16983 $as_echo "$RANLIB" >&6; }
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16986 $as_echo "no" >&6; }
16991 if test -z "$ac_cv_prog_RANLIB"; then
16992 ac_ct_RANLIB=$RANLIB
16993 # Extract the first word of "ranlib", so it can be a program name with args.
16994 set dummy ranlib; ac_word=$2
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16996 $as_echo_n "checking for $ac_word... " >&6; }
16997 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16998 $as_echo_n "(cached) " >&6
17000 if test -n "$ac_ct_RANLIB"; then
17001 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17004 for as_dir in $PATH
17007 test -z "$as_dir" && as_dir=.
17008 for ac_exec_ext in '' $ac_executable_extensions; do
17009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17010 ac_cv_prog_ac_ct_RANLIB="ranlib"
17011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17020 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17021 if test -n "$ac_ct_RANLIB"; then
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17023 $as_echo "$ac_ct_RANLIB" >&6; }
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17026 $as_echo "no" >&6; }
17029 if test "x$ac_ct_RANLIB" = x; then
17032 case $cross_compiling:$ac_tool_warned in
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17036 ac_tool_warned=yes ;;
17038 RANLIB=$ac_ct_RANLIB
17041 RANLIB="$ac_cv_prog_RANLIB"
17044 test -z "$RANLIB" && RANLIB=:
17051 # Determine commands to create old-style static archives.
17052 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
17053 old_postinstall_cmds='chmod 644 $oldlib'
17054 old_postuninstall_cmds=
17056 if test -n "$RANLIB"; then
17058 bitrig* | openbsd*)
17059 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
17062 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
17065 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
17070 lock_old_archive_extraction=yes ;;
17072 lock_old_archive_extraction=no ;;
17113 # If no C compiler was specified, use CC.
17116 # If no C compiler flags were specified, use CFLAGS.
17117 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17119 # Allow CC to be a program name with arguments.
17123 # Check for command to grab the raw symbol name followed by C symbol from nm.
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
17125 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
17126 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
17127 $as_echo_n "(cached) " >&6
17130 # These are sane defaults that work on at least a few old systems.
17131 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
17133 # Character class describing NM global symbol codes.
17134 symcode='[BCDEGRST]'
17136 # Regexp to match symbols that can be accessed directly from C.
17137 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
17139 # Define system-specific variables.
17144 cygwin* | mingw* | pw32* | cegcc*)
17145 symcode='[ABCDGISTW]'
17148 if test ia64 = "$host_cpu"; then
17149 symcode='[ABCDEGRST]'
17152 irix* | nonstopux*)
17153 symcode='[BCDEGRST]'
17156 symcode='[BCDEGQRST]'
17167 sysv5* | sco5v6* | unixware* | OpenUNIX*)
17175 # If we're using GNU nm, then use its standard symbol codes.
17176 case `$NM -V 2>&1` in
17177 *GNU* | *'with BFD'*)
17178 symcode='[ABCDGIRSTW]' ;;
17181 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17182 # Gets list of data symbols to import.
17183 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
17184 # Adjust the below global symbol transforms to fixup imported variables.
17185 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
17186 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
17187 lt_c_name_lib_hook="\
17188 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
17189 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
17191 # Disable hooks by default.
17192 lt_cv_sys_global_symbol_to_import=
17195 lt_c_name_lib_hook=
17198 # Transform an extracted symbol line into a proper C declaration.
17199 # Some systems (esp. on ia64) link data and code symbols differently,
17200 # so use this general approach.
17201 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
17203 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
17204 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
17206 # Transform an extracted symbol line into symbol name and symbol address
17207 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
17209 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
17210 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
17212 # Transform an extracted symbol line into symbol name with lib prefix and
17214 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
17215 $lt_c_name_lib_hook\
17216 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
17217 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
17218 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
17220 # Handle CRLF in mingw tool chain
17224 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
17228 # Try without a prefix underscore, then with it.
17229 for ac_symprfx in "" "_"; do
17231 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
17232 symxfrm="\\1 $ac_symprfx\\2 \\2"
17234 # Write the raw and C identifiers.
17235 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17236 # Fake it for dumpbin and say T for any non-static function,
17237 # D for any global variable and I for any imported variable.
17238 # Also find C++ and __fastcall symbols from MSVC++,
17239 # which start with @ or ?.
17240 lt_cv_sys_global_symbol_pipe="$AWK '"\
17241 " {last_section=section; section=\$ 3};"\
17242 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
17243 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
17244 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
17245 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
17246 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
17247 " \$ 0!~/External *\|/{next};"\
17248 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
17249 " {if(hide[section]) next};"\
17250 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
17251 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
17252 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
17253 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
17254 " ' prfx=^$ac_symprfx"
17256 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
17258 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
17260 # Check to see that the pipe works correctly.
17264 cat > conftest.$ac_ext <<_LT_EOF
17269 void nm_test_func(void);
17270 void nm_test_func(void){}
17274 int main(){nm_test_var='a';nm_test_func();return(0);}
17277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17278 (eval $ac_compile) 2>&5
17280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17281 test $ac_status = 0; }; then
17282 # Now try to grab the symbols.
17284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
17285 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
17287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17288 test $ac_status = 0; } && test -s "$nlist"; then
17289 # Try sorting and uniquifying the output.
17290 if sort "$nlist" | uniq > "$nlist"T; then
17291 mv -f "$nlist"T "$nlist"
17296 # Make sure that we snagged all the symbols we need.
17297 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
17298 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
17299 cat <<_LT_EOF > conftest.$ac_ext
17300 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
17301 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
17302 /* DATA imports from DLLs on WIN32 can't be const, because runtime
17303 relocations are performed -- see ld's documentation on pseudo-relocs. */
17304 # define LT_DLSYM_CONST
17305 #elif defined __osf__
17306 /* This system does not cope well with relocations in const data. */
17307 # define LT_DLSYM_CONST
17309 # define LT_DLSYM_CONST const
17317 # Now generate the symbol file.
17318 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
17320 cat <<_LT_EOF >> conftest.$ac_ext
17322 /* The mapping between symbol names and symbols. */
17323 LT_DLSYM_CONST struct {
17327 lt__PROGRAM__LTX_preloaded_symbols[] =
17329 { "@PROGRAM@", (void *) 0 },
17331 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
17332 cat <<\_LT_EOF >> conftest.$ac_ext
17336 /* This works around a problem in FreeBSD linker */
17337 #ifdef FREEBSD_WORKAROUND
17338 static const void *lt_preloaded_setup() {
17339 return lt__PROGRAM__LTX_preloaded_symbols;
17347 # Now try linking the two files.
17348 mv conftest.$ac_objext conftstm.$ac_objext
17349 lt_globsym_save_LIBS=$LIBS
17350 lt_globsym_save_CFLAGS=$CFLAGS
17351 LIBS=conftstm.$ac_objext
17352 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
17353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17354 (eval $ac_link) 2>&5
17356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17357 test $ac_status = 0; } && test -s conftest$ac_exeext; then
17360 LIBS=$lt_globsym_save_LIBS
17361 CFLAGS=$lt_globsym_save_CFLAGS
17363 echo "cannot find nm_test_func in $nlist" >&5
17366 echo "cannot find nm_test_var in $nlist" >&5
17369 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
17372 echo "$progname: failed program was:" >&5
17373 cat conftest.$ac_ext >&5
17375 rm -rf conftest* conftst*
17377 # Do not use the global_symbol_pipe unless it works.
17378 if test yes = "$pipe_works"; then
17381 lt_cv_sys_global_symbol_pipe=
17387 if test -z "$lt_cv_sys_global_symbol_pipe"; then
17388 lt_cv_sys_global_symbol_to_cdecl=
17390 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
17392 $as_echo "failed" >&6; }
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17395 $as_echo "ok" >&6; }
17398 # Response file support.
17399 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17400 nm_file_list_spec='@'
17401 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
17402 nm_file_list_spec='@'
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17442 $as_echo_n "checking for sysroot... " >&6; }
17444 # Check whether --with-sysroot was given.
17445 if test "${with_sysroot+set}" = set; then :
17446 withval=$with_sysroot;
17453 case $with_sysroot in #(
17455 if test yes = "$GCC"; then
17456 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
17460 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
17466 $as_echo "$with_sysroot" >&6; }
17467 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
17472 $as_echo "${lt_sysroot:-no}" >&6; }
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
17479 $as_echo_n "checking for a working dd... " >&6; }
17480 if ${ac_cv_path_lt_DD+:} false; then :
17481 $as_echo_n "(cached) " >&6
17483 printf 0123456789abcdef0123456789abcdef >conftest.i
17484 cat conftest.i conftest.i >conftest2.i
17486 if test -z "$lt_DD"; then
17487 ac_path_lt_DD_found=false
17488 # Loop through the user's path and test for each of PROGNAME-LIST
17489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17490 for as_dir in $PATH
17493 test -z "$as_dir" && as_dir=.
17494 for ac_prog in dd; do
17495 for ac_exec_ext in '' $ac_executable_extensions; do
17496 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
17497 as_fn_executable_p "$ac_path_lt_DD" || continue
17498 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
17499 cmp -s conftest.i conftest.out \
17500 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
17502 $ac_path_lt_DD_found && break 3
17507 if test -z "$ac_cv_path_lt_DD"; then
17511 ac_cv_path_lt_DD=$lt_DD
17514 rm -f conftest.i conftest2.i conftest.out
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
17517 $as_echo "$ac_cv_path_lt_DD" >&6; }
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
17521 $as_echo_n "checking how to truncate binary pipes... " >&6; }
17522 if ${lt_cv_truncate_bin+:} false; then :
17523 $as_echo_n "(cached) " >&6
17525 printf 0123456789abcdef0123456789abcdef >conftest.i
17526 cat conftest.i conftest.i >conftest2.i
17527 lt_cv_truncate_bin=
17528 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
17529 cmp -s conftest.i conftest.out \
17530 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
17532 rm -f conftest.i conftest2.i conftest.out
17533 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
17536 $as_echo "$lt_cv_truncate_bin" >&6; }
17544 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17545 func_cc_basename ()
17547 for cc_temp in $*""; do
17549 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17550 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17555 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17558 # Check whether --enable-libtool-lock was given.
17559 if test "${enable_libtool_lock+set}" = set; then :
17560 enableval=$enable_libtool_lock;
17563 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
17565 # Some flags need to be propagated to the compiler or linker for good
17569 # Find out what ABI is being produced by ac_compile, and set mode
17570 # options accordingly.
17571 echo 'int i;' > 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 case `/usr/bin/file conftest.$ac_objext` in
17589 # Find out what ABI is being produced by ac_compile, and set linker
17590 # options accordingly.
17591 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
17592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17593 (eval $ac_compile) 2>&5
17595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17596 test $ac_status = 0; }; then
17597 if test yes = "$lt_cv_prog_gnu_ld"; then
17598 case `/usr/bin/file conftest.$ac_objext` in
17600 LD="${LD-ld} -melf32bsmip"
17603 LD="${LD-ld} -melf32bmipn32"
17606 LD="${LD-ld} -melf64bmip"
17610 case `/usr/bin/file conftest.$ac_objext` in
17627 # Find out what ABI is being produced by ac_compile, and set linker
17628 # options accordingly.
17629 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
17630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17631 (eval $ac_compile) 2>&5
17633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17634 test $ac_status = 0; }; then
17636 case `/usr/bin/file conftest.$ac_objext` in
17644 case `/usr/bin/file conftest.$ac_objext` in
17646 emul="${emul}btsmip"
17649 emul="${emul}ltsmip"
17652 case `/usr/bin/file conftest.$ac_objext` in
17657 LD="${LD-ld} -m $emul"
17662 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
17663 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
17664 # Find out what ABI is being produced by ac_compile, and set linker
17665 # options accordingly. Note that the listed cases only cover the
17666 # situations where additional linker options are needed (such as when
17667 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
17668 # vice versa); the common cases where no linker options are needed do
17669 # not appear in the list.
17670 echo 'int i;' > conftest.$ac_ext
17671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17672 (eval $ac_compile) 2>&5
17674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17675 test $ac_status = 0; }; then
17676 case `/usr/bin/file conftest.o` in
17679 x86_64-*kfreebsd*-gnu)
17680 LD="${LD-ld} -m elf_i386_fbsd"
17683 case `/usr/bin/file conftest.o` in
17685 LD="${LD-ld} -m elf32_x86_64"
17688 LD="${LD-ld} -m elf_i386"
17692 powerpc64le-*linux*)
17693 LD="${LD-ld} -m elf32lppclinux"
17696 LD="${LD-ld} -m elf32ppclinux"
17699 LD="${LD-ld} -m elf_s390"
17702 LD="${LD-ld} -m elf32_sparc"
17708 x86_64-*kfreebsd*-gnu)
17709 LD="${LD-ld} -m elf_x86_64_fbsd"
17712 LD="${LD-ld} -m elf_x86_64"
17715 LD="${LD-ld} -m elf64lppc"
17718 LD="${LD-ld} -m elf64ppc"
17720 s390*-*linux*|s390*-*tpf*)
17721 LD="${LD-ld} -m elf64_s390"
17724 LD="${LD-ld} -m elf64_sparc"
17734 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
17735 SAVE_CFLAGS=$CFLAGS
17736 CFLAGS="$CFLAGS -belf"
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
17738 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
17739 if ${lt_cv_cc_needs_belf+:} false; then :
17740 $as_echo_n "(cached) " >&6
17743 ac_cpp='$CPP $CPPFLAGS'
17744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17749 /* end confdefs.h. */
17759 if ac_fn_c_try_link "$LINENO"; then :
17760 lt_cv_cc_needs_belf=yes
17762 lt_cv_cc_needs_belf=no
17764 rm -f core conftest.err conftest.$ac_objext \
17765 conftest$ac_exeext conftest.$ac_ext
17767 ac_cpp='$CPP $CPPFLAGS'
17768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
17774 $as_echo "$lt_cv_cc_needs_belf" >&6; }
17775 if test yes != "$lt_cv_cc_needs_belf"; then
17776 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17777 CFLAGS=$SAVE_CFLAGS
17781 # Find out what ABI is being produced by ac_compile, and set linker
17782 # options accordingly.
17783 echo 'int i;' > conftest.$ac_ext
17784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17785 (eval $ac_compile) 2>&5
17787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17788 test $ac_status = 0; }; then
17789 case `/usr/bin/file conftest.o` in
17791 case $lt_cv_prog_gnu_ld in
17794 i?86-*-solaris*|x86_64-*-solaris*)
17795 LD="${LD-ld} -m elf_x86_64"
17798 LD="${LD-ld} -m elf64_sparc"
17801 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
17802 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
17807 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17819 need_locks=$enable_libtool_lock
17821 if test -n "$ac_tool_prefix"; then
17822 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
17823 set dummy ${ac_tool_prefix}mt; ac_word=$2
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17825 $as_echo_n "checking for $ac_word... " >&6; }
17826 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
17827 $as_echo_n "(cached) " >&6
17829 if test -n "$MANIFEST_TOOL"; then
17830 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
17832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17833 for as_dir in $PATH
17836 test -z "$as_dir" && as_dir=.
17837 for ac_exec_ext in '' $ac_executable_extensions; do
17838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17839 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
17840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17849 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
17850 if test -n "$MANIFEST_TOOL"; then
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
17852 $as_echo "$MANIFEST_TOOL" >&6; }
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17855 $as_echo "no" >&6; }
17860 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
17861 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
17862 # Extract the first word of "mt", so it can be a program name with args.
17863 set dummy mt; ac_word=$2
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17865 $as_echo_n "checking for $ac_word... " >&6; }
17866 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
17867 $as_echo_n "(cached) " >&6
17869 if test -n "$ac_ct_MANIFEST_TOOL"; then
17870 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
17872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17873 for as_dir in $PATH
17876 test -z "$as_dir" && as_dir=.
17877 for ac_exec_ext in '' $ac_executable_extensions; do
17878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17879 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
17880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17889 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
17890 if test -n "$ac_ct_MANIFEST_TOOL"; then
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
17892 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17895 $as_echo "no" >&6; }
17898 if test "x$ac_ct_MANIFEST_TOOL" = x; then
17901 case $cross_compiling:$ac_tool_warned in
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17905 ac_tool_warned=yes ;;
17907 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
17910 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
17913 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
17915 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
17916 if ${lt_cv_path_mainfest_tool+:} false; then :
17917 $as_echo_n "(cached) " >&6
17919 lt_cv_path_mainfest_tool=no
17920 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
17921 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
17922 cat conftest.err >&5
17923 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
17924 lt_cv_path_mainfest_tool=yes
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
17929 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
17930 if test yes != "$lt_cv_path_mainfest_tool"; then
17940 rhapsody* | darwin*)
17941 if test -n "$ac_tool_prefix"; then
17942 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
17943 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17945 $as_echo_n "checking for $ac_word... " >&6; }
17946 if ${ac_cv_prog_DSYMUTIL+:} false; then :
17947 $as_echo_n "(cached) " >&6
17949 if test -n "$DSYMUTIL"; then
17950 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17953 for as_dir in $PATH
17956 test -z "$as_dir" && as_dir=.
17957 for ac_exec_ext in '' $ac_executable_extensions; do
17958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17959 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
17960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17969 DSYMUTIL=$ac_cv_prog_DSYMUTIL
17970 if test -n "$DSYMUTIL"; then
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
17972 $as_echo "$DSYMUTIL" >&6; }
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17975 $as_echo "no" >&6; }
17980 if test -z "$ac_cv_prog_DSYMUTIL"; then
17981 ac_ct_DSYMUTIL=$DSYMUTIL
17982 # Extract the first word of "dsymutil", so it can be a program name with args.
17983 set dummy dsymutil; ac_word=$2
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17985 $as_echo_n "checking for $ac_word... " >&6; }
17986 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17987 $as_echo_n "(cached) " >&6
17989 if test -n "$ac_ct_DSYMUTIL"; then
17990 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17993 for as_dir in $PATH
17996 test -z "$as_dir" && as_dir=.
17997 for ac_exec_ext in '' $ac_executable_extensions; do
17998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17999 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
18000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18009 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
18010 if test -n "$ac_ct_DSYMUTIL"; then
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
18012 $as_echo "$ac_ct_DSYMUTIL" >&6; }
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18015 $as_echo "no" >&6; }
18018 if test "x$ac_ct_DSYMUTIL" = x; then
18021 case $cross_compiling:$ac_tool_warned in
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18025 ac_tool_warned=yes ;;
18027 DSYMUTIL=$ac_ct_DSYMUTIL
18030 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
18033 if test -n "$ac_tool_prefix"; then
18034 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
18035 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18037 $as_echo_n "checking for $ac_word... " >&6; }
18038 if ${ac_cv_prog_NMEDIT+:} false; then :
18039 $as_echo_n "(cached) " >&6
18041 if test -n "$NMEDIT"; then
18042 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
18044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18045 for as_dir in $PATH
18048 test -z "$as_dir" && as_dir=.
18049 for ac_exec_ext in '' $ac_executable_extensions; do
18050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18051 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
18052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18061 NMEDIT=$ac_cv_prog_NMEDIT
18062 if test -n "$NMEDIT"; then
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
18064 $as_echo "$NMEDIT" >&6; }
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18067 $as_echo "no" >&6; }
18072 if test -z "$ac_cv_prog_NMEDIT"; then
18073 ac_ct_NMEDIT=$NMEDIT
18074 # Extract the first word of "nmedit", so it can be a program name with args.
18075 set dummy nmedit; ac_word=$2
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18077 $as_echo_n "checking for $ac_word... " >&6; }
18078 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
18079 $as_echo_n "(cached) " >&6
18081 if test -n "$ac_ct_NMEDIT"; then
18082 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
18084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18085 for as_dir in $PATH
18088 test -z "$as_dir" && as_dir=.
18089 for ac_exec_ext in '' $ac_executable_extensions; do
18090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18091 ac_cv_prog_ac_ct_NMEDIT="nmedit"
18092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18101 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
18102 if test -n "$ac_ct_NMEDIT"; then
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
18104 $as_echo "$ac_ct_NMEDIT" >&6; }
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18107 $as_echo "no" >&6; }
18110 if test "x$ac_ct_NMEDIT" = x; then
18113 case $cross_compiling:$ac_tool_warned in
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18117 ac_tool_warned=yes ;;
18119 NMEDIT=$ac_ct_NMEDIT
18122 NMEDIT="$ac_cv_prog_NMEDIT"
18125 if test -n "$ac_tool_prefix"; then
18126 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
18127 set dummy ${ac_tool_prefix}lipo; ac_word=$2
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18129 $as_echo_n "checking for $ac_word... " >&6; }
18130 if ${ac_cv_prog_LIPO+:} false; then :
18131 $as_echo_n "(cached) " >&6
18133 if test -n "$LIPO"; then
18134 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
18136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18137 for as_dir in $PATH
18140 test -z "$as_dir" && as_dir=.
18141 for ac_exec_ext in '' $ac_executable_extensions; do
18142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18143 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
18144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18153 LIPO=$ac_cv_prog_LIPO
18154 if test -n "$LIPO"; then
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
18156 $as_echo "$LIPO" >&6; }
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18159 $as_echo "no" >&6; }
18164 if test -z "$ac_cv_prog_LIPO"; then
18166 # Extract the first word of "lipo", so it can be a program name with args.
18167 set dummy lipo; ac_word=$2
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18169 $as_echo_n "checking for $ac_word... " >&6; }
18170 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
18171 $as_echo_n "(cached) " >&6
18173 if test -n "$ac_ct_LIPO"; then
18174 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
18176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18177 for as_dir in $PATH
18180 test -z "$as_dir" && as_dir=.
18181 for ac_exec_ext in '' $ac_executable_extensions; do
18182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18183 ac_cv_prog_ac_ct_LIPO="lipo"
18184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18193 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
18194 if test -n "$ac_ct_LIPO"; then
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
18196 $as_echo "$ac_ct_LIPO" >&6; }
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18199 $as_echo "no" >&6; }
18202 if test "x$ac_ct_LIPO" = x; then
18205 case $cross_compiling:$ac_tool_warned in
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18209 ac_tool_warned=yes ;;
18214 LIPO="$ac_cv_prog_LIPO"
18217 if test -n "$ac_tool_prefix"; then
18218 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
18219 set dummy ${ac_tool_prefix}otool; ac_word=$2
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18221 $as_echo_n "checking for $ac_word... " >&6; }
18222 if ${ac_cv_prog_OTOOL+:} false; then :
18223 $as_echo_n "(cached) " >&6
18225 if test -n "$OTOOL"; then
18226 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
18228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18229 for as_dir in $PATH
18232 test -z "$as_dir" && as_dir=.
18233 for ac_exec_ext in '' $ac_executable_extensions; do
18234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18235 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
18236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18245 OTOOL=$ac_cv_prog_OTOOL
18246 if test -n "$OTOOL"; then
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
18248 $as_echo "$OTOOL" >&6; }
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18251 $as_echo "no" >&6; }
18256 if test -z "$ac_cv_prog_OTOOL"; then
18258 # Extract the first word of "otool", so it can be a program name with args.
18259 set dummy otool; ac_word=$2
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18261 $as_echo_n "checking for $ac_word... " >&6; }
18262 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
18263 $as_echo_n "(cached) " >&6
18265 if test -n "$ac_ct_OTOOL"; then
18266 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
18268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18269 for as_dir in $PATH
18272 test -z "$as_dir" && as_dir=.
18273 for ac_exec_ext in '' $ac_executable_extensions; do
18274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18275 ac_cv_prog_ac_ct_OTOOL="otool"
18276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18285 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
18286 if test -n "$ac_ct_OTOOL"; then
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
18288 $as_echo "$ac_ct_OTOOL" >&6; }
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18291 $as_echo "no" >&6; }
18294 if test "x$ac_ct_OTOOL" = x; then
18297 case $cross_compiling:$ac_tool_warned in
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18301 ac_tool_warned=yes ;;
18306 OTOOL="$ac_cv_prog_OTOOL"
18309 if test -n "$ac_tool_prefix"; then
18310 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
18311 set dummy ${ac_tool_prefix}otool64; ac_word=$2
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18313 $as_echo_n "checking for $ac_word... " >&6; }
18314 if ${ac_cv_prog_OTOOL64+:} false; then :
18315 $as_echo_n "(cached) " >&6
18317 if test -n "$OTOOL64"; then
18318 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
18320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18321 for as_dir in $PATH
18324 test -z "$as_dir" && as_dir=.
18325 for ac_exec_ext in '' $ac_executable_extensions; do
18326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18327 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
18328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18337 OTOOL64=$ac_cv_prog_OTOOL64
18338 if test -n "$OTOOL64"; then
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
18340 $as_echo "$OTOOL64" >&6; }
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18343 $as_echo "no" >&6; }
18348 if test -z "$ac_cv_prog_OTOOL64"; then
18349 ac_ct_OTOOL64=$OTOOL64
18350 # Extract the first word of "otool64", so it can be a program name with args.
18351 set dummy otool64; ac_word=$2
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18353 $as_echo_n "checking for $ac_word... " >&6; }
18354 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
18355 $as_echo_n "(cached) " >&6
18357 if test -n "$ac_ct_OTOOL64"; then
18358 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
18360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18361 for as_dir in $PATH
18364 test -z "$as_dir" && as_dir=.
18365 for ac_exec_ext in '' $ac_executable_extensions; do
18366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18367 ac_cv_prog_ac_ct_OTOOL64="otool64"
18368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18377 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
18378 if test -n "$ac_ct_OTOOL64"; then
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
18380 $as_echo "$ac_ct_OTOOL64" >&6; }
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18383 $as_echo "no" >&6; }
18386 if test "x$ac_ct_OTOOL64" = x; then
18389 case $cross_compiling:$ac_tool_warned in
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18393 ac_tool_warned=yes ;;
18395 OTOOL64=$ac_ct_OTOOL64
18398 OTOOL64="$ac_cv_prog_OTOOL64"
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
18428 $as_echo_n "checking for -single_module linker flag... " >&6; }
18429 if ${lt_cv_apple_cc_single_mod+:} false; then :
18430 $as_echo_n "(cached) " >&6
18432 lt_cv_apple_cc_single_mod=no
18433 if test -z "$LT_MULTI_MODULE"; then
18434 # By default we will add the -single_module flag. You can override
18435 # by either setting the environment variable LT_MULTI_MODULE
18436 # non-empty at configure time, or by adding -multi_module to the
18438 rm -rf libconftest.dylib*
18439 echo "int foo(void){return 1;}" > conftest.c
18440 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
18441 -dynamiclib -Wl,-single_module conftest.c" >&5
18442 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
18443 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
18445 # If there is a non-empty error log, and "single_module"
18446 # appears in it, assume the flag caused a linker warning
18447 if test -s conftest.err && $GREP single_module conftest.err; then
18448 cat conftest.err >&5
18449 # Otherwise, if the output was created with a 0 exit code from
18450 # the compiler, it worked.
18451 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
18452 lt_cv_apple_cc_single_mod=yes
18454 cat conftest.err >&5
18456 rm -rf libconftest.dylib*
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
18461 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
18464 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
18465 if ${lt_cv_ld_exported_symbols_list+:} false; then :
18466 $as_echo_n "(cached) " >&6
18468 lt_cv_ld_exported_symbols_list=no
18469 save_LDFLAGS=$LDFLAGS
18470 echo "_main" > conftest.sym
18471 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
18472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18473 /* end confdefs.h. */
18483 if ac_fn_c_try_link "$LINENO"; then :
18484 lt_cv_ld_exported_symbols_list=yes
18486 lt_cv_ld_exported_symbols_list=no
18488 rm -f core conftest.err conftest.$ac_objext \
18489 conftest$ac_exeext conftest.$ac_ext
18490 LDFLAGS=$save_LDFLAGS
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
18494 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
18497 $as_echo_n "checking for -force_load linker flag... " >&6; }
18498 if ${lt_cv_ld_force_load+:} false; then :
18499 $as_echo_n "(cached) " >&6
18501 lt_cv_ld_force_load=no
18502 cat > conftest.c << _LT_EOF
18503 int forced_loaded() { return 2;}
18505 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
18506 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
18507 echo "$AR cru libconftest.a conftest.o" >&5
18508 $AR cru libconftest.a conftest.o 2>&5
18509 echo "$RANLIB libconftest.a" >&5
18510 $RANLIB libconftest.a 2>&5
18511 cat > conftest.c << _LT_EOF
18512 int main() { return 0;}
18514 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
18515 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
18517 if test -s conftest.err && $GREP force_load conftest.err; then
18518 cat conftest.err >&5
18519 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
18520 lt_cv_ld_force_load=yes
18522 cat conftest.err >&5
18524 rm -f conftest.err libconftest.a conftest conftest.c
18525 rm -rf conftest.dSYM
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
18529 $as_echo "$lt_cv_ld_force_load" >&6; }
18531 rhapsody* | darwin1.[012])
18532 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
18534 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
18535 darwin*) # darwin 5.x on
18536 # if running on 10.5 or later, the deployment target defaults
18537 # to the OS version, if on x86, and 10.4, the deployment
18538 # target defaults to 10.4. Don't you love it?
18539 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
18540 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
18541 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
18543 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
18545 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
18549 if test yes = "$lt_cv_apple_cc_single_mod"; then
18550 _lt_dar_single_mod='$single_module'
18552 if test yes = "$lt_cv_ld_exported_symbols_list"; then
18553 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
18555 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
18557 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
18558 _lt_dsymutil='~$DSYMUTIL $lib || :'
18565 # func_munge_path_list VARIABLE PATH
18566 # -----------------------------------
18567 # VARIABLE is name of variable containing _space_ separated list of
18568 # directories to be munged by the contents of PATH, which is string
18571 # string "DIR[ DIR]" will be prepended to VARIABLE
18573 # string "DIR[ DIR]" will be appended to VARIABLE
18574 # "DIRP[:DIRP]::[DIRA:]DIRA"
18575 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18576 # "DIRA[ DIRA]" will be appended to VARIABLE
18578 # VARIABLE will be replaced by "DIR[ DIR]"
18579 func_munge_path_list ()
18585 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18588 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18591 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18592 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18595 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18600 for ac_header in dlfcn.h
18602 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
18604 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
18605 cat >>confdefs.h <<_ACEOF
18606 #define HAVE_DLFCN_H 1
18624 enable_win32_dll=no
18628 # Check whether --enable-static was given.
18629 if test "${enable_static+set}" = set; then :
18630 enableval=$enable_static; p=${PACKAGE-default}
18632 yes) enable_static=yes ;;
18633 no) enable_static=no ;;
18636 # Look at the argument we got. We use all the common list separators.
18637 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18638 for pkg in $enableval; do
18640 if test "X$pkg" = "X$p"; then
18660 # Check whether --with-pic was given.
18661 if test "${with_pic+set}" = set; then :
18662 withval=$with_pic; lt_p=${PACKAGE-default}
18664 yes|no) pic_mode=$withval ;;
18667 # Look at the argument we got. We use all the common list separators.
18668 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18669 for lt_pkg in $withval; do
18671 if test "X$lt_pkg" = "X$lt_p"; then
18689 # Check whether --enable-fast-install was given.
18690 if test "${enable_fast_install+set}" = set; then :
18691 enableval=$enable_fast_install; p=${PACKAGE-default}
18693 yes) enable_fast_install=yes ;;
18694 no) enable_fast_install=no ;;
18696 enable_fast_install=no
18697 # Look at the argument we got. We use all the common list separators.
18698 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18699 for pkg in $enableval; do
18701 if test "X$pkg" = "X$p"; then
18702 enable_fast_install=yes
18709 enable_fast_install=yes
18719 shared_archive_member_spec=
18720 case $host,$enable_shared in
18721 power*-*-aix[5-9]*,yes)
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
18723 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
18725 # Check whether --with-aix-soname was given.
18726 if test "${with_aix_soname+set}" = set; then :
18727 withval=$with_aix_soname; case $withval in
18731 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
18734 lt_cv_with_aix_soname=$with_aix_soname
18736 if ${lt_cv_with_aix_soname+:} false; then :
18737 $as_echo_n "(cached) " >&6
18739 lt_cv_with_aix_soname=aix
18742 with_aix_soname=$lt_cv_with_aix_soname
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
18746 $as_echo "$with_aix_soname" >&6; }
18747 if test aix != "$with_aix_soname"; then
18748 # For the AIX way of multilib, we name the shared archive member
18749 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
18750 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
18751 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
18752 # the AIX toolchain works better with OBJECT_MODE set (default 32).
18753 if test 64 = "${OBJECT_MODE-32}"; then
18754 shared_archive_member_spec=shr_64
18756 shared_archive_member_spec=shr
18761 with_aix_soname=aix
18774 # This can be used to rebuild libtool when needed
18775 LIBTOOL_DEPS=$ltmain
18777 # Always use our own libtool.
18778 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18809 test -z "$LN_S" && LN_S="ln -s"
18824 if test -n "${ZSH_VERSION+set}"; then
18825 setopt NO_GLOB_SUBST
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
18829 $as_echo_n "checking for objdir... " >&6; }
18830 if ${lt_cv_objdir+:} false; then :
18831 $as_echo_n "(cached) " >&6
18833 rm -f .libs 2>/dev/null
18834 mkdir .libs 2>/dev/null
18835 if test -d .libs; then
18838 # MS-DOS does not allow filenames that begin with a dot.
18841 rmdir .libs 2>/dev/null
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
18844 $as_echo "$lt_cv_objdir" >&6; }
18845 objdir=$lt_cv_objdir
18851 cat >>confdefs.h <<_ACEOF
18852 #define LT_OBJDIR "$lt_cv_objdir/"
18860 # AIX sometimes has problems with the GCC collect2 program. For some
18861 # reason, if we set the COLLECT_NAMES environment variable, the problems
18862 # vanish in a puff of smoke.
18863 if test set != "${COLLECT_NAMES+set}"; then
18865 export COLLECT_NAMES
18870 # Global variables:
18872 can_build_shared=yes
18874 # All known linkers require a '.a' archive for static linking (except MSVC,
18875 # which needs '.lib').
18878 with_gnu_ld=$lt_cv_prog_gnu_ld
18883 # Set sane defaults for various variables
18884 test -z "$CC" && CC=cc
18885 test -z "$LTCC" && LTCC=$CC
18886 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18887 test -z "$LD" && LD=ld
18888 test -z "$ac_objext" && ac_objext=o
18890 func_cc_basename $compiler
18891 cc_basename=$func_cc_basename_result
18894 # Only perform the check for file, if the check method requires it
18895 test -z "$MAGIC_CMD" && MAGIC_CMD=file
18896 case $deplibs_check_method in
18898 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
18900 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
18901 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18902 $as_echo_n "(cached) " >&6
18906 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
18909 lt_save_MAGIC_CMD=$MAGIC_CMD
18910 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18911 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18912 for ac_dir in $ac_dummy; do
18914 test -z "$ac_dir" && ac_dir=.
18915 if test -f "$ac_dir/${ac_tool_prefix}file"; then
18916 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
18917 if test -n "$file_magic_test_file"; then
18918 case $deplibs_check_method in
18920 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18921 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18922 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18923 $EGREP "$file_magic_regex" > /dev/null; then
18928 *** Warning: the command libtool uses to detect shared libraries,
18929 *** $file_magic_cmd, produces output that libtool cannot recognize.
18930 *** The result is that libtool may fail to recognize shared libraries
18931 *** as such. This will affect the creation of libtool libraries that
18932 *** depend on shared libraries, but programs linked with such libtool
18933 *** libraries will work regardless of this problem. Nevertheless, you
18934 *** may want to report the problem to your system manager and/or to
18935 *** bug-libtool@gnu.org
18945 MAGIC_CMD=$lt_save_MAGIC_CMD
18950 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18951 if test -n "$MAGIC_CMD"; then
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18953 $as_echo "$MAGIC_CMD" >&6; }
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18956 $as_echo "no" >&6; }
18963 if test -z "$lt_cv_path_MAGIC_CMD"; then
18964 if test -n "$ac_tool_prefix"; then
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
18966 $as_echo_n "checking for file... " >&6; }
18967 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18968 $as_echo_n "(cached) " >&6
18972 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
18975 lt_save_MAGIC_CMD=$MAGIC_CMD
18976 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18977 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18978 for ac_dir in $ac_dummy; do
18980 test -z "$ac_dir" && ac_dir=.
18981 if test -f "$ac_dir/file"; then
18982 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
18983 if test -n "$file_magic_test_file"; then
18984 case $deplibs_check_method in
18986 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18987 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18988 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18989 $EGREP "$file_magic_regex" > /dev/null; then
18994 *** Warning: the command libtool uses to detect shared libraries,
18995 *** $file_magic_cmd, produces output that libtool cannot recognize.
18996 *** The result is that libtool may fail to recognize shared libraries
18997 *** as such. This will affect the creation of libtool libraries that
18998 *** depend on shared libraries, but programs linked with such libtool
18999 *** libraries will work regardless of this problem. Nevertheless, you
19000 *** may want to report the problem to your system manager and/or to
19001 *** bug-libtool@gnu.org
19011 MAGIC_CMD=$lt_save_MAGIC_CMD
19016 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
19017 if test -n "$MAGIC_CMD"; then
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
19019 $as_echo "$MAGIC_CMD" >&6; }
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19022 $as_echo "no" >&6; }
19035 # Use C for the default configuration in the libtool script
19039 ac_cpp='$CPP $CPPFLAGS'
19040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19045 # Source file extension for C test sources.
19048 # Object file extension for compiled C test sources.
19052 # Code to be used in simple compile tests
19053 lt_simple_compile_test_code="int some_variable = 0;"
19055 # Code to be used in simple link tests
19056 lt_simple_link_test_code='int main(){return(0);}'
19064 # If no C compiler was specified, use CC.
19067 # If no C compiler flags were specified, use CFLAGS.
19068 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19070 # Allow CC to be a program name with arguments.
19073 # Save the default compiler, since it gets overwritten when the other
19074 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
19075 compiler_DEFAULT=$CC
19077 # save warnings/boilerplate of simple test code
19078 ac_outfile=conftest.$ac_objext
19079 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19080 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19081 _lt_compiler_boilerplate=`cat conftest.err`
19084 ac_outfile=conftest.$ac_objext
19085 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19086 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19087 _lt_linker_boilerplate=`cat conftest.err`
19092 ## There is no encapsulation within the following macros, do not change
19093 ## the running order or otherwise move them around unless you know exactly
19094 ## what you are doing...
19095 if test -n "$compiler"; then
19097 lt_prog_compiler_no_builtin_flag=
19099 if test yes = "$GCC"; then
19100 case $cc_basename in
19102 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
19104 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19108 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
19109 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
19110 $as_echo_n "(cached) " >&6
19112 lt_cv_prog_compiler_rtti_exceptions=no
19113 ac_outfile=conftest.$ac_objext
19114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19115 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
19116 # Insert the option either (1) after the last *FLAGS variable, or
19117 # (2) before a word containing "conftest.", or (3) at the end.
19118 # Note that $ac_compile itself does not contain backslashes and begins
19119 # with a dollar sign (not a hyphen), so the echo should work correctly.
19120 # The option is referenced via a variable to avoid confusing sed.
19121 lt_compile=`echo "$ac_compile" | $SED \
19122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19124 -e 's:$: $lt_compiler_flag:'`
19125 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19126 (eval "$lt_compile" 2>conftest.err)
19128 cat conftest.err >&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 if (exit $ac_status) && test -s "$ac_outfile"; then
19131 # The compiler can only warn and ignore the option if not recognized
19132 # So say no if there are warnings other than the usual output.
19133 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19135 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19136 lt_cv_prog_compiler_rtti_exceptions=yes
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19143 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19145 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
19146 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
19158 lt_prog_compiler_wl=
19159 lt_prog_compiler_pic=
19160 lt_prog_compiler_static=
19163 if test yes = "$GCC"; then
19164 lt_prog_compiler_wl='-Wl,'
19165 lt_prog_compiler_static='-static'
19169 # All AIX code is PIC.
19170 if test ia64 = "$host_cpu"; then
19171 # AIX 5 now supports IA64 processor
19172 lt_prog_compiler_static='-Bstatic'
19174 lt_prog_compiler_pic='-fPIC'
19180 # see comment about AmigaOS4 .so support
19181 lt_prog_compiler_pic='-fPIC'
19184 # FIXME: we need at least 68020 code to build shared libraries, but
19185 # adding the '-m68020' flag to GCC prevents building anything better,
19187 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
19192 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19193 # PIC is the default for these OSes.
19196 mingw* | cygwin* | pw32* | os2* | cegcc*)
19197 # This hack is so that the source file can tell whether it is being
19198 # built for inclusion in a dll (and should export symbols for example).
19199 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19200 # (--disable-auto-import) libraries
19201 lt_prog_compiler_pic='-DDLL_EXPORT'
19204 lt_prog_compiler_static='$wl-static'
19209 darwin* | rhapsody*)
19210 # PIC is the default on this platform
19211 # Common symbols not allowed in MH_DYLIB files
19212 lt_prog_compiler_pic='-fno-common'
19216 # PIC is the default for Haiku.
19217 # The "-static" flag exists, but is broken.
19218 lt_prog_compiler_static=
19222 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19223 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19224 # sets the default TLS model and affects inlining.
19230 lt_prog_compiler_pic='-fPIC'
19236 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19237 # Instead, we relocate shared libraries at runtime.
19241 # Just because we use GCC doesn't mean we suddenly get shared libraries
19242 # on systems that don't support them.
19243 lt_prog_compiler_can_build_shared=no
19248 # QNX uses GNU C++, but need to define -shared option too, otherwise
19249 # it will coredump.
19250 lt_prog_compiler_pic='-fPIC -shared'
19254 if test -d /usr/nec; then
19255 lt_prog_compiler_pic=-Kconform_pic
19260 lt_prog_compiler_pic='-fPIC'
19264 case $cc_basename in
19265 nvcc*) # Cuda Compiler Driver 2.2
19266 lt_prog_compiler_wl='-Xlinker '
19267 if test -n "$lt_prog_compiler_pic"; then
19268 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
19273 # PORTME Check for flag to pass linker flags through the system compiler.
19276 lt_prog_compiler_wl='-Wl,'
19277 if test ia64 = "$host_cpu"; then
19278 # AIX 5 now supports IA64 processor
19279 lt_prog_compiler_static='-Bstatic'
19281 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
19285 darwin* | rhapsody*)
19286 # PIC is the default on this platform
19287 # Common symbols not allowed in MH_DYLIB files
19288 lt_prog_compiler_pic='-fno-common'
19289 case $cc_basename in
19291 # NAG Fortran compiler
19292 lt_prog_compiler_wl='-Wl,-Wl,,'
19293 lt_prog_compiler_pic='-PIC'
19294 lt_prog_compiler_static='-Bstatic'
19299 mingw* | cygwin* | pw32* | os2* | cegcc*)
19300 # This hack is so that the source file can tell whether it is being
19301 # built for inclusion in a dll (and should export symbols for example).
19302 lt_prog_compiler_pic='-DDLL_EXPORT'
19305 lt_prog_compiler_static='$wl-static'
19310 hpux9* | hpux10* | hpux11*)
19311 lt_prog_compiler_wl='-Wl,'
19312 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19313 # not for PA HP-UX.
19319 lt_prog_compiler_pic='+Z'
19322 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19323 lt_prog_compiler_static='$wl-a ${wl}archive'
19326 irix5* | irix6* | nonstopux*)
19327 lt_prog_compiler_wl='-Wl,'
19328 # PIC (with -KPIC) is the default.
19329 lt_prog_compiler_static='-non_shared'
19332 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19333 case $cc_basename in
19334 # old Intel for x86_64, which still supported -KPIC.
19336 lt_prog_compiler_wl='-Wl,'
19337 lt_prog_compiler_pic='-KPIC'
19338 lt_prog_compiler_static='-static'
19340 # icc used to be incompatible with GCC.
19341 # ICC 10 doesn't accept -KPIC any more.
19343 lt_prog_compiler_wl='-Wl,'
19344 lt_prog_compiler_pic='-fPIC'
19345 lt_prog_compiler_static='-static'
19347 # Lahey Fortran 8.1.
19349 lt_prog_compiler_wl='-Wl,'
19350 lt_prog_compiler_pic='--shared'
19351 lt_prog_compiler_static='--static'
19354 # NAG Fortran compiler
19355 lt_prog_compiler_wl='-Wl,-Wl,,'
19356 lt_prog_compiler_pic='-PIC'
19357 lt_prog_compiler_static='-Bstatic'
19360 # Fabrice Bellard et al's Tiny C Compiler
19361 lt_prog_compiler_wl='-Wl,'
19362 lt_prog_compiler_pic='-fPIC'
19363 lt_prog_compiler_static='-static'
19365 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
19366 # Portland Group compilers (*not* the Pentium gcc compiler,
19367 # which looks to be a dead project)
19368 lt_prog_compiler_wl='-Wl,'
19369 lt_prog_compiler_pic='-fpic'
19370 lt_prog_compiler_static='-Bstatic'
19373 lt_prog_compiler_wl='-Wl,'
19374 # All Alpha code is PIC.
19375 lt_prog_compiler_static='-non_shared'
19377 xl* | bgxl* | bgf* | mpixl*)
19378 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
19379 lt_prog_compiler_wl='-Wl,'
19380 lt_prog_compiler_pic='-qpic'
19381 lt_prog_compiler_static='-qstaticlink'
19384 case `$CC -V 2>&1 | sed 5q` in
19385 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
19386 # Sun Fortran 8.3 passes all unrecognized flags to the linker
19387 lt_prog_compiler_pic='-KPIC'
19388 lt_prog_compiler_static='-Bstatic'
19389 lt_prog_compiler_wl=''
19391 *Sun\ F* | *Sun*Fortran*)
19392 lt_prog_compiler_pic='-KPIC'
19393 lt_prog_compiler_static='-Bstatic'
19394 lt_prog_compiler_wl='-Qoption ld '
19398 lt_prog_compiler_pic='-KPIC'
19399 lt_prog_compiler_static='-Bstatic'
19400 lt_prog_compiler_wl='-Wl,'
19402 *Intel*\ [CF]*Compiler*)
19403 lt_prog_compiler_wl='-Wl,'
19404 lt_prog_compiler_pic='-fPIC'
19405 lt_prog_compiler_static='-static'
19408 lt_prog_compiler_wl='-Wl,'
19409 lt_prog_compiler_pic='-fpic'
19410 lt_prog_compiler_static='-Bstatic'
19418 lt_prog_compiler_pic='-KPIC'
19419 lt_prog_compiler_static='-Bstatic'
19423 # QNX uses GNU C++, but need to define -shared option too, otherwise
19424 # it will coredump.
19425 lt_prog_compiler_pic='-fPIC -shared'
19428 osf3* | osf4* | osf5*)
19429 lt_prog_compiler_wl='-Wl,'
19430 # All OSF/1 code is PIC.
19431 lt_prog_compiler_static='-non_shared'
19435 lt_prog_compiler_static='-non_shared'
19439 lt_prog_compiler_pic='-KPIC'
19440 lt_prog_compiler_static='-Bstatic'
19441 case $cc_basename in
19442 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
19443 lt_prog_compiler_wl='-Qoption ld ';;
19445 lt_prog_compiler_wl='-Wl,';;
19450 lt_prog_compiler_wl='-Qoption ld '
19451 lt_prog_compiler_pic='-PIC'
19452 lt_prog_compiler_static='-Bstatic'
19455 sysv4 | sysv4.2uw2* | sysv4.3*)
19456 lt_prog_compiler_wl='-Wl,'
19457 lt_prog_compiler_pic='-KPIC'
19458 lt_prog_compiler_static='-Bstatic'
19462 if test -d /usr/nec; then
19463 lt_prog_compiler_pic='-Kconform_pic'
19464 lt_prog_compiler_static='-Bstatic'
19468 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19469 lt_prog_compiler_wl='-Wl,'
19470 lt_prog_compiler_pic='-KPIC'
19471 lt_prog_compiler_static='-Bstatic'
19475 lt_prog_compiler_wl='-Wl,'
19476 lt_prog_compiler_can_build_shared=no
19480 lt_prog_compiler_pic='-pic'
19481 lt_prog_compiler_static='-Bstatic'
19485 lt_prog_compiler_can_build_shared=no
19491 # For platforms that do not support PIC, -DPIC is meaningless:
19493 lt_prog_compiler_pic=
19496 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19501 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19502 if ${lt_cv_prog_compiler_pic+:} false; then :
19503 $as_echo_n "(cached) " >&6
19505 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
19508 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
19509 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
19512 # Check to make sure the PIC flag actually works.
19514 if test -n "$lt_prog_compiler_pic"; then
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
19516 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
19517 if ${lt_cv_prog_compiler_pic_works+:} false; then :
19518 $as_echo_n "(cached) " >&6
19520 lt_cv_prog_compiler_pic_works=no
19521 ac_outfile=conftest.$ac_objext
19522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19523 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
19524 # Insert the option either (1) after the last *FLAGS variable, or
19525 # (2) before a word containing "conftest.", or (3) at the end.
19526 # Note that $ac_compile itself does not contain backslashes and begins
19527 # with a dollar sign (not a hyphen), so the echo should work correctly.
19528 # The option is referenced via a variable to avoid confusing sed.
19529 lt_compile=`echo "$ac_compile" | $SED \
19530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19532 -e 's:$: $lt_compiler_flag:'`
19533 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19534 (eval "$lt_compile" 2>conftest.err)
19536 cat conftest.err >&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 if (exit $ac_status) && test -s "$ac_outfile"; then
19539 # The compiler can only warn and ignore the option if not recognized
19540 # So say no if there are warnings other than the usual output.
19541 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19543 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19544 lt_cv_prog_compiler_pic_works=yes
19550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
19551 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
19553 if test yes = "$lt_cv_prog_compiler_pic_works"; then
19554 case $lt_prog_compiler_pic in
19556 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
19559 lt_prog_compiler_pic=
19560 lt_prog_compiler_can_build_shared=no
19576 # Check to make sure the static flag actually works.
19578 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19580 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19581 if ${lt_cv_prog_compiler_static_works+:} false; then :
19582 $as_echo_n "(cached) " >&6
19584 lt_cv_prog_compiler_static_works=no
19585 save_LDFLAGS=$LDFLAGS
19586 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19587 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19588 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19589 # The linker can only warn and ignore the option if not recognized
19590 # So say no if there are warnings
19591 if test -s conftest.err; then
19592 # Append any errors to the config.log.
19593 cat conftest.err 1>&5
19594 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19595 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19596 if diff conftest.exp conftest.er2 >/dev/null; then
19597 lt_cv_prog_compiler_static_works=yes
19600 lt_cv_prog_compiler_static_works=yes
19604 LDFLAGS=$save_LDFLAGS
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
19608 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
19610 if test yes = "$lt_cv_prog_compiler_static_works"; then
19613 lt_prog_compiler_static=
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19623 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19624 if ${lt_cv_prog_compiler_c_o+:} false; then :
19625 $as_echo_n "(cached) " >&6
19627 lt_cv_prog_compiler_c_o=no
19628 $RM -r conftest 2>/dev/null
19632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19634 lt_compiler_flag="-o out/conftest2.$ac_objext"
19635 # Insert the option either (1) after the last *FLAGS variable, or
19636 # (2) before a word containing "conftest.", or (3) at the end.
19637 # Note that $ac_compile itself does not contain backslashes and begins
19638 # with a dollar sign (not a hyphen), so the echo should work correctly.
19639 lt_compile=`echo "$ac_compile" | $SED \
19640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19642 -e 's:$: $lt_compiler_flag:'`
19643 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19644 (eval "$lt_compile" 2>out/conftest.err)
19646 cat out/conftest.err >&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19650 # The compiler can only warn and ignore the option if not recognized
19651 # So say no if there are warnings
19652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19653 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19654 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19655 lt_cv_prog_compiler_c_o=yes
19660 # SGI C++ compiler will create directory out/ii_files/ for
19661 # template instantiation
19662 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19663 $RM out/* && rmdir out
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19670 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19678 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19679 if ${lt_cv_prog_compiler_c_o+:} false; then :
19680 $as_echo_n "(cached) " >&6
19682 lt_cv_prog_compiler_c_o=no
19683 $RM -r conftest 2>/dev/null
19687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19689 lt_compiler_flag="-o out/conftest2.$ac_objext"
19690 # Insert the option either (1) after the last *FLAGS variable, or
19691 # (2) before a word containing "conftest.", or (3) at the end.
19692 # Note that $ac_compile itself does not contain backslashes and begins
19693 # with a dollar sign (not a hyphen), so the echo should work correctly.
19694 lt_compile=`echo "$ac_compile" | $SED \
19695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19697 -e 's:$: $lt_compiler_flag:'`
19698 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19699 (eval "$lt_compile" 2>out/conftest.err)
19701 cat out/conftest.err >&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19705 # The compiler can only warn and ignore the option if not recognized
19706 # So say no if there are warnings
19707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19708 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19709 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19710 lt_cv_prog_compiler_c_o=yes
19715 # SGI C++ compiler will create directory out/ii_files/ for
19716 # template instantiation
19717 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19718 $RM out/* && rmdir out
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19725 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19730 hard_links=nottested
19731 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
19732 # do not overwrite the value of need_locks provided by the user
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19734 $as_echo_n "checking if we can lock with hard links... " >&6; }
19737 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19739 ln conftest.a conftest.b 2>&5 || hard_links=no
19740 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19742 $as_echo "$hard_links" >&6; }
19743 if test no = "$hard_links"; then
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
19745 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19758 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19761 allow_undefined_flag=
19762 always_export_symbols=no
19764 archive_expsym_cmds=
19765 compiler_needs_object=no
19766 enable_shared_with_static_runtimes=no
19767 export_dynamic_flag_spec=
19768 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19769 hardcode_automatic=no
19771 hardcode_direct_absolute=no
19772 hardcode_libdir_flag_spec=
19773 hardcode_libdir_separator=
19774 hardcode_minus_L=no
19775 hardcode_shlibpath_var=unsupported
19777 link_all_deplibs=unknown
19779 module_expsym_cmds=
19780 old_archive_from_new_cmds=
19781 old_archive_from_expsyms_cmds=
19782 thread_safe_flag_spec=
19783 whole_archive_flag_spec=
19784 # include_expsyms should be a list of space-separated symbols to be *always*
19785 # included in the symbol list
19787 # exclude_expsyms can be an extended regexp of symbols to exclude
19788 # it will be wrapped by ' (' and ')$', so one must not match beginning or
19789 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
19790 # as well as any symbol that contains 'd'.
19791 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19792 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19793 # platforms (ab)use it in PIC code, but their linkers get confused if
19794 # the symbol is explicitly referenced. Since portable code cannot
19795 # rely on this symbol name, it's probably fine to never include it in
19796 # preloaded symbol tables.
19797 # Exclude shared library initialization/finalization symbols.
19798 extract_expsyms_cmds=
19801 cygwin* | mingw* | pw32* | cegcc*)
19802 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19803 # When not using gcc, we currently assume that we are using
19804 # Microsoft Visual C++.
19805 if test yes != "$GCC"; then
19810 # we just hope/assume this is gcc and not c89 (= MSVC++)
19813 openbsd* | bitrig*)
19820 # On some targets, GNU ld is compatible enough with the native linker
19821 # that we're better off using the native interface for both.
19822 lt_use_gnu_ld_interface=no
19823 if test yes = "$with_gnu_ld"; then
19826 # The AIX port of GNU ld has always aspired to compatibility
19827 # with the native linker. However, as the warning in the GNU ld
19828 # block says, versions before 2.19.5* couldn't really create working
19829 # shared libraries, regardless of the interface used.
19830 case `$LD -v 2>&1` in
19831 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19832 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19833 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19835 lt_use_gnu_ld_interface=yes
19840 lt_use_gnu_ld_interface=yes
19845 if test yes = "$lt_use_gnu_ld_interface"; then
19846 # If archive_cmds runs LD, not CC, wlarc should be empty
19849 # Set some defaults for GNU ld with shared library support. These
19850 # are reset later if shared libraries are not supported. Putting them
19851 # here allows them to be overridden if necessary.
19852 runpath_var=LD_RUN_PATH
19853 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19854 export_dynamic_flag_spec='$wl--export-dynamic'
19855 # ancient GNU ld didn't support --whole-archive et. al.
19856 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19857 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
19859 whole_archive_flag_spec=
19861 supports_anon_versioning=no
19862 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
19863 *GNU\ gold*) supports_anon_versioning=yes ;;
19864 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19865 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19866 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19867 *\ 2.11.*) ;; # other 2.11 versions
19868 *) supports_anon_versioning=yes ;;
19871 # See if GNU ld supports shared libraries.
19874 # On AIX/PPC, the GNU linker is very broken
19875 if test ia64 != "$host_cpu"; then
19879 *** Warning: the GNU linker, at least up to release 2.19, is reported
19880 *** to be unable to reliably create shared libraries on AIX.
19881 *** Therefore, libtool is disabling shared libraries support. If you
19882 *** really care for shared libraries, you may want to install binutils
19883 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19884 *** You will then need to restart the configuration process.
19893 # see comment about AmigaOS4 .so support
19894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19895 archive_expsym_cmds=''
19898 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)'
19899 hardcode_libdir_flag_spec='-L$libdir'
19900 hardcode_minus_L=yes
19906 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19907 allow_undefined_flag=unsupported
19908 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19909 # support --undefined. This deserves some investigation. FIXME
19910 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19916 cygwin* | mingw* | pw32* | cegcc*)
19917 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19918 # as there is no search path for DLLs.
19919 hardcode_libdir_flag_spec='-L$libdir'
19920 export_dynamic_flag_spec='$wl--export-all-symbols'
19921 allow_undefined_flag=unsupported
19922 always_export_symbols=no
19923 enable_shared_with_static_runtimes=yes
19924 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'
19925 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19927 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19929 # If the export-symbols file already is a .def file, use it as
19930 # is; otherwise, prepend EXPORTS...
19931 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
19932 cp $export_symbols $output_objdir/$soname.def;
19934 echo EXPORTS > $output_objdir/$soname.def;
19935 cat $export_symbols >> $output_objdir/$soname.def;
19937 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19944 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19945 link_all_deplibs=yes
19949 hardcode_libdir_flag_spec='-L$libdir'
19950 hardcode_minus_L=yes
19951 allow_undefined_flag=unsupported
19953 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19954 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19955 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19956 $ECHO EXPORTS >> $output_objdir/$libname.def~
19957 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19958 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19959 emximp -o $lib $output_objdir/$libname.def'
19960 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19961 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19962 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19963 $ECHO EXPORTS >> $output_objdir/$libname.def~
19964 prefix_cmds="$SED"~
19965 if test EXPORTS = "`$SED 1q $export_symbols`"; then
19966 prefix_cmds="$prefix_cmds -e 1d";
19968 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19969 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19970 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19971 emximp -o $lib $output_objdir/$libname.def'
19972 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19973 enable_shared_with_static_runtimes=yes
19978 hardcode_shlibpath_var=no
19979 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
19980 export_dynamic_flag_spec='$wl-E'
19981 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19982 # Instead, shared libraries are loaded at an image base (0x10000000 by
19983 # default) and relocated if they conflict, which is a slow very memory
19984 # consuming and fragmenting process. To avoid this, we pick a random,
19985 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19986 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19987 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19988 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'
19991 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
19993 if test linux-dietlibc = "$host_os"; then
19994 case $cc_basename in
19995 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
19998 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19999 && test no = "$tmp_diet"
20001 tmp_addflag=' $pic_flag'
20002 tmp_sharedflag='-shared'
20003 case $cc_basename,$host_cpu in
20004 pgcc*) # Portland Group C compiler
20005 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'
20006 tmp_addflag=' $pic_flag'
20008 pgf77* | pgf90* | pgf95* | pgfortran*)
20009 # Portland Group f77 and f90 compilers
20010 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'
20011 tmp_addflag=' $pic_flag -Mnomain' ;;
20012 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20013 tmp_addflag=' -i_dynamic' ;;
20014 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20015 tmp_addflag=' -i_dynamic -nofor_main' ;;
20016 ifc* | ifort*) # Intel Fortran compiler
20017 tmp_addflag=' -nofor_main' ;;
20018 lf95*) # Lahey Fortran 8.1
20019 whole_archive_flag_spec=
20020 tmp_sharedflag='--shared' ;;
20021 nagfor*) # NAGFOR 5.3
20022 tmp_sharedflag='-Wl,-shared' ;;
20023 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
20024 tmp_sharedflag='-qmkshrobj'
20026 nvcc*) # Cuda Compiler Driver 2.2
20027 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'
20028 compiler_needs_object=yes
20031 case `$CC -V 2>&1 | sed 5q` in
20032 *Sun\ C*) # Sun C 5.9
20033 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'
20034 compiler_needs_object=yes
20035 tmp_sharedflag='-G' ;;
20036 *Sun\ F*) # Sun Fortran 8.3
20037 tmp_sharedflag='-G' ;;
20039 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20041 if test yes = "$supports_anon_versioning"; then
20042 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
20043 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20044 echo "local: *; };" >> $output_objdir/$libname.ver~
20045 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
20048 case $cc_basename in
20050 export_dynamic_flag_spec='-rdynamic'
20052 xlf* | bgf* | bgxlf* | mpixlf*)
20053 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
20054 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
20055 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20056 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
20057 if test yes = "$supports_anon_versioning"; then
20058 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
20059 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20060 echo "local: *; };" >> $output_objdir/$libname.ver~
20061 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
20071 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20072 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20075 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20076 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 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
20085 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20086 *** create shared libraries on Solaris systems. Therefore, libtool
20087 *** is disabling shared libraries support. We urge you to upgrade GNU
20088 *** binutils to release 2.9.1 or newer. Another option is to modify
20089 *** your PATH or compiler configuration so that the native linker is
20090 *** used, and then restart.
20093 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20094 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20095 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20102 case `$LD -v 2>&1` in
20103 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20107 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
20108 *** reliably create shared libraries on SCO systems. Therefore, libtool
20109 *** is disabling shared libraries support. We urge you to upgrade GNU
20110 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20111 *** your PATH or compiler configuration so that the native linker is
20112 *** used, and then restart.
20117 # For security reasons, it is highly recommended that you always
20118 # use absolute paths for naming shared libraries, and exclude the
20119 # DT_RUNPATH tag from executables and libraries. But doing so
20120 # requires that you compile everything twice, which is a pain.
20121 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20122 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20124 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20133 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20135 hardcode_direct=yes
20136 hardcode_shlibpath_var=no
20140 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20141 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20142 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20149 if test no = "$ld_shlibs"; then
20151 hardcode_libdir_flag_spec=
20152 export_dynamic_flag_spec=
20153 whole_archive_flag_spec=
20156 # PORTME fill in a description of your system's linker (not GNU ld)
20159 allow_undefined_flag=unsupported
20160 always_export_symbols=yes
20161 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'
20162 # Note: this linker hardcodes the directories in LIBPATH if there
20163 # are no directories specified by -L.
20164 hardcode_minus_L=yes
20165 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
20166 # Neither direct hardcoding nor static linking is supported with a
20168 hardcode_direct=unsupported
20173 if test ia64 = "$host_cpu"; then
20174 # On IA64, the linker does run time linking by default, so we don't
20175 # have to do anything special.
20176 aix_use_runtimelinking=no
20177 exp_sym_flag='-Bexport'
20180 # If we're using GNU nm, then we don't want the "-C" option.
20181 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
20182 # Without the "-l" option, or with the "-B" option, AIX nm treats
20183 # weak defined symbols like other global defined symbols, whereas
20184 # GNU nm marks them as "W".
20185 # While the 'weak' keyword is ignored in the Export File, we need
20186 # it in the Import File for the 'aix-soname' feature, so we have
20187 # to replace the "-B" option with "-P" for AIX nm.
20188 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20189 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'
20191 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'
20193 aix_use_runtimelinking=no
20195 # Test if we are trying to use run time linking or normal
20196 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20197 # have runtime linking enabled, and use it for executables.
20198 # For shared libraries, we enable/disable runtime linking
20199 # depending on the kind of the shared library created -
20200 # when "with_aix_soname,aix_use_runtimelinking" is:
20201 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
20202 # "aix,yes" lib.so shared, rtl:yes, for executables
20203 # lib.a static archive
20204 # "both,no" lib.so.V(shr.o) shared, rtl:yes
20205 # lib.a(lib.so.V) shared, rtl:no, for executables
20206 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
20207 # lib.a(lib.so.V) shared, rtl:no
20208 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
20209 # lib.a static archive
20210 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20211 for ld_flag in $LDFLAGS; do
20212 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
20213 aix_use_runtimelinking=yes
20217 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
20218 # With aix-soname=svr4, we create the lib.so.V shared archives only,
20219 # so we don't have lib.a shared libs to link our executables.
20220 # We have to force runtime linking in this case.
20221 aix_use_runtimelinking=yes
20222 LDFLAGS="$LDFLAGS -Wl,-brtl"
20227 exp_sym_flag='-bexport'
20228 no_entry_flag='-bnoentry'
20231 # When large executables or shared objects are built, AIX ld can
20232 # have problems creating the table of contents. If linking a library
20233 # or program results in "error TOC overflow" add -mminimal-toc to
20234 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20235 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20238 hardcode_direct=yes
20239 hardcode_direct_absolute=yes
20240 hardcode_libdir_separator=':'
20241 link_all_deplibs=yes
20242 file_list_spec='$wl-f,'
20243 case $with_aix_soname,$aix_use_runtimelinking in
20244 aix,*) ;; # traditional, no import file
20245 svr4,* | *,yes) # use import file
20246 # The Import File defines what to hardcode.
20248 hardcode_direct_absolute=no
20252 if test yes = "$GCC"; then
20253 case $host_os in aix4.[012]|aix4.[012].*)
20254 # We only want to do this on AIX 4.2 and lower, the check
20255 # below for broken collect2 doesn't work under 4.3+
20256 collect2name=`$CC -print-prog-name=collect2`
20257 if test -f "$collect2name" &&
20258 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20260 # We have reworked collect2
20263 # We have old collect2
20264 hardcode_direct=unsupported
20265 # It fails to find uninstalled libraries when the uninstalled
20266 # path is not listed in the libpath. Setting hardcode_minus_L
20267 # to unsupported forces relinking
20268 hardcode_minus_L=yes
20269 hardcode_libdir_flag_spec='-L$libdir'
20270 hardcode_libdir_separator=
20274 shared_flag='-shared'
20275 if test yes = "$aix_use_runtimelinking"; then
20276 shared_flag="$shared_flag "'$wl-G'
20278 # Need to ensure runtime linking is disabled for the traditional
20279 # shared library, or the linker may eventually find shared libraries
20280 # /with/ Import File - we do not want to mix them.
20281 shared_flag_aix='-shared'
20282 shared_flag_svr4='-shared $wl-G'
20285 if test ia64 = "$host_cpu"; then
20286 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20287 # chokes on -Wl,-G. The following line is correct:
20290 if test yes = "$aix_use_runtimelinking"; then
20291 shared_flag='$wl-G'
20293 shared_flag='$wl-bM:SRE'
20295 shared_flag_aix='$wl-bM:SRE'
20296 shared_flag_svr4='$wl-G'
20300 export_dynamic_flag_spec='$wl-bexpall'
20301 # It seems that -bexpall does not export symbols beginning with
20302 # underscore (_), so it is better to generate a list of symbols to export.
20303 always_export_symbols=yes
20304 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
20305 # Warning - without using the other runtime loading flags (-brtl),
20306 # -berok will link without error, but may produce a broken library.
20307 allow_undefined_flag='-berok'
20308 # Determine the default libpath from the value encoded in an
20309 # empty executable.
20310 if test set = "${lt_cv_aix_libpath+set}"; then
20311 aix_libpath=$lt_cv_aix_libpath
20313 if ${lt_cv_aix_libpath_+:} false; then :
20314 $as_echo_n "(cached) " >&6
20316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20317 /* end confdefs.h. */
20327 if ac_fn_c_try_link "$LINENO"; then :
20329 lt_aix_libpath_sed='
20330 /Import File Strings/,/^$/ {
20332 s/^0 *\([^ ]*\) *$/\1/
20336 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20337 # Check for a 64-bit object if we didn't find anything.
20338 if test -z "$lt_cv_aix_libpath_"; then
20339 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20342 rm -f core conftest.err conftest.$ac_objext \
20343 conftest$ac_exeext conftest.$ac_ext
20344 if test -z "$lt_cv_aix_libpath_"; then
20345 lt_cv_aix_libpath_=/usr/lib:/lib
20350 aix_libpath=$lt_cv_aix_libpath_
20353 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
20354 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
20356 if test ia64 = "$host_cpu"; then
20357 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
20358 allow_undefined_flag="-z nodefs"
20359 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"
20361 # Determine the default libpath from the value encoded in an
20362 # empty executable.
20363 if test set = "${lt_cv_aix_libpath+set}"; then
20364 aix_libpath=$lt_cv_aix_libpath
20366 if ${lt_cv_aix_libpath_+:} false; then :
20367 $as_echo_n "(cached) " >&6
20369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20370 /* end confdefs.h. */
20380 if ac_fn_c_try_link "$LINENO"; then :
20382 lt_aix_libpath_sed='
20383 /Import File Strings/,/^$/ {
20385 s/^0 *\([^ ]*\) *$/\1/
20389 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20390 # Check for a 64-bit object if we didn't find anything.
20391 if test -z "$lt_cv_aix_libpath_"; then
20392 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20395 rm -f core conftest.err conftest.$ac_objext \
20396 conftest$ac_exeext conftest.$ac_ext
20397 if test -z "$lt_cv_aix_libpath_"; then
20398 lt_cv_aix_libpath_=/usr/lib:/lib
20403 aix_libpath=$lt_cv_aix_libpath_
20406 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
20407 # Warning - without using the other run time loading flags,
20408 # -berok will link without error, but may produce a broken library.
20409 no_undefined_flag=' $wl-bernotok'
20410 allow_undefined_flag=' $wl-berok'
20411 if test yes = "$with_gnu_ld"; then
20412 # We only use this code for GNU lds that support --whole-archive.
20413 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
20415 # Exported symbols can be pulled into shared objects from archives
20416 whole_archive_flag_spec='$convenience'
20418 archive_cmds_need_lc=yes
20419 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
20420 # -brtl affects multiple linker settings, -berok does not and is overridden later
20421 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
20422 if test svr4 != "$with_aix_soname"; then
20423 # This is similar to how AIX traditionally builds its shared libraries.
20424 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'
20426 if test aix != "$with_aix_soname"; then
20427 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'
20429 # used by -dlpreopen to get the symbols
20430 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
20432 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
20440 # see comment about AmigaOS4 .so support
20441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20442 archive_expsym_cmds=''
20445 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)'
20446 hardcode_libdir_flag_spec='-L$libdir'
20447 hardcode_minus_L=yes
20453 export_dynamic_flag_spec=-rdynamic
20456 cygwin* | mingw* | pw32* | cegcc*)
20457 # When not using gcc, we currently assume that we are using
20458 # Microsoft Visual C++.
20459 # hardcode_libdir_flag_spec is actually meaningless, as there is
20460 # no search path for DLLs.
20461 case $cc_basename in
20464 hardcode_libdir_flag_spec=' '
20465 allow_undefined_flag=unsupported
20466 always_export_symbols=yes
20468 # Tell ltmain to make .lib files, not .a files.
20470 # Tell ltmain to make .dll files, not .so files.
20472 # FIXME: Setting linknames here is a bad hack.
20473 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
20474 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
20475 cp "$export_symbols" "$output_objdir/$soname.def";
20476 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
20478 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
20480 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
20482 # The linker will not automatically build a static lib if we build a DLL.
20483 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
20484 enable_shared_with_static_runtimes=yes
20485 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20486 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20488 old_postinstall_cmds='chmod 644 $oldlib'
20489 postlink_cmds='lt_outputfile="@OUTPUT@"~
20490 lt_tool_outputfile="@TOOL_OUTPUT@"~
20491 case $lt_outputfile in
20494 lt_outputfile=$lt_outputfile.exe
20495 lt_tool_outputfile=$lt_tool_outputfile.exe
20498 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
20499 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
20500 $RM "$lt_outputfile.manifest";
20504 # Assume MSVC wrapper
20505 hardcode_libdir_flag_spec=' '
20506 allow_undefined_flag=unsupported
20507 # Tell ltmain to make .lib files, not .a files.
20509 # Tell ltmain to make .dll files, not .so files.
20511 # FIXME: Setting linknames here is a bad hack.
20512 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
20513 # The linker will automatically build a .lib file if we build a DLL.
20514 old_archive_from_new_cmds='true'
20515 # FIXME: Should let the user specify the lib program.
20516 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
20517 enable_shared_with_static_runtimes=yes
20522 darwin* | rhapsody*)
20525 archive_cmds_need_lc=no
20527 hardcode_automatic=yes
20528 hardcode_shlibpath_var=unsupported
20529 if test yes = "$lt_cv_ld_force_load"; then
20530 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\"`'
20533 whole_archive_flag_spec=''
20535 link_all_deplibs=yes
20536 allow_undefined_flag=$_lt_dar_allow_undefined
20537 case $cc_basename in
20538 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
20539 *) _lt_dar_can_shared=$GCC ;;
20541 if test yes = "$_lt_dar_can_shared"; then
20542 output_verbose_link_cmd=func_echo_all
20543 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
20544 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
20545 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"
20546 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"
20555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20556 hardcode_libdir_flag_spec='-L$libdir'
20557 hardcode_shlibpath_var=no
20560 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20561 # support. Future versions do this automatically, but an explicit c++rt0.o
20562 # does not break anything, and helps significantly (at the cost of a little
20565 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20566 hardcode_libdir_flag_spec='-R$libdir'
20567 hardcode_direct=yes
20568 hardcode_shlibpath_var=no
20571 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20573 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20574 hardcode_direct=yes
20575 hardcode_minus_L=yes
20576 hardcode_shlibpath_var=no
20579 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20580 freebsd* | dragonfly*)
20581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20582 hardcode_libdir_flag_spec='-R$libdir'
20583 hardcode_direct=yes
20584 hardcode_shlibpath_var=no
20588 if test yes = "$GCC"; then
20589 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'
20591 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'
20593 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
20594 hardcode_libdir_separator=:
20595 hardcode_direct=yes
20597 # hardcode_minus_L: Not really in the search PATH,
20598 # but as the default location of the library.
20599 hardcode_minus_L=yes
20600 export_dynamic_flag_spec='$wl-E'
20604 if test yes,no = "$GCC,$with_gnu_ld"; then
20605 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20607 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20609 if test no = "$with_gnu_ld"; then
20610 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
20611 hardcode_libdir_separator=:
20612 hardcode_direct=yes
20613 hardcode_direct_absolute=yes
20614 export_dynamic_flag_spec='$wl-E'
20615 # hardcode_minus_L: Not really in the search PATH,
20616 # but as the default location of the library.
20617 hardcode_minus_L=yes
20622 if test yes,no = "$GCC,$with_gnu_ld"; then
20625 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20628 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20631 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20637 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20640 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20644 # Older versions of the 11.00 compiler do not understand -b yet
20645 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
20647 $as_echo_n "checking if $CC understands -b... " >&6; }
20648 if ${lt_cv_prog_compiler__b+:} false; then :
20649 $as_echo_n "(cached) " >&6
20651 lt_cv_prog_compiler__b=no
20652 save_LDFLAGS=$LDFLAGS
20653 LDFLAGS="$LDFLAGS -b"
20654 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20655 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20656 # The linker can only warn and ignore the option if not recognized
20657 # So say no if there are warnings
20658 if test -s conftest.err; then
20659 # Append any errors to the config.log.
20660 cat conftest.err 1>&5
20661 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20663 if diff conftest.exp conftest.er2 >/dev/null; then
20664 lt_cv_prog_compiler__b=yes
20667 lt_cv_prog_compiler__b=yes
20671 LDFLAGS=$save_LDFLAGS
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
20675 $as_echo "$lt_cv_prog_compiler__b" >&6; }
20677 if test yes = "$lt_cv_prog_compiler__b"; then
20678 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20680 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20686 if test no = "$with_gnu_ld"; then
20687 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
20688 hardcode_libdir_separator=:
20693 hardcode_shlibpath_var=no
20696 hardcode_direct=yes
20697 hardcode_direct_absolute=yes
20698 export_dynamic_flag_spec='$wl-E'
20700 # hardcode_minus_L: Not really in the search PATH,
20701 # but as the default location of the library.
20702 hardcode_minus_L=yes
20708 irix5* | irix6* | nonstopux*)
20709 if test yes = "$GCC"; then
20710 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'
20711 # Try to use the -exported_symbol ld option, if it does not
20712 # work, assume that -exports_file does not work either and
20713 # implicitly export all symbols.
20714 # This should be the same for all languages, so no per-tag cache variable.
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
20716 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
20717 if ${lt_cv_irix_exported_symbol+:} false; then :
20718 $as_echo_n "(cached) " >&6
20720 save_LDFLAGS=$LDFLAGS
20721 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
20722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20723 /* end confdefs.h. */
20724 int foo (void) { return 0; }
20726 if ac_fn_c_try_link "$LINENO"; then :
20727 lt_cv_irix_exported_symbol=yes
20729 lt_cv_irix_exported_symbol=no
20731 rm -f core conftest.err conftest.$ac_objext \
20732 conftest$ac_exeext conftest.$ac_ext
20733 LDFLAGS=$save_LDFLAGS
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
20736 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
20737 if test yes = "$lt_cv_irix_exported_symbol"; then
20738 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'
20741 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'
20742 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'
20744 archive_cmds_need_lc='no'
20745 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20746 hardcode_libdir_separator=:
20748 link_all_deplibs=yes
20752 case $cc_basename in
20754 # Fabrice Bellard et al's Tiny C Compiler
20756 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20765 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20767 hardcode_libdir_flag_spec='-R$libdir'
20768 hardcode_direct=yes
20769 hardcode_shlibpath_var=no
20773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20774 hardcode_direct=yes
20775 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20776 hardcode_libdir_separator=:
20777 hardcode_shlibpath_var=no
20783 openbsd* | bitrig*)
20784 if test -f /usr/libexec/ld.so; then
20785 hardcode_direct=yes
20786 hardcode_shlibpath_var=no
20787 hardcode_direct_absolute=yes
20788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20789 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20790 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
20791 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
20792 export_dynamic_flag_spec='$wl-E'
20794 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20795 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
20803 hardcode_libdir_flag_spec='-L$libdir'
20804 hardcode_minus_L=yes
20805 allow_undefined_flag=unsupported
20807 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20808 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20809 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20810 $ECHO EXPORTS >> $output_objdir/$libname.def~
20811 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
20812 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20813 emximp -o $lib $output_objdir/$libname.def'
20814 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20815 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20816 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20817 $ECHO EXPORTS >> $output_objdir/$libname.def~
20818 prefix_cmds="$SED"~
20819 if test EXPORTS = "`$SED 1q $export_symbols`"; then
20820 prefix_cmds="$prefix_cmds -e 1d";
20822 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
20823 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
20824 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20825 emximp -o $lib $output_objdir/$libname.def'
20826 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
20827 enable_shared_with_static_runtimes=yes
20831 if test yes = "$GCC"; then
20832 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
20833 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'
20835 allow_undefined_flag=' -expect_unresolved \*'
20836 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'
20838 archive_cmds_need_lc='no'
20839 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20840 hardcode_libdir_separator=:
20843 osf4* | osf5*) # as osf3* with the addition of -msym flag
20844 if test yes = "$GCC"; then
20845 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
20846 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'
20847 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20849 allow_undefined_flag=' -expect_unresolved \*'
20850 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'
20851 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~
20852 $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'
20854 # Both c and cxx compiler support -rpath directly
20855 hardcode_libdir_flag_spec='-rpath $libdir'
20857 archive_cmds_need_lc='no'
20858 hardcode_libdir_separator=:
20862 no_undefined_flag=' -z defs'
20863 if test yes = "$GCC"; then
20865 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20866 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20867 $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'
20869 case `$CC -V 2>&1` in
20872 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
20873 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20874 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
20878 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
20879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20880 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20884 hardcode_libdir_flag_spec='-R$libdir'
20885 hardcode_shlibpath_var=no
20887 solaris2.[0-5] | solaris2.[0-5].*) ;;
20889 # The compiler driver will combine and reorder linker options,
20890 # but understands '-z linker_flag'. GCC discards it without '$wl',
20891 # but is careful enough not to reorder.
20892 # Supported since Solaris 2.6 (maybe 2.5.1?)
20893 if test yes = "$GCC"; then
20894 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
20896 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
20900 link_all_deplibs=yes
20904 if test sequent = "$host_vendor"; then
20905 # Use $CC to link under sequent, because it throws in some extra .o
20906 # files that make .init and .fini sections work.
20907 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20909 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20911 hardcode_libdir_flag_spec='-L$libdir'
20912 hardcode_direct=yes
20913 hardcode_minus_L=yes
20914 hardcode_shlibpath_var=no
20918 case $host_vendor in
20920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20921 hardcode_direct=yes # is this really true???
20924 ## LD is ld it makes a PLAMLIB
20925 ## CC just makes a GrossModule.
20926 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20927 reload_cmds='$CC -r -o $output$reload_objs'
20931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20932 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
20935 runpath_var='LD_RUN_PATH'
20936 hardcode_shlibpath_var=no
20940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20941 hardcode_shlibpath_var=no
20942 export_dynamic_flag_spec='-Bexport'
20946 if test -d /usr/nec; then
20947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20948 hardcode_shlibpath_var=no
20949 runpath_var=LD_RUN_PATH
20950 hardcode_runpath_var=yes
20955 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20956 no_undefined_flag='$wl-z,text'
20957 archive_cmds_need_lc=no
20958 hardcode_shlibpath_var=no
20959 runpath_var='LD_RUN_PATH'
20961 if test yes = "$GCC"; then
20962 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20963 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20965 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20966 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20970 sysv5* | sco3.2v5* | sco5v6*)
20971 # Note: We CANNOT use -z defs as we might desire, because we do not
20972 # link with -lc, and that would cause any symbols used from libc to
20973 # always be unresolved, which means just about no library would
20974 # ever link correctly. If we're not using GNU ld we use -z text
20975 # though, which does catch some bad symbols but isn't as heavy-handed
20977 no_undefined_flag='$wl-z,text'
20978 allow_undefined_flag='$wl-z,nodefs'
20979 archive_cmds_need_lc=no
20980 hardcode_shlibpath_var=no
20981 hardcode_libdir_flag_spec='$wl-R,$libdir'
20982 hardcode_libdir_separator=':'
20983 link_all_deplibs=yes
20984 export_dynamic_flag_spec='$wl-Bexport'
20985 runpath_var='LD_RUN_PATH'
20987 if test yes = "$GCC"; then
20988 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20989 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20991 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20992 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20998 hardcode_libdir_flag_spec='-L$libdir'
20999 hardcode_shlibpath_var=no
21007 if test sni = "$host_vendor"; then
21009 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21010 export_dynamic_flag_spec='$wl-Blargedynsym'
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
21017 $as_echo "$ld_shlibs" >&6; }
21018 test no = "$ld_shlibs" && can_build_shared=no
21020 with_gnu_ld=$with_gnu_ld
21037 # Do we need to explicitly link libc?
21039 case "x$archive_cmds_need_lc" in
21041 # Assume -lc should be added
21042 archive_cmds_need_lc=yes
21044 if test yes,yes = "$GCC,$enable_shared"; then
21045 case $archive_cmds in
21047 # FIXME: we may have to deal with multi-command sequences.
21050 # Test whether the compiler implicitly links with -lc since on some
21051 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21052 # to ld, don't add -lc before -lgcc.
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21054 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21055 if ${lt_cv_archive_cmds_need_lc+:} false; then :
21056 $as_echo_n "(cached) " >&6
21059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21062 (eval $ac_compile) 2>&5
21064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21065 test $ac_status = 0; } 2>conftest.err; then
21068 libobjs=conftest.$ac_objext
21070 wl=$lt_prog_compiler_wl
21071 pic_flag=$lt_prog_compiler_pic
21077 lt_save_allow_undefined_flag=$allow_undefined_flag
21078 allow_undefined_flag=
21079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21080 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21083 test $ac_status = 0; }
21085 lt_cv_archive_cmds_need_lc=no
21087 lt_cv_archive_cmds_need_lc=yes
21089 allow_undefined_flag=$lt_save_allow_undefined_flag
21091 cat conftest.err 1>&5
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
21097 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
21098 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21257 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21259 if test yes = "$GCC"; then
21261 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
21262 *) lt_awk_arg='/^libraries:/' ;;
21265 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
21266 *) lt_sed_strip_eq='s|=/|/|g' ;;
21268 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
21269 case $lt_search_path_spec in
21271 # if the path contains ";" then we assume it to be the separator
21272 # otherwise default to the standard path separator (i.e. ":") - it is
21273 # assumed that no part of a normal pathname contains ";" but that should
21274 # okay in the real world where ";" in dirpaths is itself problematic.
21275 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
21278 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
21281 # Ok, now we have the path, separated by spaces, we can step through it
21282 # and add multilib dir if necessary...
21283 lt_tmp_lt_search_path_spec=
21284 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
21285 # ...but if some path component already ends with the multilib dir we assume
21286 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
21287 case "$lt_multi_os_dir; $lt_search_path_spec " in
21288 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
21292 for lt_sys_path in $lt_search_path_spec; do
21293 if test -d "$lt_sys_path$lt_multi_os_dir"; then
21294 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
21295 elif test -n "$lt_multi_os_dir"; then
21296 test -d "$lt_sys_path" && \
21297 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
21300 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
21301 BEGIN {RS = " "; FS = "/|\n";} {
21304 for (lt_i = NF; lt_i > 0; lt_i--) {
21305 if ($lt_i != "" && $lt_i != ".") {
21306 if ($lt_i == "..") {
21309 if (lt_count == 0) {
21310 lt_foo = "/" $lt_i lt_foo;
21317 if (lt_foo != "") { lt_freq[lt_foo]++; }
21318 if (lt_freq[lt_foo] == 1) { print lt_foo; }
21320 # AWK program above erroneously prepends '/' to C:/dos/paths
21323 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
21324 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
21326 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
21328 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21330 library_names_spec=
21331 libname_spec='lib$name'
21335 postuninstall_cmds=
21339 shlibpath_overrides_runpath=unknown
21341 dynamic_linker="$host_os ld.so"
21342 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21343 need_lib_prefix=unknown
21344 hardcode_into_libs=no
21346 # when you set need_version to no, make sure it does not cause -set_version
21347 # flags to be left without arguments
21348 need_version=unknown
21354 version_type=linux # correct to gnu/linux during the next big refactor
21355 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
21356 shlibpath_var=LIBPATH
21358 # AIX 3 has no versioning support, so we append a major version to the name.
21359 soname_spec='$libname$release$shared_ext$major'
21363 version_type=linux # correct to gnu/linux during the next big refactor
21366 hardcode_into_libs=yes
21367 if test ia64 = "$host_cpu"; then
21368 # AIX 5 supports IA64
21369 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
21370 shlibpath_var=LD_LIBRARY_PATH
21372 # With GCC up to 2.95.x, collect2 would create an import file
21373 # for dependence libraries. The import file would start with
21374 # the line '#! .'. This would cause the generated library to
21375 # depend on '.', always an invalid library. This was fixed in
21376 # development snapshots of GCC prior to 3.0.
21378 aix4 | aix4.[01] | aix4.[01].*)
21379 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21381 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
21384 can_build_shared=no
21388 # Using Import Files as archive members, it is possible to support
21389 # filename-based versioning of shared library archives on AIX. While
21390 # this would work for both with and without runtime linking, it will
21391 # prevent static linking of such archives. So we do filename-based
21392 # shared library versioning with .so extension only, which is used
21393 # when both runtime linking and shared linking is enabled.
21394 # Unfortunately, runtime linking may impact performance, so we do
21395 # not want this to be the default eventually. Also, we use the
21396 # versioned .so libs for executables only if there is the -brtl
21397 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
21398 # To allow for filename-based versioning support, we need to create
21399 # libNAME.so.V as an archive file, containing:
21400 # *) an Import File, referring to the versioned filename of the
21401 # archive as well as the shared archive member, telling the
21402 # bitwidth (32 or 64) of that shared object, and providing the
21403 # list of exported symbols of that shared object, eventually
21404 # decorated with the 'weak' keyword
21405 # *) the shared object with the F_LOADONLY flag set, to really avoid
21406 # it being seen by the linker.
21407 # At run time we better use the real file rather than another symlink,
21408 # but for link time we create the symlink libNAME.so -> libNAME.so.V
21410 case $with_aix_soname,$aix_use_runtimelinking in
21411 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
21412 # soname into executable. Probably we can add versioning support to
21413 # collect2, so additional links can be useful in future.
21414 aix,yes) # traditional libtool
21415 dynamic_linker='AIX unversionable lib.so'
21416 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21417 # instead of lib<name>.a to let people know that these are not
21418 # typical AIX shared libraries.
21419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21421 aix,no) # traditional AIX only
21422 dynamic_linker='AIX lib.a(lib.so.V)'
21423 # We preserve .a as extension for shared libraries through AIX4.2
21424 # and later when we are not doing run time linking.
21425 library_names_spec='$libname$release.a $libname.a'
21426 soname_spec='$libname$release$shared_ext$major'
21428 svr4,*) # full svr4 only
21429 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
21430 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21431 # We do not specify a path in Import Files, so LIBPATH fires.
21432 shlibpath_overrides_runpath=yes
21434 *,yes) # both, prefer svr4
21435 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
21436 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21437 # unpreferred sharedlib libNAME.a needs extra handling
21438 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"'
21439 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"'
21440 # We do not specify a path in Import Files, so LIBPATH fires.
21441 shlibpath_overrides_runpath=yes
21443 *,no) # both, prefer aix
21444 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
21445 library_names_spec='$libname$release.a $libname.a'
21446 soname_spec='$libname$release$shared_ext$major'
21447 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
21448 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)'
21449 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"'
21452 shlibpath_var=LIBPATH
21459 # Since July 2007 AmigaOS4 officially supports .so libraries.
21460 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21464 library_names_spec='$libname.ixlibrary $libname.a'
21465 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21466 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'
21472 library_names_spec='$libname$shared_ext'
21473 dynamic_linker="$host_os ld.so"
21474 shlibpath_var=LIBRARY_PATH
21478 version_type=linux # correct to gnu/linux during the next big refactor
21480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21481 soname_spec='$libname$release$shared_ext$major'
21482 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21483 shlibpath_var=LD_LIBRARY_PATH
21484 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21485 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21486 # the default ld.so.conf also contains /usr/contrib/lib and
21487 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21488 # libtool to hard-code these into programs
21491 cygwin* | mingw* | pw32* | cegcc*)
21492 version_type=windows
21497 case $GCC,$cc_basename in
21500 library_names_spec='$libname.dll.a'
21501 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21502 postinstall_cmds='base_file=`basename \$file`~
21503 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21504 dldir=$destdir/`dirname \$dlpath`~
21505 test -d \$dldir || mkdir -p \$dldir~
21506 $install_prog $dir/$dlname \$dldir/$dlname~
21507 chmod a+x \$dldir/$dlname~
21508 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21509 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21511 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21512 dlpath=$dir/\$dldll~
21514 shlibpath_overrides_runpath=yes
21518 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21519 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21521 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
21524 # MinGW DLLs use traditional 'lib' prefix
21525 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21528 # pw32 DLLs use 'pw' prefix rather than 'lib'
21529 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21532 dynamic_linker='Win32 ld.exe'
21537 libname_spec='$name'
21538 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21539 library_names_spec='$libname.dll.lib'
21543 sys_lib_search_path_spec=
21546 for lt_path in $LIB
21549 # Let DOS variable expansion print the short 8.3 style file name.
21550 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21551 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21554 # Convert to MSYS style.
21555 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21558 # Convert to unix form, then to dos form, then back to unix form
21559 # but this time dos style (no spaces!) so that the unix form looks
21560 # like /cygdrive/c/PROGRA~1:/cygdr...
21561 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21562 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21563 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21566 sys_lib_search_path_spec=$LIB
21567 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21568 # It is most probably a Windows format PATH.
21569 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21571 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21573 # FIXME: find the short name or the path components, as spaces are
21574 # common. (e.g. "Program Files" -> "PROGRA~1")
21578 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21579 postinstall_cmds='base_file=`basename \$file`~
21580 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21581 dldir=$destdir/`dirname \$dlpath`~
21582 test -d \$dldir || mkdir -p \$dldir~
21583 $install_prog $dir/$dlname \$dldir/$dlname'
21584 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21585 dlpath=$dir/\$dldll~
21587 shlibpath_overrides_runpath=yes
21588 dynamic_linker='Win32 link.exe'
21592 # Assume MSVC wrapper
21593 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
21594 dynamic_linker='Win32 ld.exe'
21597 # FIXME: first we should search . and the directory the executable is in
21601 darwin* | rhapsody*)
21602 dynamic_linker="$host_os dyld"
21603 version_type=darwin
21606 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
21607 soname_spec='$libname$release$major$shared_ext'
21608 shlibpath_overrides_runpath=yes
21609 shlibpath_var=DYLD_LIBRARY_PATH
21610 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21612 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
21613 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21617 version_type=linux # correct to gnu/linux during the next big refactor
21620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21621 soname_spec='$libname$release$shared_ext$major'
21622 shlibpath_var=LD_LIBRARY_PATH
21625 freebsd* | dragonfly*)
21626 # DragonFly does not have aout. When/if they implement a new
21627 # versioning mechanism, adjust this.
21628 if test -x /usr/bin/objformat; then
21629 objformat=`/usr/bin/objformat`
21632 freebsd[23].*) objformat=aout ;;
21633 *) objformat=elf ;;
21636 version_type=freebsd-$objformat
21637 case $version_type in
21639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21640 soname_spec='$libname$release$shared_ext$major'
21645 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21649 shlibpath_var=LD_LIBRARY_PATH
21652 shlibpath_overrides_runpath=yes
21654 freebsd3.[01]* | freebsdelf3.[01]*)
21655 shlibpath_overrides_runpath=yes
21656 hardcode_into_libs=yes
21658 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21659 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21660 shlibpath_overrides_runpath=no
21661 hardcode_into_libs=yes
21663 *) # from 4.6 on, and DragonFly
21664 shlibpath_overrides_runpath=yes
21665 hardcode_into_libs=yes
21671 version_type=linux # correct to gnu/linux during the next big refactor
21674 dynamic_linker="$host_os runtime_loader"
21675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21676 soname_spec='$libname$release$shared_ext$major'
21677 shlibpath_var=LIBRARY_PATH
21678 shlibpath_overrides_runpath=no
21679 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21680 hardcode_into_libs=yes
21683 hpux9* | hpux10* | hpux11*)
21684 # Give a soname corresponding to the major version so that dld.sl refuses to
21685 # link against other versions.
21692 hardcode_into_libs=yes
21693 dynamic_linker="$host_os dld.so"
21694 shlibpath_var=LD_LIBRARY_PATH
21695 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21697 soname_spec='$libname$release$shared_ext$major'
21698 if test 32 = "$HPUX_IA64_MODE"; then
21699 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21700 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
21702 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21703 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
21708 hardcode_into_libs=yes
21709 dynamic_linker="$host_os dld.sl"
21710 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21711 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21713 soname_spec='$libname$release$shared_ext$major'
21714 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21719 dynamic_linker="$host_os dld.sl"
21720 shlibpath_var=SHLIB_PATH
21721 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21723 soname_spec='$libname$release$shared_ext$major'
21726 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21727 postinstall_cmds='chmod 555 $lib'
21728 # or fails outright, so override atomically:
21729 install_override_mode=555
21733 version_type=linux # correct to gnu/linux during the next big refactor
21736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21737 soname_spec='$libname$release$shared_ext$major'
21738 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21739 shlibpath_var=LD_LIBRARY_PATH
21740 shlibpath_overrides_runpath=no
21741 hardcode_into_libs=yes
21744 irix5* | irix6* | nonstopux*)
21746 nonstopux*) version_type=nonstopux ;;
21748 if test yes = "$lt_cv_prog_gnu_ld"; then
21749 version_type=linux # correct to gnu/linux during the next big refactor
21756 soname_spec='$libname$release$shared_ext$major'
21757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
21759 irix5* | nonstopux*)
21760 libsuff= shlibsuff=
21763 case $LD in # libtool.m4 will add one of these switches to LD
21764 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21765 libsuff= shlibsuff= libmagic=32-bit;;
21766 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21767 libsuff=32 shlibsuff=N32 libmagic=N32;;
21768 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21769 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21770 *) libsuff= shlibsuff= libmagic=never-match;;
21774 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21775 shlibpath_overrides_runpath=no
21776 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
21777 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
21778 hardcode_into_libs=yes
21781 # No shared lib support for Linux oldld, aout, or coff.
21782 linux*oldld* | linux*aout* | linux*coff*)
21787 version_type=none # Android doesn't support versioned libraries.
21790 library_names_spec='$libname$release$shared_ext'
21791 soname_spec='$libname$release$shared_ext'
21793 shlibpath_var=LD_LIBRARY_PATH
21794 shlibpath_overrides_runpath=yes
21796 # This implies no fast_install, which is unacceptable.
21797 # Some rework will be needed to allow for fast_install
21798 # before this can be enabled.
21799 hardcode_into_libs=yes
21801 dynamic_linker='Android linker'
21802 # Don't embed -rpath directories since the linker doesn't support them.
21803 hardcode_libdir_flag_spec='-L$libdir'
21806 # This must be glibc/ELF.
21807 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21808 version_type=linux # correct to gnu/linux during the next big refactor
21811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21812 soname_spec='$libname$release$shared_ext$major'
21813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21814 shlibpath_var=LD_LIBRARY_PATH
21815 shlibpath_overrides_runpath=no
21817 # Some binutils ld are patched to set DT_RUNPATH
21818 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21819 $as_echo_n "(cached) " >&6
21821 lt_cv_shlibpath_overrides_runpath=no
21822 save_LDFLAGS=$LDFLAGS
21823 save_libdir=$libdir
21824 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
21825 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
21826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21827 /* end confdefs.h. */
21837 if ac_fn_c_try_link "$LINENO"; then :
21838 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21839 lt_cv_shlibpath_overrides_runpath=yes
21842 rm -f core conftest.err conftest.$ac_objext \
21843 conftest$ac_exeext conftest.$ac_ext
21844 LDFLAGS=$save_LDFLAGS
21845 libdir=$save_libdir
21849 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21851 # This implies no fast_install, which is unacceptable.
21852 # Some rework will be needed to allow for fast_install
21853 # before this can be enabled.
21854 hardcode_into_libs=yes
21856 # Ideally, we could use ldconfig to report *all* directores which are
21857 # searched for libraries, however this is still not possible. Aside from not
21858 # being certain /sbin/ldconfig is available, command
21859 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
21860 # even though it is searched at run-time. Try to do the best guess by
21861 # appending ld.so.conf contents (and includes) to the search path.
21862 if test -f /etc/ld.so.conf; then
21863 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' ' '`
21864 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21867 # We used to test for /lib/ld.so.1 and disable shared libraries on
21868 # powerpc, because MkLinux only supported shared libraries with the
21869 # GNU dynamic linker. Since this was broken with cross compilers,
21870 # most powerpc-linux boxes support dynamic linking these days and
21871 # people can always --disable-shared, the test was removed, and we
21872 # assume the GNU/Linux dynamic linker is in use.
21873 dynamic_linker='GNU/Linux ld.so'
21880 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21881 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21883 dynamic_linker='NetBSD (a.out) ld.so'
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 dynamic_linker='NetBSD ld.elf_so'
21889 shlibpath_var=LD_LIBRARY_PATH
21890 shlibpath_overrides_runpath=yes
21891 hardcode_into_libs=yes
21895 version_type=linux # correct to gnu/linux during the next big refactor
21896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21897 shlibpath_var=LD_LIBRARY_PATH
21898 shlibpath_overrides_runpath=yes
21905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21906 soname_spec='$libname$release$shared_ext$major'
21907 shlibpath_var=LD_LIBRARY_PATH
21908 shlibpath_overrides_runpath=no
21909 hardcode_into_libs=yes
21910 dynamic_linker='ldqnx.so'
21913 openbsd* | bitrig*)
21915 sys_lib_dlsearch_path_spec=/usr/lib
21917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
21922 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21924 shlibpath_var=LD_LIBRARY_PATH
21925 shlibpath_overrides_runpath=yes
21929 libname_spec='$name'
21930 version_type=windows
21934 # OS/2 can only load a DLL with a base name of 8 characters or less.
21935 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
21936 v=$($ECHO $release$versuffix | tr -d .-);
21937 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
21938 $ECHO $n$v`$shared_ext'
21939 library_names_spec='${libname}_dll.$libext'
21940 dynamic_linker='OS/2 ld.exe'
21941 shlibpath_var=BEGINLIBPATH
21942 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21944 postinstall_cmds='base_file=`basename \$file`~
21945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
21946 dldir=$destdir/`dirname \$dlpath`~
21947 test -d \$dldir || mkdir -p \$dldir~
21948 $install_prog $dir/$dlname \$dldir/$dlname~
21949 chmod a+x \$dldir/$dlname~
21950 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21951 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21953 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
21954 dlpath=$dir/\$dldll~
21958 osf3* | osf4* | osf5*)
21962 soname_spec='$libname$release$shared_ext$major'
21963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21964 shlibpath_var=LD_LIBRARY_PATH
21965 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21974 version_type=linux # correct to gnu/linux during the next big refactor
21977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21978 soname_spec='$libname$release$shared_ext$major'
21979 shlibpath_var=LD_LIBRARY_PATH
21980 shlibpath_overrides_runpath=yes
21981 hardcode_into_libs=yes
21982 # ldd complains unless libraries are executable
21983 postinstall_cmds='chmod +x $lib'
21988 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21989 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21990 shlibpath_var=LD_LIBRARY_PATH
21991 shlibpath_overrides_runpath=yes
21992 if test yes = "$with_gnu_ld"; then
21999 version_type=linux # correct to gnu/linux during the next big refactor
22000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22001 soname_spec='$libname$release$shared_ext$major'
22002 shlibpath_var=LD_LIBRARY_PATH
22003 case $host_vendor in
22005 shlibpath_overrides_runpath=no
22007 runpath_var=LD_RUN_PATH
22015 shlibpath_overrides_runpath=no
22016 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22022 if test -d /usr/nec; then
22023 version_type=linux # correct to gnu/linux during the next big refactor
22024 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
22025 soname_spec='$libname$shared_ext.$major'
22026 shlibpath_var=LD_LIBRARY_PATH
22030 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
22035 soname_spec='$libname$release$shared_ext$major'
22036 shlibpath_var=LD_LIBRARY_PATH
22037 shlibpath_overrides_runpath=yes
22038 hardcode_into_libs=yes
22039 if test yes = "$with_gnu_ld"; then
22040 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22042 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22045 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22049 sys_lib_dlsearch_path_spec='/usr/lib'
22053 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22054 version_type=linux # correct to gnu/linux during the next big refactor
22057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22058 shlibpath_var=LD_LIBRARY_PATH
22059 shlibpath_overrides_runpath=no
22060 hardcode_into_libs=yes
22064 version_type=linux # correct to gnu/linux during the next big refactor
22065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22066 soname_spec='$libname$release$shared_ext$major'
22067 shlibpath_var=LD_LIBRARY_PATH
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22075 $as_echo "$dynamic_linker" >&6; }
22076 test no = "$dynamic_linker" && can_build_shared=no
22078 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22079 if test yes = "$GCC"; then
22080 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22083 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
22084 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
22087 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
22088 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
22091 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
22092 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
22094 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
22095 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
22097 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
22098 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22197 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22199 if test -n "$hardcode_libdir_flag_spec" ||
22200 test -n "$runpath_var" ||
22201 test yes = "$hardcode_automatic"; then
22203 # We can hardcode non-existent directories.
22204 if test no != "$hardcode_direct" &&
22205 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22206 # have to relink, otherwise we might link with an installed library
22207 # when we should be linking with a yet-to-be-installed one
22208 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
22209 test no != "$hardcode_minus_L"; then
22210 # Linking always hardcodes the temporary library directory.
22211 hardcode_action=relink
22213 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22214 hardcode_action=immediate
22217 # We cannot hardcode anything, or else we can only hardcode existing
22219 hardcode_action=unsupported
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
22222 $as_echo "$hardcode_action" >&6; }
22224 if test relink = "$hardcode_action" ||
22225 test yes = "$inherit_rpath"; then
22226 # Fast installation is not supported
22227 enable_fast_install=no
22228 elif test yes = "$shlibpath_overrides_runpath" ||
22229 test no = "$enable_shared"; then
22230 # Fast installation is not necessary
22231 enable_fast_install=needless
22239 if test yes != "$enable_dlopen"; then
22240 enable_dlopen=unknown
22241 enable_dlopen_self=unknown
22242 enable_dlopen_self_static=unknown
22249 lt_cv_dlopen=load_add_on
22251 lt_cv_dlopen_self=yes
22254 mingw* | pw32* | cegcc*)
22255 lt_cv_dlopen=LoadLibrary
22260 lt_cv_dlopen=dlopen
22265 # if libdl is installed we need to link against it
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22267 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22268 if ${ac_cv_lib_dl_dlopen+:} false; then :
22269 $as_echo_n "(cached) " >&6
22271 ac_check_lib_save_LIBS=$LIBS
22273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22274 /* end confdefs.h. */
22276 /* Override any GCC internal prototype to avoid an error.
22277 Use char because int might match the return type of a GCC
22278 builtin and then its argument prototype would still apply. */
22291 if ac_fn_c_try_link "$LINENO"; then :
22292 ac_cv_lib_dl_dlopen=yes
22294 ac_cv_lib_dl_dlopen=no
22296 rm -f core conftest.err conftest.$ac_objext \
22297 conftest$ac_exeext conftest.$ac_ext
22298 LIBS=$ac_check_lib_save_LIBS
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22301 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22302 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22303 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
22308 lt_cv_dlopen_self=yes
22315 # Don't try to run any link tests for TPF. We know it's impossible
22316 # because TPF is a cross-compiler, and we know how we open DSOs.
22317 lt_cv_dlopen=dlopen
22319 lt_cv_dlopen_self=no
22323 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22324 if test "x$ac_cv_func_shl_load" = xyes; then :
22325 lt_cv_dlopen=shl_load
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
22328 $as_echo_n "checking for shl_load in -ldld... " >&6; }
22329 if ${ac_cv_lib_dld_shl_load+:} false; then :
22330 $as_echo_n "(cached) " >&6
22332 ac_check_lib_save_LIBS=$LIBS
22334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22335 /* end confdefs.h. */
22337 /* Override any GCC internal prototype to avoid an error.
22338 Use char because int might match the return type of a GCC
22339 builtin and then its argument prototype would still apply. */
22347 return shl_load ();
22352 if ac_fn_c_try_link "$LINENO"; then :
22353 ac_cv_lib_dld_shl_load=yes
22355 ac_cv_lib_dld_shl_load=no
22357 rm -f core conftest.err conftest.$ac_objext \
22358 conftest$ac_exeext conftest.$ac_ext
22359 LIBS=$ac_check_lib_save_LIBS
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
22362 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22363 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
22364 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
22366 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22367 if test "x$ac_cv_func_dlopen" = xyes; then :
22368 lt_cv_dlopen=dlopen
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22371 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22372 if ${ac_cv_lib_dl_dlopen+:} false; then :
22373 $as_echo_n "(cached) " >&6
22375 ac_check_lib_save_LIBS=$LIBS
22377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22378 /* end confdefs.h. */
22380 /* Override any GCC internal prototype to avoid an error.
22381 Use char because int might match the return type of a GCC
22382 builtin and then its argument prototype would still apply. */
22395 if ac_fn_c_try_link "$LINENO"; then :
22396 ac_cv_lib_dl_dlopen=yes
22398 ac_cv_lib_dl_dlopen=no
22400 rm -f core conftest.err conftest.$ac_objext \
22401 conftest$ac_exeext conftest.$ac_ext
22402 LIBS=$ac_check_lib_save_LIBS
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22405 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22406 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22407 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
22410 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
22411 if ${ac_cv_lib_svld_dlopen+:} false; then :
22412 $as_echo_n "(cached) " >&6
22414 ac_check_lib_save_LIBS=$LIBS
22415 LIBS="-lsvld $LIBS"
22416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22417 /* end confdefs.h. */
22419 /* Override any GCC internal prototype to avoid an error.
22420 Use char because int might match the return type of a GCC
22421 builtin and then its argument prototype would still apply. */
22434 if ac_fn_c_try_link "$LINENO"; then :
22435 ac_cv_lib_svld_dlopen=yes
22437 ac_cv_lib_svld_dlopen=no
22439 rm -f core conftest.err conftest.$ac_objext \
22440 conftest$ac_exeext conftest.$ac_ext
22441 LIBS=$ac_check_lib_save_LIBS
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
22444 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22445 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
22446 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
22449 $as_echo_n "checking for dld_link in -ldld... " >&6; }
22450 if ${ac_cv_lib_dld_dld_link+:} false; then :
22451 $as_echo_n "(cached) " >&6
22453 ac_check_lib_save_LIBS=$LIBS
22455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22456 /* end confdefs.h. */
22458 /* Override any GCC internal prototype to avoid an error.
22459 Use char because int might match the return type of a GCC
22460 builtin and then its argument prototype would still apply. */
22468 return dld_link ();
22473 if ac_fn_c_try_link "$LINENO"; then :
22474 ac_cv_lib_dld_dld_link=yes
22476 ac_cv_lib_dld_dld_link=no
22478 rm -f core conftest.err conftest.$ac_objext \
22479 conftest$ac_exeext conftest.$ac_ext
22480 LIBS=$ac_check_lib_save_LIBS
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
22483 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22484 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
22485 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
22506 if test no = "$lt_cv_dlopen"; then
22512 case $lt_cv_dlopen in
22514 save_CPPFLAGS=$CPPFLAGS
22515 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
22517 save_LDFLAGS=$LDFLAGS
22518 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
22521 LIBS="$lt_cv_dlopen_libs $LIBS"
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
22524 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
22525 if ${lt_cv_dlopen_self+:} false; then :
22526 $as_echo_n "(cached) " >&6
22528 if test yes = "$cross_compiling"; then :
22529 lt_cv_dlopen_self=cross
22531 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22532 lt_status=$lt_dlunknown
22533 cat > conftest.$ac_ext <<_LT_EOF
22534 #line $LINENO "configure"
22535 #include "confdefs.h"
22544 # define LT_DLGLOBAL RTLD_GLOBAL
22547 # define LT_DLGLOBAL DL_GLOBAL
22549 # define LT_DLGLOBAL 0
22553 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22554 find out it does not work in some platform. */
22555 #ifndef LT_DLLAZY_OR_NOW
22557 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22560 # define LT_DLLAZY_OR_NOW DL_LAZY
22563 # define LT_DLLAZY_OR_NOW RTLD_NOW
22566 # define LT_DLLAZY_OR_NOW DL_NOW
22568 # define LT_DLLAZY_OR_NOW 0
22575 /* When -fvisibility=hidden is used, assume the code has been annotated
22576 correspondingly for the symbols needed. */
22577 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22578 int fnord () __attribute__((visibility("default")));
22581 int fnord () { return 42; }
22584 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22585 int status = $lt_dlunknown;
22589 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22592 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22593 else puts (dlerror ());
22595 /* dlclose (self); */
22603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22604 (eval $ac_link) 2>&5
22606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22607 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
22608 (./conftest; exit; ) >&5 2>/dev/null
22610 case x$lt_status in
22611 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
22612 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
22613 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
22616 # compilation failed
22617 lt_cv_dlopen_self=no
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
22625 $as_echo "$lt_cv_dlopen_self" >&6; }
22627 if test yes = "$lt_cv_dlopen_self"; then
22628 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
22630 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22631 if ${lt_cv_dlopen_self_static+:} false; then :
22632 $as_echo_n "(cached) " >&6
22634 if test yes = "$cross_compiling"; then :
22635 lt_cv_dlopen_self_static=cross
22637 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22638 lt_status=$lt_dlunknown
22639 cat > conftest.$ac_ext <<_LT_EOF
22640 #line $LINENO "configure"
22641 #include "confdefs.h"
22650 # define LT_DLGLOBAL RTLD_GLOBAL
22653 # define LT_DLGLOBAL DL_GLOBAL
22655 # define LT_DLGLOBAL 0
22659 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22660 find out it does not work in some platform. */
22661 #ifndef LT_DLLAZY_OR_NOW
22663 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22666 # define LT_DLLAZY_OR_NOW DL_LAZY
22669 # define LT_DLLAZY_OR_NOW RTLD_NOW
22672 # define LT_DLLAZY_OR_NOW DL_NOW
22674 # define LT_DLLAZY_OR_NOW 0
22681 /* When -fvisibility=hidden is used, assume the code has been annotated
22682 correspondingly for the symbols needed. */
22683 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22684 int fnord () __attribute__((visibility("default")));
22687 int fnord () { return 42; }
22690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22691 int status = $lt_dlunknown;
22695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22698 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22699 else puts (dlerror ());
22701 /* dlclose (self); */
22709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22710 (eval $ac_link) 2>&5
22712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22713 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
22714 (./conftest; exit; ) >&5 2>/dev/null
22716 case x$lt_status in
22717 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
22718 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
22719 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
22722 # compilation failed
22723 lt_cv_dlopen_self_static=no
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
22731 $as_echo "$lt_cv_dlopen_self_static" >&6; }
22734 CPPFLAGS=$save_CPPFLAGS
22735 LDFLAGS=$save_LDFLAGS
22740 case $lt_cv_dlopen_self in
22741 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
22742 *) enable_dlopen_self=unknown ;;
22745 case $lt_cv_dlopen_self_static in
22746 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
22747 *) enable_dlopen_self_static=unknown ;;
22769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
22770 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
22771 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
22772 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22773 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22775 $as_echo "yes" >&6; }
22777 # FIXME - insert some real tests, host_os isn't really good enough
22780 if test -n "$STRIP"; then
22781 striplib="$STRIP -x"
22782 old_striplib="$STRIP -S"
22783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22784 $as_echo "yes" >&6; }
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22787 $as_echo "no" >&6; }
22791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22792 $as_echo "no" >&6; }
22808 # Report what library types will actually be built
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
22810 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
22812 $as_echo "$can_build_shared" >&6; }
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
22815 $as_echo_n "checking whether to build shared libraries... " >&6; }
22816 test no = "$can_build_shared" && enable_shared=no
22818 # On AIX, shared libraries and static libraries use the same namespace, and
22819 # are all built from PIC.
22822 test yes = "$enable_shared" && enable_static=no
22823 if test -n "$RANLIB"; then
22824 archive_cmds="$archive_cmds~\$RANLIB \$lib"
22825 postinstall_cmds='$RANLIB $lib'
22830 if test ia64 != "$host_cpu"; then
22831 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
22832 yes,aix,yes) ;; # shared object as lib.so file only
22833 yes,svr4,*) ;; # shared object as lib.so archive member only
22834 yes,*) enable_static=no ;; # shared object in lib.a archive as well
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
22840 $as_echo "$enable_shared" >&6; }
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
22843 $as_echo_n "checking whether to build static libraries... " >&6; }
22844 # Make sure either enable_shared or enable_static is yes.
22845 test yes = "$enable_shared" || enable_static=yes
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
22847 $as_echo "$enable_static" >&6; }
22854 ac_cpp='$CPP $CPPFLAGS'
22855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22875 ac_config_commands="$ac_config_commands libtool"
22880 # Only expand once:
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
22888 $as_echo_n "checking if sntp will be built... " >&6; }
22890 # Check whether --with-sntp was given.
22891 if test "${with_sntp+set}" = set; then :
22892 withval=$with_sntp;
22894 with_sntp="${withsntp=yes}"
22898 case "$with_sntp" in
22907 if test -n "$SNTP"; then
22909 BUILD_SNTP_FALSE='#'
22911 BUILD_SNTP_TRUE='#'
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
22916 $as_echo "$with_sntp" >&6; }
22930 # NTP has (so far) been relying on leading-edge autogen.
22931 # Therefore, by default:
22932 # - use the version we ship with
22933 # - do not install it
22934 # - build a static copy (AC_DISABLE_SHARED - done earlier)
22935 case "${enable_local_libopts+set}" in
22937 *) enable_local_libopts=yes ;;
22939 case "${enable_libopts_install+set}" in
22941 *) enable_libopts_install=no ;;
22946 ac_header_dirent=no
22947 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22948 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22950 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22951 if eval \${$as_ac_Header+:} false; then :
22952 $as_echo_n "(cached) " >&6
22954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22955 /* end confdefs.h. */
22956 #include <sys/types.h>
22968 if ac_fn_c_try_compile "$LINENO"; then :
22969 eval "$as_ac_Header=yes"
22971 eval "$as_ac_Header=no"
22973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22975 eval ac_res=\$$as_ac_Header
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22977 $as_echo "$ac_res" >&6; }
22978 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22979 cat >>confdefs.h <<_ACEOF
22980 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22983 ac_header_dirent=$ac_hdr; break
22987 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22988 if test $ac_header_dirent = dirent.h; then
22989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22990 $as_echo_n "checking for library containing opendir... " >&6; }
22991 if ${ac_cv_search_opendir+:} false; then :
22992 $as_echo_n "(cached) " >&6
22994 ac_func_search_save_LIBS=$LIBS
22995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22996 /* end confdefs.h. */
22998 /* Override any GCC internal prototype to avoid an error.
22999 Use char because int might match the return type of a GCC
23000 builtin and then its argument prototype would still apply. */
23013 for ac_lib in '' dir; do
23014 if test -z "$ac_lib"; then
23015 ac_res="none required"
23018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23020 if ac_fn_c_try_link "$LINENO"; then :
23021 ac_cv_search_opendir=$ac_res
23023 rm -f core conftest.err conftest.$ac_objext \
23025 if ${ac_cv_search_opendir+:} false; then :
23029 if ${ac_cv_search_opendir+:} false; then :
23032 ac_cv_search_opendir=no
23034 rm conftest.$ac_ext
23035 LIBS=$ac_func_search_save_LIBS
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23038 $as_echo "$ac_cv_search_opendir" >&6; }
23039 ac_res=$ac_cv_search_opendir
23040 if test "$ac_res" != no; then :
23041 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23047 $as_echo_n "checking for library containing opendir... " >&6; }
23048 if ${ac_cv_search_opendir+:} false; then :
23049 $as_echo_n "(cached) " >&6
23051 ac_func_search_save_LIBS=$LIBS
23052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23053 /* end confdefs.h. */
23055 /* Override any GCC internal prototype to avoid an error.
23056 Use char because int might match the return type of a GCC
23057 builtin and then its argument prototype would still apply. */
23070 for ac_lib in '' x; do
23071 if test -z "$ac_lib"; then
23072 ac_res="none required"
23075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23077 if ac_fn_c_try_link "$LINENO"; then :
23078 ac_cv_search_opendir=$ac_res
23080 rm -f core conftest.err conftest.$ac_objext \
23082 if ${ac_cv_search_opendir+:} false; then :
23086 if ${ac_cv_search_opendir+:} false; then :
23089 ac_cv_search_opendir=no
23091 rm conftest.$ac_ext
23092 LIBS=$ac_func_search_save_LIBS
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23095 $as_echo "$ac_cv_search_opendir" >&6; }
23096 ac_res=$ac_cv_search_opendir
23097 if test "$ac_res" != no; then :
23098 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23105 # =================
23107 # =================
23109 sys/mman.h sys/param.h sys/poll.h sys/procset.h \
23110 sys/select.h sys/socket.h sys/stropts.h sys/time.h \
23111 sys/un.h sys/wait.h dlfcn.h errno.h \
23112 fcntl.h libgen.h libintl.h memory.h \
23113 netinet/in.h setjmp.h stdbool.h sysexits.h \
23116 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23117 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23118 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23119 cat >>confdefs.h <<_ACEOF
23120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23128 for ac_header in stdarg.h varargs.h
23130 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23131 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23132 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23133 cat >>confdefs.h <<_ACEOF
23134 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23136 lo_have_arg_hdr=true;break
23138 lo_have_arg_hdr=false
23144 for ac_header in string.h strings.h
23146 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23147 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23148 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23149 cat >>confdefs.h <<_ACEOF
23150 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23152 lo_have_str_hdr=true;break
23154 lo_have_str_hdr=false
23160 for ac_header in limits.h sys/limits.h values.h
23162 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23163 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23164 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23165 cat >>confdefs.h <<_ACEOF
23166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23168 lo_have_lim_hdr=true;break
23170 lo_have_lim_hdr=false
23176 for ac_header in inttypes.h stdint.h
23178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23179 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23180 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23181 cat >>confdefs.h <<_ACEOF
23182 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23184 lo_have_typ_hdr=true;break
23186 lo_have_typ_hdr=false
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
23193 $as_echo_n "checking for working stdnoreturn.h... " >&6; }
23194 if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
23195 $as_echo_n "(cached) " >&6
23197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23198 /* end confdefs.h. */
23199 #include <stdlib.h>
23200 #include <stdnoreturn.h>
23201 /* Do not check for 'noreturn' after the return type.
23202 C11 allows it, but it's rarely done that way
23203 and circa-2012 bleeding-edge GCC rejects it when given
23204 -Werror=old-style-declaration. */
23205 noreturn void foo1 (void) { exit (0); }
23206 _Noreturn void foo2 (void) { exit (0); }
23207 int testit (int argc, char **argv) {
23210 (argv[0][0] ? foo1 : foo2) ();
23221 if ac_fn_c_try_compile "$LINENO"; then :
23222 gl_cv_header_working_stdnoreturn_h=yes
23224 gl_cv_header_working_stdnoreturn_h=no
23226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
23229 $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
23231 if test $gl_cv_header_working_stdnoreturn_h = yes; then
23234 STDNORETURN_H='stdnoreturn.h'
23238 if test -n "$STDNORETURN_H"; then
23239 GL_GENERATE_STDNORETURN_H_TRUE=
23240 GL_GENERATE_STDNORETURN_H_FALSE='#'
23242 GL_GENERATE_STDNORETURN_H_TRUE='#'
23243 GL_GENERATE_STDNORETURN_H_FALSE=
23248 # ----------------------------------------------------------------------
23249 # check for various programs used during the build.
23250 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
23251 # ----------------------------------------------------------------------
23252 for ac_header in runetype.h wchar.h
23254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23255 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
23256 $ac_includes_default
23257 #if HAVE_RUNETYPE_H
23258 # include <runetype.h>
23262 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23263 cat >>confdefs.h <<_ACEOF
23264 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23272 # Check whether --enable-nls was given.
23273 if test "${enable_nls+set}" = set; then :
23274 enableval=$enable_nls;
23277 if test "x$enable_nls" != "xno" && \
23278 test "X${ac_cv_header_libintl_h}" = Xyes; then :
23281 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
23285 # --------------------------------------------
23286 # Verify certain entries from AC_CHECK_HEADERS
23287 # --------------------------------------------
23288 ${lo_have_arg_hdr} || \
23289 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
23291 ${lo_have_str_hdr} || \
23292 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
23294 ${lo_have_lim_hdr} || \
23295 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
23297 ${lo_have_typ_hdr} || \
23298 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
23300 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
23301 do eval as_ac_var=\${ac_cv_header_${f}_h}
23302 test "X${as_ac_var}" = Xyes || {
23303 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
23306 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
23307 echo '#include <stdint.h>' > inttypes.h
23309 # ----------------------------------------------------------------------
23310 # Checks for typedefs
23311 # ----------------------------------------------------------------------
23312 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
23313 if test "x$ac_cv_type_wchar_t" = xyes; then :
23315 cat >>confdefs.h <<_ACEOF
23316 #define HAVE_WCHAR_T 1
23322 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
23323 $ac_includes_default
23324 #if HAVE_RUNETYPE_H
23325 # include <runetype.h>
23328 # include <wchar.h>
23332 if test "x$ac_cv_type_wint_t" = xyes; then :
23334 cat >>confdefs.h <<_ACEOF
23335 #define HAVE_WINT_T 1
23341 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
23342 if test "x$ac_cv_type_int8_t" = xyes; then :
23344 cat >>confdefs.h <<_ACEOF
23345 #define HAVE_INT8_T 1
23350 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
23351 if test "x$ac_cv_type_uint8_t" = xyes; then :
23353 cat >>confdefs.h <<_ACEOF
23354 #define HAVE_UINT8_T 1
23359 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
23360 if test "x$ac_cv_type_int16_t" = xyes; then :
23362 cat >>confdefs.h <<_ACEOF
23363 #define HAVE_INT16_T 1
23368 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
23369 if test "x$ac_cv_type_uint16_t" = xyes; then :
23371 cat >>confdefs.h <<_ACEOF
23372 #define HAVE_UINT16_T 1
23377 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
23378 if test "x$ac_cv_type_int32_t" = xyes; then :
23380 cat >>confdefs.h <<_ACEOF
23381 #define HAVE_INT32_T 1
23386 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
23387 if test "x$ac_cv_type_uint32_t" = xyes; then :
23389 cat >>confdefs.h <<_ACEOF
23390 #define HAVE_UINT32_T 1
23395 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23396 if test "x$ac_cv_type_intptr_t" = xyes; then :
23398 cat >>confdefs.h <<_ACEOF
23399 #define HAVE_INTPTR_T 1
23404 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23405 if test "x$ac_cv_type_uintptr_t" = xyes; then :
23407 cat >>confdefs.h <<_ACEOF
23408 #define HAVE_UINTPTR_T 1
23413 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
23414 if test "x$ac_cv_type_uint_t" = xyes; then :
23416 cat >>confdefs.h <<_ACEOF
23417 #define HAVE_UINT_T 1
23422 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23423 if test "x$ac_cv_type_pid_t" = xyes; then :
23425 cat >>confdefs.h <<_ACEOF
23426 #define HAVE_PID_T 1
23431 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23432 if test "x$ac_cv_type_size_t" = xyes; then :
23434 cat >>confdefs.h <<_ACEOF
23435 #define HAVE_SIZE_T 1
23440 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23441 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
23443 cat >>confdefs.h <<_ACEOF
23444 #define HAVE_PTRDIFF_T 1
23450 # The cast to long int works around a bug in the HP C Compiler
23451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23453 # This bug is HP SR number 8606223364.
23454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
23455 $as_echo_n "checking size of char *... " >&6; }
23456 if ${ac_cv_sizeof_char_p+:} false; then :
23457 $as_echo_n "(cached) " >&6
23459 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
23462 if test "$ac_cv_type_char_p" = yes; then
23463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23465 as_fn_error 77 "cannot compute sizeof (char *)
23466 See \`config.log' for more details" "$LINENO" 5; }
23468 ac_cv_sizeof_char_p=0
23473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
23474 $as_echo "$ac_cv_sizeof_char_p" >&6; }
23478 cat >>confdefs.h <<_ACEOF
23479 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
23483 # The cast to long int works around a bug in the HP C Compiler
23484 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23485 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23486 # This bug is HP SR number 8606223364.
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23488 $as_echo_n "checking size of int... " >&6; }
23489 if ${ac_cv_sizeof_int+:} false; then :
23490 $as_echo_n "(cached) " >&6
23492 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23495 if test "$ac_cv_type_int" = yes; then
23496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23498 as_fn_error 77 "cannot compute sizeof (int)
23499 See \`config.log' for more details" "$LINENO" 5; }
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23507 $as_echo "$ac_cv_sizeof_int" >&6; }
23511 cat >>confdefs.h <<_ACEOF
23512 #define SIZEOF_INT $ac_cv_sizeof_int
23516 # The cast to long int works around a bug in the HP C Compiler
23517 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23518 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23519 # This bug is HP SR number 8606223364.
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23521 $as_echo_n "checking size of long... " >&6; }
23522 if ${ac_cv_sizeof_long+:} false; then :
23523 $as_echo_n "(cached) " >&6
23525 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23528 if test "$ac_cv_type_long" = yes; then
23529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23531 as_fn_error 77 "cannot compute sizeof (long)
23532 See \`config.log' for more details" "$LINENO" 5; }
23534 ac_cv_sizeof_long=0
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23540 $as_echo "$ac_cv_sizeof_long" >&6; }
23544 cat >>confdefs.h <<_ACEOF
23545 #define SIZEOF_LONG $ac_cv_sizeof_long
23549 # The cast to long int works around a bug in the HP C Compiler
23550 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23551 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23552 # This bug is HP SR number 8606223364.
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23554 $as_echo_n "checking size of short... " >&6; }
23555 if ${ac_cv_sizeof_short+:} false; then :
23556 $as_echo_n "(cached) " >&6
23558 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23561 if test "$ac_cv_type_short" = yes; then
23562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23564 as_fn_error 77 "cannot compute sizeof (short)
23565 See \`config.log' for more details" "$LINENO" 5; }
23567 ac_cv_sizeof_short=0
23572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23573 $as_echo "$ac_cv_sizeof_short" >&6; }
23577 cat >>confdefs.h <<_ACEOF
23578 #define SIZEOF_SHORT $ac_cv_sizeof_short
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
23587 $as_echo_n "checking for pathfind in -lgen... " >&6; }
23588 if ${ac_cv_lib_gen_pathfind+:} false; then :
23589 $as_echo_n "(cached) " >&6
23591 ac_check_lib_save_LIBS=$LIBS
23593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23594 /* end confdefs.h. */
23596 /* Override any GCC internal prototype to avoid an error.
23597 Use char because int might match the return type of a GCC
23598 builtin and then its argument prototype would still apply. */
23606 return pathfind ();
23611 if ac_fn_c_try_link "$LINENO"; then :
23612 ac_cv_lib_gen_pathfind=yes
23614 ac_cv_lib_gen_pathfind=no
23616 rm -f core conftest.err conftest.$ac_objext \
23617 conftest$ac_exeext conftest.$ac_ext
23618 LIBS=$ac_check_lib_save_LIBS
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
23621 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
23622 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
23623 cat >>confdefs.h <<_ACEOF
23624 #define HAVE_LIBGEN 1
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
23632 $as_echo_n "checking for gettext in -lintl... " >&6; }
23633 if ${ac_cv_lib_intl_gettext+:} false; then :
23634 $as_echo_n "(cached) " >&6
23636 ac_check_lib_save_LIBS=$LIBS
23637 LIBS="-lintl $LIBS"
23638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23639 /* end confdefs.h. */
23641 /* Override any GCC internal prototype to avoid an error.
23642 Use char because int might match the return type of a GCC
23643 builtin and then its argument prototype would still apply. */
23656 if ac_fn_c_try_link "$LINENO"; then :
23657 ac_cv_lib_intl_gettext=yes
23659 ac_cv_lib_intl_gettext=no
23661 rm -f core conftest.err conftest.$ac_objext \
23662 conftest$ac_exeext conftest.$ac_ext
23663 LIBS=$ac_check_lib_save_LIBS
23665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
23666 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
23667 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
23668 cat >>confdefs.h <<_ACEOF
23669 #define HAVE_LIBINTL 1
23672 LIBS="-lintl $LIBS"
23676 for ac_func in vprintf
23678 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23679 if test "x$ac_cv_func_vprintf" = xyes; then :
23680 cat >>confdefs.h <<_ACEOF
23681 #define HAVE_VPRINTF 1
23684 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23685 if test "x$ac_cv_func__doprnt" = xyes; then :
23687 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23695 for ac_header in vfork.h
23697 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
23698 if test "x$ac_cv_header_vfork_h" = xyes; then :
23699 cat >>confdefs.h <<_ACEOF
23700 #define HAVE_VFORK_H 1
23707 for ac_func in fork vfork
23709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23710 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23711 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23712 cat >>confdefs.h <<_ACEOF
23713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23719 if test "x$ac_cv_func_fork" = xyes; then
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
23721 $as_echo_n "checking for working fork... " >&6; }
23722 if ${ac_cv_func_fork_works+:} false; then :
23723 $as_echo_n "(cached) " >&6
23725 if test "$cross_compiling" = yes; then :
23726 ac_cv_func_fork_works=cross
23728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23729 /* end confdefs.h. */
23730 $ac_includes_default
23735 /* By Ruediger Kuhlmann. */
23736 return fork () < 0;
23742 if ac_fn_c_try_run "$LINENO"; then :
23743 ac_cv_func_fork_works=yes
23745 ac_cv_func_fork_works=no
23747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23748 conftest.$ac_objext conftest.beam conftest.$ac_ext
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
23753 $as_echo "$ac_cv_func_fork_works" >&6; }
23756 ac_cv_func_fork_works=$ac_cv_func_fork
23758 if test "x$ac_cv_func_fork_works" = xcross; then
23760 *-*-amigaos* | *-*-msdosdjgpp*)
23761 # Override, as these systems have only a dummy fork() stub
23762 ac_cv_func_fork_works=no
23765 ac_cv_func_fork_works=yes
23768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23769 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23771 ac_cv_func_vfork_works=$ac_cv_func_vfork
23772 if test "x$ac_cv_func_vfork" = xyes; then
23773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
23774 $as_echo_n "checking for working vfork... " >&6; }
23775 if ${ac_cv_func_vfork_works+:} false; then :
23776 $as_echo_n "(cached) " >&6
23778 if test "$cross_compiling" = yes; then :
23779 ac_cv_func_vfork_works=cross
23781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23782 /* end confdefs.h. */
23783 /* Thanks to Paul Eggert for this test. */
23784 $ac_includes_default
23785 #include <sys/wait.h>
23786 #ifdef HAVE_VFORK_H
23787 # include <vfork.h>
23789 /* On some sparc systems, changes by the child to local and incoming
23790 argument registers are propagated back to the parent. The compiler
23791 is told about this with #include <vfork.h>, but some compilers
23792 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23793 static variable whose address is put into a register that is
23794 clobbered by the vfork. */
23797 sparc_address_test (int arg)
23799 sparc_address_test (arg) int arg;
23802 static pid_t child;
23820 pid_t parent = getpid ();
23823 sparc_address_test (0);
23828 /* Here is another test for sparc vfork register problems. This
23829 test uses lots of local variables, at least as many local
23830 variables as main has allocated so far including compiler
23831 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23832 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23833 reuse the register of parent for one of the local variables,
23834 since it will think that parent can't possibly be used any more
23835 in this routine. Assigning to the local variable will thus
23836 munge parent in the parent process. */
23838 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23839 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23840 /* Convince the compiler that p..p7 are live; otherwise, it might
23841 use the same hardware register for all 8 local variables. */
23842 if (p != p1 || p != p2 || p != p3 || p != p4
23843 || p != p5 || p != p6 || p != p7)
23846 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23847 from child file descriptors. If the child closes a descriptor
23848 before it execs or exits, this munges the parent's descriptor
23849 as well. Test for this by closing stdout in the child. */
23850 _exit(close(fileno(stdout)) != 0);
23855 while (wait(&status) != child)
23858 /* Was there some problem with vforking? */
23861 /* Did the child fail? (This shouldn't happen.) */
23864 /* Did the vfork/compiler bug occur? */
23865 || parent != getpid()
23867 /* Did the file descriptor bug occur? */
23868 || fstat(fileno(stdout), &st) != 0
23873 if ac_fn_c_try_run "$LINENO"; then :
23874 ac_cv_func_vfork_works=yes
23876 ac_cv_func_vfork_works=no
23878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23879 conftest.$ac_objext conftest.beam conftest.$ac_ext
23883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
23884 $as_echo "$ac_cv_func_vfork_works" >&6; }
23887 if test "x$ac_cv_func_fork_works" = xcross; then
23888 ac_cv_func_vfork_works=$ac_cv_func_vfork
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23890 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23893 if test "x$ac_cv_func_vfork_works" = xyes; then
23895 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
23899 $as_echo "#define vfork fork" >>confdefs.h
23902 if test "x$ac_cv_func_fork_works" = xyes; then
23904 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
23908 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
23909 strrchr strsignal fchmod fstat chmod
23911 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23912 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23913 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23914 cat >>confdefs.h <<_ACEOF
23915 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
23922 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
23923 if ${ac_cv_path_SED+:} false; then :
23924 $as_echo_n "(cached) " >&6
23926 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
23927 for ac_i in 1 2 3 4 5 6 7; do
23928 ac_script="$ac_script$as_nl$ac_script"
23930 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
23931 { ac_script=; unset ac_script;}
23932 if test -z "$SED"; then
23933 ac_path_SED_found=false
23934 # Loop through the user's path and test for each of PROGNAME-LIST
23935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23936 for as_dir in $PATH
23939 test -z "$as_dir" && as_dir=.
23940 for ac_prog in sed gsed; do
23941 for ac_exec_ext in '' $ac_executable_extensions; do
23942 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
23943 as_fn_executable_p "$ac_path_SED" || continue
23944 # Check for GNU ac_path_SED and select it if it is found.
23945 # Check for GNU $ac_path_SED
23946 case `"$ac_path_SED" --version 2>&1` in
23948 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
23951 $as_echo_n 0123456789 >"conftest.in"
23954 cat "conftest.in" "conftest.in" >"conftest.tmp"
23955 mv "conftest.tmp" "conftest.in"
23956 cp "conftest.in" "conftest.nl"
23957 $as_echo '' >> "conftest.nl"
23958 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
23959 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
23960 as_fn_arith $ac_count + 1 && ac_count=$as_val
23961 if test $ac_count -gt ${ac_path_SED_max-0}; then
23962 # Best one so far, save it but keep looking for a better one
23963 ac_cv_path_SED="$ac_path_SED"
23964 ac_path_SED_max=$ac_count
23966 # 10*(2^10) chars as input seems more than enough
23967 test $ac_count -gt 10 && break
23969 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
23972 $ac_path_SED_found && break 3
23977 if test -z "$ac_cv_path_SED"; then
23978 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
23981 ac_cv_path_SED=$SED
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
23986 $as_echo "$ac_cv_path_SED" >&6; }
23987 SED="$ac_cv_path_SED"
23992 POSIX_SHELL=`which bash`
23993 test -x "$POSIX_SHELL" && break
23994 POSIX_SHELL=`which dash`
23995 test -x "$POSIX_SHELL" && break
23996 POSIX_SHELL=/usr/xpg4/bin/sh
23997 test -x "$POSIX_SHELL" && break
23998 POSIX_SHELL=`/bin/sh -c '
24000 if ! true ; then exit 1 ; fi
24002 test -x "$POSIX_SHELL" && break
24003 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
24006 cat >>confdefs.h <<_ACEOF
24007 #define POSIX_SHELL "${POSIX_SHELL}"
24014 LIBOPTS_BUILD_BLOCKED=''
24017 NEED_LIBOPTS_DIR=''
24019 # Check whether --enable-local-libopts was given.
24020 if test "${enable_local_libopts+set}" = set; then :
24021 enableval=$enable_local_libopts;
24022 if test x$enableval = xyes ; then
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
24024 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
24025 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
24026 NEED_LIBOPTS_DIR=true
24027 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
24032 # Check whether --enable-libopts-install was given.
24033 if test "${enable_libopts_install+set}" = set; then :
24034 enableval=$enable_libopts_install;
24037 if test "X${enable_libopts_install}" = Xyes; then
24038 INSTALL_LIBOPTS_TRUE=
24039 INSTALL_LIBOPTS_FALSE='#'
24041 INSTALL_LIBOPTS_TRUE='#'
24042 INSTALL_LIBOPTS_FALSE=
24046 if test -z "${NEED_LIBOPTS_DIR}" ; then
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
24048 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
24050 # Check whether --with-autoopts-config was given.
24051 if test "${with_autoopts_config+set}" = set; then :
24052 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
24054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
24055 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
24056 if ${lo_cv_with_autoopts_config+:} false; then :
24057 $as_echo_n "(cached) " >&6
24059 if autoopts-config --help 2>/dev/null 1>&2
24060 then lo_cv_with_autoopts_config=autoopts-config
24061 elif libopts-config --help 2>/dev/null 1>&2
24062 then lo_cv_with_autoopts_config=libopts-config
24063 else lo_cv_with_autoopts_config=no ; fi
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
24066 $as_echo "$lo_cv_with_autoopts_config" >&6; }
24069 # end of AC_ARG_WITH
24071 if ${lo_cv_test_autoopts+:} false; then :
24072 $as_echo_n "(cached) " >&6
24075 if test -z "${lo_cv_with_autoopts_config}" \
24076 -o X"${lo_cv_with_autoopts_config}" = Xno
24078 if autoopts-config --help 2>/dev/null 1>&2
24079 then lo_cv_with_autoopts_config=autoopts-config
24080 elif libopts-config --help 2>/dev/null 1>&2
24081 then lo_cv_with_autoopts_config=libopts-config
24082 else lo_cv_with_autoopts_config=false ; fi
24084 lo_cv_test_autoopts=`
24085 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
24086 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
24087 then lo_cv_test_autoopts=no ; fi
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
24092 $as_echo "${lo_cv_test_autoopts}" >&6; }
24094 if test "X${lo_cv_test_autoopts}" != Xno
24096 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
24097 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
24099 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
24100 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
24101 NEED_LIBOPTS_DIR=true
24103 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
24104 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
24105 NEED_LIBOPTS_DIR=''
24107 if test -n "${NEED_LIBOPTS_DIR}"; then
24109 NEED_LIBOPTS_FALSE='#'
24111 NEED_LIBOPTS_TRUE='#'
24112 NEED_LIBOPTS_FALSE=
24117 LIBOPTS_DIR=libopts
24120 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
24123 if test -z "$NEED_LIBOPTS_TRUE"; then :
24127 # Check to see if a reg expr header is specified.
24130 # Check whether --with-regex-header was given.
24131 if test "${with_regex_header+set}" = set; then :
24132 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
24135 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
24136 if ${libopts_cv_with_regex_header+:} false; then :
24137 $as_echo_n "(cached) " >&6
24139 libopts_cv_with_regex_header=no
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
24142 $as_echo "$libopts_cv_with_regex_header" >&6; }
24145 # end of AC_ARG_WITH
24146 if test "X${libopts_cv_with_regex_header}" != Xno
24148 cat >>confdefs.h <<_ACEOF
24149 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
24154 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
24160 # Check to see if a working libregex can be found.
24163 # Check whether --with-libregex was given.
24164 if test "${with_libregex+set}" = set; then :
24165 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
24168 $as_echo_n "checking whether with-libregex was specified... " >&6; }
24169 if ${libopts_cv_with_libregex_root+:} false; then :
24170 $as_echo_n "(cached) " >&6
24172 libopts_cv_with_libregex_root=no
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
24175 $as_echo "$libopts_cv_with_libregex_root" >&6; }
24178 # end of AC_ARG_WITH libregex
24180 if test "${with_libregex+set}" = set && \
24181 test "X${withval}" = Xno
24182 then ## disabled by request
24183 libopts_cv_with_libregex_root=no
24184 libopts_cv_with_libregex_cflags=no
24185 libopts_cv_with_libregex_libs=no
24189 # Check whether --with-libregex-cflags was given.
24190 if test "${with_libregex_cflags+set}" = set; then :
24191 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
24194 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
24195 if ${libopts_cv_with_libregex_cflags+:} false; then :
24196 $as_echo_n "(cached) " >&6
24198 libopts_cv_with_libregex_cflags=no
24200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
24201 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
24204 # end of AC_ARG_WITH libregex-cflags
24207 # Check whether --with-libregex-libs was given.
24208 if test "${with_libregex_libs+set}" = set; then :
24209 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
24212 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
24213 if ${libopts_cv_with_libregex_libs+:} false; then :
24214 $as_echo_n "(cached) " >&6
24216 libopts_cv_with_libregex_libs=no
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
24219 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
24222 # end of AC_ARG_WITH libregex-libs
24224 case "X${libopts_cv_with_libregex_cflags}" in
24226 case "X${libopts_cv_with_libregex_root}" in
24227 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
24228 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
24231 case "X${libopts_cv_with_libregex_libs}" in
24233 case "X${libopts_cv_with_libregex_root}" in
24234 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
24235 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
24238 libopts_save_CPPFLAGS="${CPPFLAGS}"
24239 libopts_save_LIBS="${LIBS}"
24240 case "X${libopts_cv_with_libregex_cflags}" in
24242 libopts_cv_with_libregex_cflags="" ;;
24243 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
24245 case "X${libopts_cv_with_libregex_libs}" in
24247 libopts_cv_with_libregex_libs="" ;;
24249 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
24254 $as_echo_n "checking whether libregex functions properly... " >&6; }
24255 if ${libopts_cv_with_libregex+:} false; then :
24256 $as_echo_n "(cached) " >&6
24259 if test "$cross_compiling" = yes; then :
24260 libopts_cv_with_libregex=no
24262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24263 /* end confdefs.h. */
24265 #include <stdlib.h>
24266 #include <sys/types.h>
24267 #include REGEX_HEADER
24269 void comp_re(char const * pzPat) {
24270 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
24271 if (res == 0) return;
24275 comp_re( "^.*\$" );
24276 comp_re( "()|no.*" );
24278 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
24279 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
24280 fputs( "error: regex -->.<-- did not match\n", stderr );
24285 if ac_fn_c_try_run "$LINENO"; then :
24286 libopts_cv_with_libregex=yes
24288 libopts_cv_with_libregex=no
24290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24291 conftest.$ac_objext conftest.beam conftest.$ac_ext
24293 # end of AC_RUN_IFELSE
24296 # end of AC_CACHE_VAL for libopts_cv_with_libregex
24297 fi ## disabled by request
24298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
24299 $as_echo "${libopts_cv_with_libregex}" >&6; }
24300 if test "X${libopts_cv_with_libregex}" != Xno
24303 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
24306 CPPFLAGS="${libopts_save_CPPFLAGS}"
24307 LIBS="${libopts_save_LIBS}"
24308 libopts_cv_with_libregex_root=no
24309 libopts_cv_with_libregex_cflags=no
24310 libopts_cv_with_libregex_libs=no
24311 libopts_cv_with_libregex=no
24316 # Check to see if pathfind(3) works.
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
24319 $as_echo_n "checking whether pathfind(3) works... " >&6; }
24320 if ${libopts_cv_run_pathfind+:} false; then :
24321 $as_echo_n "(cached) " >&6
24324 if test "$cross_compiling" = yes; then :
24325 libopts_cv_run_pathfind=no
24328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24329 /* end confdefs.h. */
24330 #include <string.h>
24331 #include <stdlib.h>
24332 int main (int argc, char ** argv) {
24333 char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
24334 return (pz == 0) ? 1 : 0;
24337 if ac_fn_c_try_run "$LINENO"; then :
24338 libopts_cv_run_pathfind=yes
24340 libopts_cv_run_pathfind=no
24342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24343 conftest.$ac_objext conftest.beam conftest.$ac_ext
24345 # end of RUN_IFELSE
24348 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
24350 $as_echo "${libopts_cv_run_pathfind}" >&6; }
24351 if test "X${libopts_cv_run_pathfind}" != Xno
24354 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
24360 # Check to see if /dev/zero is readable device.
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
24363 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
24364 if ${libopts_cv_test_dev_zero+:} false; then :
24365 $as_echo_n "(cached) " >&6
24368 libopts_cv_test_dev_zero=`exec 2> /dev/null
24369 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
24370 test -z "${dzero}" && exit 1
24372 if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
24373 then libopts_cv_test_dev_zero=no
24377 # end of CACHE_VAL of libopts_cv_test_dev_zero
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
24379 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
24380 if test "X${libopts_cv_test_dev_zero}" != Xno
24383 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
24389 # Check to see if we have a functional realpath(3C).
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
24392 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
24393 if ${libopts_cv_run_realpath+:} false; then :
24394 $as_echo_n "(cached) " >&6
24397 if test "$cross_compiling" = yes; then :
24398 libopts_cv_run_realpath=no
24401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24402 /* end confdefs.h. */
24403 #include <limits.h>
24404 #include <stdlib.h>
24405 int main (int argc, char ** argv) {
24409 char zPath[PATH_MAX+1];
24411 char *pz = realpath(argv[0], zPath);
24412 return (pz == zPath) ? 0 : 1;
24415 if ac_fn_c_try_run "$LINENO"; then :
24416 libopts_cv_run_realpath=yes
24418 libopts_cv_run_realpath=no
24420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24421 conftest.$ac_objext conftest.beam conftest.$ac_ext
24423 # end of RUN_IFELSE
24426 # end of AC_CACHE_VAL for libopts_cv_run_realpath
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
24428 $as_echo "${libopts_cv_run_realpath}" >&6; }
24429 if test "X${libopts_cv_run_realpath}" != Xno
24432 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
24438 # Check to see if strftime() works.
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
24441 $as_echo_n "checking whether strftime() works... " >&6; }
24442 if ${libopts_cv_run_strftime+:} false; then :
24443 $as_echo_n "(cached) " >&6
24446 if test "$cross_compiling" = yes; then :
24447 libopts_cv_run_strftime=no
24450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24451 /* end confdefs.h. */
24453 #include <string.h>
24456 static char const z[] = "Thursday Aug 28 240";
24458 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
24459 tm.tm_min = 44; /* minutes after the hour [0, 59] */
24460 tm.tm_hour = 12; /* hour since midnight [0, 23] */
24461 tm.tm_mday = 28; /* day of the month [1, 31] */
24462 tm.tm_mon = 7; /* months since January [0, 11] */
24463 tm.tm_year = 86; /* years since 1900 */
24464 tm.tm_wday = 4; /* days since Sunday [0, 6] */
24465 tm.tm_yday = 239; /* days since January 1 [0, 365] */
24466 tm.tm_isdst = 1; /* flag for daylight savings time */
24467 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
24468 return (strcmp( t_buf, z ) != 0); }
24470 if ac_fn_c_try_run "$LINENO"; then :
24471 libopts_cv_run_strftime=yes
24473 libopts_cv_run_strftime=no
24475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24476 conftest.$ac_objext conftest.beam conftest.$ac_ext
24478 # end of RUN_IFELSE
24481 # end of AC_CACHE_VAL for libopts_cv_run_strftime
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
24483 $as_echo "${libopts_cv_run_strftime}" >&6; }
24484 if test "X${libopts_cv_run_strftime}" != Xno
24487 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
24493 # Check to see if fopen accepts "b" mode.
24495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
24496 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
24497 if ${libopts_cv_run_fopen_binary+:} false; then :
24498 $as_echo_n "(cached) " >&6
24501 if test "$cross_compiling" = yes; then :
24502 libopts_cv_run_fopen_binary=no
24505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24506 /* end confdefs.h. */
24508 int main (int argc, char ** argv) {
24509 FILE * fp = fopen("conftest.$ac_ext", "rb");
24510 return (fp == NULL) ? 1 : fclose(fp); }
24512 if ac_fn_c_try_run "$LINENO"; then :
24513 libopts_cv_run_fopen_binary=yes
24515 libopts_cv_run_fopen_binary=no
24517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24518 conftest.$ac_objext conftest.beam conftest.$ac_ext
24520 # end of RUN_IFELSE
24523 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
24524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
24525 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
24526 if test "X${libopts_cv_run_fopen_binary}" != Xno
24529 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
24533 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
24539 # Check to see if fopen accepts "t" mode.
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
24542 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
24543 if ${libopts_cv_run_fopen_text+:} false; then :
24544 $as_echo_n "(cached) " >&6
24547 if test "$cross_compiling" = yes; then :
24548 libopts_cv_run_fopen_text=no
24551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24552 /* end confdefs.h. */
24554 int main (int argc, char ** argv) {
24555 FILE * fp = fopen("conftest.$ac_ext", "rt");
24556 return (fp == NULL) ? 1 : fclose(fp); }
24558 if ac_fn_c_try_run "$LINENO"; then :
24559 libopts_cv_run_fopen_text=yes
24561 libopts_cv_run_fopen_text=no
24563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24564 conftest.$ac_objext conftest.beam conftest.$ac_ext
24566 # end of RUN_IFELSE
24569 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
24571 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
24572 if test "X${libopts_cv_run_fopen_text}" != Xno
24575 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
24579 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
24585 # Check to see if not wanting optional option args.
24587 # Check whether --enable-optional-args was given.
24588 if test "${enable_optional_args+set}" = set; then :
24589 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
24592 $as_echo_n "checking whether not wanting optional option args... " >&6; }
24593 if ${libopts_cv_enable_optional_args+:} false; then :
24594 $as_echo_n "(cached) " >&6
24596 libopts_cv_enable_optional_args=yes
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
24599 $as_echo "$libopts_cv_enable_optional_args" >&6; }
24602 # end of AC_ARG_ENABLE
24603 if test "X${libopts_cv_enable_optional_args}" = Xno
24606 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
24615 ac_config_files="$ac_config_files libopts/Makefile"
24617 # end of AC_DEFUN of LIBOPTS_CHECK
24620 # From when we only used libevent for sntp:
24623 # [NTP_LIBEVENT_CHECK],
24624 # [NTP_LIBEVENT_CHECK_NOBUILD]
24629 ntp_pkgconfig_min_version='0.15.0'
24630 if test -n "$ac_tool_prefix"; then
24631 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24632 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24634 $as_echo_n "checking for $ac_word... " >&6; }
24635 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24636 $as_echo_n "(cached) " >&6
24638 case $PKG_CONFIG in
24640 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24644 for as_dir in $PATH
24647 test -z "$as_dir" && as_dir=.
24648 for ac_exec_ext in '' $ac_executable_extensions; do
24649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24650 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24661 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24662 if test -n "$PKG_CONFIG"; then
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24664 $as_echo "$PKG_CONFIG" >&6; }
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24667 $as_echo "no" >&6; }
24672 if test -z "$ac_cv_path_PKG_CONFIG"; then
24673 ac_pt_PKG_CONFIG=$PKG_CONFIG
24674 # Extract the first word of "pkg-config", so it can be a program name with args.
24675 set dummy pkg-config; ac_word=$2
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24677 $as_echo_n "checking for $ac_word... " >&6; }
24678 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24679 $as_echo_n "(cached) " >&6
24681 case $ac_pt_PKG_CONFIG in
24683 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24687 for as_dir in $PATH
24690 test -z "$as_dir" && as_dir=.
24691 for ac_exec_ext in '' $ac_executable_extensions; do
24692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24693 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24704 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24705 if test -n "$ac_pt_PKG_CONFIG"; then
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24707 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24710 $as_echo "no" >&6; }
24713 if test "x$ac_pt_PKG_CONFIG" = x; then
24716 case $cross_compiling:$ac_tool_warned in
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24720 ac_tool_warned=yes ;;
24722 PKG_CONFIG=$ac_pt_PKG_CONFIG
24725 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24728 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
24729 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
24731 case "$PKG_CONFIG" in
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
24734 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
24735 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24737 $as_echo "yes" >&6; }
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24740 $as_echo "no" >&6; }
24749 # Check whether --enable-local-libevent was given.
24750 if test "${enable_local_libevent+set}" = set; then :
24751 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
24753 ntp_use_local_libevent=${ntp_use_local_libevent-detect}
24766 ntp_libevent_min_version=2
24767 ntp_libevent_tearoff=libevent
24773 case "$ntp_use_local_libevent" in
24776 *) # If we have (a good enough) pkg-config, see if it can find libevent
24777 case "$PKG_CONFIG" in
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
24780 $as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
24781 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
24783 ntp_use_local_libevent=no
24784 ntp_libevent_version="`$PKG_CONFIG --modversion libevent`"
24785 case "$ntp_libevent_version" in
24787 *) ntp_libevent_version='(unknown)' ;;
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_libevent_version" >&5
24790 $as_echo "yes, version $ntp_libevent_version" >&6; }
24791 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
24792 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
24793 # HMS: I hope the following is accurate.
24794 # We don't need -levent, we only need -levent_core.
24795 # While we could grab only the -L stuff, there *might* be
24796 # other flags there we want. Originally we just removed -levent
24797 # but then somebody decided to install -levent-2.0
24798 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
24799 # So now we dance...
24801 for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
24806 *) case "$LDADD_LIBEVENT" in
24807 '') LDADD_LIBEVENT="$i" ;;
24808 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
24813 case "$LIBISC_PTHREADS_NOTHREADS" in
24815 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
24817 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
24819 ntp_use_local_libevent=yes
24820 # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
24822 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24824 $as_echo "no" >&6; }
24828 ntp_use_local_libevent=yes
24834 case "$ntp_use_local_libevent" in
24836 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
24837 $as_echo "$as_me: Using libevent tearoff" >&6;}
24838 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
24839 case "$LIBISC_PTHREADS_NOTHREADS" in
24841 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
24844 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
24849 if test "x$ntp_use_local_libevent" = "xyes"; then
24850 BUILD_LIBEVENT_TRUE=
24851 BUILD_LIBEVENT_FALSE='#'
24853 BUILD_LIBEVENT_TRUE='#'
24854 BUILD_LIBEVENT_FALSE=
24860 case "$ntp_libevent_tearoff" in
24864 as_fn_error $? "ntp_libevent.m4 dir must be libevent, not $ntp_libevent_tearoff" "$LINENO" 5
24868 case "$ntp_use_local_libevent" in
24870 ac_configure_args=" --disable-openssl${ac_configure_args}"
24871 ac_configure_args=" --disable-shared${ac_configure_args}"
24872 ac_configure_args=" --disable-libevent-regress${ac_configure_args}"
24873 ac_configure_args=" --disable-libevent-install${ac_configure_args}"
24874 ac_configure_args=" --enable-silent-rules${ac_configure_args}"
24875 ac_configure_args=" --enable-function-sections${ac_configure_args}"
24876 ac_configure_args=" LEP_CFLAGS='${NTP_HARD_CFLAGS}'${ac_configure_args}"
24877 ac_configure_args=" LEP_CPPFLAGS='${NTP_HARD_CPPFLAGS}'${ac_configure_args}"
24878 ac_configure_args=" LEP_LDFLAGS='${NTP_HARD_LDFLAGS}'${ac_configure_args}"
24879 subdirs="$subdirs libevent"
24883 NTP_FORCE_LIBEVENT_DIST=libevent
24889 # Checks for libraries.
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
24895 $as_echo_n "checking for library containing openlog... " >&6; }
24896 if ${ac_cv_search_openlog+:} false; then :
24897 $as_echo_n "(cached) " >&6
24899 ac_func_search_save_LIBS=$LIBS
24900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24901 /* end confdefs.h. */
24903 /* Override any GCC internal prototype to avoid an error.
24904 Use char because int might match the return type of a GCC
24905 builtin and then its argument prototype would still apply. */
24918 for ac_lib in '' gen syslog; do
24919 if test -z "$ac_lib"; then
24920 ac_res="none required"
24923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24925 if ac_fn_c_try_link "$LINENO"; then :
24926 ac_cv_search_openlog=$ac_res
24928 rm -f core conftest.err conftest.$ac_objext \
24930 if ${ac_cv_search_openlog+:} false; then :
24934 if ${ac_cv_search_openlog+:} false; then :
24937 ac_cv_search_openlog=no
24939 rm conftest.$ac_ext
24940 LIBS=$ac_func_search_save_LIBS
24942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
24943 $as_echo "$ac_cv_search_openlog" >&6; }
24944 ac_res=$ac_cv_search_openlog
24945 if test "$ac_res" != no; then :
24946 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24947 case "$ac_cv_search_openlog" in
24948 'none required') ;;
24950 *) LIB_SYSLOG="$ac_cv_search_openlog $LIB_SYSLOG" ;;
24956 # Checks for header files.
24957 for ac_header in netdb.h string.h strings.h syslog.h
24959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24960 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24961 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24962 cat >>confdefs.h <<_ACEOF
24963 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24972 for ac_header in sysexits.h
24974 ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
24975 if test "x$ac_cv_header_sysexits_h" = xyes; then :
24976 cat >>confdefs.h <<_ACEOF
24977 #define HAVE_SYSEXITS_H 1
24983 $as_echo "#define EX_OK 0" >>confdefs.h
24986 $as_echo "#define EX_SOFTWARE 70" >>confdefs.h
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
24996 $as_echo_n "checking for facilitynames in syslog.h... " >&6; }
24997 if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
24998 $as_echo_n "(cached) " >&6
25001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25002 /* end confdefs.h. */
25004 #define SYSLOG_NAMES
25005 #include <stdlib.h>
25006 #include <syslog.h>
25011 void *fnames; fnames = facilitynames;
25016 if ac_fn_c_try_compile "$LINENO"; then :
25017 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
25019 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
25021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
25024 $as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
25025 case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
25028 $as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
25033 $as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
25037 $as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
25042 # Checks for typedefs, structures, and compiler characteristics.
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
25044 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
25045 if ${ac_cv_header_stdbool_h+:} false; then :
25046 $as_echo_n "(cached) " >&6
25048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25049 /* end confdefs.h. */
25051 #include <stdbool.h>
25053 "error: bool is not defined"
25056 "error: false is not defined"
25059 "error: false is not 0"
25062 "error: true is not defined"
25065 "error: true is not 1"
25067 #ifndef __bool_true_false_are_defined
25068 "error: __bool_true_false_are_defined is not defined"
25071 struct s { _Bool s: 1; _Bool t; } s;
25073 char a[true == 1 ? 1 : -1];
25074 char b[false == 0 ? 1 : -1];
25075 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
25076 char d[(bool) 0.5 == true ? 1 : -1];
25077 /* See body of main program for 'e'. */
25078 char f[(_Bool) 0.0 == false ? 1 : -1];
25080 char h[sizeof (_Bool)];
25081 char i[sizeof s.t];
25082 enum { j = false, k = true, l = false * true, m = true * 256 };
25083 /* The following fails for
25084 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
25086 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
25087 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
25088 /* Catch a bug in an HP-UX C compiler. See
25089 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
25090 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
25102 /* Refer to every declared value, to avoid compiler optimizations. */
25103 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
25104 + !m + !n + !o + !p + !q + !pq);
25110 if ac_fn_c_try_compile "$LINENO"; then :
25111 ac_cv_header_stdbool_h=yes
25113 ac_cv_header_stdbool_h=no
25115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
25118 $as_echo "$ac_cv_header_stdbool_h" >&6; }
25119 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
25120 if test "x$ac_cv_type__Bool" = xyes; then :
25122 cat >>confdefs.h <<_ACEOF
25123 #define HAVE__BOOL 1
25130 if test $ac_cv_header_stdbool_h = yes; then
25132 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
25145 # Check whether --with-crypto was given.
25146 if test "${with_crypto+set}" = set; then :
25147 withval=$with_crypto;
25151 # Check whether --with-openssl-libdir was given.
25152 if test "${with_openssl_libdir+set}" = set; then :
25153 withval=$with_openssl_libdir;
25157 # Check whether --with-openssl-incdir was given.
25158 if test "${with_openssl_incdir+set}" = set; then :
25159 withval=$with_openssl_incdir;
25163 # Check whether --with-rpath was given.
25164 if test "${with_rpath+set}" = set; then :
25165 withval=$with_rpath;
25170 ntp_openssl_from_pkg_config=no
25172 with_crypto=${with_crypto:-openssl,libcrypto}
25173 case "$with_crypto" in
25175 with_crypto=openssl,libcrypto
25179 case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
25181 *:notempty:notgiven:notgiven)
25182 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
25184 $as_echo_n "checking pkg-config for $pkg... " >&6; }
25185 if $PKG_CONFIG --exists $pkg ; then
25186 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
25187 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
25188 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
25189 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
25190 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
25193 ntp_openssl_from_pkg_config=yes
25194 ntp_openssl_version="`$PKG_CONFIG --modversion $pkg`"
25195 case "$ntp_openssl_version" in
25197 *) ntp_openssl_version='(unknown)' ;;
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_openssl_version" >&5
25200 $as_echo "yes, version $ntp_openssl_version" >&6; }
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25205 $as_echo "no" >&6; }
25208 case "$with_crypto:$ntp_openssl" in
25213 case "${with_rpath-notgiven}" in
25215 # Lame - what to do if we need -Wl... but not -R?
25221 # This may really only be true for gcc
25222 need_dash_Wlrpath=1
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
25235 $as_echo_n "checking for openssl library directory... " >&6; }
25236 with_openssl_libdir=${with_openssl_libdir-notgiven}
25237 case "$with_openssl_libdir" in
25241 with_openssl_libdir=default
25244 with_openssl_libdir=no
25248 case "$with_openssl_libdir" in
25251 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
25252 with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
25253 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
25255 case "$with_openssl_libdir" in
25258 *) # Look for libcrypto.a and libssl.a:
25259 for i in $with_openssl_libdir no
25263 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
25266 test -f $i/libcrypto.so -a -f $i/libssl.so && break
25267 test -f $i/libcrypto.a -a -f $i/libssl.a && break
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
25275 $as_echo "$openssl_libdir" >&6; }
25276 case "$openssl_libdir" in
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
25280 $as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
25284 $as_echo_n "checking for openssl include directory... " >&6; }
25285 with_openssl_incdir=${with_openssl_incdir-notgiven}
25286 case "$with_openssl_incdir" in
25289 with_openssl_incdir="/usr/include /usr/sfw/include"
25290 with_openssl_incdir="$with_openssl_incdir /usr/local/include"
25291 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
25293 case "$with_openssl_incdir" in
25296 *) # look for openssl/evp.h:
25297 for i in $with_openssl_incdir no
25299 test -f $i/openssl/evp.h && break
25305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
25306 $as_echo "$openssl_incdir" >&6; }
25307 case "$openssl_incdir" in
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
25311 $as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
25313 if test -z "$openssl_libdir" -o -z "$openssl_incdir"
25320 case "$ntp_openssl" in
25322 # We have OpenSSL inc/lib dirs - use them.
25323 case "$openssl_incdir" in
25327 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
25330 case "$openssl_libdir" in
25334 LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
25335 case "$need_dash_r" in
25337 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
25339 case "$need_dash_Wlrpath" in
25341 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
25345 LDADD_NTP="$LDADD_NTP -lcrypto"
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
25350 $as_echo_n "checking if we will use crypto... " >&6; }
25351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
25352 $as_echo "$ntp_openssl" >&6; }
25354 case "$ntp_openssl" in
25356 for ac_header in openssl/cmac.h openssl/hmac.h
25358 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25359 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25360 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25361 cat >>confdefs.h <<_ACEOF
25362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25370 $as_echo "#define OPENSSL /**/" >>confdefs.h
25372 case "$VER_SUFFIX" in
25374 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
25379 NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
25380 CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
25381 NTPO_SAVED_LIBS="$LIBS"
25384 # check for linking with -lcrypto failure, and try -lcrypto -lz.
25385 # Helps m68k-atari-mint
25387 case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
25389 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
25390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
25391 $as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
25392 if ${ntp_cv_bare_lcrypto+:} false; then :
25393 $as_echo_n "(cached) " >&6
25395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25396 /* end confdefs.h. */
25398 #include "openssl/err.h"
25399 #include "openssl/evp.h"
25405 ERR_load_crypto_strings();
25406 OpenSSL_add_all_algorithms();
25413 if ac_fn_c_try_link "$LINENO"; then :
25414 ntp_cv_bare_lcrypto=yes
25416 ntp_cv_bare_lcrypto=no
25419 rm -f core conftest.err conftest.$ac_objext \
25420 conftest$ac_exeext conftest.$ac_ext
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
25424 $as_echo "$ntp_cv_bare_lcrypto" >&6; }
25425 case "$ntp_cv_bare_lcrypto" in
25427 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
25428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
25429 $as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
25430 if ${ntp_cv_lcrypto_lz+:} false; then :
25431 $as_echo_n "(cached) " >&6
25433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25434 /* end confdefs.h. */
25436 #include "openssl/err.h"
25437 #include "openssl/evp.h"
25443 ERR_load_crypto_strings();
25444 OpenSSL_add_all_algorithms();
25451 if ac_fn_c_try_link "$LINENO"; then :
25452 ntp_cv_lcrypto_lz=yes
25454 ntp_cv_lcrypto_lz=no
25457 rm -f core conftest.err conftest.$ac_objext \
25458 conftest$ac_exeext conftest.$ac_ext
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
25462 $as_echo "$ntp_cv_lcrypto_lz" >&6; }
25463 case "$ntp_cv_lcrypto_lz" in
25465 LDADD_NTP="$LDADD_NTP -lz"
25471 # Older OpenSSL headers have a number of callback prototypes inside
25472 # other function prototypes which trigger copious warnings with gcc's
25473 # -Wstrict-prototypes, which is included in -Wall.
25477 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
25478 # int (*cb)(), int sgckey);
25483 openssl_triggers_warnings=unknown
25484 NTPO_SAVED_CFLAGS="$CFLAGS"
25486 case "$ntp_openssl:$GCC" in
25488 CFLAGS="$CFLAGS -Werror"
25489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25490 /* end confdefs.h. */
25497 /* see if -Werror breaks gcc */
25504 if ac_fn_c_try_compile "$LINENO"; then :
25505 gcc_handles_Werror=yes
25507 gcc_handles_Werror=no
25510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25511 case "$gcc_handles_Werror" in
25513 # if this gcc doesn't do -Werror go ahead and use
25514 # -Wstrict-prototypes.
25515 openssl_triggers_warnings=yes
25518 CFLAGS="$CFLAGS -Wstrict-prototypes"
25519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25520 /* end confdefs.h. */
25522 #include "openssl/asn1_mac.h"
25523 #include "openssl/bn.h"
25524 #include "openssl/err.h"
25525 #include "openssl/evp.h"
25526 #include "openssl/pem.h"
25527 #include "openssl/rand.h"
25528 #include "openssl/x509v3.h"
25541 if ac_fn_c_try_compile "$LINENO"; then :
25542 openssl_triggers_warnings=no
25544 openssl_triggers_warnings=yes
25547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25549 case "$openssl_triggers_warnings" in
25551 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
25554 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
25558 # gcc without OpenSSL
25559 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
25562 # Because we don't want -Werror for the EVP_MD_do_all_sorted check
25563 CFLAGS="$NTPO_SAVED_CFLAGS"
25565 case "$ntp_openssl" in
25567 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
25568 for ac_func in EVP_MD_do_all_sorted
25570 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
25571 if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
25572 cat >>confdefs.h <<_ACEOF
25573 #define HAVE_EVP_MD_DO_ALL_SORTED 1
25583 CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
25584 LIBS="$NTPO_SAVED_LIBS"
25585 { NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
25586 { NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
25587 { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
25588 { openssl_triggers_warnings=; unset openssl_triggers_warnings;}
25589 { ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
25594 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
25595 if ${ntp_cv_sockaddr_storage+:} false; then :
25596 $as_echo_n "(cached) " >&6
25598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25599 /* end confdefs.h. */
25601 #ifdef HAVE_SYS_TYPES_H
25602 # include <sys/types.h>
25604 #ifdef HAVE_SYS_SOCKET_H
25605 # include <sys/socket.h>
25607 #ifdef HAVE_NETINET_IN_H
25608 # include <netinet/in.h>
25615 struct sockaddr_storage n;
25622 if ac_fn_c_try_compile "$LINENO"; then :
25623 ntp_cv_sockaddr_storage=yes
25625 ntp_cv_sockaddr_storage=no
25628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
25632 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
25633 case "$ntp_cv_sockaddr_storage" in
25636 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
25639 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
25640 if ${ntp_cv_have___ss_family+:} false; then :
25641 $as_echo_n "(cached) " >&6
25643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25644 /* end confdefs.h. */
25646 #ifdef HAVE_SYS_TYPES_H
25647 # include <sys/types.h>
25649 #ifdef HAVE_SYS_SOCKET_H
25650 # include <sys/socket.h>
25652 #ifdef HAVE_NETINET_IN_H
25653 # include <netinet/in.h>
25660 struct sockaddr_storage s;
25668 if ac_fn_c_try_compile "$LINENO"; then :
25669 ntp_cv_have___ss_family=yes
25671 ntp_cv_have___ss_family=no
25674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
25678 $as_echo "$ntp_cv_have___ss_family" >&6; }
25679 case "$ntp_cv_have___ss_family" in
25682 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
25690 # Look for in_port_t.
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
25693 $as_echo_n "checking for in_port_t... " >&6; }
25694 if ${isc_cv_have_in_port_t+:} false; then :
25695 $as_echo_n "(cached) " >&6
25697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25698 /* end confdefs.h. */
25700 #include <sys/types.h>
25701 #include <netinet/in.h>
25707 in_port_t port = 25;
25715 if ac_fn_c_try_compile "$LINENO"; then :
25716 isc_cv_have_in_port_t=yes
25718 isc_cv_have_in_port_t=no
25721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
25725 $as_echo "$isc_cv_have_in_port_t" >&6; }
25726 case "$isc_cv_have_in_port_t" in
25729 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
25734 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
25735 if ${ntp_cv_getsockname_socklen_type+:} false; then :
25736 $as_echo_n "(cached) " >&6
25739 getsockname_socklen_type_found=no
25740 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
25741 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
25742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25743 /* end confdefs.h. */
25745 #ifdef HAVE_SYS_TYPES_H
25746 # include <sys/types.h>
25748 #ifdef HAVE_SYS_SOCKET_H
25749 # include <sys/socket.h>
25757 getsockname(int, $getsockname_arg2,
25758 $ntp_cv_getsockname_socklen_type *);
25765 if ac_fn_c_try_compile "$LINENO"; then :
25766 getsockname_socklen_type_found=yes ; break 2
25768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25771 case "$getsockname_socklen_type_found" in
25773 ntp_cv_getsockname_socklen_type='socklen_t'
25775 { getsockname_arg2=; unset getsockname_arg2;}
25776 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
25781 $as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
25783 cat >>confdefs.h <<_ACEOF
25784 #define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
25788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
25789 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
25790 if ${isc_cv_platform_havesalen+:} false; then :
25791 $as_echo_n "(cached) " >&6
25793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25794 /* end confdefs.h. */
25796 #include <sys/types.h>
25797 #include <sys/socket.h>
25803 extern struct sockaddr *ps;
25811 if ac_fn_c_try_compile "$LINENO"; then :
25812 isc_cv_platform_havesalen=yes
25814 isc_cv_platform_havesalen=no
25817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
25821 $as_echo "$isc_cv_platform_havesalen" >&6; }
25822 case "$isc_cv_platform_havesalen" in
25825 $as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
25829 # Check whether --enable-ipv6 was given.
25830 if test "${enable_ipv6+set}" = set; then :
25831 enableval=$enable_ipv6;
25835 case "$enable_ipv6" in
25842 $as_echo "#define WANT_IPV6 1" >>confdefs.h
25855 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
25860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
25861 $as_echo_n "checking for IPv6 structures... " >&6; }
25862 if ${isc_cv_found_ipv6+:} false; then :
25863 $as_echo_n "(cached) " >&6
25865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25866 /* end confdefs.h. */
25868 #include <sys/types.h>
25869 #include <sys/socket.h>
25870 #include <netinet/in.h>
25876 struct sockaddr_in6 sin6;
25883 if ac_fn_c_try_compile "$LINENO"; then :
25884 isc_cv_found_ipv6=yes
25886 isc_cv_found_ipv6=no
25889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
25893 $as_echo "$isc_cv_found_ipv6" >&6; }
25896 # See whether IPv6 support is provided via a Kame add-on.
25897 # This is done before other IPv6 linking tests so LIBS is properly set.
25899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
25900 $as_echo_n "checking for Kame IPv6 support... " >&6; }
25902 # Check whether --with-kame was given.
25903 if test "${with_kame+set}" = set; then :
25904 withval=$with_kame; use_kame="$withval"
25910 case "$use_kame" in
25914 kame_path=/usr/local/v6
25917 kame_path="$use_kame"
25920 case "$use_kame" in
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25923 $as_echo "no" >&6; }
25926 if test -f $kame_path/lib/libinet6.a; then
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
25928 $as_echo "$kame_path/lib/libinet6.a" >&6; }
25929 LIBS="-L$kame_path/lib -linet6 $LIBS"
25931 as_fn_error $? "$kame_path/lib/libinet6.a not found.
25933 Please choose the proper path with the following command:
25935 configure --with-kame=PATH
25942 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
25943 # Including it on Kame-using platforms is very bad, though, because
25944 # Kame uses #error against direct inclusion. So include it on only
25945 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
25946 # This is done before the in6_pktinfo check because that's what
25947 # netinet6/in6.h is needed for.
25952 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
25954 isc_netinet6in6_hack="#include <netinet6/in6.h>"
25957 isc_netinet6in6_hack=""
25962 # This is similar to the netinet6/in6.h issue.
25965 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
25967 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
25969 isc_netinetin6_hack="#include <netinet/in6.h>"
25972 isc_netinetin6_hack=""
25977 case "$isc_cv_found_ipv6" in
25980 $as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
25983 $as_echo_n "checking for in6_pktinfo... " >&6; }
25984 if ${isc_cv_have_in6_pktinfo+:} false; then :
25985 $as_echo_n "(cached) " >&6
25987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25988 /* end confdefs.h. */
25990 #include <sys/types.h>
25991 #include <sys/socket.h>
25992 #include <netinet/in.h>
25993 $isc_netinetin6_hack
25994 $isc_netinet6in6_hack
26000 struct in6_pktinfo xyzzy;
26007 if ac_fn_c_try_compile "$LINENO"; then :
26008 isc_cv_have_in6_pktinfo=yes
26010 isc_cv_have_in6_pktinfo=no
26013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
26017 $as_echo "$isc_cv_have_in6_pktinfo" >&6; }
26018 case "$isc_cv_have_in6_pktinfo" in
26021 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
26026 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
26027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
26028 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
26029 if ${isc_cv_have_sin6_scope_id+:} false; then :
26030 $as_echo_n "(cached) " >&6
26032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26033 /* end confdefs.h. */
26035 #include <sys/types.h>
26036 #include <sys/socket.h>
26037 #include <netinet/in.h>
26038 $isc_netinetin6_hack
26039 $isc_netinet6in6_hack
26045 struct sockaddr_in6 xyzzy;
26046 xyzzy.sin6_scope_id = 0;
26053 if ac_fn_c_try_compile "$LINENO"; then :
26054 isc_cv_have_sin6_scope_id=yes
26056 isc_cv_have_sin6_scope_id=no
26059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
26063 $as_echo "$isc_cv_have_sin6_scope_id" >&6; }
26065 case "$isc_cv_have_sin6_scope_id" in
26068 $as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
26074 # We need this check run even without isc_cv_found_ipv6=yes
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
26077 $as_echo_n "checking for in6addr_any... " >&6; }
26078 if ${isc_cv_in6addr_any_links+:} false; then :
26079 $as_echo_n "(cached) " >&6
26083 LIBS="$LDADD_LIBNTP $LIBS"
26084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26085 /* end confdefs.h. */
26086 $ac_includes_default
26087 #include <sys/socket.h>
26088 #include <netinet/in.h>
26089 $isc_netinetin6_hack
26090 $isc_netinet6in6_hack
26096 printf("%x", in6addr_any.s6_addr[15]);
26103 if ac_fn_c_try_link "$LINENO"; then :
26104 isc_cv_in6addr_any_links=yes
26106 isc_cv_in6addr_any_links=no
26109 rm -f core conftest.err conftest.$ac_objext \
26110 conftest$ac_exeext conftest.$ac_ext
26112 { SAVED_LIBS=; unset SAVED_LIBS;}
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
26117 $as_echo "$isc_cv_in6addr_any_links" >&6; }
26119 case "$isc_cv_in6addr_any_links" in
26122 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
26128 $as_echo_n "checking for struct if_laddrconf... " >&6; }
26129 if ${isc_cv_struct_if_laddrconf+:} false; then :
26130 $as_echo_n "(cached) " >&6
26132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26133 /* end confdefs.h. */
26135 #include <sys/types.h>
26136 #include <net/if6.h>
26142 struct if_laddrconf a;
26149 if ac_fn_c_try_compile "$LINENO"; then :
26150 isc_cv_struct_if_laddrconf=yes
26152 isc_cv_struct_if_laddrconf=no
26155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
26159 $as_echo "$isc_cv_struct_if_laddrconf" >&6; }
26161 case "$isc_cv_struct_if_laddrconf" in
26164 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
26168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
26169 $as_echo_n "checking for struct if_laddrreq... " >&6; }
26170 if ${isc_cv_struct_if_laddrreq+:} false; then :
26171 $as_echo_n "(cached) " >&6
26173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26174 /* end confdefs.h. */
26176 #include <sys/types.h>
26177 #include <net/if6.h>
26183 struct if_laddrreq a;
26190 if ac_fn_c_try_compile "$LINENO"; then :
26191 isc_cv_struct_if_laddrreq=yes
26193 isc_cv_struct_if_laddrreq=no
26196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
26200 $as_echo "$isc_cv_struct_if_laddrreq" >&6; }
26202 case "$isc_cv_struct_if_laddrreq" in
26205 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
26209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
26210 $as_echo_n "checking for multicast IP support... " >&6; }
26211 if ${ntp_cv_multicast+:} false; then :
26212 $as_echo_n "(cached) " >&6
26215 ntp_cv_multicast=no
26217 i386-sequent-sysv4)
26220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26221 /* end confdefs.h. */
26223 #ifdef HAVE_NETINET_IN_H
26224 # include <netinet/in.h>
26231 struct ip_mreq ipmr;
26232 ipmr.imr_interface.s_addr = 0;
26239 if ac_fn_c_try_compile "$LINENO"; then :
26240 ntp_cv_multicast=yes
26242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
26249 $as_echo "$ntp_cv_multicast" >&6; }
26250 case "$ntp_cv_multicast" in
26253 $as_echo "#define MCAST 1" >>confdefs.h
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
26256 $as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
26257 if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
26258 $as_echo_n "(cached) " >&6
26262 *-*-netbsd*|*-*-*linux*)
26263 ntp_cv_typeof_ip_multicast_loop=u_int
26266 ntp_cv_typeof_ip_multicast_loop=u_char
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
26273 $as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
26275 cat >>confdefs.h <<_ACEOF
26276 #define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
26281 # Check whether --enable-getifaddrs was given.
26282 if test "${enable_getifaddrs+set}" = set; then :
26283 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
26285 want_getifaddrs="yes"
26290 case $want_getifaddrs in
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
26293 $as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
26295 case $want_getifaddrs in
26300 LIBS="$LDADD_LIBNTP $LIBS"
26301 for ac_func in getifaddrs
26303 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
26304 if test "x$ac_cv_func_getifaddrs" = xyes; then :
26305 cat >>confdefs.h <<_ACEOF
26306 #define HAVE_GETIFADDRS 1
26313 { SAVED_LIBS=; unset SAVED_LIBS;}
26318 # Check for if_nametoindex() for IPv6 scoped addresses support
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
26323 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
26324 if ${ac_cv_search_if_nametoindex+:} false; then :
26325 $as_echo_n "(cached) " >&6
26327 ac_func_search_save_LIBS=$LIBS
26328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26329 /* end confdefs.h. */
26331 /* Override any GCC internal prototype to avoid an error.
26332 Use char because int might match the return type of a GCC
26333 builtin and then its argument prototype would still apply. */
26337 char if_nametoindex ();
26341 return if_nametoindex ();
26346 for ac_lib in '' ipv6; do
26347 if test -z "$ac_lib"; then
26348 ac_res="none required"
26351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26353 if ac_fn_c_try_link "$LINENO"; then :
26354 ac_cv_search_if_nametoindex=$ac_res
26356 rm -f core conftest.err conftest.$ac_objext \
26358 if ${ac_cv_search_if_nametoindex+:} false; then :
26362 if ${ac_cv_search_if_nametoindex+:} false; then :
26365 ac_cv_search_if_nametoindex=no
26367 rm conftest.$ac_ext
26368 LIBS=$ac_func_search_save_LIBS
26370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
26371 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
26372 ac_res=$ac_cv_search_if_nametoindex
26373 if test "$ac_res" != no; then :
26374 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26380 LIBS="$LDADD_LIBNTP $LIBS"
26381 for ac_func in if_nametoindex
26383 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
26384 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
26385 cat >>confdefs.h <<_ACEOF
26386 #define HAVE_IF_NAMETOINDEX 1
26393 { SAVED_LIBS=; unset SAVED_LIBS;}
26394 case "$ac_cv_func_if_nametoindex" in
26397 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
26406 # these need work if we're to move libntp under sntp
26408 $as_echo "#define HAVE_NO_NICE 1" >>confdefs.h
26411 $as_echo "#define HAVE_TERMIOS 1" >>confdefs.h
26414 # Checks for library functions.
26415 for ac_func in socket
26417 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
26418 if test "x$ac_cv_func_socket" = xyes; then :
26419 cat >>confdefs.h <<_ACEOF
26420 #define HAVE_SOCKET 1
26428 # We may not need have_unity
26430 # Extract the first word of "ruby", so it can be a program name with args.
26431 set dummy ruby; ac_word=$2
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26433 $as_echo_n "checking for $ac_word... " >&6; }
26434 if ${ac_cv_path_PATH_RUBY+:} false; then :
26435 $as_echo_n "(cached) " >&6
26439 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
26442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26443 for as_dir in $PATH
26446 test -z "$as_dir" && as_dir=.
26447 for ac_exec_ext in '' $ac_executable_extensions; do
26448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26449 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
26450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26460 PATH_RUBY=$ac_cv_path_PATH_RUBY
26461 if test -n "$PATH_RUBY"; then
26462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
26463 $as_echo "$PATH_RUBY" >&6; }
26465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26466 $as_echo "no" >&6; }
26470 case "$PATH_RUBY" in
26474 *) PATH_RUBY="false"
26477 # We may not need UNITYBUILD_AVAILABLE
26478 if $have_unity; then
26479 UNITYBUILD_AVAILABLE_TRUE=
26480 UNITYBUILD_AVAILABLE_FALSE='#'
26482 UNITYBUILD_AVAILABLE_TRUE='#'
26483 UNITYBUILD_AVAILABLE_FALSE=
26488 ## HMS: if we don't find c++ we should not look for gtest.
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
26499 $as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
26500 # Check whether --enable-problem-tests was given.
26501 if test "${enable_problem_tests+set}" = set; then :
26502 enableval=$enable_problem_tests; sntp_ept=$enableval
26508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_ept" >&5
26509 $as_echo "$sntp_ept" >&6; }
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-kodDatabase" >&5
26512 $as_echo_n "checking if we can run test-kodDatabase... " >&6; }
26513 sntp_test_kodDatabase="no"
26514 case "$sntp_ept:$cross:$host" in
26515 no:0:*-apple-darwin12.6.0) ;;
26516 *) sntp_test_kodDatabase="yes" ;;
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_test_kodDatabase" >&5
26519 $as_echo "$sntp_test_kodDatabase" >&6; }
26520 if test x$sntp_test_kodDatabase = xyes; then
26521 BUILD_TEST_KODDATABASE_TRUE=
26522 BUILD_TEST_KODDATABASE_FALSE='#'
26524 BUILD_TEST_KODDATABASE_TRUE='#'
26525 BUILD_TEST_KODDATABASE_FALSE=
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-kodFile" >&5
26530 $as_echo_n "checking if we can run test-kodFile... " >&6; }
26531 sntp_test_kodFile="no"
26532 case "$sntp_ept:$cross:$host" in
26533 no:0:*-apple-darwin12.6.0) ;;
26534 *) sntp_test_kodFile="yes" ;;
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_test_kodFile" >&5
26537 $as_echo "$sntp_test_kodFile" >&6; }
26538 if test x$sntp_test_kodFile = xyes; then
26539 BUILD_TEST_KODFILE_TRUE=
26540 BUILD_TEST_KODFILE_FALSE='#'
26542 BUILD_TEST_KODFILE_TRUE='#'
26543 BUILD_TEST_KODFILE_FALSE=
26549 # All libraries should be in various LIB_* variables now.
26551 # Sadly not. There is a gettext() check somewhere, and on Solaris this pulls
26552 # in -lintl -lgen, outside our "scope".
26554 ac_config_files="$ac_config_files Makefile"
26556 ac_config_files="$ac_config_files include/Makefile"
26558 ac_config_files="$ac_config_files scripts/Makefile"
26560 ac_config_files="$ac_config_files tests/Makefile"
26562 ac_config_files="$ac_config_files tests/fileHandlingTest.h"
26564 ac_config_files="$ac_config_files unity/Makefile"
26567 cat >confcache <<\_ACEOF
26568 # This file is a shell script that caches the results of configure
26569 # tests run on this system so they can be shared between configure
26570 # scripts and configure runs, see configure's option --config-cache.
26571 # It is not useful on other systems. If it contains results you don't
26572 # want to keep, you may remove or edit it.
26574 # config.status only pays attention to the cache file if you give it
26575 # the --recheck option to rerun configure.
26577 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26578 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26579 # following values.
26583 # The following way of writing the cache mishandles newlines in values,
26584 # but we know of no workaround that is simple, portable, and efficient.
26585 # So, we kill variables containing newlines.
26586 # Ultrix sh set writes to stderr and can't be redirected directly,
26587 # and sets the high bit in the cache file unless we assign to the vars.
26589 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26590 eval ac_val=\$$ac_var
26594 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26595 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26598 _ | IFS | as_nl) ;; #(
26599 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26600 *) { eval $ac_var=; unset $ac_var;} ;;
26606 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26607 *${as_nl}ac_space=\ *)
26608 # `set' does not quote correctly, so add quotes: double-quote
26609 # substitution turns \\\\ into \\, and sed turns \\ into \.
26612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26615 # `set' quotes correctly as required by POSIX, so do not add quotes.
26616 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26625 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26627 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26629 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26630 if test -w "$cache_file"; then
26631 if test "x$cache_file" != "x/dev/null"; then
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26633 $as_echo "$as_me: updating cache $cache_file" >&6;}
26634 if test ! -f "$cache_file" || test -h "$cache_file"; then
26635 cat confcache >"$cache_file"
26637 case $cache_file in #(
26639 mv -f confcache "$cache_file"$$ &&
26640 mv -f "$cache_file"$$ "$cache_file" ;; #(
26642 mv -f confcache "$cache_file" ;;
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26648 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26653 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26654 # Let make expand exec_prefix.
26655 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26657 DEFS=-DHAVE_CONFIG_H
26662 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26663 # 1. Remove the extension, and $U if already installed.
26664 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26665 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26666 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26667 # will be set to the directory where LIBOBJS objects are built.
26668 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26669 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26671 LIBOBJS=$ac_libobjs
26673 LTLIBOBJS=$ac_ltlibobjs
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26677 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26678 if test -n "$am_sleep_pid"; then
26679 # Hide warnings about reused PIDs.
26680 wait $am_sleep_pid 2>/dev/null
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26683 $as_echo "done" >&6; }
26684 if test -n "$EXEEXT"; then
26686 am__EXEEXT_FALSE='#'
26688 am__EXEEXT_TRUE='#'
26692 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26693 as_fn_error $? "conditional \"AMDEP\" was never defined.
26694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26696 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26697 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26701 if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
26702 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
26703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26705 if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
26706 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
26707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26709 if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
26710 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
26711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26713 if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
26714 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
26715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26717 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
26718 as_fn_error $? "conditional \"PTHREADS\" was never defined.
26719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26721 if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
26722 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
26723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26725 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
26726 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
26727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26729 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
26730 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
26731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26733 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
26734 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
26735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26737 if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
26738 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
26739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26741 if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
26742 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
26743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26745 if test -z "${BUILD_TEST_KODDATABASE_TRUE}" && test -z "${BUILD_TEST_KODDATABASE_FALSE}"; then
26746 as_fn_error $? "conditional \"BUILD_TEST_KODDATABASE\" was never defined.
26747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26749 if test -z "${BUILD_TEST_KODFILE_TRUE}" && test -z "${BUILD_TEST_KODFILE_FALSE}"; then
26750 as_fn_error $? "conditional \"BUILD_TEST_KODFILE\" was never defined.
26751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26754 : "${CONFIG_STATUS=./config.status}"
26756 ac_clean_files_save=$ac_clean_files
26757 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26759 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26761 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26763 # Generated by $as_me.
26764 # Run this file to recreate the current configuration.
26765 # Compiler output produced by configure, useful for debugging
26766 # configure, is in config.log if it exists.
26769 ac_cs_recheck=false
26772 SHELL=\${CONFIG_SHELL-$SHELL}
26775 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26776 ## -------------------- ##
26777 ## M4sh Initialization. ##
26778 ## -------------------- ##
26780 # Be more Bourne compatible
26781 DUALCASE=1; export DUALCASE # for MKS sh
26782 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26785 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26786 # is contrary to our usage. Disable this feature.
26787 alias -g '${1+"$@"}'='"$@"'
26788 setopt NO_GLOB_SUBST
26790 case `(set -o) 2>/dev/null` in #(
26802 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26803 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26804 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26805 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26806 # Prefer a ksh shell builtin over an external printf program on Solaris,
26807 # but without wasting forks for bash or zsh.
26808 if test -z "$BASH_VERSION$ZSH_VERSION" \
26809 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26810 as_echo='print -r --'
26811 as_echo_n='print -rn --'
26812 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26813 as_echo='printf %s\n'
26814 as_echo_n='printf %s'
26816 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26817 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26818 as_echo_n='/usr/ucb/echo -n'
26820 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26821 as_echo_n_body='eval
26825 expr "X$arg" : "X\\(.*\\)$as_nl";
26826 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26828 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26830 export as_echo_n_body
26831 as_echo_n='sh -c $as_echo_n_body as_echo'
26833 export as_echo_body
26834 as_echo='sh -c $as_echo_body as_echo'
26837 # The user is always right.
26838 if test "${PATH_SEPARATOR+set}" != set; then
26840 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26841 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26848 # We need space, tab and new line, in precisely that order. Quoting is
26849 # there to prevent editors from complaining about space-tab.
26850 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26851 # splitting by setting IFS to empty value.)
26854 # Find who we are. Look in the path if we contain no directory separator.
26857 *[\\/]* ) as_myself=$0 ;;
26858 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26859 for as_dir in $PATH
26862 test -z "$as_dir" && as_dir=.
26863 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26869 # We did not find ourselves, most probably we were run as `sh COMMAND'
26870 # in which case we are not to be found in the path.
26871 if test "x$as_myself" = x; then
26874 if test ! -f "$as_myself"; then
26875 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26879 # Unset variables that we do not need and which cause bugs (e.g. in
26880 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26881 # suppresses any "Segmentation fault" message there. '((' could
26882 # trigger a bug in pdksh 5.2.14.
26883 for as_var in BASH_ENV ENV MAIL MAILPATH
26884 do eval test x\${$as_var+set} = xset \
26885 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26898 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26901 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26902 # ----------------------------------------
26903 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26904 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26905 # script with STATUS, using 1 if that was 0.
26908 as_status=$1; test $as_status -eq 0 && as_status=1
26910 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26911 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26913 $as_echo "$as_me: error: $2" >&2
26914 as_fn_exit $as_status
26918 # as_fn_set_status STATUS
26919 # -----------------------
26920 # Set $? to STATUS, without forking.
26921 as_fn_set_status ()
26924 } # as_fn_set_status
26926 # as_fn_exit STATUS
26927 # -----------------
26928 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26932 as_fn_set_status $1
26938 # Portably unset VAR.
26941 { eval $1=; unset $1;}
26943 as_unset=as_fn_unset
26944 # as_fn_append VAR VALUE
26945 # ----------------------
26946 # Append the text in VALUE to the end of the definition contained in VAR. Take
26947 # advantage of any shell optimizations that allow amortized linear growth over
26948 # repeated appends, instead of the typical quadratic growth present in naive
26950 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26951 eval 'as_fn_append ()
26962 # as_fn_arith ARG...
26963 # ------------------
26964 # Perform arithmetic evaluation on the ARGs, and store the result in the
26965 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26966 # must be portable across $(()) and expr.
26967 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26968 eval 'as_fn_arith ()
26975 as_val=`expr "$@" || test $? -eq 1`
26980 if expr a : '\(a\)' >/dev/null 2>&1 &&
26981 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26987 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26988 as_basename=basename
26993 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26999 as_me=`$as_basename -- "$0" ||
27000 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27001 X"$0" : 'X\(//\)$' \| \
27002 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27004 sed '/^.*\/\([^/][^/]*\)\/*$/{
27018 # Avoid depending upon Character Ranges.
27019 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27020 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27021 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27022 as_cr_digits='0123456789'
27023 as_cr_alnum=$as_cr_Letters$as_cr_digits
27025 ECHO_C= ECHO_N= ECHO_T=
27026 case `echo -n x` in #(((((
27028 case `echo 'xy\c'` in
27029 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27031 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27038 rm -f conf$$ conf$$.exe conf$$.file
27039 if test -d conf$$.dir; then
27040 rm -f conf$$.dir/conf$$.file
27043 mkdir conf$$.dir 2>/dev/null
27045 if (echo >conf$$.file) 2>/dev/null; then
27046 if ln -s conf$$.file conf$$ 2>/dev/null; then
27048 # ... but there are two gotchas:
27049 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27050 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27051 # In both cases, we have to default to `cp -pR'.
27052 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27054 elif ln conf$$.file conf$$ 2>/dev/null; then
27062 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27063 rmdir conf$$.dir 2>/dev/null
27068 # Create "$as_dir" as a directory, including parents if necessary.
27073 -*) as_dir=./$as_dir;;
27075 test -d "$as_dir" || eval $as_mkdir_p || {
27079 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27080 *) as_qdir=$as_dir;;
27082 as_dirs="'$as_qdir' $as_dirs"
27083 as_dir=`$as_dirname -- "$as_dir" ||
27084 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27085 X"$as_dir" : 'X\(//\)[^/]' \| \
27086 X"$as_dir" : 'X\(//\)$' \| \
27087 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27088 $as_echo X"$as_dir" |
27089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27093 /^X\(\/\/\)[^/].*/{
27106 test -d "$as_dir" && break
27108 test -z "$as_dirs" || eval "mkdir $as_dirs"
27109 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27113 if mkdir -p . 2>/dev/null; then
27114 as_mkdir_p='mkdir -p "$as_dir"'
27116 test -d ./-p && rmdir ./-p
27121 # as_fn_executable_p FILE
27122 # -----------------------
27123 # Test if FILE is an executable regular file.
27124 as_fn_executable_p ()
27126 test -f "$1" && test -x "$1"
27127 } # as_fn_executable_p
27128 as_test_x='test -x'
27129 as_executable_p=as_fn_executable_p
27131 # Sed expression to map a string onto a valid CPP name.
27132 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27134 # Sed expression to map a string onto a valid variable name.
27135 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27139 ## ----------------------------------- ##
27140 ## Main body of $CONFIG_STATUS script. ##
27141 ## ----------------------------------- ##
27143 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27146 # Save the log message, to keep $0 and so on meaningful, and to
27147 # report actual input values of CONFIG_FILES etc. instead of their
27148 # values after options handling.
27150 This file was extended by sntp $as_me 4.2.8p14, which was
27151 generated by GNU Autoconf 2.69. Invocation command line was
27153 CONFIG_FILES = $CONFIG_FILES
27154 CONFIG_HEADERS = $CONFIG_HEADERS
27155 CONFIG_LINKS = $CONFIG_LINKS
27156 CONFIG_COMMANDS = $CONFIG_COMMANDS
27159 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27164 case $ac_config_files in *"
27165 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27168 case $ac_config_headers in *"
27169 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27174 # Files that config.status was made for.
27175 config_files="$ac_config_files"
27176 config_headers="$ac_config_headers"
27177 config_commands="$ac_config_commands"
27181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27183 \`$as_me' instantiates files and other configuration actions
27184 from templates according to the current configuration. Unless the files
27185 and actions are specified as TAGs, all are instantiated by default.
27187 Usage: $0 [OPTION]... [TAG]...
27189 -h, --help print this help, then exit
27190 -V, --version print version number and configuration settings, then exit
27191 --config print configuration, then exit
27192 -q, --quiet, --silent
27193 do not print progress messages
27194 -d, --debug don't remove temporary files
27195 --recheck update $as_me by reconfiguring in the same conditions
27196 --file=FILE[:TEMPLATE]
27197 instantiate the configuration file FILE
27198 --header=FILE[:TEMPLATE]
27199 instantiate the configuration header FILE
27201 Configuration files:
27204 Configuration headers:
27207 Configuration commands:
27210 Report bugs to <http://bugs.ntp.org./>.
27211 sntp home page: <http://www.ntp.org./>."
27214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27215 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27217 sntp config.status 4.2.8p14
27218 configured by $0, generated by GNU Autoconf 2.69,
27219 with options \\"\$ac_cs_config\\"
27221 Copyright (C) 2012 Free Software Foundation, Inc.
27222 This config.status script is free software; the Free Software Foundation
27223 gives unlimited permission to copy, distribute and modify it."
27230 test -n "\$AWK" || AWK=awk
27233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27234 # The default lists apply if the user does not specify any file.
27240 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27241 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27245 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27257 # Handling of the options.
27258 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27260 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27261 $as_echo "$ac_cs_version"; exit ;;
27262 --config | --confi | --conf | --con | --co | --c )
27263 $as_echo "$ac_cs_config"; exit ;;
27264 --debug | --debu | --deb | --de | --d | -d )
27266 --file | --fil | --fi | --f )
27269 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27270 '') as_fn_error $? "missing file argument" ;;
27272 as_fn_append CONFIG_FILES " '$ac_optarg'"
27273 ac_need_defaults=false;;
27274 --header | --heade | --head | --hea )
27277 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27279 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27280 ac_need_defaults=false;;
27282 # Conflict between --help and --header
27283 as_fn_error $? "ambiguous option: \`$1'
27284 Try \`$0 --help' for more information.";;
27285 --help | --hel | -h )
27286 $as_echo "$ac_cs_usage"; exit ;;
27287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27288 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27291 # This is an error.
27292 -*) as_fn_error $? "unrecognized option: \`$1'
27293 Try \`$0 --help' for more information." ;;
27295 *) as_fn_append ac_config_targets " $1"
27296 ac_need_defaults=false ;;
27302 ac_configure_extra_args=
27304 if $ac_cs_silent; then
27306 ac_configure_extra_args="$ac_configure_extra_args --silent"
27310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27311 if \$ac_cs_recheck; then
27312 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27314 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27315 CONFIG_SHELL='$SHELL'
27316 export CONFIG_SHELL
27321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27325 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27326 ## Running $as_me. ##
27332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27336 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27339 # The HP-UX ksh and POSIX shell print the target directory to stdout
27340 # if CDPATH is set.
27341 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27343 sed_quote_subst='$sed_quote_subst'
27344 double_quote_subst='$double_quote_subst'
27345 delay_variable_subst='$delay_variable_subst'
27346 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27347 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27348 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27349 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27350 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27351 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27352 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27353 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27354 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27355 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27356 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27357 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27358 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27359 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27360 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27361 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27362 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27363 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27364 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27365 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27366 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27367 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27368 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27369 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27370 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27371 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27372 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27373 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27374 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27375 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27376 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27377 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27378 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27379 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27380 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27381 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27382 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27383 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27384 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27385 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27386 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27387 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27388 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27389 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27390 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27391 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27392 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27393 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27394 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27395 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27396 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27397 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27398 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27399 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27400 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27401 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27402 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27403 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27404 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"`'
27405 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27406 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27407 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27408 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27409 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27410 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27411 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27412 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27413 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27414 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27415 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27416 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27417 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27418 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27419 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27420 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27421 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27422 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27423 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27424 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27425 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27426 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27427 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27428 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27429 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27430 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27431 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27432 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27433 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27434 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27435 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27436 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27437 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27438 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27439 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27440 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27441 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27442 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27443 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27444 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27445 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27446 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27447 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27448 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27449 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27450 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27451 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27452 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27453 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27454 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27455 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27456 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27457 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27458 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27459 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27460 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27461 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27462 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27463 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27464 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27465 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27466 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27467 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27468 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27469 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27470 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27471 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27472 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27473 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27474 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27475 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27476 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27477 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27478 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27479 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27480 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27483 LTCFLAGS='$LTCFLAGS'
27484 compiler='$compiler_DEFAULT'
27486 # A function that is used when there is no print builtin or printf.
27487 func_fallback_echo ()
27489 eval 'cat <<_LTECHO_EOF
27494 # Quote evaled strings.
27509 deplibs_check_method \
27514 sharedlib_from_linklib_cmd \
27517 archiver_list_spec \
27523 lt_cv_sys_global_symbol_pipe \
27524 lt_cv_sys_global_symbol_to_cdecl \
27525 lt_cv_sys_global_symbol_to_import \
27526 lt_cv_sys_global_symbol_to_c_name_address \
27527 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27528 lt_cv_nm_interface \
27529 nm_file_list_spec \
27530 lt_cv_truncate_bin \
27531 lt_prog_compiler_no_builtin_flag \
27532 lt_prog_compiler_pic \
27533 lt_prog_compiler_wl \
27534 lt_prog_compiler_static \
27535 lt_cv_prog_compiler_c_o \
27544 export_dynamic_flag_spec \
27545 whole_archive_flag_spec \
27546 compiler_needs_object \
27548 allow_undefined_flag \
27549 no_undefined_flag \
27550 hardcode_libdir_flag_spec \
27551 hardcode_libdir_separator \
27555 variables_saved_for_relink \
27557 library_names_spec \
27559 install_override_mode \
27563 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27564 *[\\\\\\\`\\"\\\$]*)
27565 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27568 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27573 # Double-quote double-evaled strings.
27574 for var in reload_cmds \
27575 old_postinstall_cmds \
27576 old_postuninstall_cmds \
27578 extract_expsyms_cmds \
27579 old_archive_from_new_cmds \
27580 old_archive_from_expsyms_cmds \
27582 archive_expsym_cmds \
27584 module_expsym_cmds \
27585 export_symbols_cmds \
27589 postuninstall_cmds \
27591 sys_lib_search_path_spec \
27592 configure_time_dlsearch_path \
27593 configure_time_lt_sys_library_path; do
27594 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27595 *[\\\\\\\`\\"\\\$]*)
27596 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27599 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27604 ac_aux_dir='$ac_aux_dir'
27606 # See if we are running on zsh, and set the options that allow our
27607 # commands through without removal of \ escapes INIT.
27608 if test -n "\${ZSH_VERSION+set}"; then
27609 setopt NO_GLOB_SUBST
27623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27625 # Handling of arguments.
27626 for ac_config_target in $ac_config_targets
27628 case $ac_config_target in
27629 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27630 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27631 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27632 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
27633 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27634 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27635 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
27636 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27637 "tests/fileHandlingTest.h") CONFIG_FILES="$CONFIG_FILES tests/fileHandlingTest.h" ;;
27638 "unity/Makefile") CONFIG_FILES="$CONFIG_FILES unity/Makefile" ;;
27640 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27645 # If the user did not use the arguments to specify the items to instantiate,
27646 # then the envvar interface is used. Set only those that are not.
27647 # We use the long form for the default assignment because of an extremely
27648 # bizarre bug on SunOS 4.1.3.
27649 if $ac_need_defaults; then
27650 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27651 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27652 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27655 # Have a temporary directory for convenience. Make it in the build tree
27656 # simply because there is no reason against having it here, and in addition,
27657 # creating and moving files from /tmp can sometimes cause problems.
27658 # Hook for its removal unless debugging.
27659 # Note that there is a small window in which the directory will not be cleaned:
27660 # after its creation but before its name has been assigned to `$tmp'.
27664 trap 'exit_status=$?
27665 : "${ac_tmp:=$tmp}"
27666 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27668 trap 'as_fn_exit 1' 1 2 13 15
27670 # Create a (secure) tmp directory for tmp files.
27673 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27677 tmp=./conf$$-$RANDOM
27678 (umask 077 && mkdir "$tmp")
27679 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27682 # Set up the scripts for CONFIG_FILES section.
27683 # No need to generate them if there are no CONFIG_FILES.
27684 # This happens for instance with `./config.status config.h'.
27685 if test -n "$CONFIG_FILES"; then
27688 ac_cr=`echo X | tr X '\015'`
27689 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27690 # But we know of no other shell where ac_cr would be empty at this
27691 # point, so we can use a bashism as a fallback.
27692 if test "x$ac_cr" = x; then
27693 eval ac_cr=\$\'\\r\'
27695 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27696 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27699 ac_cs_awk_cr=$ac_cr
27702 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27707 echo "cat >conf$$subs.awk <<_ACEOF" &&
27708 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27710 } >conf$$subs.sh ||
27711 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27712 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27714 for ac_last_try in false false false false false :; do
27715 . ./conf$$subs.sh ||
27716 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27718 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27719 if test $ac_delim_n = $ac_delim_num; then
27721 elif $ac_last_try; then
27722 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27724 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27727 rm -f conf$$subs.sh
27729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27730 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27734 s/^/S["/; s/!.*/"]=/
27744 s/\(.\{148\}\)..*/\1/
27746 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27751 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27758 s/\(.\{148\}\)..*/\1/
27760 s/["\\]/\\&/g; s/^/"/; s/$/"/
27764 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27769 ' <conf$$subs.awk | sed '
27774 ' >>$CONFIG_STATUS || ac_write_fail=1
27775 rm -f conf$$subs.awk
27776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27778 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27779 for (key in S) S_is_set[key] = 1
27785 nfields = split(line, field, "@")
27787 len = length(field[1])
27788 for (i = 2; i < nfields; i++) {
27790 keylen = length(key)
27791 if (S_is_set[key]) {
27793 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27794 len += length(value) + length(field[++i])
27805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27806 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27807 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27810 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27811 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27814 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27815 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27816 # trailing colons and then remove the whole line if VPATH becomes empty
27817 # (actually we leave an empty line to preserve line numbers).
27818 if test "x$srcdir" = x.; then
27819 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27838 fi # test -n "$CONFIG_FILES"
27840 # Set up the scripts for CONFIG_HEADERS section.
27841 # No need to generate them if there are no CONFIG_HEADERS.
27842 # This happens for instance with `./config.status Makefile'.
27843 if test -n "$CONFIG_HEADERS"; then
27844 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27848 # Transform confdefs.h into an awk script `defines.awk', embedded as
27849 # here-document in config.status, that substitutes the proper values into
27850 # config.h.in to produce config.h.
27852 # Create a delimiter string that does not exist in confdefs.h, to ease
27853 # handling of long lines.
27855 for ac_last_try in false false :; do
27856 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27857 if test -z "$ac_tt"; then
27859 elif $ac_last_try; then
27860 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27862 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27866 # For the awk script, D is an array of macro values keyed by name,
27867 # likewise P contains macro parameters if any. Preserve backslash
27868 # newline sequences.
27870 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27872 s/.\{148\}/&'"$ac_delim"'/g
27875 s/^[ ]*#[ ]*define[ ][ ]*/ /
27882 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27884 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27888 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27889 D["\1"]=" \3\\\\\\n"\\/p
27891 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27896 s/.\{148\}/&'"$ac_delim"'/g
27901 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27904 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27906 ' <confdefs.h | sed '
27907 s/'"$ac_delim"'/"\\\
27908 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27911 for (key in D) D_is_set[key] = 1
27914 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27916 split(line, arg, " ")
27917 if (arg[1] == "#") {
27921 defundef = substr(arg[1], 2)
27924 split(mac1, mac2, "(") #)
27926 prefix = substr(line, 1, index(line, defundef) - 1)
27927 if (D_is_set[macro]) {
27928 # Preserve the white space surrounding the "#".
27929 print prefix "define", macro P[macro] D[macro]
27932 # Replace #undef with comments. This is necessary, for example,
27933 # in the case of _POSIX_SOURCE, which is predefined and required
27934 # on some systems where configure will not decide to define it.
27935 if (defundef == "undef") {
27936 print "/*", prefix defundef, macro, "*/"
27944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27945 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27946 fi # test -n "$CONFIG_HEADERS"
27949 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27954 :[FHLC]) ac_mode=$ac_tag; continue;;
27956 case $ac_mode$ac_tag in
27958 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27959 :[FH]-) ac_tag=-:-;;
27960 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27977 -) ac_f="$ac_tmp/stdin";;
27978 *) # Look for the file first in the build tree, then in the source tree
27979 # (if the path is not absolute). The absolute path cannot be DOS-style,
27980 # because $ac_f cannot contain `:'.
27984 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27986 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27988 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27989 as_fn_append ac_file_inputs " '$ac_f'"
27992 # Let's still pretend it is `configure' which instantiates (i.e., don't
27993 # use $as_me), people would be surprised to read:
27994 # /* config.h. Generated by config.status. */
27995 configure_input='Generated from '`
27996 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27998 if test x"$ac_file" != x-; then
27999 configure_input="$ac_file. $configure_input"
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28001 $as_echo "$as_me: creating $ac_file" >&6;}
28003 # Neutralize special characters interpreted by sed in replacement strings.
28004 case $configure_input in #(
28005 *\&* | *\|* | *\\* )
28006 ac_sed_conf_input=`$as_echo "$configure_input" |
28007 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28008 *) ac_sed_conf_input=$configure_input;;
28012 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28013 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28018 ac_dir=`$as_dirname -- "$ac_file" ||
28019 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28020 X"$ac_file" : 'X\(//\)[^/]' \| \
28021 X"$ac_file" : 'X\(//\)$' \| \
28022 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28023 $as_echo X"$ac_file" |
28024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28028 /^X\(\/\/\)[^/].*/{
28041 as_dir="$ac_dir"; as_fn_mkdir_p
28045 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28047 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28048 # A ".." for each directory in $ac_dir_suffix.
28049 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28050 case $ac_top_builddir_sub in
28051 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28052 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28055 ac_abs_top_builddir=$ac_pwd
28056 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28057 # for backward compatibility:
28058 ac_top_builddir=$ac_top_build_prefix
28061 .) # We are building in place.
28063 ac_top_srcdir=$ac_top_builddir_sub
28064 ac_abs_top_srcdir=$ac_pwd ;;
28065 [\\/]* | ?:[\\/]* ) # Absolute name.
28066 ac_srcdir=$srcdir$ac_dir_suffix;
28067 ac_top_srcdir=$srcdir
28068 ac_abs_top_srcdir=$srcdir ;;
28069 *) # Relative name.
28070 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28071 ac_top_srcdir=$ac_top_build_prefix$srcdir
28072 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28074 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28084 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28085 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28087 ac_MKDIR_P=$MKDIR_P
28089 [\\/$]* | ?:[\\/]* ) ;;
28090 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28095 # If the template does not know about datarootdir, expand it.
28096 # FIXME: This hack should be removed a few years after 2.60.
28097 ac_datarootdir_hack=; ac_datarootdir_seen=
28108 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28109 *datarootdir*) ac_datarootdir_seen=yes;;
28110 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28112 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28115 ac_datarootdir_hack='
28116 s&@datadir@&$datadir&g
28117 s&@docdir@&$docdir&g
28118 s&@infodir@&$infodir&g
28119 s&@localedir@&$localedir&g
28120 s&@mandir@&$mandir&g
28121 s&\\\${datarootdir}&$datarootdir&g' ;;
28125 # Neutralize VPATH when `$srcdir' = `.'.
28126 # Shell code in configure.ac might set extrasub.
28127 # FIXME: do we really want to maintain this feature?
28128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28129 ac_sed_extra="$ac_vpsub
28132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28134 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28135 s|@configure_input@|$ac_sed_conf_input|;t t
28136 s&@top_builddir@&$ac_top_builddir_sub&;t t
28137 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28138 s&@srcdir@&$ac_srcdir&;t t
28139 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28140 s&@top_srcdir@&$ac_top_srcdir&;t t
28141 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28142 s&@builddir@&$ac_builddir&;t t
28143 s&@abs_builddir@&$ac_abs_builddir&;t t
28144 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28145 s&@INSTALL@&$ac_INSTALL&;t t
28146 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28147 $ac_datarootdir_hack
28149 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28150 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28152 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28153 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28154 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28155 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28157 which seems to be undefined. Please make sure it is defined" >&5
28158 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28159 which seems to be undefined. Please make sure it is defined" >&2;}
28161 rm -f "$ac_tmp/stdin"
28163 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28164 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28166 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28172 if test x"$ac_file" != x-; then
28174 $as_echo "/* $configure_input */" \
28175 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28176 } >"$ac_tmp/config.h" \
28177 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28178 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28179 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28180 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28183 mv "$ac_tmp/config.h" "$ac_file" \
28184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28187 $as_echo "/* $configure_input */" \
28188 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28189 || as_fn_error $? "could not create -" "$LINENO" 5
28191 # Compute "$ac_file"'s index in $config_headers.
28194 for _am_header in $config_headers :; do
28195 case $_am_header in
28196 $_am_arg | $_am_arg:* )
28199 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28202 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28203 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28204 X"$_am_arg" : 'X\(//\)[^/]' \| \
28205 X"$_am_arg" : 'X\(//\)$' \| \
28206 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28207 $as_echo X"$_am_arg" |
28208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28212 /^X\(\/\/\)[^/].*/{
28224 s/.*/./; q'`/stamp-h$_am_stamp_count
28227 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28228 $as_echo "$as_me: executing $ac_file commands" >&6;}
28233 case $ac_file$ac_mode in
28234 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28235 # Older Autoconf quotes --file arguments for eval, but not when files
28236 # are listed without --file. Let's play safe and only enable the eval
28237 # if we detect the quoting.
28238 case $CONFIG_FILES in
28239 *\'*) eval set x "$CONFIG_FILES" ;;
28240 *) set x $CONFIG_FILES ;;
28245 # Strip MF so we end up with the name of the file.
28246 mf=`echo "$mf" | sed -e 's/:.*$//'`
28247 # Check whether this is an Automake generated Makefile or not.
28248 # We used to match only the files named 'Makefile.in', but
28249 # some people rename them; so instead we look at the file content.
28250 # Grep'ing the first line is not enough: some people post-process
28251 # each Makefile.in and add a new line on top of each file to say so.
28252 # Grep'ing the whole file is not good either: AIX grep has a line
28253 # limit of 2048, but all sed's we know have understand at least 4000.
28254 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28255 dirpart=`$as_dirname -- "$mf" ||
28256 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28257 X"$mf" : 'X\(//\)[^/]' \| \
28258 X"$mf" : 'X\(//\)$' \| \
28259 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28265 /^X\(\/\/\)[^/].*/{
28281 # Extract the definition of DEPDIR, am__include, and am__quote
28282 # from the Makefile without running 'make'.
28283 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28284 test -z "$DEPDIR" && continue
28285 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28286 test -z "$am__include" && continue
28287 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28288 # Find all dependency output files, they are included files with
28289 # $(DEPDIR) in their names. We invoke sed twice because it is the
28290 # simplest approach to changing $(DEPDIR) to its actual value in the
28292 for file in `sed -n "
28293 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28294 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28295 # Make sure the directory exists.
28296 test -f "$dirpart/$file" && continue
28297 fdir=`$as_dirname -- "$file" ||
28298 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28299 X"$file" : 'X\(//\)[^/]' \| \
28300 X"$file" : 'X\(//\)$' \| \
28301 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28302 $as_echo X"$file" |
28303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28307 /^X\(\/\/\)[^/].*/{
28320 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28321 # echo "creating $dirpart/$file"
28322 echo '# dummy' > "$dirpart/$file"
28329 # See if we are running on zsh, and set the options that allow our
28330 # commands through without removal of \ escapes.
28331 if test -n "${ZSH_VERSION+set}"; then
28332 setopt NO_GLOB_SUBST
28336 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28339 cat <<_LT_EOF >> "$cfgfile"
28341 # Generated automatically by $as_me ($PACKAGE) $VERSION
28342 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28343 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28345 # Provide generalized library-building support services.
28346 # Written by Gordon Matzigkeit, 1996
28348 # Copyright (C) 2014 Free Software Foundation, Inc.
28349 # This is free software; see the source for copying conditions. There is NO
28350 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28352 # GNU Libtool is free software; you can redistribute it and/or modify
28353 # it under the terms of the GNU General Public License as published by
28354 # the Free Software Foundation; either version 2 of of the License, or
28355 # (at your option) any later version.
28357 # As a special exception to the GNU General Public License, if you
28358 # distribute this file as part of a program or library that is built
28359 # using GNU Libtool, you may include this file under the same
28360 # distribution terms that you use for the rest of that program.
28362 # GNU Libtool is distributed in the hope that it will be useful, but
28363 # WITHOUT ANY WARRANTY; without even the implied warranty of
28364 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28365 # GNU General Public License for more details.
28367 # You should have received a copy of the GNU General Public License
28368 # along with this program. If not, see <http://www.gnu.org/licenses/>.
28371 # The names of the tagged configurations supported by this script.
28374 # Configured defaults for sys_lib_dlsearch_path munging.
28375 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28377 # ### BEGIN LIBTOOL CONFIG
28379 # A sed program that does not truncate output.
28382 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28383 Xsed="\$SED -e 1s/^X//"
28385 # A grep program that handles long lines.
28391 # A literal string matcher.
28394 # Shell to use when invoking shell scripts.
28397 # An echo program that protects backslashes.
28400 # Whether or not to build shared libraries.
28401 build_libtool_libs=$enable_shared
28403 # Which release of libtool.m4 was used?
28404 macro_version=$macro_version
28405 macro_revision=$macro_revision
28407 # Whether or not to build static libraries.
28408 build_old_libs=$enable_static
28410 # What type of objects to build.
28413 # Whether or not to optimize for fast installation.
28414 fast_install=$enable_fast_install
28416 # Shared archive member basename,for filename based shared library versioning on AIX.
28417 shared_archive_member_spec=$shared_archive_member_spec
28419 # The PATH separator for the build system.
28420 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28423 host_alias=$host_alias
28427 # The build system.
28428 build_alias=$build_alias
28432 # A BSD- or MS-compatible name lister.
28435 # Whether we need soft or hard links.
28438 # What is the maximum length of a command?
28439 max_cmd_len=$max_cmd_len
28441 # Object file suffix (normally "o").
28444 # Executable file suffix (normally "").
28447 # whether the shell understands "unset".
28450 # turn spaces into newlines.
28453 # turn newlines into spaces.
28456 # convert \$build file names to \$host format.
28457 to_host_file_cmd=$lt_cv_to_host_file_cmd
28459 # convert \$build files to toolchain format.
28460 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28462 # An object symbol dumper.
28463 OBJDUMP=$lt_OBJDUMP
28465 # Method to check whether dependent libraries are shared objects.
28466 deplibs_check_method=$lt_deplibs_check_method
28468 # Command to use when deplibs_check_method = "file_magic".
28469 file_magic_cmd=$lt_file_magic_cmd
28471 # How to find potential files when deplibs_check_method = "file_magic".
28472 file_magic_glob=$lt_file_magic_glob
28474 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28475 want_nocaseglob=$lt_want_nocaseglob
28477 # DLL creation program.
28478 DLLTOOL=$lt_DLLTOOL
28480 # Command to associate shared and link libraries.
28481 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28486 # Flags to create an archive.
28487 AR_FLAGS=$lt_AR_FLAGS
28489 # How to feed a file listing to the archiver.
28490 archiver_list_spec=$lt_archiver_list_spec
28492 # A symbol stripping program.
28495 # Commands used to install an old-style archive.
28497 old_postinstall_cmds=$lt_old_postinstall_cmds
28498 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28500 # Whether to use a lock for old archive extraction.
28501 lock_old_archive_extraction=$lock_old_archive_extraction
28506 # LTCC compiler flags.
28507 LTCFLAGS=$lt_CFLAGS
28509 # Take the output of nm and produce a listing of raw symbols and C names.
28510 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28512 # Transform the output of nm in a proper C declaration.
28513 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28515 # Transform the output of nm into a list of symbols to manually relocate.
28516 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28518 # Transform the output of nm in a C name address pair.
28519 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28521 # Transform the output of nm in a C name address pair when lib prefix is needed.
28522 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28524 # The name lister interface.
28525 nm_interface=$lt_lt_cv_nm_interface
28527 # Specify filename containing input files for \$NM.
28528 nm_file_list_spec=$lt_nm_file_list_spec
28530 # The root where to search for dependent libraries,and where our libraries should be installed.
28531 lt_sysroot=$lt_sysroot
28533 # Command to truncate a binary pipe.
28534 lt_truncate_bin=$lt_lt_cv_truncate_bin
28536 # The name of the directory that contains temporary libtool files.
28539 # Used to examine libraries when file_magic_cmd begins with "file".
28540 MAGIC_CMD=$MAGIC_CMD
28542 # Must we lock files when doing compilation?
28543 need_locks=$lt_need_locks
28546 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28548 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28549 DSYMUTIL=$lt_DSYMUTIL
28551 # Tool to change global to local symbols on Mac OS X.
28554 # Tool to manipulate fat objects and archives on Mac OS X.
28557 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28560 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28561 OTOOL64=$lt_OTOOL64
28563 # Old archive suffix (normally "a").
28566 # Shared library suffix (normally ".so").
28567 shrext_cmds=$lt_shrext_cmds
28569 # The commands to extract the exported symbol list from a shared archive.
28570 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28572 # Variables whose values should be saved in libtool wrapper scripts and
28573 # restored at link time.
28574 variables_saved_for_relink=$lt_variables_saved_for_relink
28576 # Do we need the "lib" prefix for modules?
28577 need_lib_prefix=$need_lib_prefix
28579 # Do we need a version for libraries?
28580 need_version=$need_version
28582 # Library versioning type.
28583 version_type=$version_type
28585 # Shared library runtime path variable.
28586 runpath_var=$runpath_var
28588 # Shared library path variable.
28589 shlibpath_var=$shlibpath_var
28591 # Is shlibpath searched before the hard-coded library search path?
28592 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28594 # Format of library name prefix.
28595 libname_spec=$lt_libname_spec
28597 # List of archive names. First name is the real one, the rest are links.
28598 # The last name is the one that the linker finds with -lNAME
28599 library_names_spec=$lt_library_names_spec
28601 # The coded name of the library, if different from the real name.
28602 soname_spec=$lt_soname_spec
28604 # Permission mode override for installation of shared libraries.
28605 install_override_mode=$lt_install_override_mode
28607 # Command to use after installation of a shared archive.
28608 postinstall_cmds=$lt_postinstall_cmds
28610 # Command to use after uninstallation of a shared archive.
28611 postuninstall_cmds=$lt_postuninstall_cmds
28613 # Commands used to finish a libtool library installation in a directory.
28614 finish_cmds=$lt_finish_cmds
28616 # As "finish_cmds", except a single script fragment to be evaled but
28618 finish_eval=$lt_finish_eval
28620 # Whether we should hardcode library paths into libraries.
28621 hardcode_into_libs=$hardcode_into_libs
28623 # Compile-time system search path for libraries.
28624 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28626 # Detected run-time system search path for libraries.
28627 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28629 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28630 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28632 # Whether dlopen is supported.
28633 dlopen_support=$enable_dlopen
28635 # Whether dlopen of programs is supported.
28636 dlopen_self=$enable_dlopen_self
28638 # Whether dlopen of statically linked programs is supported.
28639 dlopen_self_static=$enable_dlopen_self_static
28641 # Commands to strip libraries.
28642 old_striplib=$lt_old_striplib
28643 striplib=$lt_striplib
28646 # The linker used to build libraries.
28649 # How to create reloadable object files.
28650 reload_flag=$lt_reload_flag
28651 reload_cmds=$lt_reload_cmds
28653 # Commands used to build an old-style archive.
28654 old_archive_cmds=$lt_old_archive_cmds
28656 # A language specific compiler.
28659 # Is the compiler the GNU compiler?
28662 # Compiler flag to turn off builtin functions.
28663 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28665 # Additional compiler flags for building library objects.
28666 pic_flag=$lt_lt_prog_compiler_pic
28668 # How to pass a linker flag through the compiler.
28669 wl=$lt_lt_prog_compiler_wl
28671 # Compiler flag to prevent dynamic linking.
28672 link_static_flag=$lt_lt_prog_compiler_static
28674 # Does compiler simultaneously support -c and -o options?
28675 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28677 # Whether or not to add -lc for building shared libraries.
28678 build_libtool_need_lc=$archive_cmds_need_lc
28680 # Whether or not to disallow shared libs when runtime libs are static.
28681 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28683 # Compiler flag to allow reflexive dlopens.
28684 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28686 # Compiler flag to generate shared objects directly from archives.
28687 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28689 # Whether the compiler copes with passing no objects directly.
28690 compiler_needs_object=$lt_compiler_needs_object
28692 # Create an old-style archive from a shared archive.
28693 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28695 # Create a temporary old-style archive to link instead of a shared archive.
28696 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28698 # Commands used to build a shared archive.
28699 archive_cmds=$lt_archive_cmds
28700 archive_expsym_cmds=$lt_archive_expsym_cmds
28702 # Commands used to build a loadable module if different from building
28703 # a shared archive.
28704 module_cmds=$lt_module_cmds
28705 module_expsym_cmds=$lt_module_expsym_cmds
28707 # Whether we are building with GNU ld or not.
28708 with_gnu_ld=$lt_with_gnu_ld
28710 # Flag that allows shared libraries with undefined symbols to be built.
28711 allow_undefined_flag=$lt_allow_undefined_flag
28713 # Flag that enforces no undefined symbols.
28714 no_undefined_flag=$lt_no_undefined_flag
28716 # Flag to hardcode \$libdir into a binary during linking.
28717 # This must work even if \$libdir does not exist
28718 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28720 # Whether we need a single "-rpath" flag with a separated argument.
28721 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28723 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28724 # DIR into the resulting binary.
28725 hardcode_direct=$hardcode_direct
28727 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28728 # DIR into the resulting binary and the resulting library dependency is
28729 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28730 # library is relocated.
28731 hardcode_direct_absolute=$hardcode_direct_absolute
28733 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28734 # into the resulting binary.
28735 hardcode_minus_L=$hardcode_minus_L
28737 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28738 # into the resulting binary.
28739 hardcode_shlibpath_var=$hardcode_shlibpath_var
28741 # Set to "yes" if building a shared library automatically hardcodes DIR
28742 # into the library and all subsequent libraries and executables linked
28744 hardcode_automatic=$hardcode_automatic
28746 # Set to yes if linker adds runtime paths of dependent libraries
28747 # to runtime path list.
28748 inherit_rpath=$inherit_rpath
28750 # Whether libtool must link a program against all its dependency libraries.
28751 link_all_deplibs=$link_all_deplibs
28753 # Set to "yes" if exported symbols are required.
28754 always_export_symbols=$always_export_symbols
28756 # The commands to list exported symbols.
28757 export_symbols_cmds=$lt_export_symbols_cmds
28759 # Symbols that should not be listed in the preloaded symbols.
28760 exclude_expsyms=$lt_exclude_expsyms
28762 # Symbols that must always be exported.
28763 include_expsyms=$lt_include_expsyms
28765 # Commands necessary for linking programs (against libraries) with templates.
28766 prelink_cmds=$lt_prelink_cmds
28768 # Commands necessary for finishing linking programs.
28769 postlink_cmds=$lt_postlink_cmds
28771 # Specify filename containing input files.
28772 file_list_spec=$lt_file_list_spec
28774 # How to hardcode a shared library path into an executable.
28775 hardcode_action=$hardcode_action
28777 # ### END LIBTOOL CONFIG
28781 cat <<'_LT_EOF' >> "$cfgfile"
28783 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28785 # func_munge_path_list VARIABLE PATH
28786 # -----------------------------------
28787 # VARIABLE is name of variable containing _space_ separated list of
28788 # directories to be munged by the contents of PATH, which is string
28791 # string "DIR[ DIR]" will be prepended to VARIABLE
28793 # string "DIR[ DIR]" will be appended to VARIABLE
28794 # "DIRP[:DIRP]::[DIRA:]DIRA"
28795 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28796 # "DIRA[ DIRA]" will be appended to VARIABLE
28798 # VARIABLE will be replaced by "DIR[ DIR]"
28799 func_munge_path_list ()
28805 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28808 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
28811 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
28812 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
28815 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
28821 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
28822 func_cc_basename ()
28824 for cc_temp in $*""; do
28826 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28827 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28832 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
28836 # ### END FUNCTIONS SHARED WITH CONFIGURE
28842 cat <<\_LT_EOF >> "$cfgfile"
28843 # AIX sometimes has problems with the GCC collect2 program. For some
28844 # reason, if we set the COLLECT_NAMES environment variable, the problems
28845 # vanish in a puff of smoke.
28846 if test set != "${COLLECT_NAMES+set}"; then
28848 export COLLECT_NAMES
28855 ltmain=$ac_aux_dir/ltmain.sh
28858 # We use sed instead of cat because bash on DJGPP gets confused if
28859 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28860 # text mode, it properly converts lines to CR/LF. This bash problem
28861 # is reportedly fixed, but why not run on old versions too?
28862 sed '$q' "$ltmain" >> "$cfgfile" \
28863 || (rm -f "$cfgfile"; exit 1)
28865 mv -f "$cfgfile" "$ofile" ||
28866 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28877 ac_clean_files=$ac_clean_files_save
28879 test $ac_write_fail = 0 ||
28880 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28883 # configure is writing to config.log, and then calls config.status.
28884 # config.status does its own redirection, appending to config.log.
28885 # Unfortunately, on DOS this fails, as config.log is still kept open
28886 # by configure, so config.status won't be able to write to it; its
28887 # output is simply discarded. So we exec the FD to /dev/null,
28888 # effectively closing config.log, so it can be properly (re)opened and
28889 # appended to by config.status. When coming back to configure, we
28890 # need to make the FD available again.
28891 if test "$no_create" != yes; then
28893 ac_config_status_args=
28894 test "$silent" = yes &&
28895 ac_config_status_args="$ac_config_status_args --quiet"
28897 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28899 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28900 # would make configure fail if this is the last instruction.
28901 $ac_cs_success || as_fn_exit 1
28905 # CONFIG_SUBDIRS section.
28907 if test "$no_recursion" != yes; then
28909 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28910 # so they do not pile up.
28911 ac_sub_configure_args=
28913 eval "set x $ac_configure_args"
28917 if test -n "$ac_prev"; then
28922 -cache-file | --cache-file | --cache-fil | --cache-fi \
28923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28924 ac_prev=cache_file ;;
28925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28929 --config-cache | -C)
28931 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28933 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28935 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28937 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28939 --disable-option-checking)
28943 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28945 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28949 # Always prepend --prefix to ensure using the same prefix
28950 # in subdir configurations.
28951 ac_arg="--prefix=$prefix"
28953 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28955 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28958 if test "$silent" = yes; then
28959 ac_sub_configure_args="--silent $ac_sub_configure_args"
28962 # Always prepend --disable-option-checking to silence warnings, since
28963 # different subdirs can have different --enable and --with options.
28964 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28967 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28969 # Do not complain, so a configure script can configure whichever
28970 # parts of a large source tree are present.
28971 test -d "$srcdir/$ac_dir" || continue
28973 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28974 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28975 $as_echo "$ac_msg" >&6
28976 as_dir="$ac_dir"; as_fn_mkdir_p
28980 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28982 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28983 # A ".." for each directory in $ac_dir_suffix.
28984 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28985 case $ac_top_builddir_sub in
28986 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28987 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28990 ac_abs_top_builddir=$ac_pwd
28991 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28992 # for backward compatibility:
28993 ac_top_builddir=$ac_top_build_prefix
28996 .) # We are building in place.
28998 ac_top_srcdir=$ac_top_builddir_sub
28999 ac_abs_top_srcdir=$ac_pwd ;;
29000 [\\/]* | ?:[\\/]* ) # Absolute name.
29001 ac_srcdir=$srcdir$ac_dir_suffix;
29002 ac_top_srcdir=$srcdir
29003 ac_abs_top_srcdir=$srcdir ;;
29004 *) # Relative name.
29005 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29006 ac_top_srcdir=$ac_top_build_prefix$srcdir
29007 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29009 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29014 # Check for guested configure; otherwise get Cygnus style configure.
29015 if test -f "$ac_srcdir/configure.gnu"; then
29016 ac_sub_configure=$ac_srcdir/configure.gnu
29017 elif test -f "$ac_srcdir/configure"; then
29018 ac_sub_configure=$ac_srcdir/configure
29019 elif test -f "$ac_srcdir/configure.in"; then
29020 # This should be Cygnus configure.
29021 ac_sub_configure=$ac_aux_dir/configure
29023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
29024 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
29028 # The recursion is here.
29029 if test -n "$ac_sub_configure"; then
29030 # Make the cache file name correct relative to the subdirectory.
29031 case $cache_file in
29032 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
29033 *) # Relative name.
29034 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
29037 { $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
29038 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
29039 # The eval makes quoting arguments work.
29040 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
29041 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
29042 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
29048 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29050 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}