2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sntp 4.2.8p13.
5 # Report bugs to <http://bugs.ntp.org./>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.ntp.org./ about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
592 PACKAGE_TARNAME='sntp'
593 PACKAGE_VERSION='4.2.8p13'
594 PACKAGE_STRING='sntp 4.2.8p13'
595 PACKAGE_BUGREPORT='http://bugs.ntp.org./'
596 PACKAGE_URL='http://www.ntp.org./'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
635 enable_option_checking=no
636 ac_subst_vars='am__EXEEXT_FALSE
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.8p13 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.8p13:";;
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.8p13
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.8p13, 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
3509 # Check whether --enable-silent-rules was given.
3510 if test "${enable_silent_rules+set}" = set; then :
3511 enableval=$enable_silent_rules;
3514 case $enable_silent_rules in # (((
3515 yes) AM_DEFAULT_VERBOSITY=0;;
3516 no) AM_DEFAULT_VERBOSITY=1;;
3517 *) AM_DEFAULT_VERBOSITY=0;;
3519 am_make=${MAKE-make}
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3521 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3522 if ${am_cv_make_support_nested_variables+:} false; then :
3523 $as_echo_n "(cached) " >&6
3525 if $as_echo 'TRUE=$(BAR$(V))
3531 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3532 am_cv_make_support_nested_variables=yes
3534 am_cv_make_support_nested_variables=no
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3538 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3539 if test $am_cv_make_support_nested_variables = yes; then
3541 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3543 AM_V=$AM_DEFAULT_VERBOSITY
3544 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3549 # Make sure we can run config.sub.
3550 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3551 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3554 $as_echo_n "checking build system type... " >&6; }
3555 if ${ac_cv_build+:} false; then :
3556 $as_echo_n "(cached) " >&6
3558 ac_build_alias=$build_alias
3559 test "x$ac_build_alias" = x &&
3560 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3561 test "x$ac_build_alias" = x &&
3562 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3563 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3564 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3568 $as_echo "$ac_cv_build" >&6; }
3569 case $ac_cv_build in
3571 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3574 ac_save_IFS=$IFS; IFS='-'
3580 # Remember, the first character of IFS is used to create $*,
3581 # except with old shells:
3584 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3588 $as_echo_n "checking host system type... " >&6; }
3589 if ${ac_cv_host+:} false; then :
3590 $as_echo_n "(cached) " >&6
3592 if test "x$host_alias" = x; then
3593 ac_cv_host=$ac_cv_build
3595 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3596 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3601 $as_echo "$ac_cv_host" >&6; }
3604 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3607 ac_save_IFS=$IFS; IFS='-'
3613 # Remember, the first character of IFS is used to create $*,
3614 # except with old shells:
3617 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3621 cat >>confdefs.h <<_ACEOF
3622 #define STR_SYSTEM "$host"
3625 ac_config_headers="$ac_config_headers config.h"
3628 DEPDIR="${am__leading_dot}deps"
3630 ac_config_commands="$ac_config_commands depfiles"
3633 am_make=${MAKE-make}
3634 cat > confinc << 'END'
3636 @echo this is the am__doit target
3639 # If we don't find an include directive, just comment out the code.
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3641 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3645 # First try GNU make style include.
3646 echo "include confinc" > confmf
3647 # Ignore all kinds of additional output from 'make'.
3648 case `$am_make -s -f confmf 2> /dev/null` in #(
3649 *the\ am__doit\ target*)
3655 # Now try BSD make style include.
3656 if test "$am__include" = "#"; then
3657 echo '.include "confinc"' > confmf
3658 case `$am_make -s -f confmf 2> /dev/null` in #(
3659 *the\ am__doit\ target*)
3660 am__include=.include
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3669 $as_echo "$_am_result" >&6; }
3670 rm -f confinc confmf
3672 # Check whether --enable-dependency-tracking was given.
3673 if test "${enable_dependency_tracking+set}" = set; then :
3674 enableval=$enable_dependency_tracking;
3677 if test "x$enable_dependency_tracking" != xno; then
3678 am_depcomp="$ac_aux_dir/depcomp"
3682 if test "x$enable_dependency_tracking" != xno; then
3702 #AC_USE_SYSTEM_EXTENSIONS
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709 if test -n "$ac_tool_prefix"; then
3710 for ac_prog in $cclist
3712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715 $as_echo_n "checking for $ac_word... " >&6; }
3716 if ${ac_cv_prog_CC+:} false; then :
3717 $as_echo_n "(cached) " >&6
3719 if test -n "$CC"; then
3720 ac_cv_prog_CC="$CC" # Let the user override the test.
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 if test -n "$CC"; then
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3742 $as_echo "$CC" >&6; }
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 $as_echo "no" >&6; }
3749 test -n "$CC" && break
3752 if test -z "$CC"; then
3754 for ac_prog in $cclist
3756 # Extract the first word of "$ac_prog", so it can be a program name with args.
3757 set dummy $ac_prog; ac_word=$2
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 $as_echo_n "checking for $ac_word... " >&6; }
3760 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3761 $as_echo_n "(cached) " >&6
3763 if test -n "$ac_ct_CC"; then
3764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773 ac_cv_prog_ac_ct_CC="$ac_prog"
3774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3784 if test -n "$ac_ct_CC"; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3786 $as_echo "$ac_ct_CC" >&6; }
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3793 test -n "$ac_ct_CC" && break
3796 if test "x$ac_ct_CC" = x; then
3799 case $cross_compiling:$ac_tool_warned in
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3803 ac_tool_warned=yes ;;
3810 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812 as_fn_error $? "no acceptable C compiler found in \$PATH
3813 See \`config.log' for more details" "$LINENO" 5; }
3815 # Provide some information about the compiler.
3816 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3819 for ac_option in --version -v -V -qversion; do
3820 { { ac_try="$ac_compiler $ac_option >&5"
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 $as_echo "$ac_try_echo"; } >&5
3827 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3829 if test -s conftest.err; then
3831 ... rest of stderr output deleted ...
3832 10q' conftest.err >conftest.er1
3833 cat conftest.er1 >&5
3835 rm -f conftest.er1 conftest.err
3836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837 test $ac_status = 0; }
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3851 ac_clean_files_save=$ac_clean_files
3852 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3853 # Try to create an executable without -o first, disregard a.out.
3854 # It will help us diagnose broken compilers, and finding out an intuition
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3857 $as_echo_n "checking whether the C compiler works... " >&6; }
3858 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3860 # The possible output files:
3861 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3864 for ac_file in $ac_files
3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3868 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3873 if { { ac_try="$ac_link_default"
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_link_default") 2>&5
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; then :
3884 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3885 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3886 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3887 # so that the user can short-circuit this test for compilers unknown to
3889 for ac_file in $ac_files ''
3891 test -f "$ac_file" || continue
3893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3896 # We found the default executable, but exeext='' is most
3900 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3902 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904 # We set ac_cv_exeext here because the later test for it is not
3905 # safe: cross compilers may not add the suffix if given an `-o'
3906 # argument, so we may need to know it at that point already.
3907 # Even if this section looks crufty: it has the advantage of
3914 test "$ac_cv_exeext" = no && ac_cv_exeext=
3919 if test -z "$ac_file"; then :
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921 $as_echo "no" >&6; }
3922 $as_echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error 77 "C compiler cannot create executables
3928 See \`config.log' for more details" "$LINENO" 5; }
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3931 $as_echo "yes" >&6; }
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3934 $as_echo_n "checking for C compiler default output file name... " >&6; }
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3936 $as_echo "$ac_file" >&6; }
3937 ac_exeext=$ac_cv_exeext
3939 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3940 ac_clean_files=$ac_clean_files_save
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3942 $as_echo_n "checking for suffix of executables... " >&6; }
3943 if { { ac_try="$ac_link"
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3949 $as_echo "$ac_try_echo"; } >&5
3950 (eval "$ac_link") 2>&5
3952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3953 test $ac_status = 0; }; then :
3954 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3955 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3956 # work properly (i.e., refer to `conftest.exe'), while it won't with
3958 for ac_file in conftest.exe conftest conftest.*; do
3959 test -f "$ac_file" || continue
3961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3962 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3970 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3971 See \`config.log' for more details" "$LINENO" 5; }
3973 rm -f conftest conftest$ac_cv_exeext
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3975 $as_echo "$ac_cv_exeext" >&6; }
3977 rm -f conftest.$ac_ext
3978 EXEEXT=$ac_cv_exeext
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3986 FILE *f = fopen ("conftest.out", "w");
3987 return ferror (f) || fclose (f) != 0;
3993 ac_clean_files="$ac_clean_files conftest.out"
3994 # Check that the compiler produces executables we can run. If not, either
3995 # the compiler is broken, or we cross compile.
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3997 $as_echo_n "checking whether we are cross compiling... " >&6; }
3998 if test "$cross_compiling" != yes; then
3999 { { ac_try="$ac_link"
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006 (eval "$ac_link") 2>&5
4008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }
4010 if { ac_try='./conftest$ac_cv_exeext'
4011 { { case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016 $as_echo "$ac_try_echo"; } >&5
4017 (eval "$ac_try") 2>&5
4019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020 test $ac_status = 0; }; }; then
4023 if test "$cross_compiling" = maybe; then
4026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4028 as_fn_error $? "cannot run C compiled programs.
4029 If you meant to cross compile, use \`--host'.
4030 See \`config.log' for more details" "$LINENO" 5; }
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4035 $as_echo "$cross_compiling" >&6; }
4037 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4038 ac_clean_files=$ac_clean_files_save
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4040 $as_echo_n "checking for suffix of object files... " >&6; }
4041 if ${ac_cv_objext+:} false; then :
4042 $as_echo_n "(cached) " >&6
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4055 rm -f conftest.o conftest.obj
4056 if { { ac_try="$ac_compile"
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 $as_echo "$ac_try_echo"; } >&5
4063 (eval "$ac_compile") 2>&5
4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }; then :
4067 for ac_file in conftest.o conftest.obj conftest.*; do
4068 test -f "$ac_file" || continue;
4070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4071 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4076 $as_echo "$as_me: failed program was:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4081 as_fn_error $? "cannot compute suffix of object files: cannot compile
4082 See \`config.log' for more details" "$LINENO" 5; }
4084 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4087 $as_echo "$ac_cv_objext" >&6; }
4088 OBJEXT=$ac_cv_objext
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4091 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4092 if ${ac_cv_c_compiler_gnu+:} false; then :
4093 $as_echo_n "(cached) " >&6
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4109 if ac_fn_c_try_compile "$LINENO"; then :
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4119 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4120 if test $ac_compiler_gnu = yes; then
4125 ac_test_CFLAGS=${CFLAGS+set}
4126 ac_save_CFLAGS=$CFLAGS
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4128 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4129 if ${ac_cv_prog_cc_g+:} false; then :
4130 $as_echo_n "(cached) " >&6
4132 ac_save_c_werror_flag=$ac_c_werror_flag
4133 ac_c_werror_flag=yes
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4147 if ac_fn_c_try_compile "$LINENO"; then :
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4162 if ac_fn_c_try_compile "$LINENO"; then :
4165 ac_c_werror_flag=$ac_save_c_werror_flag
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4178 if ac_fn_c_try_compile "$LINENO"; then :
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186 ac_c_werror_flag=$ac_save_c_werror_flag
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4189 $as_echo "$ac_cv_prog_cc_g" >&6; }
4190 if test "$ac_test_CFLAGS" = set; then
4191 CFLAGS=$ac_save_CFLAGS
4192 elif test $ac_cv_prog_cc_g = yes; then
4193 if test "$GCC" = yes; then
4199 if test "$GCC" = yes; then
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4206 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4207 if ${ac_cv_prog_cc_c89+:} false; then :
4208 $as_echo_n "(cached) " >&6
4210 ac_cv_prog_cc_c89=no
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4217 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4218 struct buf { int x; };
4219 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4220 static char *e (p, i)
4226 static char *f (char * (*g) (char **, int), char **p, ...)
4231 s = g (p, va_arg (v,int));
4236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4237 function prototypes and stuff, but not '\xHH' hex character constants.
4238 These don't provoke an error unfortunately, instead are silently treated
4239 as 'x'. The following induces an error, until -std is added to get
4240 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4241 array size at least. It's necessary to write '\x00'==0 to get something
4242 that's true only with -std. */
4243 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4245 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4246 inside strings and character constants. */
4248 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4250 int test (int i, double x);
4251 struct s1 {int (*f) (int a);};
4252 struct s2 {int (*f) (double a);};
4253 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4259 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4264 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4265 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4267 CC="$ac_save_CC $ac_arg"
4268 if ac_fn_c_try_compile "$LINENO"; then :
4269 ac_cv_prog_cc_c89=$ac_arg
4271 rm -f core conftest.err conftest.$ac_objext
4272 test "x$ac_cv_prog_cc_c89" != "xno" && break
4274 rm -f conftest.$ac_ext
4279 case "x$ac_cv_prog_cc_c89" in
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4282 $as_echo "none needed" >&6; } ;;
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4285 $as_echo "unsupported" >&6; } ;;
4287 CC="$CC $ac_cv_prog_cc_c89"
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4289 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4291 if test "x$ac_cv_prog_cc_c89" != xno; then :
4296 ac_cpp='$CPP $CPPFLAGS'
4297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302 ac_cpp='$CPP $CPPFLAGS'
4303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4307 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4308 if ${am_cv_prog_cc_c_o+:} false; then :
4309 $as_echo_n "(cached) " >&6
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4322 # Make sure it works both with $CC and with simple cc.
4323 # Following AC_PROG_CC_C_O, we do the test twice because some
4324 # compilers refuse to overwrite an existing .o file with -o,
4325 # though they will create one.
4326 am_cv_prog_cc_c_o=yes
4328 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4329 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } \
4333 && test -f conftest2.$ac_objext; then
4336 am_cv_prog_cc_c_o=no
4340 rm -f core conftest*
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4344 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4345 if test "$am_cv_prog_cc_c_o" != yes; then
4346 # Losing compiler, so override with the script.
4347 # FIXME: It is wrong to rewrite CC.
4348 # But if we don't then we get into trouble of one sort or another.
4349 # A longer-term fix would be to have automake use am__CC in this case,
4350 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4351 CC="$am_aux_dir/compile $CC"
4354 ac_cpp='$CPP $CPPFLAGS'
4355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4360 depcc="$CC" am_compiler_list=
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4363 $as_echo_n "checking dependency style of $depcc... " >&6; }
4364 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4365 $as_echo_n "(cached) " >&6
4367 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4368 # We make a subdir and do the tests there. Otherwise we can end up
4369 # making bogus files that we don't know about and never remove. For
4370 # instance it was reported that on HP-UX the gcc test will end up
4371 # making a dummy file named 'D' -- because '-MD' means "put the output
4375 # Copy depcomp to subdir because otherwise we won't find it if we're
4376 # using a relative directory.
4377 cp "$am_depcomp" conftest.dir
4379 # We will build objects and dependencies in a subdirectory because
4380 # it helps to detect inapplicable dependency modes. For instance
4381 # both Tru64's cc and ICC support -MD to output dependencies as a
4382 # side effect of compilation, but ICC will put the dependencies in
4383 # the current directory while Tru64 will put them in the object
4387 am_cv_CC_dependencies_compiler_type=none
4388 if test "$am_compiler_list" = ""; then
4389 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4392 case " $depcc " in #(
4393 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4396 for depmode in $am_compiler_list; do
4397 # Setup a source with many dependencies, because some compilers
4398 # like to wrap large dependency lists on column 80 (with \), and
4399 # we should not choose a depcomp mode which is confused by this.
4401 # We need to recreate these files for each test, as the compiler may
4402 # overwrite some of them when testing with obscure command lines.
4403 # This happens at least with the AIX C compiler.
4405 for i in 1 2 3 4 5 6; do
4406 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4407 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4408 # Solaris 10 /bin/sh.
4409 echo '/* dummy */' > sub/conftst$i.h
4411 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4413 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4414 # mode. It turns out that the SunPro C++ compiler does not properly
4415 # handle '-M -o', and we need to detect this. Also, some Intel
4416 # versions had trouble with output in subdirs.
4417 am__obj=sub/conftest.${OBJEXT-o}
4418 am__minus_obj="-o $am__obj"
4421 # This depmode causes a compiler race in universal mode.
4422 test "$am__universal" = false || continue
4425 # After this tag, mechanisms are not by side-effect, so they'll
4426 # only be used when explicitly requested.
4427 if test "x$enable_dependency_tracking" = xyes; then
4433 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4434 # This compiler won't grok '-c -o', but also, the minuso test has
4435 # not run yet. These depmodes are late enough in the game, and
4436 # so weak that their functioning should not be impacted.
4437 am__obj=conftest.${OBJEXT-o}
4442 if depmode=$depmode \
4443 source=sub/conftest.c object=$am__obj \
4444 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4445 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4446 >/dev/null 2>conftest.err &&
4447 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4448 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4449 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4450 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4451 # icc doesn't choke on unknown options, it will just issue warnings
4452 # or remarks (even with -Werror). So we grep stderr for any message
4453 # that says an option was ignored or not supported.
4454 # When given -MP, icc 7.0 and 7.1 complain thusly:
4455 # icc: Command line warning: ignoring option '-M'; no argument required
4456 # The diagnosis changed in icc 8.0:
4457 # icc: Command line remark: option '-MP' not supported
4458 if (grep 'ignoring option' conftest.err ||
4459 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4460 am_cv_CC_dependencies_compiler_type=$depmode
4469 am_cv_CC_dependencies_compiler_type=none
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4474 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4475 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4478 test "x$enable_dependency_tracking" != xno \
4479 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4481 am__fastdepCC_FALSE='#'
4483 am__fastdepCC_TRUE='#'
4484 am__fastdepCC_FALSE=
4492 ac_cpp='$CPP $CPPFLAGS'
4493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4497 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4498 # On Suns, sometimes $CPP names a directory.
4499 if test -n "$CPP" && test -d "$CPP"; then
4502 if test -z "$CPP"; then
4503 if ${ac_cv_prog_CPP+:} false; then :
4504 $as_echo_n "(cached) " >&6
4506 # Double quotes because CPP needs to be expanded
4507 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4510 for ac_c_preproc_warn_flag in '' yes
4512 # Use a header file that comes with gcc, so configuring glibc
4513 # with a fresh cross-compiler works.
4514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4515 # <limits.h> exists even on freestanding compilers.
4516 # On the NeXT, cc -E runs the code through the compiler's parser,
4517 # not just through cpp. "Syntax error" is here to catch this case.
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4521 # include <limits.h>
4523 # include <assert.h>
4527 if ac_fn_c_try_cpp "$LINENO"; then :
4530 # Broken: fails on valid input.
4533 rm -f conftest.err conftest.i conftest.$ac_ext
4535 # OK, works on sane cases. Now check whether nonexistent headers
4536 # can be detected and how.
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4539 #include <ac_nonexistent.h>
4541 if ac_fn_c_try_cpp "$LINENO"; then :
4542 # Broken: success on invalid input.
4545 # Passes both tests.
4549 rm -f conftest.err conftest.i conftest.$ac_ext
4552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4553 rm -f conftest.i conftest.err conftest.$ac_ext
4554 if $ac_preproc_ok; then :
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4567 $as_echo "$CPP" >&6; }
4569 for ac_c_preproc_warn_flag in '' yes
4571 # Use a header file that comes with gcc, so configuring glibc
4572 # with a fresh cross-compiler works.
4573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4574 # <limits.h> exists even on freestanding compilers.
4575 # On the NeXT, cc -E runs the code through the compiler's parser,
4576 # not just through cpp. "Syntax error" is here to catch this case.
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4580 # include <limits.h>
4582 # include <assert.h>
4586 if ac_fn_c_try_cpp "$LINENO"; then :
4589 # Broken: fails on valid input.
4592 rm -f conftest.err conftest.i conftest.$ac_ext
4594 # OK, works on sane cases. Now check whether nonexistent headers
4595 # can be detected and how.
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598 #include <ac_nonexistent.h>
4600 if ac_fn_c_try_cpp "$LINENO"; then :
4601 # Broken: success on invalid input.
4604 # Passes both tests.
4608 rm -f conftest.err conftest.i conftest.$ac_ext
4611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4612 rm -f conftest.i conftest.err conftest.$ac_ext
4613 if $ac_preproc_ok; then :
4616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4618 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4619 See \`config.log' for more details" "$LINENO" 5; }
4623 ac_cpp='$CPP $CPPFLAGS'
4624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4630 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4631 if ${ac_cv_path_GREP+:} false; then :
4632 $as_echo_n "(cached) " >&6
4634 if test -z "$GREP"; then
4635 ac_path_GREP_found=false
4636 # Loop through the user's path and test for each of PROGNAME-LIST
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4641 test -z "$as_dir" && as_dir=.
4642 for ac_prog in grep ggrep; do
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4645 as_fn_executable_p "$ac_path_GREP" || continue
4646 # Check for GNU ac_path_GREP and select it if it is found.
4647 # Check for GNU $ac_path_GREP
4648 case `"$ac_path_GREP" --version 2>&1` in
4650 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4653 $as_echo_n 0123456789 >"conftest.in"
4656 cat "conftest.in" "conftest.in" >"conftest.tmp"
4657 mv "conftest.tmp" "conftest.in"
4658 cp "conftest.in" "conftest.nl"
4659 $as_echo 'GREP' >> "conftest.nl"
4660 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4662 as_fn_arith $ac_count + 1 && ac_count=$as_val
4663 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4664 # Best one so far, save it but keep looking for a better one
4665 ac_cv_path_GREP="$ac_path_GREP"
4666 ac_path_GREP_max=$ac_count
4668 # 10*(2^10) chars as input seems more than enough
4669 test $ac_count -gt 10 && break
4671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4674 $ac_path_GREP_found && break 3
4679 if test -z "$ac_cv_path_GREP"; then
4680 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4683 ac_cv_path_GREP=$GREP
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4688 $as_echo "$ac_cv_path_GREP" >&6; }
4689 GREP="$ac_cv_path_GREP"
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4693 $as_echo_n "checking for egrep... " >&6; }
4694 if ${ac_cv_path_EGREP+:} false; then :
4695 $as_echo_n "(cached) " >&6
4697 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4698 then ac_cv_path_EGREP="$GREP -E"
4700 if test -z "$EGREP"; then
4701 ac_path_EGREP_found=false
4702 # Loop through the user's path and test for each of PROGNAME-LIST
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4707 test -z "$as_dir" && as_dir=.
4708 for ac_prog in egrep; do
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4711 as_fn_executable_p "$ac_path_EGREP" || continue
4712 # Check for GNU ac_path_EGREP and select it if it is found.
4713 # Check for GNU $ac_path_EGREP
4714 case `"$ac_path_EGREP" --version 2>&1` in
4716 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4719 $as_echo_n 0123456789 >"conftest.in"
4722 cat "conftest.in" "conftest.in" >"conftest.tmp"
4723 mv "conftest.tmp" "conftest.in"
4724 cp "conftest.in" "conftest.nl"
4725 $as_echo 'EGREP' >> "conftest.nl"
4726 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4728 as_fn_arith $ac_count + 1 && ac_count=$as_val
4729 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4730 # Best one so far, save it but keep looking for a better one
4731 ac_cv_path_EGREP="$ac_path_EGREP"
4732 ac_path_EGREP_max=$ac_count
4734 # 10*(2^10) chars as input seems more than enough
4735 test $ac_count -gt 10 && break
4737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4740 $ac_path_EGREP_found && break 3
4745 if test -z "$ac_cv_path_EGREP"; then
4746 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4749 ac_cv_path_EGREP=$EGREP
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4755 $as_echo "$ac_cv_path_EGREP" >&6; }
4756 EGREP="$ac_cv_path_EGREP"
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4760 $as_echo_n "checking for ANSI C header files... " >&6; }
4761 if ${ac_cv_header_stdc+:} false; then :
4762 $as_echo_n "(cached) " >&6
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4779 if ac_fn_c_try_compile "$LINENO"; then :
4780 ac_cv_header_stdc=yes
4782 ac_cv_header_stdc=no
4784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 if test $ac_cv_header_stdc = yes; then
4787 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4794 $EGREP "memchr" >/dev/null 2>&1; then :
4797 ac_cv_header_stdc=no
4803 if test $ac_cv_header_stdc = yes; then
4804 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4811 $EGREP "free" >/dev/null 2>&1; then :
4814 ac_cv_header_stdc=no
4820 if test $ac_cv_header_stdc = yes; then
4821 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4822 if test "$cross_compiling" = yes; then :
4825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826 /* end confdefs.h. */
4829 #if ((' ' & 0x0FF) == 0x020)
4830 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4831 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4833 # define ISLOWER(c) \
4834 (('a' <= (c) && (c) <= 'i') \
4835 || ('j' <= (c) && (c) <= 'r') \
4836 || ('s' <= (c) && (c) <= 'z'))
4837 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4845 for (i = 0; i < 256; i++)
4846 if (XOR (islower (i), ISLOWER (i))
4847 || toupper (i) != TOUPPER (i))
4852 if ac_fn_c_try_run "$LINENO"; then :
4855 ac_cv_header_stdc=no
4857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4858 conftest.$ac_objext conftest.beam conftest.$ac_ext
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4864 $as_echo "$ac_cv_header_stdc" >&6; }
4865 if test $ac_cv_header_stdc = yes; then
4867 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4871 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4872 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4873 inttypes.h stdint.h unistd.h
4875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4876 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4878 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4879 cat >>confdefs.h <<_ACEOF
4880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4889 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4890 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4897 if test "$MINIX" = yes; then
4899 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4902 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4905 $as_echo "#define _MINIX 1" >>confdefs.h
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4911 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4912 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4913 $as_echo_n "(cached) " >&6
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4918 # define __EXTENSIONS__ 1
4919 $ac_includes_default
4928 if ac_fn_c_try_compile "$LINENO"; then :
4929 ac_cv_safe_to_define___extensions__=yes
4931 ac_cv_safe_to_define___extensions__=no
4933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4936 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4937 test $ac_cv_safe_to_define___extensions__ = yes &&
4938 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4940 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4942 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4944 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4946 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4950 case $ac_cv_prog_cc_stdc in #(
4952 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4955 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4956 if ${ac_cv_prog_cc_c99+:} false; then :
4957 $as_echo_n "(cached) " >&6
4959 ac_cv_prog_cc_c99=no
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4964 #include <stdbool.h>
4969 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4970 #define debug(...) fprintf (stderr, __VA_ARGS__)
4971 #define showlist(...) puts (#__VA_ARGS__)
4972 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4974 test_varargs_macros (void)
4979 debug ("X = %d\n", x);
4980 showlist (The first, second, and third items.);
4981 report (x>y, "x is %d but y is %d", x, y);
4984 // Check long long types.
4985 #define BIG64 18446744073709551615ull
4986 #define BIG32 4294967295ul
4987 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4989 your preprocessor is broken;
4993 your preprocessor is broken;
4995 static long long int bignum = -9223372036854775807LL;
4996 static unsigned long long int ubignum = BIG64;
4998 struct incomplete_array
5006 const wchar_t *name;
5010 typedef const char *ccp;
5013 test_restrict (ccp restrict text)
5015 // See if C++-style comments work.
5016 // Iterate through items via the restricted pointer.
5017 // Also check for declarations in for loops.
5018 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5023 // Check varargs and va_copy.
5025 test_varargs (const char *format, ...)
5028 va_start (args, format);
5030 va_copy (args_copy, args);
5041 str = va_arg (args_copy, const char *);
5044 number = va_arg (args_copy, int);
5047 fnumber = va_arg (args_copy, double);
5062 _Bool success = false;
5065 if (test_restrict ("String literal") == 0)
5067 char *restrict newvar = "Another string";
5070 test_varargs ("s, d' f .", "string", 65, 34.234);
5071 test_varargs_macros ();
5073 // Check flexible array members.
5074 struct incomplete_array *ia =
5075 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5077 for (int i = 0; i < ia->datasize; ++i)
5078 ia->data[i] = i * 1.234;
5080 // Check named initializers.
5081 struct named_init ni = {
5083 .name = L"Test wide string",
5084 .average = 543.34343,
5089 int dynamic_array[ni.number];
5090 dynamic_array[ni.number - 1] = 543;
5092 // work around unused variable warnings
5093 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5094 || dynamic_array[ni.number - 1] != 543);
5100 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5102 CC="$ac_save_CC $ac_arg"
5103 if ac_fn_c_try_compile "$LINENO"; then :
5104 ac_cv_prog_cc_c99=$ac_arg
5106 rm -f core conftest.err conftest.$ac_objext
5107 test "x$ac_cv_prog_cc_c99" != "xno" && break
5109 rm -f conftest.$ac_ext
5114 case "x$ac_cv_prog_cc_c99" in
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5117 $as_echo "none needed" >&6; } ;;
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5120 $as_echo "unsupported" >&6; } ;;
5122 CC="$CC $ac_cv_prog_cc_c99"
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5124 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5126 if test "x$ac_cv_prog_cc_c99" != xno; then :
5127 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5130 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5131 if ${ac_cv_prog_cc_c89+:} false; then :
5132 $as_echo_n "(cached) " >&6
5134 ac_cv_prog_cc_c89=no
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5141 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5142 struct buf { int x; };
5143 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5144 static char *e (p, i)
5150 static char *f (char * (*g) (char **, int), char **p, ...)
5155 s = g (p, va_arg (v,int));
5160 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5161 function prototypes and stuff, but not '\xHH' hex character constants.
5162 These don't provoke an error unfortunately, instead are silently treated
5163 as 'x'. The following induces an error, until -std is added to get
5164 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5165 array size at least. It's necessary to write '\x00'==0 to get something
5166 that's true only with -std. */
5167 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5169 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5170 inside strings and character constants. */
5172 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5174 int test (int i, double x);
5175 struct s1 {int (*f) (int a);};
5176 struct s2 {int (*f) (double a);};
5177 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5183 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5188 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5189 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5191 CC="$ac_save_CC $ac_arg"
5192 if ac_fn_c_try_compile "$LINENO"; then :
5193 ac_cv_prog_cc_c89=$ac_arg
5195 rm -f core conftest.err conftest.$ac_objext
5196 test "x$ac_cv_prog_cc_c89" != "xno" && break
5198 rm -f conftest.$ac_ext
5203 case "x$ac_cv_prog_cc_c89" in
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5206 $as_echo "none needed" >&6; } ;;
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5209 $as_echo "unsupported" >&6; } ;;
5211 CC="$CC $ac_cv_prog_cc_c89"
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5213 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5215 if test "x$ac_cv_prog_cc_c89" != xno; then :
5216 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5218 ac_cv_prog_cc_stdc=no
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5225 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5226 if ${ac_cv_prog_cc_stdc+:} false; then :
5227 $as_echo_n "(cached) " >&6
5230 case $ac_cv_prog_cc_stdc in #(
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5233 $as_echo "unsupported" >&6; } ;; #(
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5236 $as_echo "none needed" >&6; } ;; #(
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5239 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5246 # Ralf Wildenhues: With per-target flags we need CC_C_O
5247 # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
5249 if test $ac_cv_c_compiler_gnu = yes; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5251 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5252 if ${ac_cv_prog_gcc_traditional+:} false; then :
5253 $as_echo_n "(cached) " >&6
5255 ac_pattern="Autoconf.*'x'"
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5262 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5263 ac_cv_prog_gcc_traditional=yes
5265 ac_cv_prog_gcc_traditional=no
5270 if test $ac_cv_prog_gcc_traditional = no; then
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5277 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5278 ac_cv_prog_gcc_traditional=yes
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5285 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5286 if test $ac_cv_prog_gcc_traditional = yes; then
5287 CC="$CC -traditional"
5302 case "$ac_cv_prog_cc_c89" in
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5305 version 4.2.5 and higher." >&5
5306 $as_echo "$as_me: WARNING: ANSI C89/ISO C90 is the minimum to compile NTP
5307 version 4.2.5 and higher." >&2;}
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
5312 $as_echo_n "checking if $CC can handle #warning... " >&6; }
5313 if ${ntp_cv_cpp_warning+:} false; then :
5314 $as_echo_n "(cached) " >&6
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5327 if ac_fn_c_try_compile "$LINENO"; then :
5328 ntp_cv_cpp_warning=yes
5330 ntp_cv_cpp_warning=no
5333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cpp_warning" >&5
5337 $as_echo "$ntp_cv_cpp_warning" >&6; }
5338 case "$ntp_cv_cpp_warning" in
5341 $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__((...))" >&5
5346 $as_echo_n "checking if $CC supports __attribute__((...))... " >&6; }
5347 if ${ntp_cv_cc_attribute+:} false; then :
5348 $as_echo_n "(cached) " >&6
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5356 void foo(void) __attribute__((__noreturn__));
5362 if ac_fn_c_try_compile "$LINENO"; then :
5363 ntp_cv_cc_attribute=yes
5365 ntp_cv_cc_attribute=no
5368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_cc_attribute" >&5
5372 $as_echo "$ntp_cv_cc_attribute" >&6; }
5373 case "$ntp_cv_cc_attribute" in
5376 $as_echo "#define HAVE___ATTRIBUTE__ /**/" >>confdefs.h
5383 SAVED_CFLAGS="$CFLAGS"
5384 CFLAGS="$CFLAGS -Wstrict-overflow"
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
5386 $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
5387 if ${ntp_cv_gcc_Wstrict_overflow+:} false; then :
5388 $as_echo_n "(cached) " >&6
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5401 if ac_fn_c_try_compile "$LINENO"; then :
5402 ntp_cv_gcc_Wstrict_overflow=yes
5404 ntp_cv_gcc_Wstrict_overflow=no
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Wstrict_overflow" >&5
5411 $as_echo "$ntp_cv_gcc_Wstrict_overflow" >&6; }
5413 # $ntp_cv_gcc_Wstrict_overflow is tested later to add the
5416 CFLAGS="$SAVED_CFLAGS -Winit-self"
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
5418 $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
5419 if ${ntp_cv_gcc_Winit_self+:} false; then :
5420 $as_echo_n "(cached) " >&6
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5434 if ac_fn_c_try_compile "$LINENO"; then :
5435 ntp_cv_gcc_Winit_self=yes
5437 ntp_cv_gcc_Winit_self=no
5440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gcc_Winit_self" >&5
5445 $as_echo "$ntp_cv_gcc_Winit_self" >&6; }
5446 CFLAGS="$SAVED_CFLAGS"
5447 { SAVED_CFLAGS=; unset SAVED_CFLAGS;}
5449 # $ntp_cv_gcc_Winit_self is tested later to add the
5450 # flag to CFLAGS_NTP.
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
5453 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
5454 if ${ntp_cv_gc_sections_runs+:} false; then :
5455 $as_echo_n "(cached) " >&6
5458 origCFLAGS="$CFLAGS"
5459 CFLAGS="$CFLAGS -Wl,--gc-sections"
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5473 int read_success_once;
5475 fpC = fopen("conftest.c", "r");
5479 cch = fread(buf, sizeof(buf), 1, fpC);
5480 read_success_once |= (0 != cch);
5482 if (!read_success_once)
5486 if (0 != fclose(fpC))
5496 if ac_fn_c_try_link "$LINENO"; then :
5498 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
5499 ntp_cv_gc_sections_runs=no
5501 ntp_cv_gc_sections_runs=no
5502 ./conftest >/dev/null 2>&1 && ntp_cv_gc_sections_runs=yes
5506 ntp_cv_gc_sections_runs=no
5509 rm -f core conftest.err conftest.$ac_objext \
5510 conftest$ac_exeext conftest.$ac_ext
5511 CFLAGS="$origCFLAGS"
5512 { origCFLAGS=; unset origCFLAGS;}
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_gc_sections_runs" >&5
5517 $as_echo "$ntp_cv_gc_sections_runs" >&6; }
5518 case "$ntp_cv_gc_sections_runs" in
5520 LDADD_LIBNTP="-Wl,--gc-sections"
5521 CFLAGS_NTP="$CFLAGS_NTP -ffunction-sections -fdata-sections"
5527 CFLAGS_NTP="$CFLAGS_NTP -Wall"
5528 CFLAGS_NTP="$CFLAGS_NTP -Wcast-align"
5529 CFLAGS_NTP="$CFLAGS_NTP -Wcast-qual"
5530 # CFLAGS_NTP="$CFLAGS_NTP -Wconversion"
5531 # CFLAGS_NTP="$CFLAGS_NTP -Werror"
5532 # CFLAGS_NTP="$CFLAGS_NTP -Wextra"
5533 # CFLAGS_NTP="$CFLAGS_NTP -Wfloat-equal"
5534 CFLAGS_NTP="$CFLAGS_NTP -Wmissing-prototypes"
5535 CFLAGS_NTP="$CFLAGS_NTP -Wpointer-arith"
5536 CFLAGS_NTP="$CFLAGS_NTP -Wshadow"
5537 # CFLAGS_NTP="$CFLAGS_NTP -Wtraditional"
5538 # CFLAGS_NTP="$CFLAGS_NTP -Wwrite-strings"
5539 case "$ntp_cv_gcc_Winit_self" in
5541 CFLAGS_NTP="$CFLAGS_NTP -Winit-self"
5543 case "$ntp_cv_gcc_Wstrict_overflow" in
5545 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-overflow"
5547 # -W[no-]strict-prototypes might be added by NTP_OPENSSL
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
5552 $as_echo_n "checking additional compiler flags... " >&6; }
5553 # allow ntp_os_cflags to be preset to skip this stuff
5554 case "${ntp_os_cflags+set}" in
5563 # turn on additional headers
5564 ntp_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
5567 # avoid circular dependencies in yp headers, and more
5568 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
5569 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS -D_MSGQSUPPORT"
5572 # XXX Only verified thru AIX6.
5573 # aix7 seems to need a different XOPEN_SOURCE_EXTENDED thing.
5574 # avoid circular dependencies in yp headers
5575 # _XOPEN_SOURCE=500 = X/Open 5: POSIX 1995
5576 # _XOPEN_SOURCE=600 = X/Open 6: POSIX 2004
5577 # _XOPEN_SOURCE=700 = X/Open 7: POSIX 2008
5578 ntp_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_SOURCE=600"
5579 ntp_os_cflags="${ntp_os_cflags} -D_USE_IRS"
5582 ntp_os_cflags="-DSYS_AMIGA"
5584 darwin*|macosx*|rhapsody*)
5585 ntp_os_cflags="-D_P1003_1B_VISIBLE"
5587 hpux10.*) # at least for hppa2.0-hp-hpux10.20
5592 # use Ansi compiler on HPUX, and some -Wp magic
5593 ntp_os_cflags="-Ae -Wp,-H18816"
5596 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5603 # use Ansi compiler on HPUX
5606 ntp_os_cflags="${ntp_os_cflags} -D_HPUX_SOURCE -D__STDC_VERSION__=199901L"
5611 # do not use 64-bit compiler
5612 ntp_os_cflags="-n32 -mips3 -Wl,-woff,84"
5616 ntp_os_cflags="-posix"
5618 solaris1*|solaris2.[0-5]|solaris2.5.*)
5620 sunos[34]*|sunos5.[0-5]|sunos5.5.*)
5623 # turn on 64-bit file offset interface
5624 ntp_os_cflags="-D_LARGEFILE64_SOURCE"
5631 # Quick and dirty sanity check
5632 case "$VX_KERNEL" in
5634 as_fn_error $? "See html/build/hints/vxworks.html" "$LINENO" 5
5636 ntp_os_cflags="-DSYS_VXWORKS"
5641 case "$ntp_os_cflags" in
5643 ntp_os_cflags_msg="none needed"
5646 ntp_os_cflags_msg="$ntp_os_cflags"
5648 CFLAGS_NTP="$CFLAGS_NTP $ntp_os_cflags"
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_cflags_msg" >&5
5650 $as_echo "$ntp_os_cflags_msg" >&6; }
5651 { ntp_os_cflags_msg=; unset ntp_os_cflags_msg;}
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional linker flags" >&5
5654 $as_echo_n "checking additional linker flags... " >&6; }
5655 # HMS: The following might still need tweaking
5656 # allow ntp_os_ldflags to be preset to skip this stuff
5657 case "${ntp_os_ldflags+set}" in
5666 ntp_os_ldflags="-Wl,+allowdups"
5673 case "$ntp_os_ldflags" in
5675 ntp_os_ldflags_msg="none needed"
5678 ntp_os_ldflags_msg="$ntp_os_ldflags"
5680 LDFLAGS_NTP="$LDFLAGS_NTP $ntp_os_ldflags"
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_os_ldflags_msg" >&5
5682 $as_echo "$ntp_os_ldflags_msg" >&6; }
5683 { ntp_os_ldflags_msg=; unset ntp_os_ldflags_msg;}
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5687 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5688 if ${ac_cv_c_bigendian+:} false; then :
5689 $as_echo_n "(cached) " >&6
5691 ac_cv_c_bigendian=unknown
5692 # See if we're dealing with a universal compiler.
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5695 #ifndef __APPLE_CC__
5696 not a universal capable compiler
5701 if ac_fn_c_try_compile "$LINENO"; then :
5703 # Check for potential -arch flags. It is not universal unless
5704 # there are at least two -arch flags with different values.
5707 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5708 if test -n "$ac_prev"; then
5710 i?86 | x86_64 | ppc | ppc64)
5711 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5714 ac_cv_c_bigendian=universal
5720 elif test "x$ac_word" = "x-arch"; then
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726 if test $ac_cv_c_bigendian = unknown; then
5727 # See if sys/param.h defines the BYTE_ORDER macro.
5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5729 /* end confdefs.h. */
5730 #include <sys/types.h>
5731 #include <sys/param.h>
5736 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5737 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5746 if ac_fn_c_try_compile "$LINENO"; then :
5747 # It does; now see whether it defined to BIG_ENDIAN or not.
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 #include <sys/types.h>
5751 #include <sys/param.h>
5756 #if BYTE_ORDER != BIG_ENDIAN
5764 if ac_fn_c_try_compile "$LINENO"; then :
5765 ac_cv_c_bigendian=yes
5767 ac_cv_c_bigendian=no
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 if test $ac_cv_c_bigendian = unknown; then
5774 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5782 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5790 if ac_fn_c_try_compile "$LINENO"; then :
5791 # It does; now see whether it defined to _BIG_ENDIAN or not.
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5807 if ac_fn_c_try_compile "$LINENO"; then :
5808 ac_cv_c_bigendian=yes
5810 ac_cv_c_bigendian=no
5812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816 if test $ac_cv_c_bigendian = unknown; then
5817 # Compile a test program.
5818 if test "$cross_compiling" = yes; then :
5819 # Try to guess by grepping values from an object file.
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 short int ascii_mm[] =
5823 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5824 short int ascii_ii[] =
5825 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5826 int use_ascii (int i) {
5827 return ascii_mm[i] + ascii_ii[i];
5829 short int ebcdic_ii[] =
5830 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5831 short int ebcdic_mm[] =
5832 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5833 int use_ebcdic (int i) {
5834 return ebcdic_mm[i] + ebcdic_ii[i];
5841 return use_ascii (foo) == use_ebcdic (foo);
5846 if ac_fn_c_try_compile "$LINENO"; then :
5847 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5848 ac_cv_c_bigendian=yes
5850 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5851 if test "$ac_cv_c_bigendian" = unknown; then
5852 ac_cv_c_bigendian=no
5854 # finding both strings is unlikely to happen, but who knows?
5855 ac_cv_c_bigendian=unknown
5859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 $ac_includes_default
5868 /* Are we little or big endian? From Harbison&Steele. */
5872 char c[sizeof (long int)];
5875 return u.c[sizeof (long int) - 1] == 1;
5881 if ac_fn_c_try_run "$LINENO"; then :
5882 ac_cv_c_bigendian=no
5884 ac_cv_c_bigendian=yes
5886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5887 conftest.$ac_objext conftest.beam conftest.$ac_ext
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5893 $as_echo "$ac_cv_c_bigendian" >&6; }
5894 case $ac_cv_c_bigendian in #(
5896 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5902 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5906 as_fn_error $? "unknown endianness
5907 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5911 $as_echo_n "checking for working volatile... " >&6; }
5912 if ${ac_cv_c_volatile+:} false; then :
5913 $as_echo_n "(cached) " >&6
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5923 int * volatile y = (int *) 0;
5929 if ac_fn_c_try_compile "$LINENO"; then :
5930 ac_cv_c_volatile=yes
5934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5937 $as_echo "$ac_cv_c_volatile" >&6; }
5938 if test $ac_cv_c_volatile = no; then
5940 $as_echo "#define volatile /**/" >>confdefs.h
5945 ac_cpp='$CPP $CPPFLAGS'
5946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5950 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5951 # On Suns, sometimes $CPP names a directory.
5952 if test -n "$CPP" && test -d "$CPP"; then
5955 if test -z "$CPP"; then
5956 if ${ac_cv_prog_CPP+:} false; then :
5957 $as_echo_n "(cached) " >&6
5959 # Double quotes because CPP needs to be expanded
5960 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5963 for ac_c_preproc_warn_flag in '' yes
5965 # Use a header file that comes with gcc, so configuring glibc
5966 # with a fresh cross-compiler works.
5967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5968 # <limits.h> exists even on freestanding compilers.
5969 # On the NeXT, cc -E runs the code through the compiler's parser,
5970 # not just through cpp. "Syntax error" is here to catch this case.
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5974 # include <limits.h>
5976 # include <assert.h>
5980 if ac_fn_c_try_cpp "$LINENO"; then :
5983 # Broken: fails on valid input.
5986 rm -f conftest.err conftest.i conftest.$ac_ext
5988 # OK, works on sane cases. Now check whether nonexistent headers
5989 # can be detected and how.
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 #include <ac_nonexistent.h>
5994 if ac_fn_c_try_cpp "$LINENO"; then :
5995 # Broken: success on invalid input.
5998 # Passes both tests.
6002 rm -f conftest.err conftest.i conftest.$ac_ext
6005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6006 rm -f conftest.i conftest.err conftest.$ac_ext
6007 if $ac_preproc_ok; then :
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6020 $as_echo "$CPP" >&6; }
6022 for ac_c_preproc_warn_flag in '' yes
6024 # Use a header file that comes with gcc, so configuring glibc
6025 # with a fresh cross-compiler works.
6026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6027 # <limits.h> exists even on freestanding compilers.
6028 # On the NeXT, cc -E runs the code through the compiler's parser,
6029 # not just through cpp. "Syntax error" is here to catch this case.
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6033 # include <limits.h>
6035 # include <assert.h>
6039 if ac_fn_c_try_cpp "$LINENO"; then :
6042 # Broken: fails on valid input.
6045 rm -f conftest.err conftest.i conftest.$ac_ext
6047 # OK, works on sane cases. Now check whether nonexistent headers
6048 # can be detected and how.
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 #include <ac_nonexistent.h>
6053 if ac_fn_c_try_cpp "$LINENO"; then :
6054 # Broken: success on invalid input.
6057 # Passes both tests.
6061 rm -f conftest.err conftest.i conftest.$ac_ext
6064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6065 rm -f conftest.i conftest.err conftest.$ac_ext
6066 if $ac_preproc_ok; then :
6069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6071 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6072 See \`config.log' for more details" "$LINENO" 5; }
6076 ac_cpp='$CPP $CPPFLAGS'
6077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile/link hardening flags" >&5
6086 $as_echo_n "checking for compile/link hardening flags... " >&6; }
6089 # Check whether --with-hardenfile was given.
6090 if test "${with_hardenfile+set}" = set; then :
6091 withval=$with_hardenfile;
6099 SENTINEL_DIR="$PWD" && \
6101 case "$with_hardenfile" in \
6103 scripts/genHardFlags -d "$SENTINEL_DIR" \
6106 scripts/genHardFlags -d "$SENTINEL_DIR" -f "$with_hardenfile" \
6109 ) > genHardFlags.i 2> genHardFlags.err
6112 case "$GENHARDFLAG" in
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENHARDFLAGFILE" >&5
6115 $as_echo "in file $GENHARDFLAGFILE" >&6; }
6116 rm genHardFlags.err genHardFlags.i
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6120 $as_echo "failed." >&6; }
6121 as_fn_error $? "Problem with genHardFlags!" "$LINENO" 5
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install dir and man conventions" >&5
6134 $as_echo_n "checking for install dir and man conventions... " >&6; }
6137 # Check whether --with-locfile was given.
6138 if test "${with_locfile+set}" = set; then :
6139 withval=$with_locfile;
6147 SENTINEL_DIR="$PWD" && \
6149 case "$with_locfile" in \
6151 scripts/genLocInfo -d "$SENTINEL_DIR" \
6154 scripts/genLocInfo -d "$SENTINEL_DIR" -f "$with_locfile" \
6157 ) > genLocInfo.i 2> genLocInfo.err
6160 case "$GENLOCINFO" in
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in file $GENLOCINFOFILE" >&5
6163 $as_echo "in file $GENLOCINFOFILE" >&6; }
6164 rm genLocInfo.err genLocInfo.i
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed." >&5
6168 $as_echo "failed." >&6; }
6169 as_fn_error $? "Problem with genLocInfo!" "$LINENO" 5
6173 if test "$CALC_TICKADJ_MS" ; then
6174 WANT_CALC_TICKADJ_MS_TRUE=
6175 WANT_CALC_TICKADJ_MS_FALSE='#'
6177 WANT_CALC_TICKADJ_MS_TRUE='#'
6178 WANT_CALC_TICKADJ_MS_FALSE=
6223 if test -z "$NTPSWEEP_NI" ; then
6224 INSTALL_NTPSWEEP_TRUE=
6225 INSTALL_NTPSWEEP_FALSE='#'
6227 INSTALL_NTPSWEEP_TRUE='#'
6228 INSTALL_NTPSWEEP_FALSE=
6271 if test -z "$UPDATE_LEAP_NI" ; then
6272 INSTALL_UPDATE_LEAP_TRUE=
6273 INSTALL_UPDATE_LEAP_FALSE='#'
6275 INSTALL_UPDATE_LEAP_TRUE='#'
6276 INSTALL_UPDATE_LEAP_FALSE=
6282 if test -n "$ac_tool_prefix"; then
6283 for ac_prog in ar lib "link -lib"
6285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if ${ac_cv_prog_AR+:} false; then :
6290 $as_echo_n "(cached) " >&6
6292 if test -n "$AR"; then
6293 ac_cv_prog_AR="$AR" # Let the user override the test.
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6302 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 if test -n "$AR"; then
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6315 $as_echo "$AR" >&6; }
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6322 test -n "$AR" && break
6325 if test -z "$AR"; then
6327 for ac_prog in ar lib "link -lib"
6329 # Extract the first word of "$ac_prog", so it can be a program name with args.
6330 set dummy $ac_prog; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6334 $as_echo_n "(cached) " >&6
6336 if test -n "$ac_ct_AR"; then
6337 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6346 ac_cv_prog_ac_ct_AR="$ac_prog"
6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6357 if test -n "$ac_ct_AR"; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6359 $as_echo "$ac_ct_AR" >&6; }
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6366 test -n "$ac_ct_AR" && break
6369 if test "x$ac_ct_AR" = x; then
6372 case $cross_compiling:$ac_tool_warned in
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6376 ac_tool_warned=yes ;;
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6385 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6386 if ${am_cv_ar_interface+:} false; then :
6387 $as_echo_n "(cached) " >&6
6390 ac_cpp='$CPP $CPPFLAGS'
6391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6395 am_cv_ar_interface=ar
6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6398 int some_variable = 0;
6400 if ac_fn_c_try_compile "$LINENO"; then :
6401 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6403 (eval $am_ar_try) 2>&5
6405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6406 test $ac_status = 0; }
6407 if test "$ac_status" -eq 0; then
6408 am_cv_ar_interface=ar
6410 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6412 (eval $am_ar_try) 2>&5
6414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6415 test $ac_status = 0; }
6416 if test "$ac_status" -eq 0; then
6417 am_cv_ar_interface=lib
6419 am_cv_ar_interface=unknown
6422 rm -f conftest.lib libconftest.a
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427 ac_cpp='$CPP $CPPFLAGS'
6428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6434 $as_echo "$am_cv_ar_interface" >&6; }
6436 case $am_cv_ar_interface in
6440 # Microsoft lib, so override with the ar-lib wrapper script.
6441 # FIXME: It is wrong to rewrite AR.
6442 # But if we don't then we get into trouble of one sort or another.
6443 # A longer-term fix would be to have automake use am__AR in this case,
6444 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6446 AR="$am_aux_dir/ar-lib $AR"
6449 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6457 # Expose a cross-compilation indicator to makefiles
6458 if test $build != $host; then
6459 NTP_CROSSCOMPILE_TRUE=
6460 NTP_CROSSCOMPILE_FALSE='#'
6462 NTP_CROSSCOMPILE_TRUE='#'
6463 NTP_CROSSCOMPILE_FALSE=
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6469 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6470 if ${ac_cv_path_SED+:} false; then :
6471 $as_echo_n "(cached) " >&6
6473 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6474 for ac_i in 1 2 3 4 5 6 7; do
6475 ac_script="$ac_script$as_nl$ac_script"
6477 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6478 { ac_script=; unset ac_script;}
6479 if test -z "$SED"; then
6480 ac_path_SED_found=false
6481 # Loop through the user's path and test for each of PROGNAME-LIST
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 test -z "$as_dir" && as_dir=.
6487 for ac_prog in sed gsed; do
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6490 as_fn_executable_p "$ac_path_SED" || continue
6491 # Check for GNU ac_path_SED and select it if it is found.
6492 # Check for GNU $ac_path_SED
6493 case `"$ac_path_SED" --version 2>&1` in
6495 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6498 $as_echo_n 0123456789 >"conftest.in"
6501 cat "conftest.in" "conftest.in" >"conftest.tmp"
6502 mv "conftest.tmp" "conftest.in"
6503 cp "conftest.in" "conftest.nl"
6504 $as_echo '' >> "conftest.nl"
6505 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6507 as_fn_arith $ac_count + 1 && ac_count=$as_val
6508 if test $ac_count -gt ${ac_path_SED_max-0}; then
6509 # Best one so far, save it but keep looking for a better one
6510 ac_cv_path_SED="$ac_path_SED"
6511 ac_path_SED_max=$ac_count
6513 # 10*(2^10) chars as input seems more than enough
6514 test $ac_count -gt 10 && break
6516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6519 $ac_path_SED_found && break 3
6524 if test -z "$ac_cv_path_SED"; then
6525 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6533 $as_echo "$ac_cv_path_SED" >&6; }
6534 SED="$ac_cv_path_SED"
6537 test -z "$SED" && SED=sed
6538 Xsed="$SED -e 1s/^X//"
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6551 $as_echo_n "checking for fgrep... " >&6; }
6552 if ${ac_cv_path_FGREP+:} false; then :
6553 $as_echo_n "(cached) " >&6
6555 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6556 then ac_cv_path_FGREP="$GREP -F"
6558 if test -z "$FGREP"; then
6559 ac_path_FGREP_found=false
6560 # Loop through the user's path and test for each of PROGNAME-LIST
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6565 test -z "$as_dir" && as_dir=.
6566 for ac_prog in fgrep; do
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6569 as_fn_executable_p "$ac_path_FGREP" || continue
6570 # Check for GNU ac_path_FGREP and select it if it is found.
6571 # Check for GNU $ac_path_FGREP
6572 case `"$ac_path_FGREP" --version 2>&1` in
6574 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6577 $as_echo_n 0123456789 >"conftest.in"
6580 cat "conftest.in" "conftest.in" >"conftest.tmp"
6581 mv "conftest.tmp" "conftest.in"
6582 cp "conftest.in" "conftest.nl"
6583 $as_echo 'FGREP' >> "conftest.nl"
6584 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6586 as_fn_arith $ac_count + 1 && ac_count=$as_val
6587 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6588 # Best one so far, save it but keep looking for a better one
6589 ac_cv_path_FGREP="$ac_path_FGREP"
6590 ac_path_FGREP_max=$ac_count
6592 # 10*(2^10) chars as input seems more than enough
6593 test $ac_count -gt 10 && break
6595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6598 $ac_path_FGREP_found && break 3
6603 if test -z "$ac_cv_path_FGREP"; then
6604 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6607 ac_cv_path_FGREP=$FGREP
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6613 $as_echo "$ac_cv_path_FGREP" >&6; }
6614 FGREP="$ac_cv_path_FGREP"
6617 test -z "$GREP" && GREP=grep
6635 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6636 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6637 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6640 $as_echo_n "checking how to print strings... " >&6; }
6641 # Test print first, because it will be a builtin if present.
6642 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6643 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6645 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6648 # Use this function as a fallback that always works.
6649 func_fallback_echo ()
6651 eval 'cat <<_LTECHO_EOF
6655 ECHO='func_fallback_echo'
6658 # func_echo_all arg...
6659 # Invoke $ECHO with all args, space-separated.
6666 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6667 $as_echo "printf" >&6; } ;;
6668 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6669 $as_echo "print -r" >&6; } ;;
6670 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6671 $as_echo "cat" >&6; } ;;
6687 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6688 if test "x$ac_cv_type_pid_t" = xyes; then :
6692 cat >>confdefs.h <<_ACEOF
6698 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6699 if test "x$ac_cv_type_size_t" = xyes; then :
6703 cat >>confdefs.h <<_ACEOF
6704 #define size_t unsigned int
6710 # Check whether --enable-c99-snprintf was given.
6711 if test "${enable_c99_snprintf+set}" = set; then :
6712 enableval=$enable_c99_snprintf; force_c99_snprintf=$enableval
6714 force_c99_snprintf=no
6718 case "$force_c99_snprintf" in
6720 hw_force_rpl_snprintf=yes
6721 hw_force_rpl_vsnprintf=yes
6729 for ac_header in $ac_header_list
6731 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6732 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6734 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6735 cat >>confdefs.h <<_ACEOF
6736 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6750 $as_echo_n "checking for unsigned long long int... " >&6; }
6751 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
6752 $as_echo_n "(cached) " >&6
6754 ac_cv_type_unsigned_long_long_int=yes
6755 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6759 /* For now, do not test the preprocessor; as of 2007 there are too many
6760 implementations with broken preprocessors. Perhaps this can
6761 be revisited in 2012. In the meantime, code should not expect
6762 #if to work with literals wider than 32 bits. */
6763 /* Test literals. */
6764 long long int ll = 9223372036854775807ll;
6765 long long int nll = -9223372036854775807LL;
6766 unsigned long long int ull = 18446744073709551615ULL;
6767 /* Test constant expressions. */
6768 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6770 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6776 /* Test availability of runtime routines for shift and division. */
6777 long long int llmax = 9223372036854775807ll;
6778 unsigned long long int ullmax = 18446744073709551615ull;
6779 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6780 | (llmax / ll) | (llmax % ll)
6781 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6782 | (ullmax / ull) | (ullmax % ull));
6788 if ac_fn_c_try_link "$LINENO"; then :
6791 ac_cv_type_unsigned_long_long_int=no
6793 rm -f core conftest.err conftest.$ac_objext \
6794 conftest$ac_exeext conftest.$ac_ext
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6798 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6799 if test $ac_cv_type_unsigned_long_long_int = yes; then
6801 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6806 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
6807 if test "x$ac_cv_func_vsnprintf" = xyes; then :
6808 hw_cv_func_vsnprintf=yes
6810 hw_cv_func_vsnprintf=no
6813 if test "$hw_cv_func_vsnprintf" = yes; then :
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is C99 compliant" >&5
6815 $as_echo_n "checking whether vsnprintf is C99 compliant... " >&6; }
6816 if ${hw_cv_func_vsnprintf_c99+:} false; then :
6817 $as_echo_n "(cached) " >&6
6819 if test "$cross_compiling" = yes; then :
6820 hw_cv_func_vsnprintf_c99=no
6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6828 static int testprintf(char *buf, size_t size, const char *format, ...)
6832 va_start(ap, format);
6833 result = vsnprintf(buf, size, format, ap);
6841 if (testprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
6842 testprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
6843 buf[0] != 'T' || buf[3] != '\0')
6849 if ac_fn_c_try_run "$LINENO"; then :
6850 hw_cv_func_vsnprintf_c99=yes
6852 hw_cv_func_vsnprintf_c99=no
6854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6855 conftest.$ac_objext conftest.beam conftest.$ac_ext
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_vsnprintf_c99" >&5
6860 $as_echo "$hw_cv_func_vsnprintf_c99" >&6; }
6862 hw_cv_func_vsnprintf_c99=no
6865 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement vsnprintf will be used" >&5
6868 $as_echo_n "checking if C99-snprintf replacement vsnprintf will be used... " >&6; }
6869 if test "${hw_force_rpl_vsnprintf=no}" = yes -o "$hw_cv_func_vsnprintf_c99" = no; then :
6870 hw_use_rpl_vsnprintf=yes
6872 hw_use_rpl_vsnprintf=no
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_vsnprintf" >&5
6875 $as_echo "$hw_use_rpl_vsnprintf" >&6; }
6876 if test "$hw_use_rpl_vsnprintf" = yes; then :
6878 $as_echo "#define HW_WANT_RPL_VSNPRINTF 1" >>confdefs.h
6880 if test ${hw_nodef_vsnprintf=no} = no; then :
6882 $as_echo "#define vsnprintf rpl_vsnprintf" >>confdefs.h
6885 for ac_header in inttypes.h locale.h stddef.h stdint.h
6887 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6888 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6889 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6890 cat >>confdefs.h <<_ACEOF
6891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6898 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
6900 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
6902 cat >>confdefs.h <<_ACEOF
6903 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
6908 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h>
6910 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then :
6912 cat >>confdefs.h <<_ACEOF
6913 #define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6921 $as_echo_n "checking for long double... " >&6; }
6922 if ${ac_cv_type_long_double+:} false; then :
6923 $as_echo_n "(cached) " >&6
6925 if test "$GCC" = yes; then
6926 ac_cv_type_long_double=yes
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6930 /* The Stardent Vistra knows sizeof (long double), but does
6932 long double foo = 0.0L;
6936 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6937 sizeof (double) <= sizeof (long double))];
6939 return test_array [0];
6945 if ac_fn_c_try_compile "$LINENO"; then :
6946 ac_cv_type_long_double=yes
6948 ac_cv_type_long_double=no
6950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
6954 $as_echo "$ac_cv_type_long_double" >&6; }
6955 if test $ac_cv_type_long_double = yes; then
6957 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6964 $as_echo_n "checking for long long int... " >&6; }
6965 if ${ac_cv_type_long_long_int+:} false; then :
6966 $as_echo_n "(cached) " >&6
6968 ac_cv_type_long_long_int=yes
6969 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6970 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6971 if test $ac_cv_type_long_long_int = yes; then
6972 if test "$cross_compiling" = yes; then :
6975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6976 /* end confdefs.h. */
6980 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6981 # define LLONG_MAX (HALF - 1 + HALF)
6986 long long int n = 1;
6990 long long int m = n << i;
6993 if (LLONG_MAX / 2 < m)
7001 if ac_fn_c_try_run "$LINENO"; then :
7004 ac_cv_type_long_long_int=no
7006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7007 conftest.$ac_objext conftest.beam conftest.$ac_ext
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7014 $as_echo "$ac_cv_type_long_long_int" >&6; }
7015 if test $ac_cv_type_long_long_int = yes; then
7017 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7023 $as_echo_n "checking for unsigned long long int... " >&6; }
7024 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7025 $as_echo_n "(cached) " >&6
7027 ac_cv_type_unsigned_long_long_int=yes
7028 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030 /* end confdefs.h. */
7032 /* For now, do not test the preprocessor; as of 2007 there are too many
7033 implementations with broken preprocessors. Perhaps this can
7034 be revisited in 2012. In the meantime, code should not expect
7035 #if to work with literals wider than 32 bits. */
7036 /* Test literals. */
7037 long long int ll = 9223372036854775807ll;
7038 long long int nll = -9223372036854775807LL;
7039 unsigned long long int ull = 18446744073709551615ULL;
7040 /* Test constant expressions. */
7041 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7043 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7049 /* Test availability of runtime routines for shift and division. */
7050 long long int llmax = 9223372036854775807ll;
7051 unsigned long long int ullmax = 18446744073709551615ull;
7052 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7053 | (llmax / ll) | (llmax % ll)
7054 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7055 | (ullmax / ull) | (ullmax % ull));
7061 if ac_fn_c_try_link "$LINENO"; then :
7064 ac_cv_type_unsigned_long_long_int=no
7066 rm -f core conftest.err conftest.$ac_objext \
7067 conftest$ac_exeext conftest.$ac_ext
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7071 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7072 if test $ac_cv_type_unsigned_long_long_int = yes; then
7074 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7078 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7079 if test "x$ac_cv_type_size_t" = xyes; then :
7083 cat >>confdefs.h <<_ACEOF
7084 #define size_t unsigned int
7091 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
7092 if test "x$ac_cv_type_intmax_t" = xyes; then :
7094 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
7097 test $ac_cv_type_long_long_int = yes \
7098 && ac_type='long long int' \
7099 || ac_type='long int'
7101 cat >>confdefs.h <<_ACEOF
7102 #define intmax_t $ac_type
7110 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
7111 if test "x$ac_cv_type_uintmax_t" = xyes; then :
7113 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7116 test $ac_cv_type_unsigned_long_long_int = yes \
7117 && ac_type='unsigned long long int' \
7118 || ac_type='unsigned long int'
7120 cat >>confdefs.h <<_ACEOF
7121 #define uintmax_t $ac_type
7128 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
7129 if test "x$ac_cv_type_uintptr_t" = xyes; then :
7131 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
7134 for ac_type in 'unsigned int' 'unsigned long int' \
7135 'unsigned long long int'; do
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7138 $ac_includes_default
7142 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
7144 return test_array [0];
7150 if ac_fn_c_try_compile "$LINENO"; then :
7152 cat >>confdefs.h <<_ACEOF
7153 #define uintptr_t $ac_type
7158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7159 test -z "$ac_type" && break
7164 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7165 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
7167 cat >>confdefs.h <<_ACEOF
7168 #define HAVE_PTRDIFF_T 1
7174 for ac_func in localeconv
7176 ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv"
7177 if test "x$ac_cv_func_localeconv" = xyes; then :
7178 cat >>confdefs.h <<_ACEOF
7179 #define HAVE_LOCALECONV 1
7186 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7188 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7189 if ${ac_cv_c_const+:} false; then :
7190 $as_echo_n "(cached) " >&6
7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7200 /* Ultrix mips cc rejects this sort of thing. */
7201 typedef int charset[2];
7202 const charset cs = { 0, 0 };
7203 /* SunOS 4.1.1 cc rejects this. */
7204 char const *const *pcpcc;
7206 /* NEC SVR4.0.2 mips cc rejects this. */
7207 struct point {int x, y;};
7208 static struct point const zero = {0,0};
7209 /* AIX XL C 1.02.0.0 rejects this.
7210 It does not let you subtract one const X* pointer from another in
7211 an arm of an if-expression whose if-part is not a constant
7213 const char *g = "string";
7214 pcpcc = &g + (g ? g-g : 0);
7215 /* HPUX 7.0 cc rejects these. */
7217 ppc = (char**) pcpcc;
7218 pcpcc = (char const *const *) ppc;
7219 { /* SCO 3.2v4 cc rejects this sort of thing. */
7222 char const *s = 0 ? (char *) 0 : (char const *) 0;
7227 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7229 const int *foo = &x[0];
7232 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7233 typedef const int *iptr;
7237 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7238 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7239 struct s { int j; const int *ap[3]; } bx;
7240 struct s *b = &bx; b->j = 5;
7242 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7246 return !cs[0] && !zero.x;
7253 if ac_fn_c_try_compile "$LINENO"; then :
7258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7261 $as_echo "$ac_cv_c_const" >&6; }
7262 if test $ac_cv_c_const = no; then
7264 $as_echo "#define const /**/" >>confdefs.h
7271 case " $LIBOBJS " in
7272 *" snprintf.$ac_objext "* ) ;;
7273 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7277 _hw_cv_func_xprintf_replace_done=yes
7283 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
7284 if test "x$ac_cv_func_snprintf" = xyes; then :
7285 hw_cv_func_snprintf=yes
7287 hw_cv_func_snprintf=no
7290 if test "$hw_cv_func_snprintf" = yes; then :
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is C99 compliant" >&5
7292 $as_echo_n "checking whether snprintf is C99 compliant... " >&6; }
7293 if ${hw_cv_func_snprintf_c99+:} false; then :
7294 $as_echo_n "(cached) " >&6
7296 if test "$cross_compiling" = yes; then :
7297 hw_cv_func_snprintf_c99=no
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7306 if (snprintf(buf, 4, "The answer is %27.2g.", 42.0) != 42 ||
7307 snprintf(buf, 0, "No, it's %32zu.", (size_t)42) != 42 ||
7308 buf[0] != 'T' || buf[3] != '\0')
7314 if ac_fn_c_try_run "$LINENO"; then :
7315 hw_cv_func_snprintf_c99=yes
7317 hw_cv_func_snprintf_c99=no
7319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7320 conftest.$ac_objext conftest.beam conftest.$ac_ext
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_cv_func_snprintf_c99" >&5
7325 $as_echo "$hw_cv_func_snprintf_c99" >&6; }
7327 hw_cv_func_snprintf_c99=no
7330 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C99-snprintf replacement snprintf will be used" >&5
7333 $as_echo_n "checking if C99-snprintf replacement snprintf will be used... " >&6; }
7334 if test "${hw_force_rpl_snprintf=no}" = yes -o "$hw_cv_func_snprintf_c99" = no; then :
7335 hw_use_rpl_snprintf=yes
7337 hw_use_rpl_snprintf=no
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hw_use_rpl_snprintf" >&5
7340 $as_echo "$hw_use_rpl_snprintf" >&6; }
7341 if test "$hw_use_rpl_snprintf" = yes; then :
7343 $as_echo "#define HW_WANT_RPL_SNPRINTF 1" >>confdefs.h
7345 if test ${hw_nodef_snprintf=no} = no; then :
7347 $as_echo "#define snprintf rpl_snprintf" >>confdefs.h
7351 if test "x$_hw_cv_func_xprintf_replace_done" != xyes; then :
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7353 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7354 if ${ac_cv_c_const+:} false; then :
7355 $as_echo_n "(cached) " >&6
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7365 /* Ultrix mips cc rejects this sort of thing. */
7366 typedef int charset[2];
7367 const charset cs = { 0, 0 };
7368 /* SunOS 4.1.1 cc rejects this. */
7369 char const *const *pcpcc;
7371 /* NEC SVR4.0.2 mips cc rejects this. */
7372 struct point {int x, y;};
7373 static struct point const zero = {0,0};
7374 /* AIX XL C 1.02.0.0 rejects this.
7375 It does not let you subtract one const X* pointer from another in
7376 an arm of an if-expression whose if-part is not a constant
7378 const char *g = "string";
7379 pcpcc = &g + (g ? g-g : 0);
7380 /* HPUX 7.0 cc rejects these. */
7382 ppc = (char**) pcpcc;
7383 pcpcc = (char const *const *) ppc;
7384 { /* SCO 3.2v4 cc rejects this sort of thing. */
7387 char const *s = 0 ? (char *) 0 : (char const *) 0;
7392 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7394 const int *foo = &x[0];
7397 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7398 typedef const int *iptr;
7402 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7403 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7404 struct s { int j; const int *ap[3]; } bx;
7405 struct s *b = &bx; b->j = 5;
7407 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7411 return !cs[0] && !zero.x;
7418 if ac_fn_c_try_compile "$LINENO"; then :
7423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7426 $as_echo "$ac_cv_c_const" >&6; }
7427 if test $ac_cv_c_const = no; then
7429 $as_echo "#define const /**/" >>confdefs.h
7436 case " $LIBOBJS " in
7437 *" snprintf.$ac_objext "* ) ;;
7438 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7442 _hw_cv_func_xprintf_replace_done=yes
7451 # HMS: Save $LIBS and empty it.
7452 # any LIBS we add here should go in to LDADD_LIBNTP
7459 # [Bug 2332] because we need to know if we are using GNU ld...
7462 # Check whether --with-gnu-ld was given.
7463 if test "${with_gnu_ld+set}" = set; then :
7464 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7470 if test yes = "$GCC"; then
7471 # Check if gcc -print-prog-name=ld gives a path.
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7473 $as_echo_n "checking for ld used by $CC... " >&6; }
7476 # gcc leaves a trailing carriage return, which upsets mingw
7477 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7479 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7482 # Accept absolute paths.
7484 re_direlt='/[^/][^/]*/\.\./'
7485 # Canonicalize the pathname of ld
7486 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7487 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7488 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7490 test -z "$LD" && LD=$ac_prog
7493 # If it fails, then pretend we aren't using GCC.
7497 # If it is relative, then search for the first ld in PATH.
7501 elif test yes = "$with_gnu_ld"; then
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7503 $as_echo_n "checking for GNU ld... " >&6; }
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7506 $as_echo_n "checking for non-GNU ld... " >&6; }
7508 if ${lt_cv_path_LD+:} false; then :
7509 $as_echo_n "(cached) " >&6
7511 if test -z "$LD"; then
7512 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7513 for ac_dir in $PATH; do
7515 test -z "$ac_dir" && ac_dir=.
7516 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7517 lt_cv_path_LD=$ac_dir/$ac_prog
7518 # Check to see if the program is GNU ld. I'd rather use --version,
7519 # but apparently some variants of GNU ld only accept -v.
7520 # Break only if it was the GNU/non-GNU ld that we prefer.
7521 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7522 *GNU* | *'with BFD'*)
7523 test no != "$with_gnu_ld" && break
7526 test yes != "$with_gnu_ld" && break
7533 lt_cv_path_LD=$LD # Let the user override the test with a path.
7538 if test -n "$LD"; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7540 $as_echo "$LD" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7545 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7547 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7548 if ${lt_cv_prog_gnu_ld+:} false; then :
7549 $as_echo_n "(cached) " >&6
7551 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7552 case `$LD -v 2>&1 </dev/null` in
7553 *GNU* | *'with BFD'*)
7554 lt_cv_prog_gnu_ld=yes
7557 lt_cv_prog_gnu_ld=no
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7562 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7563 with_gnu_ld=$lt_cv_prog_gnu_ld
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory path separator" >&5
7576 $as_echo_n "checking for directory path separator... " >&6; }
7577 if ${ntp_cv_dir_sep+:} false; then :
7578 $as_echo_n "(cached) " >&6
7581 case "$ntp_cv_dir_sep" in
7584 *djgpp | *mingw32* | *emx*)
7585 ntp_cv_dir_sep="'\\'"
7588 ntp_cv_dir_sep="'/'"
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_dir_sep" >&5
7596 $as_echo "$ntp_cv_dir_sep" >&6; }
7598 cat >>confdefs.h <<_ACEOF
7599 #define DIR_SEP $ntp_cv_dir_sep
7604 NTP_ORIG_LIBS="$LIBS"
7606 # Check whether --with-lineeditlibs was given.
7607 if test "${with_lineeditlibs+set}" = set; then :
7608 withval=$with_lineeditlibs; use_lineeditlibs="$withval"
7610 use_lineeditlibs="edit,editline"
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking line editing libraries" >&5
7615 $as_echo_n "checking line editing libraries... " >&6; }
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_lineeditlibs" >&5
7617 $as_echo "$use_lineeditlibs" >&6; }
7618 case "$use_lineeditlibs" in
7623 for lineedit_lib in `echo $use_lineeditlibs | sed -e 's/,/ /'`; do
7624 for term_lib in "" termcap curses ncurses; do
7627 TRY_LIB="-l$lineedit_lib"
7630 TRY_LIB="-l$lineedit_lib -l$term_lib"
7633 LIBS="$NTP_ORIG_LIBS $TRY_LIB"
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline() with $TRY_LIB" >&5
7635 $as_echo_n "checking for readline() with $TRY_LIB... " >&6; }
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7639 /* Override any GCC internal prototype to avoid an error.
7640 Use char because int might match the return type of a GCC
7641 builtin and then its argument prototype would still apply. */
7654 if ac_fn_c_try_link "$LINENO"; then :
7655 ntp_lib_lineedit="$TRY_LIB"
7657 rm -f core conftest.err conftest.$ac_objext \
7658 conftest$ac_exeext conftest.$ac_ext
7659 case "$ntp_lib_lineedit" in
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7667 $as_echo "yes" >&6; }
7672 # do not try el_gets without a terminal library
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for el_gets() with $TRY_LIB" >&5
7676 $as_echo_n "checking for el_gets() with $TRY_LIB... " >&6; }
7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h. */
7680 /* Override any GCC internal prototype to avoid an error.
7681 Use char because int might match the return type of a GCC
7682 builtin and then its argument prototype would still apply. */
7695 if ac_fn_c_try_link "$LINENO"; then :
7696 ntp_lib_lineedit="$TRY_LIB"
7698 rm -f core conftest.err conftest.$ac_objext \
7699 conftest$ac_exeext conftest.$ac_ext
7700 case "$ntp_lib_lineedit" in
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703 $as_echo "no" >&6; }
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7707 $as_echo "yes" >&6; }
7710 esac # $ntp_lib_lineedit
7713 case "$ntp_lib_lineedit" in
7721 LIBS="$NTP_ORIG_LIBS"
7723 esac # $use_lineeditlibs
7725 case "$ntp_lib_lineedit" in
7727 ntp_lib_lineedit="no"
7732 EDITLINE_LIBS="$ntp_lib_lineedit"
7735 esac # $ntp_lib_lineedit
7737 case "$ntp_lib_lineedit" in
7741 for ac_header in readline.h readline/readline.h histedit.h
7743 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7744 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7745 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7746 cat >>confdefs.h <<_ACEOF
7747 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7754 for ac_header in history.h readline/history.h
7756 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7757 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7758 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7759 cat >>confdefs.h <<_ACEOF
7760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7768 case "$ac_cv_header_histedit_h" in
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to el_init()" >&5
7771 $as_echo_n "checking number of arguments to el_init()... " >&6; }
7772 if ${ntp_cv_el_init_args+:} false; then :
7773 $as_echo_n "(cached) " >&6
7775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h. */
7779 #include <histedit.h>
7785 el_init("conftest", stdin, stdout, stderr);
7792 if ac_fn_c_try_compile "$LINENO"; then :
7793 ntp_cv_el_init_args=4
7795 ntp_cv_el_init_args=3
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_el_init_args" >&5
7802 $as_echo "$ntp_cv_el_init_args" >&6; }
7804 cat >>confdefs.h <<_ACEOF
7805 #define EL_INIT_ARGS $ntp_cv_el_init_args
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
7811 $as_echo_n "checking whether readline supports history... " >&6; }
7813 ntp_lib_lineedit_history="no"
7815 LIBS="$ORIG_LIBS $ntp_lib_lineedit"
7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h. */
7819 /* Override any GCC internal prototype to avoid an error.
7820 Use char because int might match the return type of a GCC
7821 builtin and then its argument prototype would still apply. */
7825 char add_history ();
7829 return add_history ();
7834 if ac_fn_c_try_link "$LINENO"; then :
7835 ntp_lib_lineedit_history="yes"
7837 rm -f core conftest.err conftest.$ac_objext \
7838 conftest$ac_exeext conftest.$ac_ext
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_lib_lineedit_history" >&5
7842 $as_echo "$ntp_lib_lineedit_history" >&6; }
7844 case "$ntp_lib_lineedit_history" in
7847 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
7850 esac # $ntp_lib_lineedit
7851 { NTP_ORIG_LIBS=; unset NTP_ORIG_LIBS;}
7852 { ORIG_LIBS=; unset ORIG_LIBS;}
7853 { TRY_LIB=; unset TRY_LIB;}
7854 { use_lineeditlibs=; unset use_lineeditlibs;}
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
7864 $as_echo_n "checking for library containing cos... " >&6; }
7865 if ${ac_cv_search_cos+:} false; then :
7866 $as_echo_n "(cached) " >&6
7868 ac_func_search_save_LIBS=$LIBS
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7872 /* Override any GCC internal prototype to avoid an error.
7873 Use char because int might match the return type of a GCC
7874 builtin and then its argument prototype would still apply. */
7887 for ac_lib in '' m; do
7888 if test -z "$ac_lib"; then
7889 ac_res="none required"
7892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7894 if ac_fn_c_try_link "$LINENO"; then :
7895 ac_cv_search_cos=$ac_res
7897 rm -f core conftest.err conftest.$ac_objext \
7899 if ${ac_cv_search_cos+:} false; then :
7903 if ${ac_cv_search_cos+:} false; then :
7909 LIBS=$ac_func_search_save_LIBS
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
7912 $as_echo "$ac_cv_search_cos" >&6; }
7913 ac_res=$ac_cv_search_cos
7914 if test "$ac_res" != no; then :
7915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7923 { _libs=; unset _libs;}
7926 for ac_header in vfork.h
7928 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7929 if test "x$ac_cv_header_vfork_h" = xyes; then :
7930 cat >>confdefs.h <<_ACEOF
7931 #define HAVE_VFORK_H 1
7938 for ac_func in fork vfork
7940 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7941 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7942 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7943 cat >>confdefs.h <<_ACEOF
7944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7950 if test "x$ac_cv_func_fork" = xyes; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7952 $as_echo_n "checking for working fork... " >&6; }
7953 if ${ac_cv_func_fork_works+:} false; then :
7954 $as_echo_n "(cached) " >&6
7956 if test "$cross_compiling" = yes; then :
7957 ac_cv_func_fork_works=cross
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7961 $ac_includes_default
7966 /* By Ruediger Kuhlmann. */
7973 if ac_fn_c_try_run "$LINENO"; then :
7974 ac_cv_func_fork_works=yes
7976 ac_cv_func_fork_works=no
7978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7979 conftest.$ac_objext conftest.beam conftest.$ac_ext
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7984 $as_echo "$ac_cv_func_fork_works" >&6; }
7987 ac_cv_func_fork_works=$ac_cv_func_fork
7989 if test "x$ac_cv_func_fork_works" = xcross; then
7991 *-*-amigaos* | *-*-msdosdjgpp*)
7992 # Override, as these systems have only a dummy fork() stub
7993 ac_cv_func_fork_works=no
7996 ac_cv_func_fork_works=yes
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8000 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8002 ac_cv_func_vfork_works=$ac_cv_func_vfork
8003 if test "x$ac_cv_func_vfork" = xyes; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8005 $as_echo_n "checking for working vfork... " >&6; }
8006 if ${ac_cv_func_vfork_works+:} false; then :
8007 $as_echo_n "(cached) " >&6
8009 if test "$cross_compiling" = yes; then :
8010 ac_cv_func_vfork_works=cross
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h. */
8014 /* Thanks to Paul Eggert for this test. */
8015 $ac_includes_default
8016 #include <sys/wait.h>
8020 /* On some sparc systems, changes by the child to local and incoming
8021 argument registers are propagated back to the parent. The compiler
8022 is told about this with #include <vfork.h>, but some compilers
8023 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8024 static variable whose address is put into a register that is
8025 clobbered by the vfork. */
8028 sparc_address_test (int arg)
8030 sparc_address_test (arg) int arg;
8051 pid_t parent = getpid ();
8054 sparc_address_test (0);
8059 /* Here is another test for sparc vfork register problems. This
8060 test uses lots of local variables, at least as many local
8061 variables as main has allocated so far including compiler
8062 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8063 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8064 reuse the register of parent for one of the local variables,
8065 since it will think that parent can't possibly be used any more
8066 in this routine. Assigning to the local variable will thus
8067 munge parent in the parent process. */
8069 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8070 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8071 /* Convince the compiler that p..p7 are live; otherwise, it might
8072 use the same hardware register for all 8 local variables. */
8073 if (p != p1 || p != p2 || p != p3 || p != p4
8074 || p != p5 || p != p6 || p != p7)
8077 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8078 from child file descriptors. If the child closes a descriptor
8079 before it execs or exits, this munges the parent's descriptor
8080 as well. Test for this by closing stdout in the child. */
8081 _exit(close(fileno(stdout)) != 0);
8086 while (wait(&status) != child)
8089 /* Was there some problem with vforking? */
8092 /* Did the child fail? (This shouldn't happen.) */
8095 /* Did the vfork/compiler bug occur? */
8096 || parent != getpid()
8098 /* Did the file descriptor bug occur? */
8099 || fstat(fileno(stdout), &st) != 0
8104 if ac_fn_c_try_run "$LINENO"; then :
8105 ac_cv_func_vfork_works=yes
8107 ac_cv_func_vfork_works=no
8109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8110 conftest.$ac_objext conftest.beam conftest.$ac_ext
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8115 $as_echo "$ac_cv_func_vfork_works" >&6; }
8118 if test "x$ac_cv_func_fork_works" = xcross; then
8119 ac_cv_func_vfork_works=$ac_cv_func_vfork
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8121 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8124 if test "x$ac_cv_func_vfork_works" = xyes; then
8126 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8130 $as_echo "#define vfork fork" >>confdefs.h
8133 if test "x$ac_cv_func_fork_works" = xyes; then
8135 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8139 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8140 # for constant arguments. Useless!
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8142 $as_echo_n "checking for working alloca.h... " >&6; }
8143 if ${ac_cv_working_alloca_h+:} false; then :
8144 $as_echo_n "(cached) " >&6
8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8152 char *p = (char *) alloca (2 * sizeof (int));
8158 if ac_fn_c_try_link "$LINENO"; then :
8159 ac_cv_working_alloca_h=yes
8161 ac_cv_working_alloca_h=no
8163 rm -f core conftest.err conftest.$ac_objext \
8164 conftest$ac_exeext conftest.$ac_ext
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8167 $as_echo "$ac_cv_working_alloca_h" >&6; }
8168 if test $ac_cv_working_alloca_h = yes; then
8170 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8175 $as_echo_n "checking for alloca... " >&6; }
8176 if ${ac_cv_func_alloca_works+:} false; then :
8177 $as_echo_n "(cached) " >&6
8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8182 # define alloca __builtin_alloca
8185 # include <malloc.h>
8186 # define alloca _alloca
8188 # ifdef HAVE_ALLOCA_H
8189 # include <alloca.h>
8194 # ifndef alloca /* predefined by HP cc +Olibcalls */
8195 void *alloca (size_t);
8205 char *p = (char *) alloca (1);
8211 if ac_fn_c_try_link "$LINENO"; then :
8212 ac_cv_func_alloca_works=yes
8214 ac_cv_func_alloca_works=no
8216 rm -f core conftest.err conftest.$ac_objext \
8217 conftest$ac_exeext conftest.$ac_ext
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8220 $as_echo "$ac_cv_func_alloca_works" >&6; }
8222 if test $ac_cv_func_alloca_works = yes; then
8224 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8227 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8228 # that cause trouble. Some versions do not even contain alloca or
8229 # contain a buggy version. If you still want to use their alloca,
8230 # use ar to extract alloca.o from them instead of compiling alloca.c.
8232 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8234 $as_echo "#define C_ALLOCA 1" >>confdefs.h
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
8238 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8239 if ${ac_cv_os_cray+:} false; then :
8240 $as_echo_n "(cached) " >&6
8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h. */
8244 #if defined CRAY && ! defined CRAY2
8251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8252 $EGREP "webecray" >/dev/null 2>&1; then :
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8261 $as_echo "$ac_cv_os_cray" >&6; }
8262 if test $ac_cv_os_cray = yes; then
8263 for ac_func in _getb67 GETB67 getb67; do
8264 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8265 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8266 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8268 cat >>confdefs.h <<_ACEOF
8269 #define CRAY_STACKSEG_END $ac_func
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8279 $as_echo_n "checking stack direction for C alloca... " >&6; }
8280 if ${ac_cv_c_stack_direction+:} false; then :
8281 $as_echo_n "(cached) " >&6
8283 if test "$cross_compiling" = yes; then :
8284 ac_cv_c_stack_direction=0
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h. */
8288 $ac_includes_default
8290 find_stack_direction (int *addr, int depth)
8295 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8296 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8301 main (int argc, char **argv)
8303 return find_stack_direction (0, argc + !argv + 20) < 0;
8306 if ac_fn_c_try_run "$LINENO"; then :
8307 ac_cv_c_stack_direction=1
8309 ac_cv_c_stack_direction=-1
8311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8312 conftest.$ac_objext conftest.beam conftest.$ac_ext
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8317 $as_echo "$ac_cv_c_stack_direction" >&6; }
8318 cat >>confdefs.h <<_ACEOF
8319 #define STACK_DIRECTION $ac_cv_c_stack_direction
8325 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8326 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
8332 cat >>confdefs.h <<_ACEOF
8333 #define HAVE_DECL_STRERROR_R $ac_have_decl
8336 for ac_func in strerror_r
8338 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
8339 if test "x$ac_cv_func_strerror_r" = xyes; then :
8340 cat >>confdefs.h <<_ACEOF
8341 #define HAVE_STRERROR_R 1
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8348 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8349 if ${ac_cv_func_strerror_r_char_p+:} false; then :
8350 $as_echo_n "(cached) " >&6
8353 ac_cv_func_strerror_r_char_p=no
8354 if test $ac_cv_have_decl_strerror_r = yes; then
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8357 $ac_includes_default
8363 char x = *strerror_r (0, buf, sizeof buf);
8364 char *p = strerror_r (0, buf, sizeof buf);
8371 if ac_fn_c_try_compile "$LINENO"; then :
8372 ac_cv_func_strerror_r_char_p=yes
8374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376 # strerror_r is not declared. Choose between
8377 # systems that have relatively inaccessible declarations for the
8378 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8379 # former has a strerror_r that returns char*, while the latter
8380 # has a strerror_r that returns `int'.
8381 # This test should segfault on the DEC system.
8382 if test "$cross_compiling" = yes; then :
8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8387 $ac_includes_default
8388 extern char *strerror_r ();
8393 char x = *strerror_r (0, buf, sizeof buf);
8394 return ! isalpha (x);
8399 if ac_fn_c_try_run "$LINENO"; then :
8400 ac_cv_func_strerror_r_char_p=yes
8402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8403 conftest.$ac_objext conftest.beam conftest.$ac_ext
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8410 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8411 if test $ac_cv_func_strerror_r_char_p = yes; then
8413 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8418 ac_busted_vpath_in_make=no
8420 *-*-irix6.1*) # 64 bit only
8423 *-*-irix6*) # 6.2 (and later?)
8424 ac_busted_vpath_in_make=yes
8427 ac_busted_vpath_in_make=yes
8430 ac_busted_vpath_in_make=yes
8434 case "$ac_busted_vpath_in_make$srcdir" in
8437 *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in
8439 as_fn_error $? "building outside of the main directory requires GNU make" "$LINENO" 5
8447 # Was *-*-aix[[4-9]]*
8448 # XXX only verified thru AIX6. But...
8449 # Ken Link says this is fine for AIX 5.3 and 7.1, and sees no reason
8450 # that this support would be in 5.3, removed in 6, and added back.
8452 # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
8453 # (returning ENOSYS). I didn't check 4.2. If, in the future,
8454 # IBM pulls its thumbs out long enough to implement clock_settime,
8455 # this conditional will need to change. Maybe use AC_TRY_RUN
8456 # instead to try to set the time to itself and check errno.
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
8460 $as_echo_n "checking for library containing clock_gettime... " >&6; }
8461 if ${ac_cv_search_clock_gettime+:} false; then :
8462 $as_echo_n "(cached) " >&6
8464 ac_func_search_save_LIBS=$LIBS
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8468 /* Override any GCC internal prototype to avoid an error.
8469 Use char because int might match the return type of a GCC
8470 builtin and then its argument prototype would still apply. */
8474 char clock_gettime ();
8478 return clock_gettime ();
8483 for ac_lib in '' rt; do
8484 if test -z "$ac_lib"; then
8485 ac_res="none required"
8488 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8490 if ac_fn_c_try_link "$LINENO"; then :
8491 ac_cv_search_clock_gettime=$ac_res
8493 rm -f core conftest.err conftest.$ac_objext \
8495 if ${ac_cv_search_clock_gettime+:} false; then :
8499 if ${ac_cv_search_clock_gettime+:} false; then :
8502 ac_cv_search_clock_gettime=no
8505 LIBS=$ac_func_search_save_LIBS
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
8508 $as_echo "$ac_cv_search_clock_gettime" >&6; }
8509 ac_res=$ac_cv_search_clock_gettime
8510 if test "$ac_res" != no; then :
8511 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8512 case "$ac_cv_search_clock_gettime" in
8515 *) LDADD_LIBNTP="$ac_cv_search_clock_gettime $LDADD_LIBNTP" ;;
8520 for ac_func in clock_getres clock_gettime clock_settime
8522 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8523 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8524 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8525 cat >>confdefs.h <<_ACEOF
8526 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8535 for ac_func in getclock stime timegm strlcpy strlcat
8537 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8538 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8539 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8540 cat >>confdefs.h <<_ACEOF
8541 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing snprintb" >&5
8552 $as_echo_n "checking for library containing snprintb... " >&6; }
8553 if ${ac_cv_search_snprintb+:} false; then :
8554 $as_echo_n "(cached) " >&6
8556 ac_func_search_save_LIBS=$LIBS
8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8560 /* Override any GCC internal prototype to avoid an error.
8561 Use char because int might match the return type of a GCC
8562 builtin and then its argument prototype would still apply. */
8575 for ac_lib in '' util; do
8576 if test -z "$ac_lib"; then
8577 ac_res="none required"
8580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8582 if ac_fn_c_try_link "$LINENO"; then :
8583 ac_cv_search_snprintb=$ac_res
8585 rm -f core conftest.err conftest.$ac_objext \
8587 if ${ac_cv_search_snprintb+:} false; then :
8591 if ${ac_cv_search_snprintb+:} false; then :
8594 ac_cv_search_snprintb=no
8597 LIBS=$ac_func_search_save_LIBS
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_snprintb" >&5
8600 $as_echo "$ac_cv_search_snprintb" >&6; }
8601 ac_res=$ac_cv_search_snprintb
8602 if test "$ac_res" != no; then :
8603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8604 case "$ac_cv_search_snprintb" in
8607 *) LDADD_LIBUTIL="$ac_cv_search_snprintb $LDADD_LIBUTIL" ;;
8610 $as_echo "#define USE_SNPRINTB 1" >>confdefs.h
8616 for ac_header in errno.h sys/socket.h sys/types.h time.h
8618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8619 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8620 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8621 cat >>confdefs.h <<_ACEOF
8622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8629 for ac_header in net/if.h
8631 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
8632 #ifdef HAVE_SYS_SOCKET_H
8633 # include <sys/socket.h>
8637 if test "x$ac_cv_header_net_if_h" = xyes; then :
8638 cat >>confdefs.h <<_ACEOF
8639 #define HAVE_NET_IF_H 1
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if net/if.h requires mpinfou predeclaration" >&5
8649 $as_echo_n "checking if net/if.h requires mpinfou predeclaration... " >&6; }
8650 if ${ntp_cv_predecl_mpinfou+:} false; then :
8651 $as_echo_n "(cached) " >&6
8654 np_cv_predecl_mpinfou=no
8655 case "$ac_cv_header_net_if_h" in
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8660 typedef union mpinfou {
8661 struct pdk_mpinfo *pdkptr;
8662 struct mpinfo *pikptr;
8664 #ifdef HAVE_SYS_SOCKET_H
8665 # include <sys/socket.h>
8679 if ac_fn_c_try_compile "$LINENO"; then :
8681 ntp_cv_predecl_mpinfou=yes
8682 ac_cv_header_net_if_h=yes
8686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_predecl_mpinfou" >&5
8692 $as_echo "$ntp_cv_predecl_mpinfou" >&6; }
8693 case "$ntp_cv_predecl_mpinfou" in
8695 cat >>confdefs.h <<_ACEOF
8696 #ifndef MPINFOU_PREDECLARED
8697 # define MPINFOU_PREDECLARED
8698 typedef union mpinfou {
8699 struct pdk_mpinfo *pdkptr;
8700 struct mpinfo *pikptr;
8710 for ac_header in linux/if_addr.h
8712 ac_fn_c_check_header_compile "$LINENO" "linux/if_addr.h" "ac_cv_header_linux_if_addr_h" "
8713 #ifdef HAVE_SYS_SOCKET_H
8714 # include <sys/socket.h>
8718 if test "x$ac_cv_header_linux_if_addr_h" = xyes; then :
8719 cat >>confdefs.h <<_ACEOF
8720 #define HAVE_LINUX_IF_ADDR_H 1
8728 $as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h
8732 for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h
8734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8735 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8736 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8737 cat >>confdefs.h <<_ACEOF
8738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8745 # sys/sysctl.h depends on sys/param.h on OpenBSD - Bug 1576
8746 for ac_header in sys/sysctl.h
8748 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
8749 #if defined HAVE_SYS_PARAM_H
8750 # include <sys/param.h>
8754 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
8755 cat >>confdefs.h <<_ACEOF
8756 #define HAVE_SYS_SYSCTL_H 1
8763 for ac_header in netinet/in_system.h netinet/in_systm.h netinet/in.h
8765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8766 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8767 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8768 cat >>confdefs.h <<_ACEOF
8769 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8777 for ac_header in resolv.h
8779 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
8780 #ifdef HAVE_SYS_TYPES_H
8781 # include <sys/types.h>
8783 #ifdef HAVE_NETINET_IN_H
8784 # include <netinet/in.h>
8786 #ifdef HAVE_ARPA_NAMESER_H
8787 # include <arpa/nameser.h>
8791 if test "x$ac_cv_header_resolv_h" = xyes; then :
8792 cat >>confdefs.h <<_ACEOF
8793 #define HAVE_RESOLV_H 1
8801 for ac_header in net/if_var.h
8803 ac_fn_c_check_header_compile "$LINENO" "net/if_var.h" "ac_cv_header_net_if_var_h" "
8804 #if HAVE_SYS_TYPES_H
8805 # include <sys/types.h>
8807 #ifdef HAVE_SYS_SOCKET_H
8808 # include <sys/socket.h>
8810 #ifdef HAVE_NETINET_IN_H
8811 # include <netinet/in.h>
8813 #ifdef HAVE_NET_IF_H
8814 # include <net/if.h>
8818 if test "x$ac_cv_header_net_if_var_h" = xyes; then :
8819 cat >>confdefs.h <<_ACEOF
8820 #define HAVE_NET_IF_VAR_H 1
8828 for ac_header in netinet/ip.h netinet/in_var.h
8830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8831 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8832 #ifdef HAVE_SYS_TYPES_H
8833 # include <sys/types.h>
8835 #ifdef HAVE_SYS_SOCKET_H
8836 # include <sys/socket.h>
8838 #ifdef HAVE_NET_IF_H
8839 # include <net/if.h>
8841 #ifdef HAVE_NETINET_IN_H
8842 # include <netinet/in.h>
8844 #ifdef HAVE_NET_IF_VAR_H
8845 # include <net/if_var.h>
8847 #ifdef HAVE_NETINET_IN_SYSTM_H
8848 # include <netinet/in_systm.h>
8852 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8853 cat >>confdefs.h <<_ACEOF
8854 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8862 # HMS: Do we need to check for -lsocket before or after these tests?
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
8864 $as_echo_n "checking for library containing inet_pton... " >&6; }
8865 if ${ac_cv_search_inet_pton+:} false; then :
8866 $as_echo_n "(cached) " >&6
8868 ac_func_search_save_LIBS=$LIBS
8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8872 /* Override any GCC internal prototype to avoid an error.
8873 Use char because int might match the return type of a GCC
8874 builtin and then its argument prototype would still apply. */
8882 return inet_pton ();
8887 for ac_lib in '' nsl; do
8888 if test -z "$ac_lib"; then
8889 ac_res="none required"
8892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8894 if ac_fn_c_try_link "$LINENO"; then :
8895 ac_cv_search_inet_pton=$ac_res
8897 rm -f core conftest.err conftest.$ac_objext \
8899 if ${ac_cv_search_inet_pton+:} false; then :
8903 if ${ac_cv_search_inet_pton+:} false; then :
8906 ac_cv_search_inet_pton=no
8909 LIBS=$ac_func_search_save_LIBS
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
8912 $as_echo "$ac_cv_search_inet_pton" >&6; }
8913 ac_res=$ac_cv_search_inet_pton
8914 if test "$ac_res" != no; then :
8915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8916 case "$ac_cv_search_inet_pton" in
8919 *) LDADD_LIBNTP="$ac_cv_search_inet_pton $LDADD_LIBNTP" ;;
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
8925 $as_echo_n "checking for library containing inet_ntop... " >&6; }
8926 if ${ac_cv_search_inet_ntop+:} false; then :
8927 $as_echo_n "(cached) " >&6
8929 ac_func_search_save_LIBS=$LIBS
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8933 /* Override any GCC internal prototype to avoid an error.
8934 Use char because int might match the return type of a GCC
8935 builtin and then its argument prototype would still apply. */
8943 return inet_ntop ();
8948 for ac_lib in '' resolv; do
8949 if test -z "$ac_lib"; then
8950 ac_res="none required"
8953 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
8955 if ac_fn_c_try_link "$LINENO"; then :
8956 ac_cv_search_inet_ntop=$ac_res
8958 rm -f core conftest.err conftest.$ac_objext \
8960 if ${ac_cv_search_inet_ntop+:} false; then :
8964 if ${ac_cv_search_inet_ntop+:} false; then :
8967 ac_cv_search_inet_ntop=no
8970 LIBS=$ac_func_search_save_LIBS
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
8973 $as_echo "$ac_cv_search_inet_ntop" >&6; }
8974 ac_res=$ac_cv_search_inet_ntop
8975 if test "$ac_res" != no; then :
8976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8977 case "$ac_cv_search_inet_ntop" in
8980 *) LDADD_LIBNTP="$ac_cv_search_inet_ntop $LDADD_LIBNTP" ;;
8986 # [Bug 1628] On Solaris, we need -lxnet -lsocket. Generalize this to
8987 # avoid keying on the OS name: If we find socket functions in
8988 # libsocket, next try for them in libxnet without libsocket, if found,
8989 # list both. If we simply tested libxnet first, we would find the
8990 # functions there and never add libsocket. See also [Bug 660]
8991 # http://bugs.ntp.org/show_bug.cgi?id=660#c9
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
8994 $as_echo_n "checking for library containing setsockopt... " >&6; }
8995 if ${ac_cv_search_setsockopt+:} false; then :
8996 $as_echo_n "(cached) " >&6
8998 ac_func_search_save_LIBS=$LIBS
8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9000 /* end confdefs.h. */
9002 /* Override any GCC internal prototype to avoid an error.
9003 Use char because int might match the return type of a GCC
9004 builtin and then its argument prototype would still apply. */
9012 return setsockopt ();
9017 for ac_lib in '' socket; do
9018 if test -z "$ac_lib"; then
9019 ac_res="none required"
9022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9024 if ac_fn_c_try_link "$LINENO"; then :
9025 ac_cv_search_setsockopt=$ac_res
9027 rm -f core conftest.err conftest.$ac_objext \
9029 if ${ac_cv_search_setsockopt+:} false; then :
9033 if ${ac_cv_search_setsockopt+:} false; then :
9036 ac_cv_search_setsockopt=no
9039 LIBS=$ac_func_search_save_LIBS
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
9042 $as_echo "$ac_cv_search_setsockopt" >&6; }
9043 ac_res=$ac_cv_search_setsockopt
9044 if test "$ac_res" != no; then :
9045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9046 case "$ac_cv_search_setsockopt" in
9049 *) LDADD_LIBNTP="$ac_cv_search_setsockopt $LDADD_LIBNTP" ;;
9054 case "$ac_cv_search_setsockopt" in
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsockopt" >&5
9058 $as_echo_n "checking for library containing getsockopt... " >&6; }
9059 if ${ac_cv_search_getsockopt+:} false; then :
9060 $as_echo_n "(cached) " >&6
9062 ac_func_search_save_LIBS=$LIBS
9063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9064 /* end confdefs.h. */
9066 /* Override any GCC internal prototype to avoid an error.
9067 Use char because int might match the return type of a GCC
9068 builtin and then its argument prototype would still apply. */
9076 return getsockopt ();
9081 for ac_lib in '' xnet; do
9082 if test -z "$ac_lib"; then
9083 ac_res="none required"
9086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9088 if ac_fn_c_try_link "$LINENO"; then :
9089 ac_cv_search_getsockopt=$ac_res
9091 rm -f core conftest.err conftest.$ac_objext \
9093 if ${ac_cv_search_getsockopt+:} false; then :
9097 if ${ac_cv_search_getsockopt+:} false; then :
9100 ac_cv_search_getsockopt=no
9103 LIBS=$ac_func_search_save_LIBS
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsockopt" >&5
9106 $as_echo "$ac_cv_search_getsockopt" >&6; }
9107 ac_res=$ac_cv_search_getsockopt
9108 if test "$ac_res" != no; then :
9109 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9110 case "$ac_cv_search_getsockopt" in
9113 *) LDADD_LIBNTP="$ac_cv_search_getsockopt $LDADD_LIBNTP" ;;
9118 # XXX Possible trouble here - reading the comments above and looking at the
9119 # code below I wonder if we'll add -lxnet when we don't need it.
9120 # Also, do we need to add -lxnet to LDADD_LIBNTP, or perhaps see if it's
9121 # there when it is not needed?
9122 case "$ac_cv_search_getsockopt" in
9124 LIBS="-lxnet -lsocket $saved_LIBS"
9126 *) LIBS="-lsocket $saved_LIBS"
9131 { saved_LIBS=; unset saved_LIBS;}
9133 # Bug 2427 - look for recvmsg here.
9134 for ac_func in recvmsg
9136 ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
9137 if test "x$ac_cv_func_recvmsg" = xyes; then :
9138 cat >>confdefs.h <<_ACEOF
9139 #define HAVE_RECVMSG 1
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9147 $as_echo_n "checking for inline... " >&6; }
9148 if ${ac_cv_c_inline+:} false; then :
9149 $as_echo_n "(cached) " >&6
9152 for ac_kw in inline __inline__ __inline; do
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9157 static $ac_kw foo_t static_foo () {return 0; }
9158 $ac_kw foo_t foo () {return 0; }
9162 if ac_fn_c_try_compile "$LINENO"; then :
9163 ac_cv_c_inline=$ac_kw
9165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9166 test "$ac_cv_c_inline" != no && break
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9171 $as_echo "$ac_cv_c_inline" >&6; }
9173 case $ac_cv_c_inline in
9176 case $ac_cv_c_inline in
9178 *) ac_val=$ac_cv_c_inline;;
9180 cat >>confdefs.h <<_ACEOF
9182 #define inline $ac_val
9189 case "$ac_cv_c_inline" in
9194 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9200 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9201 if ${ac_cv_header_time+:} false; then :
9202 $as_echo_n "(cached) " >&6
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9206 #include <sys/types.h>
9207 #include <sys/time.h>
9213 if ((struct tm *) 0)
9219 if ac_fn_c_try_compile "$LINENO"; then :
9220 ac_cv_header_time=yes
9222 ac_cv_header_time=no
9224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9227 $as_echo "$ac_cv_header_time" >&6; }
9228 if test $ac_cv_header_time = yes; then
9230 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9234 # The cast to long int works around a bug in the HP C Compiler
9235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9237 # This bug is HP SR number 8606223364.
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
9239 $as_echo_n "checking size of time_t... " >&6; }
9240 if ${ac_cv_sizeof_time_t+:} false; then :
9241 $as_echo_n "(cached) " >&6
9243 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
9246 if test "$ac_cv_type_time_t" = yes; then
9247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9249 as_fn_error 77 "cannot compute sizeof (time_t)
9250 See \`config.log' for more details" "$LINENO" 5; }
9252 ac_cv_sizeof_time_t=0
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
9258 $as_echo "$ac_cv_sizeof_time_t" >&6; }
9262 cat >>confdefs.h <<_ACEOF
9263 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
9268 $as_echo_n "checking whether char is unsigned... " >&6; }
9269 if ${ac_cv_c_char_unsigned+:} false; then :
9270 $as_echo_n "(cached) " >&6
9272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273 /* end confdefs.h. */
9274 $ac_includes_default
9278 static int test_array [1 - 2 * !(((char) -1) < 0)];
9280 return test_array [0];
9286 if ac_fn_c_try_compile "$LINENO"; then :
9287 ac_cv_c_char_unsigned=no
9289 ac_cv_c_char_unsigned=yes
9291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
9294 $as_echo "$ac_cv_c_char_unsigned" >&6; }
9295 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
9296 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
9299 # The cast to long int works around a bug in the HP C Compiler
9300 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9301 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9302 # This bug is HP SR number 8606223364.
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
9304 $as_echo_n "checking size of signed char... " >&6; }
9305 if ${ac_cv_sizeof_signed_char+:} false; then :
9306 $as_echo_n "(cached) " >&6
9308 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
9311 if test "$ac_cv_type_signed_char" = yes; then
9312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9314 as_fn_error 77 "cannot compute sizeof (signed char)
9315 See \`config.log' for more details" "$LINENO" 5; }
9317 ac_cv_sizeof_signed_char=0
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
9323 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
9327 cat >>confdefs.h <<_ACEOF
9328 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
9332 ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
9333 if test "x$ac_cv_type_s_char" = xyes; then :
9335 cat >>confdefs.h <<_ACEOF
9336 #define HAVE_S_CHAR 1
9341 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
9342 if test "x$ac_cv_type_long_long" = xyes; then :
9344 cat >>confdefs.h <<_ACEOF
9345 #define HAVE_LONG_LONG 1
9351 # The cast to long int works around a bug in the HP C Compiler
9352 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9353 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9354 # This bug is HP SR number 8606223364.
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
9356 $as_echo_n "checking size of short... " >&6; }
9357 if ${ac_cv_sizeof_short+:} false; then :
9358 $as_echo_n "(cached) " >&6
9360 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
9363 if test "$ac_cv_type_short" = yes; then
9364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9366 as_fn_error 77 "cannot compute sizeof (short)
9367 See \`config.log' for more details" "$LINENO" 5; }
9369 ac_cv_sizeof_short=0
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
9375 $as_echo "$ac_cv_sizeof_short" >&6; }
9379 cat >>confdefs.h <<_ACEOF
9380 #define SIZEOF_SHORT $ac_cv_sizeof_short
9384 # The cast to long int works around a bug in the HP C Compiler
9385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9387 # This bug is HP SR number 8606223364.
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
9389 $as_echo_n "checking size of int... " >&6; }
9390 if ${ac_cv_sizeof_int+:} false; then :
9391 $as_echo_n "(cached) " >&6
9393 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
9396 if test "$ac_cv_type_int" = yes; then
9397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9399 as_fn_error 77 "cannot compute sizeof (int)
9400 See \`config.log' for more details" "$LINENO" 5; }
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
9408 $as_echo "$ac_cv_sizeof_int" >&6; }
9412 cat >>confdefs.h <<_ACEOF
9413 #define SIZEOF_INT $ac_cv_sizeof_int
9417 # The cast to long int works around a bug in the HP C Compiler
9418 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9419 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9420 # This bug is HP SR number 8606223364.
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
9422 $as_echo_n "checking size of long... " >&6; }
9423 if ${ac_cv_sizeof_long+:} false; then :
9424 $as_echo_n "(cached) " >&6
9426 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
9429 if test "$ac_cv_type_long" = yes; then
9430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9432 as_fn_error 77 "cannot compute sizeof (long)
9433 See \`config.log' for more details" "$LINENO" 5; }
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
9441 $as_echo "$ac_cv_sizeof_long" >&6; }
9445 cat >>confdefs.h <<_ACEOF
9446 #define SIZEOF_LONG $ac_cv_sizeof_long
9451 case "$ac_cv_type_long_long" in
9455 # The cast to long int works around a bug in the HP C Compiler
9456 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9457 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9458 # This bug is HP SR number 8606223364.
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
9460 $as_echo_n "checking size of long long... " >&6; }
9461 if ${ac_cv_sizeof_long_long+:} false; then :
9462 $as_echo_n "(cached) " >&6
9464 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
9467 if test "$ac_cv_type_long_long" = yes; then
9468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9470 as_fn_error 77 "cannot compute sizeof (long long)
9471 See \`config.log' for more details" "$LINENO" 5; }
9473 ac_cv_sizeof_long_long=0
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
9479 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9483 cat >>confdefs.h <<_ACEOF
9484 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9491 case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
9493 # We have a typedef for s_char. Might as well believe it...
9496 # We have signed chars, can't say 'signed char', no s_char typedef.
9498 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
9502 # We have signed chars, can say 'signed char', no s_char typedef.
9504 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
9508 # We have unsigned chars, can't say 'signed char', no s_char typedef.
9509 as_fn_error $? "No way to specify a signed character!" "$LINENO" 5
9512 # We have unsigned chars, can say 'signed char', no s_char typedef.
9514 $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
9520 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
9521 if ${ac_cv_type_uid_t+:} false; then :
9522 $as_echo_n "(cached) " >&6
9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9526 #include <sys/types.h>
9529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9530 $EGREP "uid_t" >/dev/null 2>&1; then :
9531 ac_cv_type_uid_t=yes
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
9539 $as_echo "$ac_cv_type_uid_t" >&6; }
9540 if test $ac_cv_type_uid_t = no; then
9542 $as_echo "#define uid_t int" >>confdefs.h
9545 $as_echo "#define gid_t int" >>confdefs.h
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
9555 $as_echo_n "checking if we're including debugging code... " >&6; }
9556 # Check whether --enable-debugging was given.
9557 if test "${enable_debugging+set}" = set; then :
9558 enableval=$enable_debugging; ntp_ok=$enableval
9567 $as_echo "#define DEBUG 1" >>confdefs.h
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
9571 $as_echo "$ntp_ok" >&6; }
9575 # check if we can compile with pthreads
9576 for ac_header in semaphore.h
9578 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
9579 if test "x$ac_cv_header_semaphore_h" = xyes; then :
9580 cat >>confdefs.h <<_ACEOF
9581 #define HAVE_SEMAPHORE_H 1
9588 for ac_func in socketpair
9590 ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
9591 if test "x$ac_cv_func_socketpair" = xyes; then :
9592 cat >>confdefs.h <<_ACEOF
9593 #define HAVE_SOCKETPAIR 1
9599 # Check whether --enable-thread-support was given.
9600 if test "${enable_thread_support+set}" = set; then :
9601 enableval=$enable_thread_support;
9603 enable_thread_support=yes
9608 case "$enable_thread_support" in
9611 ol_found_pthreads=no
9616 ac_cpp='$CPP $CPPFLAGS'
9617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9621 # OpenLDAP --with-threads
9623 # Check whether --with-threads was given.
9624 if test "${with_threads+set}" = set; then :
9625 withval=$with_threads;
9627 for ol_val in auto nt posix mach pth lwp yes no manual ; do
9628 if test "$withval" = "$ol_val" ; then
9632 if test "$ol_arg" = "invalid" ; then
9633 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
9635 ol_with_threads="$ol_arg"
9638 ol_with_threads="auto"
9640 # end --with-threads
9643 case "$ol_with_threads$host" in
9644 auto*-*-solaris2.[0-6])
9652 *-*-aix*) if test -z "$CC" ; then
9653 case "$ol_with_threads" in
9654 auto | yes | posix) ol_aix_threads=yes ;;
9660 if test $ol_aix_threads = yes ; then
9661 if test -z "${CC}" ; then
9662 for ac_prog in cc_r xlc_r cc
9664 # Extract the first word of "$ac_prog", so it can be a program name with args.
9665 set dummy $ac_prog; ac_word=$2
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667 $as_echo_n "checking for $ac_word... " >&6; }
9668 if ${ac_cv_prog_CC+:} false; then :
9669 $as_echo_n "(cached) " >&6
9671 if test -n "$CC"; then
9672 ac_cv_prog_CC="$CC" # Let the user override the test.
9674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678 test -z "$as_dir" && as_dir=.
9679 for ac_exec_ext in '' $ac_executable_extensions; do
9680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9681 ac_cv_prog_CC="$ac_prog"
9682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9692 if test -n "$CC"; then
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9694 $as_echo "$CC" >&6; }
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697 $as_echo "no" >&6; }
9701 test -n "$CC" && break
9705 if test "$CC" = cc ; then
9706 if test $ol_with_threads != auto ; then
9707 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
9710 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
9716 case ${CC} in cc_r | xlc_r)
9717 ol_with_threads=posix
9718 ol_cv_pthread_create=yes
9724 # OpenLDAP --with-yielding_select
9726 # Check whether --with-yielding_select was given.
9727 if test "${with_yielding_select+set}" = set; then :
9728 withval=$with_yielding_select;
9730 for ol_val in auto yes no manual ; do
9731 if test "$withval" = "$ol_val" ; then
9735 if test "$ol_arg" = "invalid" ; then
9736 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
9738 ol_with_yielding_select="$ol_arg"
9741 ol_with_yielding_select="auto"
9743 # end --with-yielding_select
9746 case $ol_with_threads in auto | yes | nt)
9749 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
9750 if test "x$ac_cv_func__beginthread" = xyes; then :
9755 if test $ac_cv_func__beginthread = yes ; then
9757 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
9759 ol_cv_nt_threads=yes
9763 if test "$ol_cv_nt_threads" = yes ; then
9765 ol_with_threads=found
9766 ol_with_yielding_select=yes
9769 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
9772 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
9776 if test $ol_with_threads = nt ; then
9777 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
9782 case $ol_with_threads in auto | yes | posix)
9784 for ac_header in pthread.h
9786 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9787 if test "x$ac_cv_header_pthread_h" = xyes; then :
9788 cat >>confdefs.h <<_ACEOF
9789 #define HAVE_PTHREAD_H 1
9797 if test $ac_cv_header_pthread_h = yes ; then
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
9799 $as_echo_n "checking POSIX thread version... " >&6; }
9800 if ${ol_cv_pthread_version+:} false; then :
9801 $as_echo_n "(cached) " >&6
9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h. */
9807 # include <pthread.h>
9813 int i = PTHREAD_CREATE_JOINABLE;
9819 if ac_fn_c_try_compile "$LINENO"; then :
9821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822 /* end confdefs.h. */
9823 #include <pthread.h>
9826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9827 $EGREP "pthread_detach" >/dev/null 2>&1; then :
9828 ol_cv_pthread_version=10
9830 ol_cv_pthread_version=8
9836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9837 /* end confdefs.h. */
9839 # include <pthread.h>
9840 # ifdef PTHREAD_CREATE_UNDETACHED
9845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9846 $EGREP "draft7" >/dev/null 2>&1; then :
9847 ol_cv_pthread_version=7
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9852 #include <pthread.h>
9855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9856 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
9857 ol_cv_pthread_version=6
9860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9861 /* end confdefs.h. */
9863 # include <pthread.h>
9864 #ifdef PTHREAD_MUTEX_INITIALIZER
9869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9870 $EGREP "draft5" >/dev/null 2>&1; then :
9871 ol_cv_pthread_version=5
9873 ol_cv_pthread_version=4
9884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
9888 $as_echo "$ol_cv_pthread_version" >&6; }
9891 if test $ol_cv_pthread_version != 0 ; then
9893 cat >>confdefs.h <<_ACEOF
9894 #define HAVE_PTHREADS $ol_cv_pthread_version
9898 as_fn_error $? "unknown pthread version" "$LINENO" 5
9901 # consider threads found
9902 ol_with_threads=found
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
9906 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
9907 if ${ol_cv_header_linux_threads+:} false; then :
9908 $as_echo_n "(cached) " >&6
9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9912 #include <pthread.h>
9914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9915 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
9916 ol_cv_header_linux_threads=yes
9918 ol_cv_header_linux_threads=no
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
9925 $as_echo "$ol_cv_header_linux_threads" >&6; }
9926 if test $ol_cv_header_linux_threads = yes; then
9928 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
9934 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
9935 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
9936 $as_echo_n "(cached) " >&6
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9940 #include <pthread.h>
9941 #ifdef _POSIX_THREAD_IS_GNU_PTH
9946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9947 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
9948 ol_cv_header_gnu_pth_pthread_h=yes
9950 ol_cv_header_gnu_pth_pthread_h=no
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
9957 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
9960 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
9961 for ac_header in sched.h
9963 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
9964 if test "x$ac_cv_header_sched_h" = xyes; then :
9965 cat >>confdefs.h <<_ACEOF
9966 #define HAVE_SCHED_H 1
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
9977 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
9978 if ${ol_cv_pthread_create+:} false; then :
9979 $as_echo_n "(cached) " >&6
9982 if test "$cross_compiling" = yes; then :
9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h. */
9986 /* pthread test headers */
9987 #include <pthread.h>
9988 #if HAVE_PTHREADS < 7
9992 #define NULL (void*)0
9995 static void *task(p)
9998 return (void *) (p == NULL);
10005 /* pthread test function */
10006 #ifndef PTHREAD_CREATE_DETACHED
10007 #define PTHREAD_CREATE_DETACHED 1
10011 int detach = PTHREAD_CREATE_DETACHED;
10013 #if HAVE_PTHREADS > 4
10014 /* Final pthreads */
10015 pthread_attr_t attr;
10017 status = pthread_attr_init(&attr);
10018 if( status ) return status;
10020 #if HAVE_PTHREADS < 7
10021 status = pthread_attr_setdetachstate(&attr, &detach);
10022 if( status < 0 ) status = errno;
10024 status = pthread_attr_setdetachstate(&attr, detach);
10026 if( status ) return status;
10027 status = pthread_create( &t, &attr, task, NULL );
10028 #if HAVE_PTHREADS < 7
10029 if( status < 0 ) status = errno;
10031 if( status ) return status;
10033 /* Draft 4 pthreads */
10034 status = pthread_create( &t, pthread_attr_default, task, NULL );
10035 if( status ) return errno;
10037 /* give thread a chance to complete */
10038 /* it should remain joinable and hence detachable */
10041 status = pthread_detach( &t );
10042 if( status ) return errno;
10045 #ifdef HAVE_LINUX_THREADS
10046 pthread_kill_other_threads_np();
10055 if ac_fn_c_try_link "$LINENO"; then :
10056 ol_cv_pthread_create=yes
10058 ol_cv_pthread_create=no
10060 rm -f core conftest.err conftest.$ac_objext \
10061 conftest$ac_exeext conftest.$ac_ext
10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h. */
10067 /* pthread test headers */
10068 #include <pthread.h>
10069 #if HAVE_PTHREADS < 7
10073 #define NULL (void*)0
10076 static void *task(p)
10079 return (void *) (p == NULL);
10083 int main(argc, argv)
10088 /* pthread test function */
10089 #ifndef PTHREAD_CREATE_DETACHED
10090 #define PTHREAD_CREATE_DETACHED 1
10094 int detach = PTHREAD_CREATE_DETACHED;
10096 #if HAVE_PTHREADS > 4
10097 /* Final pthreads */
10098 pthread_attr_t attr;
10100 status = pthread_attr_init(&attr);
10101 if( status ) return status;
10103 #if HAVE_PTHREADS < 7
10104 status = pthread_attr_setdetachstate(&attr, &detach);
10105 if( status < 0 ) status = errno;
10107 status = pthread_attr_setdetachstate(&attr, detach);
10109 if( status ) return status;
10110 status = pthread_create( &t, &attr, task, NULL );
10111 #if HAVE_PTHREADS < 7
10112 if( status < 0 ) status = errno;
10114 if( status ) return status;
10116 /* Draft 4 pthreads */
10117 status = pthread_create( &t, pthread_attr_default, task, NULL );
10118 if( status ) return errno;
10120 /* give thread a chance to complete */
10121 /* it should remain joinable and hence detachable */
10124 status = pthread_detach( &t );
10125 if( status ) return errno;
10128 #ifdef HAVE_LINUX_THREADS
10129 pthread_kill_other_threads_np();
10137 if ac_fn_c_try_run "$LINENO"; then :
10138 ol_cv_pthread_create=yes
10140 ol_cv_pthread_create=no
10142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10143 conftest.$ac_objext conftest.beam conftest.$ac_ext
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
10148 $as_echo "$ol_cv_pthread_create" >&6; }
10150 if test $ol_cv_pthread_create != no ; then
10151 ol_link_threads=posix
10152 ol_link_pthreads=""
10155 # Pthread try link: -kthread (ol_cv_pthread_kthread)
10156 if test "$ol_link_threads" = no ; then
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
10159 $as_echo_n "checking for pthread link with -kthread... " >&6; }
10160 if ${ol_cv_pthread_kthread+:} false; then :
10161 $as_echo_n "(cached) " >&6
10166 LIBS="-kthread $LIBS"
10168 if test "$cross_compiling" = yes; then :
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10172 /* pthread test headers */
10173 #include <pthread.h>
10174 #if HAVE_PTHREADS < 7
10178 #define NULL (void*)0
10181 static void *task(p)
10184 return (void *) (p == NULL);
10191 /* pthread test function */
10192 #ifndef PTHREAD_CREATE_DETACHED
10193 #define PTHREAD_CREATE_DETACHED 1
10197 int detach = PTHREAD_CREATE_DETACHED;
10199 #if HAVE_PTHREADS > 4
10200 /* Final pthreads */
10201 pthread_attr_t attr;
10203 status = pthread_attr_init(&attr);
10204 if( status ) return status;
10206 #if HAVE_PTHREADS < 7
10207 status = pthread_attr_setdetachstate(&attr, &detach);
10208 if( status < 0 ) status = errno;
10210 status = pthread_attr_setdetachstate(&attr, detach);
10212 if( status ) return status;
10213 status = pthread_create( &t, &attr, task, NULL );
10214 #if HAVE_PTHREADS < 7
10215 if( status < 0 ) status = errno;
10217 if( status ) return status;
10219 /* Draft 4 pthreads */
10220 status = pthread_create( &t, pthread_attr_default, task, NULL );
10221 if( status ) return errno;
10223 /* give thread a chance to complete */
10224 /* it should remain joinable and hence detachable */
10227 status = pthread_detach( &t );
10228 if( status ) return errno;
10231 #ifdef HAVE_LINUX_THREADS
10232 pthread_kill_other_threads_np();
10241 if ac_fn_c_try_link "$LINENO"; then :
10242 ol_cv_pthread_kthread=yes
10244 ol_cv_pthread_kthread=no
10246 rm -f core conftest.err conftest.$ac_objext \
10247 conftest$ac_exeext conftest.$ac_ext
10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10253 /* pthread test headers */
10254 #include <pthread.h>
10255 #if HAVE_PTHREADS < 7
10259 #define NULL (void*)0
10262 static void *task(p)
10265 return (void *) (p == NULL);
10269 int main(argc, argv)
10274 /* pthread test function */
10275 #ifndef PTHREAD_CREATE_DETACHED
10276 #define PTHREAD_CREATE_DETACHED 1
10280 int detach = PTHREAD_CREATE_DETACHED;
10282 #if HAVE_PTHREADS > 4
10283 /* Final pthreads */
10284 pthread_attr_t attr;
10286 status = pthread_attr_init(&attr);
10287 if( status ) return status;
10289 #if HAVE_PTHREADS < 7
10290 status = pthread_attr_setdetachstate(&attr, &detach);
10291 if( status < 0 ) status = errno;
10293 status = pthread_attr_setdetachstate(&attr, detach);
10295 if( status ) return status;
10296 status = pthread_create( &t, &attr, task, NULL );
10297 #if HAVE_PTHREADS < 7
10298 if( status < 0 ) status = errno;
10300 if( status ) return status;
10302 /* Draft 4 pthreads */
10303 status = pthread_create( &t, pthread_attr_default, task, NULL );
10304 if( status ) return errno;
10306 /* give thread a chance to complete */
10307 /* it should remain joinable and hence detachable */
10310 status = pthread_detach( &t );
10311 if( status ) return errno;
10314 #ifdef HAVE_LINUX_THREADS
10315 pthread_kill_other_threads_np();
10323 if ac_fn_c_try_run "$LINENO"; then :
10324 ol_cv_pthread_kthread=yes
10326 ol_cv_pthread_kthread=no
10328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10329 conftest.$ac_objext conftest.beam conftest.$ac_ext
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
10338 $as_echo "$ol_cv_pthread_kthread" >&6; }
10340 if test $ol_cv_pthread_kthread = yes ; then
10341 ol_link_pthreads="-kthread"
10342 ol_link_threads=posix
10346 # Pthread try link: -pthread (ol_cv_pthread_pthread)
10347 if test "$ol_link_threads" = no ; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
10350 $as_echo_n "checking for pthread link with -pthread... " >&6; }
10351 if ${ol_cv_pthread_pthread+:} false; then :
10352 $as_echo_n "(cached) " >&6
10357 LIBS="-pthread $LIBS"
10359 if test "$cross_compiling" = yes; then :
10360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h. */
10363 /* pthread test headers */
10364 #include <pthread.h>
10365 #if HAVE_PTHREADS < 7
10369 #define NULL (void*)0
10372 static void *task(p)
10375 return (void *) (p == NULL);
10382 /* pthread test function */
10383 #ifndef PTHREAD_CREATE_DETACHED
10384 #define PTHREAD_CREATE_DETACHED 1
10388 int detach = PTHREAD_CREATE_DETACHED;
10390 #if HAVE_PTHREADS > 4
10391 /* Final pthreads */
10392 pthread_attr_t attr;
10394 status = pthread_attr_init(&attr);
10395 if( status ) return status;
10397 #if HAVE_PTHREADS < 7
10398 status = pthread_attr_setdetachstate(&attr, &detach);
10399 if( status < 0 ) status = errno;
10401 status = pthread_attr_setdetachstate(&attr, detach);
10403 if( status ) return status;
10404 status = pthread_create( &t, &attr, task, NULL );
10405 #if HAVE_PTHREADS < 7
10406 if( status < 0 ) status = errno;
10408 if( status ) return status;
10410 /* Draft 4 pthreads */
10411 status = pthread_create( &t, pthread_attr_default, task, NULL );
10412 if( status ) return errno;
10414 /* give thread a chance to complete */
10415 /* it should remain joinable and hence detachable */
10418 status = pthread_detach( &t );
10419 if( status ) return errno;
10422 #ifdef HAVE_LINUX_THREADS
10423 pthread_kill_other_threads_np();
10432 if ac_fn_c_try_link "$LINENO"; then :
10433 ol_cv_pthread_pthread=yes
10435 ol_cv_pthread_pthread=no
10437 rm -f core conftest.err conftest.$ac_objext \
10438 conftest$ac_exeext conftest.$ac_ext
10440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441 /* end confdefs.h. */
10444 /* pthread test headers */
10445 #include <pthread.h>
10446 #if HAVE_PTHREADS < 7
10450 #define NULL (void*)0
10453 static void *task(p)
10456 return (void *) (p == NULL);
10460 int main(argc, argv)
10465 /* pthread test function */
10466 #ifndef PTHREAD_CREATE_DETACHED
10467 #define PTHREAD_CREATE_DETACHED 1
10471 int detach = PTHREAD_CREATE_DETACHED;
10473 #if HAVE_PTHREADS > 4
10474 /* Final pthreads */
10475 pthread_attr_t attr;
10477 status = pthread_attr_init(&attr);
10478 if( status ) return status;
10480 #if HAVE_PTHREADS < 7
10481 status = pthread_attr_setdetachstate(&attr, &detach);
10482 if( status < 0 ) status = errno;
10484 status = pthread_attr_setdetachstate(&attr, detach);
10486 if( status ) return status;
10487 status = pthread_create( &t, &attr, task, NULL );
10488 #if HAVE_PTHREADS < 7
10489 if( status < 0 ) status = errno;
10491 if( status ) return status;
10493 /* Draft 4 pthreads */
10494 status = pthread_create( &t, pthread_attr_default, task, NULL );
10495 if( status ) return errno;
10497 /* give thread a chance to complete */
10498 /* it should remain joinable and hence detachable */
10501 status = pthread_detach( &t );
10502 if( status ) return errno;
10505 #ifdef HAVE_LINUX_THREADS
10506 pthread_kill_other_threads_np();
10514 if ac_fn_c_try_run "$LINENO"; then :
10515 ol_cv_pthread_pthread=yes
10517 ol_cv_pthread_pthread=no
10519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10520 conftest.$ac_objext conftest.beam conftest.$ac_ext
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
10529 $as_echo "$ol_cv_pthread_pthread" >&6; }
10531 if test $ol_cv_pthread_pthread = yes ; then
10532 ol_link_pthreads="-pthread"
10533 ol_link_threads=posix
10537 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
10538 if test "$ol_link_threads" = no ; then
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
10541 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
10542 if ${ol_cv_pthread_pthreads+:} false; then :
10543 $as_echo_n "(cached) " >&6
10548 LIBS="-pthreads $LIBS"
10550 if test "$cross_compiling" = yes; then :
10551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552 /* end confdefs.h. */
10554 /* pthread test headers */
10555 #include <pthread.h>
10556 #if HAVE_PTHREADS < 7
10560 #define NULL (void*)0
10563 static void *task(p)
10566 return (void *) (p == NULL);
10573 /* pthread test function */
10574 #ifndef PTHREAD_CREATE_DETACHED
10575 #define PTHREAD_CREATE_DETACHED 1
10579 int detach = PTHREAD_CREATE_DETACHED;
10581 #if HAVE_PTHREADS > 4
10582 /* Final pthreads */
10583 pthread_attr_t attr;
10585 status = pthread_attr_init(&attr);
10586 if( status ) return status;
10588 #if HAVE_PTHREADS < 7
10589 status = pthread_attr_setdetachstate(&attr, &detach);
10590 if( status < 0 ) status = errno;
10592 status = pthread_attr_setdetachstate(&attr, detach);
10594 if( status ) return status;
10595 status = pthread_create( &t, &attr, task, NULL );
10596 #if HAVE_PTHREADS < 7
10597 if( status < 0 ) status = errno;
10599 if( status ) return status;
10601 /* Draft 4 pthreads */
10602 status = pthread_create( &t, pthread_attr_default, task, NULL );
10603 if( status ) return errno;
10605 /* give thread a chance to complete */
10606 /* it should remain joinable and hence detachable */
10609 status = pthread_detach( &t );
10610 if( status ) return errno;
10613 #ifdef HAVE_LINUX_THREADS
10614 pthread_kill_other_threads_np();
10623 if ac_fn_c_try_link "$LINENO"; then :
10624 ol_cv_pthread_pthreads=yes
10626 ol_cv_pthread_pthreads=no
10628 rm -f core conftest.err conftest.$ac_objext \
10629 conftest$ac_exeext conftest.$ac_ext
10631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632 /* end confdefs.h. */
10635 /* pthread test headers */
10636 #include <pthread.h>
10637 #if HAVE_PTHREADS < 7
10641 #define NULL (void*)0
10644 static void *task(p)
10647 return (void *) (p == NULL);
10651 int main(argc, argv)
10656 /* pthread test function */
10657 #ifndef PTHREAD_CREATE_DETACHED
10658 #define PTHREAD_CREATE_DETACHED 1
10662 int detach = PTHREAD_CREATE_DETACHED;
10664 #if HAVE_PTHREADS > 4
10665 /* Final pthreads */
10666 pthread_attr_t attr;
10668 status = pthread_attr_init(&attr);
10669 if( status ) return status;
10671 #if HAVE_PTHREADS < 7
10672 status = pthread_attr_setdetachstate(&attr, &detach);
10673 if( status < 0 ) status = errno;
10675 status = pthread_attr_setdetachstate(&attr, detach);
10677 if( status ) return status;
10678 status = pthread_create( &t, &attr, task, NULL );
10679 #if HAVE_PTHREADS < 7
10680 if( status < 0 ) status = errno;
10682 if( status ) return status;
10684 /* Draft 4 pthreads */
10685 status = pthread_create( &t, pthread_attr_default, task, NULL );
10686 if( status ) return errno;
10688 /* give thread a chance to complete */
10689 /* it should remain joinable and hence detachable */
10692 status = pthread_detach( &t );
10693 if( status ) return errno;
10696 #ifdef HAVE_LINUX_THREADS
10697 pthread_kill_other_threads_np();
10705 if ac_fn_c_try_run "$LINENO"; then :
10706 ol_cv_pthread_pthreads=yes
10708 ol_cv_pthread_pthreads=no
10710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10711 conftest.$ac_objext conftest.beam conftest.$ac_ext
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
10720 $as_echo "$ol_cv_pthread_pthreads" >&6; }
10722 if test $ol_cv_pthread_pthreads = yes ; then
10723 ol_link_pthreads="-pthreads"
10724 ol_link_threads=posix
10728 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
10729 if test "$ol_link_threads" = no ; then
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
10732 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
10733 if ${ol_cv_pthread_mthreads+:} false; then :
10734 $as_echo_n "(cached) " >&6
10739 LIBS="-mthreads $LIBS"
10741 if test "$cross_compiling" = yes; then :
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10745 /* pthread test headers */
10746 #include <pthread.h>
10747 #if HAVE_PTHREADS < 7
10751 #define NULL (void*)0
10754 static void *task(p)
10757 return (void *) (p == NULL);
10764 /* pthread test function */
10765 #ifndef PTHREAD_CREATE_DETACHED
10766 #define PTHREAD_CREATE_DETACHED 1
10770 int detach = PTHREAD_CREATE_DETACHED;
10772 #if HAVE_PTHREADS > 4
10773 /* Final pthreads */
10774 pthread_attr_t attr;
10776 status = pthread_attr_init(&attr);
10777 if( status ) return status;
10779 #if HAVE_PTHREADS < 7
10780 status = pthread_attr_setdetachstate(&attr, &detach);
10781 if( status < 0 ) status = errno;
10783 status = pthread_attr_setdetachstate(&attr, detach);
10785 if( status ) return status;
10786 status = pthread_create( &t, &attr, task, NULL );
10787 #if HAVE_PTHREADS < 7
10788 if( status < 0 ) status = errno;
10790 if( status ) return status;
10792 /* Draft 4 pthreads */
10793 status = pthread_create( &t, pthread_attr_default, task, NULL );
10794 if( status ) return errno;
10796 /* give thread a chance to complete */
10797 /* it should remain joinable and hence detachable */
10800 status = pthread_detach( &t );
10801 if( status ) return errno;
10804 #ifdef HAVE_LINUX_THREADS
10805 pthread_kill_other_threads_np();
10814 if ac_fn_c_try_link "$LINENO"; then :
10815 ol_cv_pthread_mthreads=yes
10817 ol_cv_pthread_mthreads=no
10819 rm -f core conftest.err conftest.$ac_objext \
10820 conftest$ac_exeext conftest.$ac_ext
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10826 /* pthread test headers */
10827 #include <pthread.h>
10828 #if HAVE_PTHREADS < 7
10832 #define NULL (void*)0
10835 static void *task(p)
10838 return (void *) (p == NULL);
10842 int main(argc, argv)
10847 /* pthread test function */
10848 #ifndef PTHREAD_CREATE_DETACHED
10849 #define PTHREAD_CREATE_DETACHED 1
10853 int detach = PTHREAD_CREATE_DETACHED;
10855 #if HAVE_PTHREADS > 4
10856 /* Final pthreads */
10857 pthread_attr_t attr;
10859 status = pthread_attr_init(&attr);
10860 if( status ) return status;
10862 #if HAVE_PTHREADS < 7
10863 status = pthread_attr_setdetachstate(&attr, &detach);
10864 if( status < 0 ) status = errno;
10866 status = pthread_attr_setdetachstate(&attr, detach);
10868 if( status ) return status;
10869 status = pthread_create( &t, &attr, task, NULL );
10870 #if HAVE_PTHREADS < 7
10871 if( status < 0 ) status = errno;
10873 if( status ) return status;
10875 /* Draft 4 pthreads */
10876 status = pthread_create( &t, pthread_attr_default, task, NULL );
10877 if( status ) return errno;
10879 /* give thread a chance to complete */
10880 /* it should remain joinable and hence detachable */
10883 status = pthread_detach( &t );
10884 if( status ) return errno;
10887 #ifdef HAVE_LINUX_THREADS
10888 pthread_kill_other_threads_np();
10896 if ac_fn_c_try_run "$LINENO"; then :
10897 ol_cv_pthread_mthreads=yes
10899 ol_cv_pthread_mthreads=no
10901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10902 conftest.$ac_objext conftest.beam conftest.$ac_ext
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
10911 $as_echo "$ol_cv_pthread_mthreads" >&6; }
10913 if test $ol_cv_pthread_mthreads = yes ; then
10914 ol_link_pthreads="-mthreads"
10915 ol_link_threads=posix
10919 # Pthread try link: -thread (ol_cv_pthread_thread)
10920 if test "$ol_link_threads" = no ; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
10923 $as_echo_n "checking for pthread link with -thread... " >&6; }
10924 if ${ol_cv_pthread_thread+:} false; then :
10925 $as_echo_n "(cached) " >&6
10930 LIBS="-thread $LIBS"
10932 if test "$cross_compiling" = yes; then :
10933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934 /* end confdefs.h. */
10936 /* pthread test headers */
10937 #include <pthread.h>
10938 #if HAVE_PTHREADS < 7
10942 #define NULL (void*)0
10945 static void *task(p)
10948 return (void *) (p == NULL);
10955 /* pthread test function */
10956 #ifndef PTHREAD_CREATE_DETACHED
10957 #define PTHREAD_CREATE_DETACHED 1
10961 int detach = PTHREAD_CREATE_DETACHED;
10963 #if HAVE_PTHREADS > 4
10964 /* Final pthreads */
10965 pthread_attr_t attr;
10967 status = pthread_attr_init(&attr);
10968 if( status ) return status;
10970 #if HAVE_PTHREADS < 7
10971 status = pthread_attr_setdetachstate(&attr, &detach);
10972 if( status < 0 ) status = errno;
10974 status = pthread_attr_setdetachstate(&attr, detach);
10976 if( status ) return status;
10977 status = pthread_create( &t, &attr, task, NULL );
10978 #if HAVE_PTHREADS < 7
10979 if( status < 0 ) status = errno;
10981 if( status ) return status;
10983 /* Draft 4 pthreads */
10984 status = pthread_create( &t, pthread_attr_default, task, NULL );
10985 if( status ) return errno;
10987 /* give thread a chance to complete */
10988 /* it should remain joinable and hence detachable */
10991 status = pthread_detach( &t );
10992 if( status ) return errno;
10995 #ifdef HAVE_LINUX_THREADS
10996 pthread_kill_other_threads_np();
11005 if ac_fn_c_try_link "$LINENO"; then :
11006 ol_cv_pthread_thread=yes
11008 ol_cv_pthread_thread=no
11010 rm -f core conftest.err conftest.$ac_objext \
11011 conftest$ac_exeext conftest.$ac_ext
11013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11014 /* end confdefs.h. */
11017 /* pthread test headers */
11018 #include <pthread.h>
11019 #if HAVE_PTHREADS < 7
11023 #define NULL (void*)0
11026 static void *task(p)
11029 return (void *) (p == NULL);
11033 int main(argc, argv)
11038 /* pthread test function */
11039 #ifndef PTHREAD_CREATE_DETACHED
11040 #define PTHREAD_CREATE_DETACHED 1
11044 int detach = PTHREAD_CREATE_DETACHED;
11046 #if HAVE_PTHREADS > 4
11047 /* Final pthreads */
11048 pthread_attr_t attr;
11050 status = pthread_attr_init(&attr);
11051 if( status ) return status;
11053 #if HAVE_PTHREADS < 7
11054 status = pthread_attr_setdetachstate(&attr, &detach);
11055 if( status < 0 ) status = errno;
11057 status = pthread_attr_setdetachstate(&attr, detach);
11059 if( status ) return status;
11060 status = pthread_create( &t, &attr, task, NULL );
11061 #if HAVE_PTHREADS < 7
11062 if( status < 0 ) status = errno;
11064 if( status ) return status;
11066 /* Draft 4 pthreads */
11067 status = pthread_create( &t, pthread_attr_default, task, NULL );
11068 if( status ) return errno;
11070 /* give thread a chance to complete */
11071 /* it should remain joinable and hence detachable */
11074 status = pthread_detach( &t );
11075 if( status ) return errno;
11078 #ifdef HAVE_LINUX_THREADS
11079 pthread_kill_other_threads_np();
11087 if ac_fn_c_try_run "$LINENO"; then :
11088 ol_cv_pthread_thread=yes
11090 ol_cv_pthread_thread=no
11092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11093 conftest.$ac_objext conftest.beam conftest.$ac_ext
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
11102 $as_echo "$ol_cv_pthread_thread" >&6; }
11104 if test $ol_cv_pthread_thread = yes ; then
11105 ol_link_pthreads="-thread"
11106 ol_link_threads=posix
11111 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
11112 if test "$ol_link_threads" = no ; then
11113 # try -lpthread -lmach -lexc -lc_r
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
11115 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
11116 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
11117 $as_echo_n "(cached) " >&6
11122 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
11124 if test "$cross_compiling" = yes; then :
11125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11126 /* end confdefs.h. */
11128 /* pthread test headers */
11129 #include <pthread.h>
11130 #if HAVE_PTHREADS < 7
11134 #define NULL (void*)0
11137 static void *task(p)
11140 return (void *) (p == NULL);
11147 /* pthread test function */
11148 #ifndef PTHREAD_CREATE_DETACHED
11149 #define PTHREAD_CREATE_DETACHED 1
11153 int detach = PTHREAD_CREATE_DETACHED;
11155 #if HAVE_PTHREADS > 4
11156 /* Final pthreads */
11157 pthread_attr_t attr;
11159 status = pthread_attr_init(&attr);
11160 if( status ) return status;
11162 #if HAVE_PTHREADS < 7
11163 status = pthread_attr_setdetachstate(&attr, &detach);
11164 if( status < 0 ) status = errno;
11166 status = pthread_attr_setdetachstate(&attr, detach);
11168 if( status ) return status;
11169 status = pthread_create( &t, &attr, task, NULL );
11170 #if HAVE_PTHREADS < 7
11171 if( status < 0 ) status = errno;
11173 if( status ) return status;
11175 /* Draft 4 pthreads */
11176 status = pthread_create( &t, pthread_attr_default, task, NULL );
11177 if( status ) return errno;
11179 /* give thread a chance to complete */
11180 /* it should remain joinable and hence detachable */
11183 status = pthread_detach( &t );
11184 if( status ) return errno;
11187 #ifdef HAVE_LINUX_THREADS
11188 pthread_kill_other_threads_np();
11197 if ac_fn_c_try_link "$LINENO"; then :
11198 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
11200 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
11202 rm -f core conftest.err conftest.$ac_objext \
11203 conftest$ac_exeext conftest.$ac_ext
11205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206 /* end confdefs.h. */
11209 /* pthread test headers */
11210 #include <pthread.h>
11211 #if HAVE_PTHREADS < 7
11215 #define NULL (void*)0
11218 static void *task(p)
11221 return (void *) (p == NULL);
11225 int main(argc, argv)
11230 /* pthread test function */
11231 #ifndef PTHREAD_CREATE_DETACHED
11232 #define PTHREAD_CREATE_DETACHED 1
11236 int detach = PTHREAD_CREATE_DETACHED;
11238 #if HAVE_PTHREADS > 4
11239 /* Final pthreads */
11240 pthread_attr_t attr;
11242 status = pthread_attr_init(&attr);
11243 if( status ) return status;
11245 #if HAVE_PTHREADS < 7
11246 status = pthread_attr_setdetachstate(&attr, &detach);
11247 if( status < 0 ) status = errno;
11249 status = pthread_attr_setdetachstate(&attr, detach);
11251 if( status ) return status;
11252 status = pthread_create( &t, &attr, task, NULL );
11253 #if HAVE_PTHREADS < 7
11254 if( status < 0 ) status = errno;
11256 if( status ) return status;
11258 /* Draft 4 pthreads */
11259 status = pthread_create( &t, pthread_attr_default, task, NULL );
11260 if( status ) return errno;
11262 /* give thread a chance to complete */
11263 /* it should remain joinable and hence detachable */
11266 status = pthread_detach( &t );
11267 if( status ) return errno;
11270 #ifdef HAVE_LINUX_THREADS
11271 pthread_kill_other_threads_np();
11279 if ac_fn_c_try_run "$LINENO"; then :
11280 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
11282 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
11284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11285 conftest.$ac_objext conftest.beam conftest.$ac_ext
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
11294 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
11296 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
11297 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
11298 ol_link_threads=posix
11302 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
11303 if test "$ol_link_threads" = no ; then
11304 # try -lpthread -lmach -lexc
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
11306 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
11307 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
11308 $as_echo_n "(cached) " >&6
11313 LIBS="-lpthread -lmach -lexc $LIBS"
11315 if test "$cross_compiling" = yes; then :
11316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h. */
11319 /* pthread test headers */
11320 #include <pthread.h>
11321 #if HAVE_PTHREADS < 7
11325 #define NULL (void*)0
11328 static void *task(p)
11331 return (void *) (p == NULL);
11338 /* pthread test function */
11339 #ifndef PTHREAD_CREATE_DETACHED
11340 #define PTHREAD_CREATE_DETACHED 1
11344 int detach = PTHREAD_CREATE_DETACHED;
11346 #if HAVE_PTHREADS > 4
11347 /* Final pthreads */
11348 pthread_attr_t attr;
11350 status = pthread_attr_init(&attr);
11351 if( status ) return status;
11353 #if HAVE_PTHREADS < 7
11354 status = pthread_attr_setdetachstate(&attr, &detach);
11355 if( status < 0 ) status = errno;
11357 status = pthread_attr_setdetachstate(&attr, detach);
11359 if( status ) return status;
11360 status = pthread_create( &t, &attr, task, NULL );
11361 #if HAVE_PTHREADS < 7
11362 if( status < 0 ) status = errno;
11364 if( status ) return status;
11366 /* Draft 4 pthreads */
11367 status = pthread_create( &t, pthread_attr_default, task, NULL );
11368 if( status ) return errno;
11370 /* give thread a chance to complete */
11371 /* it should remain joinable and hence detachable */
11374 status = pthread_detach( &t );
11375 if( status ) return errno;
11378 #ifdef HAVE_LINUX_THREADS
11379 pthread_kill_other_threads_np();
11388 if ac_fn_c_try_link "$LINENO"; then :
11389 ol_cv_pthread_lpthread_lmach_lexc=yes
11391 ol_cv_pthread_lpthread_lmach_lexc=no
11393 rm -f core conftest.err conftest.$ac_objext \
11394 conftest$ac_exeext conftest.$ac_ext
11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h. */
11400 /* pthread test headers */
11401 #include <pthread.h>
11402 #if HAVE_PTHREADS < 7
11406 #define NULL (void*)0
11409 static void *task(p)
11412 return (void *) (p == NULL);
11416 int main(argc, argv)
11421 /* pthread test function */
11422 #ifndef PTHREAD_CREATE_DETACHED
11423 #define PTHREAD_CREATE_DETACHED 1
11427 int detach = PTHREAD_CREATE_DETACHED;
11429 #if HAVE_PTHREADS > 4
11430 /* Final pthreads */
11431 pthread_attr_t attr;
11433 status = pthread_attr_init(&attr);
11434 if( status ) return status;
11436 #if HAVE_PTHREADS < 7
11437 status = pthread_attr_setdetachstate(&attr, &detach);
11438 if( status < 0 ) status = errno;
11440 status = pthread_attr_setdetachstate(&attr, detach);
11442 if( status ) return status;
11443 status = pthread_create( &t, &attr, task, NULL );
11444 #if HAVE_PTHREADS < 7
11445 if( status < 0 ) status = errno;
11447 if( status ) return status;
11449 /* Draft 4 pthreads */
11450 status = pthread_create( &t, pthread_attr_default, task, NULL );
11451 if( status ) return errno;
11453 /* give thread a chance to complete */
11454 /* it should remain joinable and hence detachable */
11457 status = pthread_detach( &t );
11458 if( status ) return errno;
11461 #ifdef HAVE_LINUX_THREADS
11462 pthread_kill_other_threads_np();
11470 if ac_fn_c_try_run "$LINENO"; then :
11471 ol_cv_pthread_lpthread_lmach_lexc=yes
11473 ol_cv_pthread_lpthread_lmach_lexc=no
11475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11476 conftest.$ac_objext conftest.beam conftest.$ac_ext
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
11485 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
11487 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
11488 ol_link_pthreads="-lpthread -lmach -lexc"
11489 ol_link_threads=posix
11494 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
11495 if test "$ol_link_threads" = no ; then
11496 # try -lpthread -Wl,-woff,85
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
11498 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
11499 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
11500 $as_echo_n "(cached) " >&6
11505 LIBS="-lpthread -Wl,-woff,85 $LIBS"
11507 if test "$cross_compiling" = yes; then :
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11511 /* pthread test headers */
11512 #include <pthread.h>
11513 #if HAVE_PTHREADS < 7
11517 #define NULL (void*)0
11520 static void *task(p)
11523 return (void *) (p == NULL);
11530 /* pthread test function */
11531 #ifndef PTHREAD_CREATE_DETACHED
11532 #define PTHREAD_CREATE_DETACHED 1
11536 int detach = PTHREAD_CREATE_DETACHED;
11538 #if HAVE_PTHREADS > 4
11539 /* Final pthreads */
11540 pthread_attr_t attr;
11542 status = pthread_attr_init(&attr);
11543 if( status ) return status;
11545 #if HAVE_PTHREADS < 7
11546 status = pthread_attr_setdetachstate(&attr, &detach);
11547 if( status < 0 ) status = errno;
11549 status = pthread_attr_setdetachstate(&attr, detach);
11551 if( status ) return status;
11552 status = pthread_create( &t, &attr, task, NULL );
11553 #if HAVE_PTHREADS < 7
11554 if( status < 0 ) status = errno;
11556 if( status ) return status;
11558 /* Draft 4 pthreads */
11559 status = pthread_create( &t, pthread_attr_default, task, NULL );
11560 if( status ) return errno;
11562 /* give thread a chance to complete */
11563 /* it should remain joinable and hence detachable */
11566 status = pthread_detach( &t );
11567 if( status ) return errno;
11570 #ifdef HAVE_LINUX_THREADS
11571 pthread_kill_other_threads_np();
11580 if ac_fn_c_try_link "$LINENO"; then :
11581 ol_cv_pthread_lib_lpthread_woff=yes
11583 ol_cv_pthread_lib_lpthread_woff=no
11585 rm -f core conftest.err conftest.$ac_objext \
11586 conftest$ac_exeext conftest.$ac_ext
11588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 /* end confdefs.h. */
11592 /* pthread test headers */
11593 #include <pthread.h>
11594 #if HAVE_PTHREADS < 7
11598 #define NULL (void*)0
11601 static void *task(p)
11604 return (void *) (p == NULL);
11608 int main(argc, argv)
11613 /* pthread test function */
11614 #ifndef PTHREAD_CREATE_DETACHED
11615 #define PTHREAD_CREATE_DETACHED 1
11619 int detach = PTHREAD_CREATE_DETACHED;
11621 #if HAVE_PTHREADS > 4
11622 /* Final pthreads */
11623 pthread_attr_t attr;
11625 status = pthread_attr_init(&attr);
11626 if( status ) return status;
11628 #if HAVE_PTHREADS < 7
11629 status = pthread_attr_setdetachstate(&attr, &detach);
11630 if( status < 0 ) status = errno;
11632 status = pthread_attr_setdetachstate(&attr, detach);
11634 if( status ) return status;
11635 status = pthread_create( &t, &attr, task, NULL );
11636 #if HAVE_PTHREADS < 7
11637 if( status < 0 ) status = errno;
11639 if( status ) return status;
11641 /* Draft 4 pthreads */
11642 status = pthread_create( &t, pthread_attr_default, task, NULL );
11643 if( status ) return errno;
11645 /* give thread a chance to complete */
11646 /* it should remain joinable and hence detachable */
11649 status = pthread_detach( &t );
11650 if( status ) return errno;
11653 #ifdef HAVE_LINUX_THREADS
11654 pthread_kill_other_threads_np();
11662 if ac_fn_c_try_run "$LINENO"; then :
11663 ol_cv_pthread_lib_lpthread_woff=yes
11665 ol_cv_pthread_lib_lpthread_woff=no
11667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11668 conftest.$ac_objext conftest.beam conftest.$ac_ext
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
11677 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
11679 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
11680 ol_link_pthreads="-lpthread -Wl,-woff,85"
11681 ol_link_threads=posix
11686 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
11687 if test "$ol_link_threads" = no ; then
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
11690 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
11691 if ${ol_cv_pthread_lpthread+:} false; then :
11692 $as_echo_n "(cached) " >&6
11697 LIBS="-lpthread $LIBS"
11699 if test "$cross_compiling" = yes; then :
11700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11701 /* end confdefs.h. */
11703 /* pthread test headers */
11704 #include <pthread.h>
11705 #if HAVE_PTHREADS < 7
11709 #define NULL (void*)0
11712 static void *task(p)
11715 return (void *) (p == NULL);
11722 /* pthread test function */
11723 #ifndef PTHREAD_CREATE_DETACHED
11724 #define PTHREAD_CREATE_DETACHED 1
11728 int detach = PTHREAD_CREATE_DETACHED;
11730 #if HAVE_PTHREADS > 4
11731 /* Final pthreads */
11732 pthread_attr_t attr;
11734 status = pthread_attr_init(&attr);
11735 if( status ) return status;
11737 #if HAVE_PTHREADS < 7
11738 status = pthread_attr_setdetachstate(&attr, &detach);
11739 if( status < 0 ) status = errno;
11741 status = pthread_attr_setdetachstate(&attr, detach);
11743 if( status ) return status;
11744 status = pthread_create( &t, &attr, task, NULL );
11745 #if HAVE_PTHREADS < 7
11746 if( status < 0 ) status = errno;
11748 if( status ) return status;
11750 /* Draft 4 pthreads */
11751 status = pthread_create( &t, pthread_attr_default, task, NULL );
11752 if( status ) return errno;
11754 /* give thread a chance to complete */
11755 /* it should remain joinable and hence detachable */
11758 status = pthread_detach( &t );
11759 if( status ) return errno;
11762 #ifdef HAVE_LINUX_THREADS
11763 pthread_kill_other_threads_np();
11772 if ac_fn_c_try_link "$LINENO"; then :
11773 ol_cv_pthread_lpthread=yes
11775 ol_cv_pthread_lpthread=no
11777 rm -f core conftest.err conftest.$ac_objext \
11778 conftest$ac_exeext conftest.$ac_ext
11780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781 /* end confdefs.h. */
11784 /* pthread test headers */
11785 #include <pthread.h>
11786 #if HAVE_PTHREADS < 7
11790 #define NULL (void*)0
11793 static void *task(p)
11796 return (void *) (p == NULL);
11800 int main(argc, argv)
11805 /* pthread test function */
11806 #ifndef PTHREAD_CREATE_DETACHED
11807 #define PTHREAD_CREATE_DETACHED 1
11811 int detach = PTHREAD_CREATE_DETACHED;
11813 #if HAVE_PTHREADS > 4
11814 /* Final pthreads */
11815 pthread_attr_t attr;
11817 status = pthread_attr_init(&attr);
11818 if( status ) return status;
11820 #if HAVE_PTHREADS < 7
11821 status = pthread_attr_setdetachstate(&attr, &detach);
11822 if( status < 0 ) status = errno;
11824 status = pthread_attr_setdetachstate(&attr, detach);
11826 if( status ) return status;
11827 status = pthread_create( &t, &attr, task, NULL );
11828 #if HAVE_PTHREADS < 7
11829 if( status < 0 ) status = errno;
11831 if( status ) return status;
11833 /* Draft 4 pthreads */
11834 status = pthread_create( &t, pthread_attr_default, task, NULL );
11835 if( status ) return errno;
11837 /* give thread a chance to complete */
11838 /* it should remain joinable and hence detachable */
11841 status = pthread_detach( &t );
11842 if( status ) return errno;
11845 #ifdef HAVE_LINUX_THREADS
11846 pthread_kill_other_threads_np();
11854 if ac_fn_c_try_run "$LINENO"; then :
11855 ol_cv_pthread_lpthread=yes
11857 ol_cv_pthread_lpthread=no
11859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11860 conftest.$ac_objext conftest.beam conftest.$ac_ext
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
11869 $as_echo "$ol_cv_pthread_lpthread" >&6; }
11871 if test $ol_cv_pthread_lpthread = yes ; then
11872 ol_link_pthreads="-lpthread"
11873 ol_link_threads=posix
11877 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
11878 if test "$ol_link_threads" = no ; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
11881 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
11882 if ${ol_cv_pthread_lc_r+:} false; then :
11883 $as_echo_n "(cached) " >&6
11890 if test "$cross_compiling" = yes; then :
11891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11892 /* end confdefs.h. */
11894 /* pthread test headers */
11895 #include <pthread.h>
11896 #if HAVE_PTHREADS < 7
11900 #define NULL (void*)0
11903 static void *task(p)
11906 return (void *) (p == NULL);
11913 /* pthread test function */
11914 #ifndef PTHREAD_CREATE_DETACHED
11915 #define PTHREAD_CREATE_DETACHED 1
11919 int detach = PTHREAD_CREATE_DETACHED;
11921 #if HAVE_PTHREADS > 4
11922 /* Final pthreads */
11923 pthread_attr_t attr;
11925 status = pthread_attr_init(&attr);
11926 if( status ) return status;
11928 #if HAVE_PTHREADS < 7
11929 status = pthread_attr_setdetachstate(&attr, &detach);
11930 if( status < 0 ) status = errno;
11932 status = pthread_attr_setdetachstate(&attr, detach);
11934 if( status ) return status;
11935 status = pthread_create( &t, &attr, task, NULL );
11936 #if HAVE_PTHREADS < 7
11937 if( status < 0 ) status = errno;
11939 if( status ) return status;
11941 /* Draft 4 pthreads */
11942 status = pthread_create( &t, pthread_attr_default, task, NULL );
11943 if( status ) return errno;
11945 /* give thread a chance to complete */
11946 /* it should remain joinable and hence detachable */
11949 status = pthread_detach( &t );
11950 if( status ) return errno;
11953 #ifdef HAVE_LINUX_THREADS
11954 pthread_kill_other_threads_np();
11963 if ac_fn_c_try_link "$LINENO"; then :
11964 ol_cv_pthread_lc_r=yes
11966 ol_cv_pthread_lc_r=no
11968 rm -f core conftest.err conftest.$ac_objext \
11969 conftest$ac_exeext conftest.$ac_ext
11971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972 /* end confdefs.h. */
11975 /* pthread test headers */
11976 #include <pthread.h>
11977 #if HAVE_PTHREADS < 7
11981 #define NULL (void*)0
11984 static void *task(p)
11987 return (void *) (p == NULL);
11991 int main(argc, argv)
11996 /* pthread test function */
11997 #ifndef PTHREAD_CREATE_DETACHED
11998 #define PTHREAD_CREATE_DETACHED 1
12002 int detach = PTHREAD_CREATE_DETACHED;
12004 #if HAVE_PTHREADS > 4
12005 /* Final pthreads */
12006 pthread_attr_t attr;
12008 status = pthread_attr_init(&attr);
12009 if( status ) return status;
12011 #if HAVE_PTHREADS < 7
12012 status = pthread_attr_setdetachstate(&attr, &detach);
12013 if( status < 0 ) status = errno;
12015 status = pthread_attr_setdetachstate(&attr, detach);
12017 if( status ) return status;
12018 status = pthread_create( &t, &attr, task, NULL );
12019 #if HAVE_PTHREADS < 7
12020 if( status < 0 ) status = errno;
12022 if( status ) return status;
12024 /* Draft 4 pthreads */
12025 status = pthread_create( &t, pthread_attr_default, task, NULL );
12026 if( status ) return errno;
12028 /* give thread a chance to complete */
12029 /* it should remain joinable and hence detachable */
12032 status = pthread_detach( &t );
12033 if( status ) return errno;
12036 #ifdef HAVE_LINUX_THREADS
12037 pthread_kill_other_threads_np();
12045 if ac_fn_c_try_run "$LINENO"; then :
12046 ol_cv_pthread_lc_r=yes
12048 ol_cv_pthread_lc_r=no
12050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12051 conftest.$ac_objext conftest.beam conftest.$ac_ext
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
12060 $as_echo "$ol_cv_pthread_lc_r" >&6; }
12062 if test $ol_cv_pthread_lc_r = yes ; then
12063 ol_link_pthreads="-lc_r"
12064 ol_link_threads=posix
12069 # Pthread try link: -threads (ol_cv_pthread_threads)
12070 if test "$ol_link_threads" = no ; then
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
12073 $as_echo_n "checking for pthread link with -threads... " >&6; }
12074 if ${ol_cv_pthread_threads+:} false; then :
12075 $as_echo_n "(cached) " >&6
12080 LIBS="-threads $LIBS"
12082 if test "$cross_compiling" = yes; then :
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12086 /* pthread test headers */
12087 #include <pthread.h>
12088 #if HAVE_PTHREADS < 7
12092 #define NULL (void*)0
12095 static void *task(p)
12098 return (void *) (p == NULL);
12105 /* pthread test function */
12106 #ifndef PTHREAD_CREATE_DETACHED
12107 #define PTHREAD_CREATE_DETACHED 1
12111 int detach = PTHREAD_CREATE_DETACHED;
12113 #if HAVE_PTHREADS > 4
12114 /* Final pthreads */
12115 pthread_attr_t attr;
12117 status = pthread_attr_init(&attr);
12118 if( status ) return status;
12120 #if HAVE_PTHREADS < 7
12121 status = pthread_attr_setdetachstate(&attr, &detach);
12122 if( status < 0 ) status = errno;
12124 status = pthread_attr_setdetachstate(&attr, detach);
12126 if( status ) return status;
12127 status = pthread_create( &t, &attr, task, NULL );
12128 #if HAVE_PTHREADS < 7
12129 if( status < 0 ) status = errno;
12131 if( status ) return status;
12133 /* Draft 4 pthreads */
12134 status = pthread_create( &t, pthread_attr_default, task, NULL );
12135 if( status ) return errno;
12137 /* give thread a chance to complete */
12138 /* it should remain joinable and hence detachable */
12141 status = pthread_detach( &t );
12142 if( status ) return errno;
12145 #ifdef HAVE_LINUX_THREADS
12146 pthread_kill_other_threads_np();
12155 if ac_fn_c_try_link "$LINENO"; then :
12156 ol_cv_pthread_threads=yes
12158 ol_cv_pthread_threads=no
12160 rm -f core conftest.err conftest.$ac_objext \
12161 conftest$ac_exeext conftest.$ac_ext
12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h. */
12167 /* pthread test headers */
12168 #include <pthread.h>
12169 #if HAVE_PTHREADS < 7
12173 #define NULL (void*)0
12176 static void *task(p)
12179 return (void *) (p == NULL);
12183 int main(argc, argv)
12188 /* pthread test function */
12189 #ifndef PTHREAD_CREATE_DETACHED
12190 #define PTHREAD_CREATE_DETACHED 1
12194 int detach = PTHREAD_CREATE_DETACHED;
12196 #if HAVE_PTHREADS > 4
12197 /* Final pthreads */
12198 pthread_attr_t attr;
12200 status = pthread_attr_init(&attr);
12201 if( status ) return status;
12203 #if HAVE_PTHREADS < 7
12204 status = pthread_attr_setdetachstate(&attr, &detach);
12205 if( status < 0 ) status = errno;
12207 status = pthread_attr_setdetachstate(&attr, detach);
12209 if( status ) return status;
12210 status = pthread_create( &t, &attr, task, NULL );
12211 #if HAVE_PTHREADS < 7
12212 if( status < 0 ) status = errno;
12214 if( status ) return status;
12216 /* Draft 4 pthreads */
12217 status = pthread_create( &t, pthread_attr_default, task, NULL );
12218 if( status ) return errno;
12220 /* give thread a chance to complete */
12221 /* it should remain joinable and hence detachable */
12224 status = pthread_detach( &t );
12225 if( status ) return errno;
12228 #ifdef HAVE_LINUX_THREADS
12229 pthread_kill_other_threads_np();
12237 if ac_fn_c_try_run "$LINENO"; then :
12238 ol_cv_pthread_threads=yes
12240 ol_cv_pthread_threads=no
12242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12243 conftest.$ac_objext conftest.beam conftest.$ac_ext
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
12252 $as_echo "$ol_cv_pthread_threads" >&6; }
12254 if test $ol_cv_pthread_threads = yes ; then
12255 ol_link_pthreads="-threads"
12256 ol_link_threads=posix
12261 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
12262 if test "$ol_link_threads" = no ; then
12263 # try -lpthreads -lmach -lexc -lc_r
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
12265 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
12266 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
12267 $as_echo_n "(cached) " >&6
12272 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
12274 if test "$cross_compiling" = yes; then :
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12278 /* pthread test headers */
12279 #include <pthread.h>
12280 #if HAVE_PTHREADS < 7
12284 #define NULL (void*)0
12287 static void *task(p)
12290 return (void *) (p == NULL);
12297 /* pthread test function */
12298 #ifndef PTHREAD_CREATE_DETACHED
12299 #define PTHREAD_CREATE_DETACHED 1
12303 int detach = PTHREAD_CREATE_DETACHED;
12305 #if HAVE_PTHREADS > 4
12306 /* Final pthreads */
12307 pthread_attr_t attr;
12309 status = pthread_attr_init(&attr);
12310 if( status ) return status;
12312 #if HAVE_PTHREADS < 7
12313 status = pthread_attr_setdetachstate(&attr, &detach);
12314 if( status < 0 ) status = errno;
12316 status = pthread_attr_setdetachstate(&attr, detach);
12318 if( status ) return status;
12319 status = pthread_create( &t, &attr, task, NULL );
12320 #if HAVE_PTHREADS < 7
12321 if( status < 0 ) status = errno;
12323 if( status ) return status;
12325 /* Draft 4 pthreads */
12326 status = pthread_create( &t, pthread_attr_default, task, NULL );
12327 if( status ) return errno;
12329 /* give thread a chance to complete */
12330 /* it should remain joinable and hence detachable */
12333 status = pthread_detach( &t );
12334 if( status ) return errno;
12337 #ifdef HAVE_LINUX_THREADS
12338 pthread_kill_other_threads_np();
12347 if ac_fn_c_try_link "$LINENO"; then :
12348 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
12350 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
12352 rm -f core conftest.err conftest.$ac_objext \
12353 conftest$ac_exeext conftest.$ac_ext
12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12359 /* pthread test headers */
12360 #include <pthread.h>
12361 #if HAVE_PTHREADS < 7
12365 #define NULL (void*)0
12368 static void *task(p)
12371 return (void *) (p == NULL);
12375 int main(argc, argv)
12380 /* pthread test function */
12381 #ifndef PTHREAD_CREATE_DETACHED
12382 #define PTHREAD_CREATE_DETACHED 1
12386 int detach = PTHREAD_CREATE_DETACHED;
12388 #if HAVE_PTHREADS > 4
12389 /* Final pthreads */
12390 pthread_attr_t attr;
12392 status = pthread_attr_init(&attr);
12393 if( status ) return status;
12395 #if HAVE_PTHREADS < 7
12396 status = pthread_attr_setdetachstate(&attr, &detach);
12397 if( status < 0 ) status = errno;
12399 status = pthread_attr_setdetachstate(&attr, detach);
12401 if( status ) return status;
12402 status = pthread_create( &t, &attr, task, NULL );
12403 #if HAVE_PTHREADS < 7
12404 if( status < 0 ) status = errno;
12406 if( status ) return status;
12408 /* Draft 4 pthreads */
12409 status = pthread_create( &t, pthread_attr_default, task, NULL );
12410 if( status ) return errno;
12412 /* give thread a chance to complete */
12413 /* it should remain joinable and hence detachable */
12416 status = pthread_detach( &t );
12417 if( status ) return errno;
12420 #ifdef HAVE_LINUX_THREADS
12421 pthread_kill_other_threads_np();
12429 if ac_fn_c_try_run "$LINENO"; then :
12430 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
12432 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
12434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12435 conftest.$ac_objext conftest.beam conftest.$ac_ext
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
12444 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
12446 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
12447 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
12448 ol_link_threads=posix
12452 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
12453 if test "$ol_link_threads" = no ; then
12454 # try -lpthreads -lmach -lexc
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
12456 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
12457 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
12458 $as_echo_n "(cached) " >&6
12463 LIBS="-lpthreads -lmach -lexc $LIBS"
12465 if test "$cross_compiling" = yes; then :
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12469 /* pthread test headers */
12470 #include <pthread.h>
12471 #if HAVE_PTHREADS < 7
12475 #define NULL (void*)0
12478 static void *task(p)
12481 return (void *) (p == NULL);
12488 /* pthread test function */
12489 #ifndef PTHREAD_CREATE_DETACHED
12490 #define PTHREAD_CREATE_DETACHED 1
12494 int detach = PTHREAD_CREATE_DETACHED;
12496 #if HAVE_PTHREADS > 4
12497 /* Final pthreads */
12498 pthread_attr_t attr;
12500 status = pthread_attr_init(&attr);
12501 if( status ) return status;
12503 #if HAVE_PTHREADS < 7
12504 status = pthread_attr_setdetachstate(&attr, &detach);
12505 if( status < 0 ) status = errno;
12507 status = pthread_attr_setdetachstate(&attr, detach);
12509 if( status ) return status;
12510 status = pthread_create( &t, &attr, task, NULL );
12511 #if HAVE_PTHREADS < 7
12512 if( status < 0 ) status = errno;
12514 if( status ) return status;
12516 /* Draft 4 pthreads */
12517 status = pthread_create( &t, pthread_attr_default, task, NULL );
12518 if( status ) return errno;
12520 /* give thread a chance to complete */
12521 /* it should remain joinable and hence detachable */
12524 status = pthread_detach( &t );
12525 if( status ) return errno;
12528 #ifdef HAVE_LINUX_THREADS
12529 pthread_kill_other_threads_np();
12538 if ac_fn_c_try_link "$LINENO"; then :
12539 ol_cv_pthread_lpthreads_lmach_lexc=yes
12541 ol_cv_pthread_lpthreads_lmach_lexc=no
12543 rm -f core conftest.err conftest.$ac_objext \
12544 conftest$ac_exeext conftest.$ac_ext
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12550 /* pthread test headers */
12551 #include <pthread.h>
12552 #if HAVE_PTHREADS < 7
12556 #define NULL (void*)0
12559 static void *task(p)
12562 return (void *) (p == NULL);
12566 int main(argc, argv)
12571 /* pthread test function */
12572 #ifndef PTHREAD_CREATE_DETACHED
12573 #define PTHREAD_CREATE_DETACHED 1
12577 int detach = PTHREAD_CREATE_DETACHED;
12579 #if HAVE_PTHREADS > 4
12580 /* Final pthreads */
12581 pthread_attr_t attr;
12583 status = pthread_attr_init(&attr);
12584 if( status ) return status;
12586 #if HAVE_PTHREADS < 7
12587 status = pthread_attr_setdetachstate(&attr, &detach);
12588 if( status < 0 ) status = errno;
12590 status = pthread_attr_setdetachstate(&attr, detach);
12592 if( status ) return status;
12593 status = pthread_create( &t, &attr, task, NULL );
12594 #if HAVE_PTHREADS < 7
12595 if( status < 0 ) status = errno;
12597 if( status ) return status;
12599 /* Draft 4 pthreads */
12600 status = pthread_create( &t, pthread_attr_default, task, NULL );
12601 if( status ) return errno;
12603 /* give thread a chance to complete */
12604 /* it should remain joinable and hence detachable */
12607 status = pthread_detach( &t );
12608 if( status ) return errno;
12611 #ifdef HAVE_LINUX_THREADS
12612 pthread_kill_other_threads_np();
12620 if ac_fn_c_try_run "$LINENO"; then :
12621 ol_cv_pthread_lpthreads_lmach_lexc=yes
12623 ol_cv_pthread_lpthreads_lmach_lexc=no
12625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12626 conftest.$ac_objext conftest.beam conftest.$ac_ext
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
12635 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
12637 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
12638 ol_link_pthreads="-lpthreads -lmach -lexc"
12639 ol_link_threads=posix
12643 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
12644 if test "$ol_link_threads" = no ; then
12645 # try -lpthreads -lexc
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
12647 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
12648 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
12649 $as_echo_n "(cached) " >&6
12654 LIBS="-lpthreads -lexc $LIBS"
12656 if test "$cross_compiling" = yes; then :
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12660 /* pthread test headers */
12661 #include <pthread.h>
12662 #if HAVE_PTHREADS < 7
12666 #define NULL (void*)0
12669 static void *task(p)
12672 return (void *) (p == NULL);
12679 /* pthread test function */
12680 #ifndef PTHREAD_CREATE_DETACHED
12681 #define PTHREAD_CREATE_DETACHED 1
12685 int detach = PTHREAD_CREATE_DETACHED;
12687 #if HAVE_PTHREADS > 4
12688 /* Final pthreads */
12689 pthread_attr_t attr;
12691 status = pthread_attr_init(&attr);
12692 if( status ) return status;
12694 #if HAVE_PTHREADS < 7
12695 status = pthread_attr_setdetachstate(&attr, &detach);
12696 if( status < 0 ) status = errno;
12698 status = pthread_attr_setdetachstate(&attr, detach);
12700 if( status ) return status;
12701 status = pthread_create( &t, &attr, task, NULL );
12702 #if HAVE_PTHREADS < 7
12703 if( status < 0 ) status = errno;
12705 if( status ) return status;
12707 /* Draft 4 pthreads */
12708 status = pthread_create( &t, pthread_attr_default, task, NULL );
12709 if( status ) return errno;
12711 /* give thread a chance to complete */
12712 /* it should remain joinable and hence detachable */
12715 status = pthread_detach( &t );
12716 if( status ) return errno;
12719 #ifdef HAVE_LINUX_THREADS
12720 pthread_kill_other_threads_np();
12729 if ac_fn_c_try_link "$LINENO"; then :
12730 ol_cv_pthread_lpthreads_lexc=yes
12732 ol_cv_pthread_lpthreads_lexc=no
12734 rm -f core conftest.err conftest.$ac_objext \
12735 conftest$ac_exeext conftest.$ac_ext
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12741 /* pthread test headers */
12742 #include <pthread.h>
12743 #if HAVE_PTHREADS < 7
12747 #define NULL (void*)0
12750 static void *task(p)
12753 return (void *) (p == NULL);
12757 int main(argc, argv)
12762 /* pthread test function */
12763 #ifndef PTHREAD_CREATE_DETACHED
12764 #define PTHREAD_CREATE_DETACHED 1
12768 int detach = PTHREAD_CREATE_DETACHED;
12770 #if HAVE_PTHREADS > 4
12771 /* Final pthreads */
12772 pthread_attr_t attr;
12774 status = pthread_attr_init(&attr);
12775 if( status ) return status;
12777 #if HAVE_PTHREADS < 7
12778 status = pthread_attr_setdetachstate(&attr, &detach);
12779 if( status < 0 ) status = errno;
12781 status = pthread_attr_setdetachstate(&attr, detach);
12783 if( status ) return status;
12784 status = pthread_create( &t, &attr, task, NULL );
12785 #if HAVE_PTHREADS < 7
12786 if( status < 0 ) status = errno;
12788 if( status ) return status;
12790 /* Draft 4 pthreads */
12791 status = pthread_create( &t, pthread_attr_default, task, NULL );
12792 if( status ) return errno;
12794 /* give thread a chance to complete */
12795 /* it should remain joinable and hence detachable */
12798 status = pthread_detach( &t );
12799 if( status ) return errno;
12802 #ifdef HAVE_LINUX_THREADS
12803 pthread_kill_other_threads_np();
12811 if ac_fn_c_try_run "$LINENO"; then :
12812 ol_cv_pthread_lpthreads_lexc=yes
12814 ol_cv_pthread_lpthreads_lexc=no
12816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12817 conftest.$ac_objext conftest.beam conftest.$ac_ext
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
12826 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
12828 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
12829 ol_link_pthreads="-lpthreads -lexc"
12830 ol_link_threads=posix
12835 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
12836 if test "$ol_link_threads" = no ; then
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
12839 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
12840 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
12841 $as_echo_n "(cached) " >&6
12846 LIBS="-lpthreads $LIBS"
12848 if test "$cross_compiling" = yes; then :
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h. */
12852 /* pthread test headers */
12853 #include <pthread.h>
12854 #if HAVE_PTHREADS < 7
12858 #define NULL (void*)0
12861 static void *task(p)
12864 return (void *) (p == NULL);
12871 /* pthread test function */
12872 #ifndef PTHREAD_CREATE_DETACHED
12873 #define PTHREAD_CREATE_DETACHED 1
12877 int detach = PTHREAD_CREATE_DETACHED;
12879 #if HAVE_PTHREADS > 4
12880 /* Final pthreads */
12881 pthread_attr_t attr;
12883 status = pthread_attr_init(&attr);
12884 if( status ) return status;
12886 #if HAVE_PTHREADS < 7
12887 status = pthread_attr_setdetachstate(&attr, &detach);
12888 if( status < 0 ) status = errno;
12890 status = pthread_attr_setdetachstate(&attr, detach);
12892 if( status ) return status;
12893 status = pthread_create( &t, &attr, task, NULL );
12894 #if HAVE_PTHREADS < 7
12895 if( status < 0 ) status = errno;
12897 if( status ) return status;
12899 /* Draft 4 pthreads */
12900 status = pthread_create( &t, pthread_attr_default, task, NULL );
12901 if( status ) return errno;
12903 /* give thread a chance to complete */
12904 /* it should remain joinable and hence detachable */
12907 status = pthread_detach( &t );
12908 if( status ) return errno;
12911 #ifdef HAVE_LINUX_THREADS
12912 pthread_kill_other_threads_np();
12921 if ac_fn_c_try_link "$LINENO"; then :
12922 ol_cv_pthread_lib_lpthreads=yes
12924 ol_cv_pthread_lib_lpthreads=no
12926 rm -f core conftest.err conftest.$ac_objext \
12927 conftest$ac_exeext conftest.$ac_ext
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12933 /* pthread test headers */
12934 #include <pthread.h>
12935 #if HAVE_PTHREADS < 7
12939 #define NULL (void*)0
12942 static void *task(p)
12945 return (void *) (p == NULL);
12949 int main(argc, argv)
12954 /* pthread test function */
12955 #ifndef PTHREAD_CREATE_DETACHED
12956 #define PTHREAD_CREATE_DETACHED 1
12960 int detach = PTHREAD_CREATE_DETACHED;
12962 #if HAVE_PTHREADS > 4
12963 /* Final pthreads */
12964 pthread_attr_t attr;
12966 status = pthread_attr_init(&attr);
12967 if( status ) return status;
12969 #if HAVE_PTHREADS < 7
12970 status = pthread_attr_setdetachstate(&attr, &detach);
12971 if( status < 0 ) status = errno;
12973 status = pthread_attr_setdetachstate(&attr, detach);
12975 if( status ) return status;
12976 status = pthread_create( &t, &attr, task, NULL );
12977 #if HAVE_PTHREADS < 7
12978 if( status < 0 ) status = errno;
12980 if( status ) return status;
12982 /* Draft 4 pthreads */
12983 status = pthread_create( &t, pthread_attr_default, task, NULL );
12984 if( status ) return errno;
12986 /* give thread a chance to complete */
12987 /* it should remain joinable and hence detachable */
12990 status = pthread_detach( &t );
12991 if( status ) return errno;
12994 #ifdef HAVE_LINUX_THREADS
12995 pthread_kill_other_threads_np();
13003 if ac_fn_c_try_run "$LINENO"; then :
13004 ol_cv_pthread_lib_lpthreads=yes
13006 ol_cv_pthread_lib_lpthreads=no
13008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13009 conftest.$ac_objext conftest.beam conftest.$ac_ext
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
13018 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
13020 if test $ol_cv_pthread_lib_lpthreads = yes ; then
13021 ol_link_pthreads="-lpthreads"
13022 ol_link_threads=posix
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&5
13028 $as_echo "$as_me: ol_link_threads: <$ol_link_threads> ol_link_pthreads <$ol_link_pthreads>" >&6;}
13030 if test $ol_link_threads != no ; then
13031 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
13033 save_CPPFLAGS="$CPPFLAGS"
13035 LIBS="$LTHREAD_LIBS $LIBS"
13037 for ac_func in sched_yield pthread_yield thr_yield
13039 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13040 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13041 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13042 cat >>confdefs.h <<_ACEOF
13043 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13050 if test $ac_cv_func_sched_yield = no &&
13051 test $ac_cv_func_pthread_yield = no &&
13052 test $ac_cv_func_thr_yield = no ; then
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
13054 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
13055 if ${ac_cv_lib_rt_sched_yield+:} false; then :
13056 $as_echo_n "(cached) " >&6
13058 ac_check_lib_save_LIBS=$LIBS
13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13063 /* Override any GCC internal prototype to avoid an error.
13064 Use char because int might match the return type of a GCC
13065 builtin and then its argument prototype would still apply. */
13069 char sched_yield ();
13073 return sched_yield ();
13078 if ac_fn_c_try_link "$LINENO"; then :
13079 ac_cv_lib_rt_sched_yield=yes
13081 ac_cv_lib_rt_sched_yield=no
13083 rm -f core conftest.err conftest.$ac_objext \
13084 conftest$ac_exeext conftest.$ac_ext
13085 LIBS=$ac_check_lib_save_LIBS
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
13088 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
13089 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
13090 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
13092 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
13094 ac_cv_func_sched_yield=yes
13096 ac_cv_func_sched_yield=no
13100 if test $ac_cv_func_sched_yield = no &&
13101 test $ac_cv_func_pthread_yield = no &&
13102 test "$ac_cv_func_thr_yield" = no ; then
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
13104 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
13107 for ac_func in pthread_kill
13109 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
13110 if test "x$ac_cv_func_pthread_kill" = xyes; then :
13111 cat >>confdefs.h <<_ACEOF
13112 #define HAVE_PTHREAD_KILL 1
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
13120 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
13121 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
13122 $as_echo_n "(cached) " >&6
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13128 #include <pthread.h>
13129 pthread_rwlock_t rwlock;
13134 pthread_rwlock_destroy(&rwlock);
13139 if ac_fn_c_try_link "$LINENO"; then :
13140 ol_cv_func_pthread_rwlock_destroy=yes
13142 ol_cv_func_pthread_rwlock_destroy=no
13144 rm -f core conftest.err conftest.$ac_objext \
13145 conftest$ac_exeext conftest.$ac_ext
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
13149 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
13150 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
13152 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
13157 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
13158 if ${ol_cv_func_pthread_detach+:} false; then :
13159 $as_echo_n "(cached) " >&6
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13165 #include <pthread.h>
13167 #define NULL (void*)0
13173 pthread_detach(NULL);
13178 if ac_fn_c_try_link "$LINENO"; then :
13179 ol_cv_func_pthread_detach=yes
13181 ol_cv_func_pthread_detach=no
13183 rm -f core conftest.err conftest.$ac_objext \
13184 conftest$ac_exeext conftest.$ac_ext
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
13188 $as_echo "$ol_cv_func_pthread_detach" >&6; }
13190 if test $ol_cv_func_pthread_detach = no ; then
13191 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
13195 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
13199 pthread_setconcurrency \
13200 pthread_getconcurrency \
13201 thr_setconcurrency \
13202 thr_getconcurrency \
13205 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13206 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13207 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13208 cat >>confdefs.h <<_ACEOF
13209 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13217 for ac_func in pthread_kill_other_threads_np
13219 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
13220 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
13221 cat >>confdefs.h <<_ACEOF
13222 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
13229 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
13230 if ${ol_cv_sys_linux_threads+:} false; then :
13231 $as_echo_n "(cached) " >&6
13233 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
13236 $as_echo "$ol_cv_sys_linux_threads" >&6; }
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
13242 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
13243 if ${ol_cv_linux_threads+:} false; then :
13244 $as_echo_n "(cached) " >&6
13247 if test $ol_cv_header_linux_threads = yes &&
13248 test $ol_cv_sys_linux_threads = yes; then
13249 ol_cv_linux_threads=yes
13250 elif test $ol_cv_header_linux_threads = no &&
13251 test $ol_cv_sys_linux_threads = no; then
13252 ol_cv_linux_threads=no
13254 ol_cv_linux_threads=error
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
13259 $as_echo "$ol_cv_linux_threads" >&6; }
13262 if test $ol_cv_linux_threads = error; then
13263 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
13267 $as_echo_n "checking if pthread_create() works... " >&6; }
13268 if ${ol_cv_pthread_create_works+:} false; then :
13269 $as_echo_n "(cached) " >&6
13272 if test "$cross_compiling" = yes; then :
13273 ol_cv_pthread_create_works=yes
13275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276 /* end confdefs.h. */
13279 /* pthread test headers */
13280 #include <pthread.h>
13281 #if HAVE_PTHREADS < 7
13285 #define NULL (void*)0
13288 static void *task(p)
13291 return (void *) (p == NULL);
13295 int main(argc, argv)
13300 /* pthread test function */
13301 #ifndef PTHREAD_CREATE_DETACHED
13302 #define PTHREAD_CREATE_DETACHED 1
13306 int detach = PTHREAD_CREATE_DETACHED;
13308 #if HAVE_PTHREADS > 4
13309 /* Final pthreads */
13310 pthread_attr_t attr;
13312 status = pthread_attr_init(&attr);
13313 if( status ) return status;
13315 #if HAVE_PTHREADS < 7
13316 status = pthread_attr_setdetachstate(&attr, &detach);
13317 if( status < 0 ) status = errno;
13319 status = pthread_attr_setdetachstate(&attr, detach);
13321 if( status ) return status;
13322 status = pthread_create( &t, &attr, task, NULL );
13323 #if HAVE_PTHREADS < 7
13324 if( status < 0 ) status = errno;
13326 if( status ) return status;
13328 /* Draft 4 pthreads */
13329 status = pthread_create( &t, pthread_attr_default, task, NULL );
13330 if( status ) return errno;
13332 /* give thread a chance to complete */
13333 /* it should remain joinable and hence detachable */
13336 status = pthread_detach( &t );
13337 if( status ) return errno;
13340 #ifdef HAVE_LINUX_THREADS
13341 pthread_kill_other_threads_np();
13349 if ac_fn_c_try_run "$LINENO"; then :
13350 ol_cv_pthread_create_works=yes
13352 ol_cv_pthread_create_works=no
13354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13355 conftest.$ac_objext conftest.beam conftest.$ac_ext
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
13360 $as_echo "$ol_cv_pthread_create_works" >&6; }
13362 if test $ol_cv_pthread_create_works = no ; then
13363 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
13366 ol_replace_broken_yield=no
13368 if test $ol_replace_broken_yield = yes ; then
13370 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
13374 if test x$ol_with_yielding_select = xauto ; then
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
13376 $as_echo_n "checking if select yields when using pthreads... " >&6; }
13377 if ${ol_cv_pthread_select_yields+:} false; then :
13378 $as_echo_n "(cached) " >&6
13381 if test "$cross_compiling" = yes; then :
13382 ol_cv_pthread_select_yields=cross
13384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13385 /* end confdefs.h. */
13387 #include <sys/types.h>
13388 #include <sys/time.h>
13389 #include <unistd.h>
13390 #include <pthread.h>
13392 #define NULL (void*) 0
13395 static int fildes[2];
13397 static void *task(p)
13409 FD_SET(fildes[0], &rfds);
13411 /* we're not interested in any fds */
13412 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
13419 exit(0); /* if we exit here, the select blocked the whole process */
13422 int main(argc, argv)
13428 /* create a pipe to select */
13429 if(pipe(&fildes[0])) {
13434 #ifdef HAVE_PTHREAD_SETCONCURRENCY
13435 (void) pthread_setconcurrency(2);
13437 #ifdef HAVE_THR_SETCONCURRENCY
13438 /* Set Solaris LWP concurrency to 2 */
13439 thr_setconcurrency(2);
13443 #if HAVE_PTHREADS < 6
13444 pthread_create(&t, pthread_attr_default, task, NULL);
13446 pthread_create(&t, NULL, task, NULL);
13449 /* make sure task runs first */
13450 #ifdef HAVE_THR_YIELD
13452 #elif defined( HAVE_SCHED_YIELD )
13454 #elif defined( HAVE_PTHREAD_YIELD )
13461 if ac_fn_c_try_run "$LINENO"; then :
13462 ol_cv_pthread_select_yields=no
13464 ol_cv_pthread_select_yields=yes
13466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13467 conftest.$ac_objext conftest.beam conftest.$ac_ext
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
13472 $as_echo "$ol_cv_pthread_select_yields" >&6; }
13474 if test $ol_cv_pthread_select_yields = cross ; then
13475 as_fn_error $? "crossing compiling: use --with-yielding-select=yes|no|manual" "$LINENO" 5
13478 if test $ol_cv_pthread_select_yields = yes ; then
13479 ol_with_yielding_select=yes
13483 CPPFLAGS="$save_CPPFLAGS"
13486 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
13490 if test $ol_with_threads = posix ; then
13491 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
13496 case $ol_with_threads in auto | yes | mach)
13498 for ac_header in mach/cthreads.h cthreads.h
13500 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13501 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13502 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13503 cat >>confdefs.h <<_ACEOF
13504 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13511 if test $ac_cv_header_mach_cthreads_h = yes ; then
13512 ol_with_threads=found
13514 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
13515 if test "x$ac_cv_func_cthread_fork" = xyes; then :
13516 ol_link_threads=yes
13520 if test $ol_link_threads = no ; then
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
13522 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
13523 if ${ol_cv_cthread_all_load+:} false; then :
13524 $as_echo_n "(cached) " >&6
13528 LIBS="-all_load $LIBS"
13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h. */
13531 #include <mach/cthreads.h>
13536 cthread_fork((void *)0, (void *)0);
13542 if ac_fn_c_try_link "$LINENO"; then :
13543 ol_cv_cthread_all_load=yes
13545 ol_cv_cthread_all_load=no
13547 rm -f core conftest.err conftest.$ac_objext \
13548 conftest$ac_exeext conftest.$ac_ext
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
13553 $as_echo "$ol_cv_cthread_all_load" >&6; }
13555 if test $ol_cv_cthread_all_load = yes ; then
13556 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
13557 ol_link_threads=mach
13558 ol_with_threads=found
13562 elif test $ac_cv_header_cthreads_h = yes ; then
13564 ol_with_threads=found
13567 LIBS="$LIBS -lthreads"
13568 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
13569 if test "x$ac_cv_func_cthread_fork" = xyes; then :
13570 ol_link_threads=yes
13575 if test $ol_link_threads = yes ; then
13576 LTHREAD_LIBS="-lthreads"
13577 ol_link_threads=mach
13578 ol_with_threads=found
13580 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
13583 elif test $ol_with_threads = mach ; then
13584 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
13587 if test $ol_link_threads = mach ; then
13589 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
13591 elif test $ol_with_threads = found ; then
13592 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
13597 case $ol_with_threads in auto | yes | pth)
13599 for ac_header in pth.h
13601 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
13602 if test "x$ac_cv_header_pth_h" = xyes; then :
13603 cat >>confdefs.h <<_ACEOF
13604 #define HAVE_PTH_H 1
13612 if test $ac_cv_header_pth_h = yes ; then
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
13614 $as_echo_n "checking for pth_version in -lpth... " >&6; }
13615 if ${ac_cv_lib_pth_pth_version+:} false; then :
13616 $as_echo_n "(cached) " >&6
13618 ac_check_lib_save_LIBS=$LIBS
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13623 /* Override any GCC internal prototype to avoid an error.
13624 Use char because int might match the return type of a GCC
13625 builtin and then its argument prototype would still apply. */
13629 char pth_version ();
13633 return pth_version ();
13638 if ac_fn_c_try_link "$LINENO"; then :
13639 ac_cv_lib_pth_pth_version=yes
13641 ac_cv_lib_pth_pth_version=no
13643 rm -f core conftest.err conftest.$ac_objext \
13644 conftest$ac_exeext conftest.$ac_ext
13645 LIBS=$ac_check_lib_save_LIBS
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
13648 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
13649 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
13656 if test $have_pth = yes ; then
13658 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
13660 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
13661 ol_link_threads=pth
13662 ol_with_threads=found
13664 if test x$ol_with_yielding_select = xauto ; then
13665 ol_with_yielding_select=yes
13672 case $ol_with_threads in auto | yes | lwp)
13674 for ac_header in thread.h synch.h
13676 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13677 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13678 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13679 cat >>confdefs.h <<_ACEOF
13680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13687 if test $ac_cv_header_thread_h = yes &&
13688 test $ac_cv_header_synch_h = yes ; then
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
13690 $as_echo_n "checking for thr_create in -lthread... " >&6; }
13691 if ${ac_cv_lib_thread_thr_create+:} false; then :
13692 $as_echo_n "(cached) " >&6
13694 ac_check_lib_save_LIBS=$LIBS
13695 LIBS="-lthread $LIBS"
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h. */
13699 /* Override any GCC internal prototype to avoid an error.
13700 Use char because int might match the return type of a GCC
13701 builtin and then its argument prototype would still apply. */
13705 char thr_create ();
13709 return thr_create ();
13714 if ac_fn_c_try_link "$LINENO"; then :
13715 ac_cv_lib_thread_thr_create=yes
13717 ac_cv_lib_thread_thr_create=no
13719 rm -f core conftest.err conftest.$ac_objext \
13720 conftest$ac_exeext conftest.$ac_ext
13721 LIBS=$ac_check_lib_save_LIBS
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
13724 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
13725 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
13732 if test $have_thr = yes ; then
13734 $as_echo "#define HAVE_THR 1" >>confdefs.h
13736 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
13737 ol_link_threads=thr
13739 if test x$ol_with_yielding_select = xauto ; then
13740 ol_with_yielding_select=yes
13744 thr_setconcurrency \
13745 thr_getconcurrency \
13748 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13749 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13750 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13751 cat >>confdefs.h <<_ACEOF
13752 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13761 for ac_header in lwp/lwp.h
13763 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
13764 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
13765 cat >>confdefs.h <<_ACEOF
13766 #define HAVE_LWP_LWP_H 1
13773 if test $ac_cv_header_lwp_lwp_h = yes ; then
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
13775 $as_echo_n "checking for lwp_create in -llwp... " >&6; }
13776 if ${ac_cv_lib_lwp_lwp_create+:} false; then :
13777 $as_echo_n "(cached) " >&6
13779 ac_check_lib_save_LIBS=$LIBS
13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h. */
13784 /* Override any GCC internal prototype to avoid an error.
13785 Use char because int might match the return type of a GCC
13786 builtin and then its argument prototype would still apply. */
13790 char lwp_create ();
13794 return lwp_create ();
13799 if ac_fn_c_try_link "$LINENO"; then :
13800 ac_cv_lib_lwp_lwp_create=yes
13802 ac_cv_lib_lwp_lwp_create=no
13804 rm -f core conftest.err conftest.$ac_objext \
13805 conftest$ac_exeext conftest.$ac_ext
13806 LIBS=$ac_check_lib_save_LIBS
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
13809 $as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
13810 if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
13817 if test $have_lwp = yes ; then
13819 $as_echo "#define HAVE_LWP 1" >>confdefs.h
13821 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
13822 ol_link_threads=lwp
13824 if test x$ol_with_yielding_select = xauto ; then
13825 ol_with_yielding_select=no
13832 if test $ol_with_yielding_select = yes ; then
13834 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
13838 if test $ol_with_threads = manual ; then
13839 ol_link_threads=yes
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
13842 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
13844 for ac_header in pthread.h sched.h
13846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13847 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13848 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13849 cat >>confdefs.h <<_ACEOF
13850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13857 for ac_func in sched_yield pthread_yield
13859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13860 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13861 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13862 cat >>confdefs.h <<_ACEOF
13863 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
13871 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
13872 if ${ol_cv_header_linux_threads+:} false; then :
13873 $as_echo_n "(cached) " >&6
13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h. */
13877 #include <pthread.h>
13879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13880 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
13881 ol_cv_header_linux_threads=yes
13883 ol_cv_header_linux_threads=no
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
13890 $as_echo "$ol_cv_header_linux_threads" >&6; }
13891 if test $ol_cv_header_linux_threads = yes; then
13893 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
13898 for ac_header in mach/cthreads.h
13900 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
13901 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
13902 cat >>confdefs.h <<_ACEOF
13903 #define HAVE_MACH_CTHREADS_H 1
13910 for ac_header in lwp/lwp.h
13912 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
13913 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
13914 cat >>confdefs.h <<_ACEOF
13915 #define HAVE_LWP_LWP_H 1
13922 for ac_header in thread.h synch.h
13924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13925 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13926 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13927 cat >>confdefs.h <<_ACEOF
13928 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13937 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
13939 $as_echo "#define REENTRANT 1" >>confdefs.h
13942 $as_echo "#define _REENTRANT 1" >>confdefs.h
13945 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
13948 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
13951 $as_echo "#define THREADSAFE 1" >>confdefs.h
13954 $as_echo "#define _THREADSAFE 1" >>confdefs.h
13957 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
13961 $as_echo_n "checking for thread specific errno... " >&6; }
13962 if ${ol_cv_errno_thread_specific+:} false; then :
13963 $as_echo_n "(cached) " >&6
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13977 if ac_fn_c_try_link "$LINENO"; then :
13978 ol_cv_errno_thread_specific=yes
13980 ol_cv_errno_thread_specific=no
13982 rm -f core conftest.err conftest.$ac_objext \
13983 conftest$ac_exeext conftest.$ac_ext
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
13987 $as_echo "$ol_cv_errno_thread_specific" >&6; }
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
13990 $as_echo_n "checking for thread specific h_errno... " >&6; }
13991 if ${ol_cv_h_errno_thread_specific+:} false; then :
13992 $as_echo_n "(cached) " >&6
13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
14006 if ac_fn_c_try_link "$LINENO"; then :
14007 ol_cv_h_errno_thread_specific=yes
14009 ol_cv_h_errno_thread_specific=no
14011 rm -f core conftest.err conftest.$ac_objext \
14012 conftest$ac_exeext conftest.$ac_ext
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
14016 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
14018 if test $ol_cv_errno_thread_specific != yes ||
14019 test $ol_cv_h_errno_thread_specific != yes ; then
14020 LIBS="$LTHREAD_LIBS $LIBS"
14026 if test $ol_link_threads = no ; then
14027 if test $ol_with_threads = yes ; then
14028 as_fn_error $? "no suitable thread support" "$LINENO" 5
14031 if test $ol_with_threads = auto ; then
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
14033 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
14038 $as_echo "#define NO_THREADS 1" >>confdefs.h
14046 if test $ol_link_threads != no ; then
14048 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
14052 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14053 case "$ol_with_threads" in
14059 ol_found_pthreads=yes
14064 ac_cpp='$CPP $CPPFLAGS'
14065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14074 case "$ol_found_pthreads" in
14077 LIBS="$LTHREAD_LIBS $LIBS"
14078 saved_CFLAGS="$CFLAGS"
14079 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
14080 for ac_func in sem_timedwait
14082 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14083 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
14084 cat >>confdefs.h <<_ACEOF
14085 #define HAVE_SEM_TIMEDWAIT 1
14092 { saved_LIBS=; unset saved_LIBS;}
14093 CFLAGS="$saved_CFLAGS"
14094 { saved_CFLAGS=; unset saved_CFLAGS;}
14095 case "$ac_cv_func_sem_timedwait" in
14097 PTHREAD_LIBS="$LTHREAD_LIBS"
14103 case "$have_pthreads" in
14105 CFLAGS_NTP="$CFLAGS_NTP $PTHREAD_CFLAGS"
14107 LIBS="$LTHREAD_LIBS $LIBS"
14108 saved_CFLAGS="$CFLAGS"
14109 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
14110 # The cast to long int works around a bug in the HP C Compiler
14111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14113 # This bug is HP SR number 8606223364.
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14115 $as_echo_n "checking size of pthread_t... " >&6; }
14116 if ${ac_cv_sizeof_pthread_t+:} false; then :
14117 $as_echo_n "(cached) " >&6
14119 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
14120 $ac_includes_default
14121 #include <pthread.h>
14127 if test "$ac_cv_type_pthread_t" = yes; then
14128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14130 as_fn_error 77 "cannot compute sizeof (pthread_t)
14131 See \`config.log' for more details" "$LINENO" 5; }
14133 ac_cv_sizeof_pthread_t=0
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14139 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14143 cat >>confdefs.h <<_ACEOF
14144 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14148 LIBISC_PTHREADS_NOTHREADS=pthreads
14150 $as_echo "#define ISC_PLATFORM_USETHREADS 1" >>confdefs.h
14153 # We'd like to use sigwait() too
14155 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait"
14156 if test "x$ac_cv_func_sigwait" = xyes; then :
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc" >&5
14160 $as_echo_n "checking for sigwait in -lc... " >&6; }
14161 if ${ac_cv_lib_c_sigwait+:} false; then :
14162 $as_echo_n "(cached) " >&6
14164 ac_check_lib_save_LIBS=$LIBS
14166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167 /* end confdefs.h. */
14169 /* Override any GCC internal prototype to avoid an error.
14170 Use char because int might match the return type of a GCC
14171 builtin and then its argument prototype would still apply. */
14184 if ac_fn_c_try_link "$LINENO"; then :
14185 ac_cv_lib_c_sigwait=yes
14187 ac_cv_lib_c_sigwait=no
14189 rm -f core conftest.err conftest.$ac_objext \
14190 conftest$ac_exeext conftest.$ac_ext
14191 LIBS=$ac_check_lib_save_LIBS
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_sigwait" >&5
14194 $as_echo "$ac_cv_lib_c_sigwait" >&6; }
14195 if test "x$ac_cv_lib_c_sigwait" = xyes; then :
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lpthread" >&5
14199 $as_echo_n "checking for sigwait in -lpthread... " >&6; }
14200 if ${ac_cv_lib_pthread_sigwait+:} false; then :
14201 $as_echo_n "(cached) " >&6
14203 ac_check_lib_save_LIBS=$LIBS
14204 LIBS="-lpthread $LIBS"
14205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14206 /* end confdefs.h. */
14208 /* Override any GCC internal prototype to avoid an error.
14209 Use char because int might match the return type of a GCC
14210 builtin and then its argument prototype would still apply. */
14223 if ac_fn_c_try_link "$LINENO"; then :
14224 ac_cv_lib_pthread_sigwait=yes
14226 ac_cv_lib_pthread_sigwait=no
14228 rm -f core conftest.err conftest.$ac_objext \
14229 conftest$ac_exeext conftest.$ac_ext
14230 LIBS=$ac_check_lib_save_LIBS
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sigwait" >&5
14233 $as_echo "$ac_cv_lib_pthread_sigwait" >&6; }
14234 if test "x$ac_cv_lib_pthread_sigwait" = xyes; then :
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Psigwait in -lpthread" >&5
14238 $as_echo_n "checking for _Psigwait in -lpthread... " >&6; }
14239 if ${ac_cv_lib_pthread__Psigwait+:} false; then :
14240 $as_echo_n "(cached) " >&6
14242 ac_check_lib_save_LIBS=$LIBS
14243 LIBS="-lpthread $LIBS"
14244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14245 /* end confdefs.h. */
14247 /* Override any GCC internal prototype to avoid an error.
14248 Use char because int might match the return type of a GCC
14249 builtin and then its argument prototype would still apply. */
14257 return _Psigwait ();
14262 if ac_fn_c_try_link "$LINENO"; then :
14263 ac_cv_lib_pthread__Psigwait=yes
14265 ac_cv_lib_pthread__Psigwait=no
14267 rm -f core conftest.err conftest.$ac_objext \
14268 conftest$ac_exeext conftest.$ac_ext
14269 LIBS=$ac_check_lib_save_LIBS
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread__Psigwait" >&5
14272 $as_echo "$ac_cv_lib_pthread__Psigwait" >&6; }
14273 if test "x$ac_cv_lib_pthread__Psigwait" = xyes; then :
14289 case "$host:$have_sigwait" in
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigwait in -lc_r" >&5
14292 $as_echo_n "checking for sigwait in -lc_r... " >&6; }
14293 if ${ac_cv_lib_c_r_sigwait+:} false; then :
14294 $as_echo_n "(cached) " >&6
14296 ac_check_lib_save_LIBS=$LIBS
14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h. */
14301 /* Override any GCC internal prototype to avoid an error.
14302 Use char because int might match the return type of a GCC
14303 builtin and then its argument prototype would still apply. */
14316 if ac_fn_c_try_link "$LINENO"; then :
14317 ac_cv_lib_c_r_sigwait=yes
14319 ac_cv_lib_c_r_sigwait=no
14321 rm -f core conftest.err conftest.$ac_objext \
14322 conftest$ac_exeext conftest.$ac_ext
14323 LIBS=$ac_check_lib_save_LIBS
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_sigwait" >&5
14326 $as_echo "$ac_cv_lib_c_r_sigwait" >&6; }
14327 if test "x$ac_cv_lib_c_r_sigwait" = xyes; then :
14333 case "$have_sigwait" in
14335 ac_cv_func_sigwait=yes
14337 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
14341 for ac_func in pthread_attr_getstacksize
14343 ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
14344 if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
14345 cat >>confdefs.h <<_ACEOF
14346 #define HAVE_PTHREAD_ATTR_GETSTACKSIZE 1
14352 for ac_func in pthread_attr_setstacksize sysconf
14354 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14355 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14356 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14357 cat >>confdefs.h <<_ACEOF
14358 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14366 *-freebsd5.[012]|*-freebsd5.[012].*)
14368 *-freebsd5.[3456789]|*-freebsd5.[3456789].*|*-freebsd6.*)
14370 $as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
14373 *-bsdi3.*|*-bsdi4.0*)
14375 $as_echo "#define NEED_PTHREAD_INIT 1" >>confdefs.h
14380 $as_echo "#define HAVE_LINUXTHREADS 1" >>confdefs.h
14384 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
14386 for ac_func in pthread_setconcurrency
14388 ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
14389 if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
14390 cat >>confdefs.h <<_ACEOF
14391 #define HAVE_PTHREAD_SETCONCURRENCY 1
14397 case "$ac_cv_func_pthread_setconcurrency" in
14400 $as_echo "#define CALL_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
14404 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
14406 $as_echo "#define HAVE_UNIXWARE_SIGWAIT 1" >>confdefs.h
14410 hack_shutup_pthreadonceinit=no
14413 hack_shutup_pthreadonceinit=yes
14416 hack_shutup_pthreadonceinit=yes
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if extra braces are needed for PTHREAD_ONCE_INIT" >&5
14420 $as_echo_n "checking if extra braces are needed for PTHREAD_ONCE_INIT... " >&6; }
14421 if ${ntp_cv_braces_around_pthread_once_init+:} false; then :
14422 $as_echo_n "(cached) " >&6
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14427 #include <pthread.h>
14433 static pthread_once_t once_test =
14441 if ac_fn_c_try_compile "$LINENO"; then :
14442 ntp_cv_braces_around_pthread_once_init=no
14444 ntp_cv_braces_around_pthread_once_init=yes
14447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_braces_around_pthread_once_init" >&5
14451 $as_echo "$ntp_cv_braces_around_pthread_once_init" >&6; }
14452 case "$ntp_cv_braces_around_pthread_once_init" in
14454 hack_shutup_pthreadonceinit=yes
14458 case "$hack_shutup_pthreadonceinit" in
14461 $as_echo "#define ISC_PLATFORM_BRACEPTHREADONCEINIT 1" >>confdefs.h
14465 { saved_LIBS=; unset saved_LIBS;}
14466 CFLAGS="$saved_CFLAGS"
14467 { saved_CFLAGS=; unset saved_CFLAGS;}
14470 LIBISC_PTHREADS_NOTHREADS=nothreads
14474 if test "$have_pthreads" != "no"; then
14488 case "$hw_use_rpl_vsnprintf:$hw_cv_func_vsnprintf" in
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf expands \"%m\" to strerror(errno)" >&5
14491 $as_echo_n "checking if vsnprintf expands \"%m\" to strerror(errno)... " >&6; }
14492 if ${ntp_cv_vsnprintf_percent_m+:} false; then :
14493 $as_echo_n "(cached) " >&6
14495 if test "$cross_compiling" = yes; then :
14496 ntp_cv_vsnprintf_percent_m=no
14499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14500 /* end confdefs.h. */
14502 #include <stdarg.h>
14505 #include <string.h>
14507 int call_vsnprintf(
14514 int call_vsnprintf(
14525 rc = vsnprintf(dst, sz, fmt, ap);
14539 strcpy(sbuf, strerror(ENOENT));
14541 slen = call_vsnprintf(pbuf, sizeof(pbuf), "%m",
14543 return strcmp(sbuf, pbuf);
14550 if ac_fn_c_try_run "$LINENO"; then :
14551 ntp_cv_vsnprintf_percent_m=yes
14553 ntp_cv_vsnprintf_percent_m=no
14555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14556 conftest.$ac_objext conftest.beam conftest.$ac_ext
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_vsnprintf_percent_m" >&5
14562 $as_echo "$ntp_cv_vsnprintf_percent_m" >&6; }
14563 case "$ntp_cv_vsnprintf_percent_m" in
14566 $as_echo "#define VSNPRINTF_PERCENT_M 1" >>confdefs.h
14571 for ac_header in sys/clockctl.h
14573 ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
14574 if test "x$ac_cv_header_sys_clockctl_h" = xyes; then :
14575 cat >>confdefs.h <<_ACEOF
14576 #define HAVE_SYS_CLOCKCTL_H 1
14584 # Check whether --enable-clockctl was given.
14585 if test "${enable_clockctl+set}" = set; then :
14586 enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
14588 ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
14594 $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
14596 $as_echo "$ntp_use_dev_clockctl" >&6; }
14599 for ac_header in sys/capability.h sys/prctl.h
14601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14602 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14603 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14604 cat >>confdefs.h <<_ACEOF
14605 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
14614 $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
14616 case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
14620 ntp_have_linuxcaps=no
14622 *) ntp_have_linuxcaps=yes
14627 ntp_have_linuxcaps=no
14631 # Check whether --enable-linuxcaps was given.
14632 if test "${enable_linuxcaps+set}" = set; then :
14633 enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
14639 $as_echo "$ntp_have_linuxcaps" >&6; }
14641 case "$ntp_have_linuxcaps" in
14644 $as_echo "#define HAVE_LINUX_CAPABILITIES 1" >>confdefs.h
14651 for ac_header in priv.h
14653 ac_fn_c_check_header_mongrel "$LINENO" "priv.h" "ac_cv_header_priv_h" "$ac_includes_default"
14654 if test "x$ac_cv_header_priv_h" = xyes; then :
14655 cat >>confdefs.h <<_ACEOF
14656 #define HAVE_PRIV_H 1
14663 case "$ac_cv_header_priv_h" in
14667 ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
14668 if test "x$ac_cv_func_setppriv" = xyes; then :
14669 ntp_have_solarisprivs=yes
14671 ntp_have_solarisprivs=no
14679 # Check whether --enable-solarisprivs was given.
14680 if test "${enable_solarisprivs+set}" = set; then :
14681 enableval=$enable_solarisprivs; ntp_have_solarisprivs=$enableval
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have solaris privileges" >&5
14687 $as_echo_n "checking if we have solaris privileges... " >&6; }
14689 case "$ntp_have_solarisprivs" in
14692 $as_echo "#define HAVE_SOLARIS_PRIVS 1" >>confdefs.h
14695 '') ntp_have_solarisprivs="no"
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_solarisprivs" >&5
14700 $as_echo "$ntp_have_solarisprivs" >&6; }
14702 for ac_header in sys/mac.h
14704 ac_fn_c_check_header_mongrel "$LINENO" "sys/mac.h" "ac_cv_header_sys_mac_h" "$ac_includes_default"
14705 if test "x$ac_cv_header_sys_mac_h" = xyes; then :
14706 cat >>confdefs.h <<_ACEOF
14707 #define HAVE_SYS_MAC_H 1
14715 # Check whether --enable-trustedbsd_mac was given.
14716 if test "${enable_trustedbsd_mac+set}" = set; then :
14717 enableval=$enable_trustedbsd_mac; ntp_use_trustedbsd_mac=$enableval
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use TrustedBSD MAC privileges" >&5
14723 $as_echo_n "checking if we should use TrustedBSD MAC privileges... " >&6; }
14725 case "$ntp_use_trustedbsd_mac$ac_cv_header_sys_mac_h" in
14728 $as_echo "#define HAVE_TRUSTEDBSD_MAC 1" >>confdefs.h
14731 *) ntp_use_trustedbsd_mac="no";
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_trustedbsd_mac" >&5
14736 $as_echo "$ntp_use_trustedbsd_mac" >&6; }
14738 case "$ntp_use_dev_clockctl$ntp_have_linuxcaps$ntp_have_solarisprivs$ntp_use_trustedbsd_mac" in
14741 $as_echo "#define HAVE_DROPROOT 1" >>confdefs.h
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
14748 $as_echo_n "checking for library containing res_9_init... " >&6; }
14749 if ${ac_cv_search_res_9_init+:} false; then :
14750 $as_echo_n "(cached) " >&6
14752 ac_func_search_save_LIBS=$LIBS
14753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14754 /* end confdefs.h. */
14756 /* Override any GCC internal prototype to avoid an error.
14757 Use char because int might match the return type of a GCC
14758 builtin and then its argument prototype would still apply. */
14762 char res_9_init ();
14766 return res_9_init ();
14771 for ac_lib in '' resolv; do
14772 if test -z "$ac_lib"; then
14773 ac_res="none required"
14776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14778 if ac_fn_c_try_link "$LINENO"; then :
14779 ac_cv_search_res_9_init=$ac_res
14781 rm -f core conftest.err conftest.$ac_objext \
14783 if ${ac_cv_search_res_9_init+:} false; then :
14787 if ${ac_cv_search_res_9_init+:} false; then :
14790 ac_cv_search_res_9_init=no
14792 rm conftest.$ac_ext
14793 LIBS=$ac_func_search_save_LIBS
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
14796 $as_echo "$ac_cv_search_res_9_init" >&6; }
14797 ac_res=$ac_cv_search_res_9_init
14798 if test "$ac_res" != no; then :
14799 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14804 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
14805 $as_echo_n "checking for library containing res_init... " >&6; }
14806 if ${ac_cv_search_res_init+:} false; then :
14807 $as_echo_n "(cached) " >&6
14809 ac_func_search_save_LIBS=$LIBS
14810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14811 /* end confdefs.h. */
14813 /* Override any GCC internal prototype to avoid an error.
14814 Use char because int might match the return type of a GCC
14815 builtin and then its argument prototype would still apply. */
14823 return res_init ();
14828 for ac_lib in '' resolv; do
14829 if test -z "$ac_lib"; then
14830 ac_res="none required"
14833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14835 if ac_fn_c_try_link "$LINENO"; then :
14836 ac_cv_search_res_init=$ac_res
14838 rm -f core conftest.err conftest.$ac_objext \
14840 if ${ac_cv_search_res_init+:} false; then :
14844 if ${ac_cv_search_res_init+:} false; then :
14847 ac_cv_search_res_init=no
14849 rm conftest.$ac_ext
14850 LIBS=$ac_func_search_save_LIBS
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
14853 $as_echo "$ac_cv_search_res_init" >&6; }
14854 ac_res=$ac_cv_search_res_init
14855 if test "$ac_res" != no; then :
14856 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14862 for ac_header in sys/types.h netinet/in.h arpa/nameser.h netdb.h resolv.h
14864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14865 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TYPES_H
14866 # include <sys/types.h>
14868 #ifdef HAVE_NETINET_IN_H
14869 # include <netinet/in.h> /* inet_ functions / structs */
14871 #ifdef HAVE_ARPA_NAMESER_H
14872 # include <arpa/nameser.h> /* DNS HEADER struct */
14874 #ifdef HAVE_NETDB_H
14875 # include <netdb.h>
14878 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14879 cat >>confdefs.h <<_ACEOF
14880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14888 #HMS: Why do we do this check so "early"?
14889 for ac_func in res_init
14891 ac_fn_c_check_func "$LINENO" "res_init" "ac_cv_func_res_init"
14892 if test "x$ac_cv_func_res_init" = xyes; then :
14893 cat >>confdefs.h <<_ACEOF
14894 #define HAVE_RES_INIT 1
14898 for ac_func in __res_init
14900 ac_fn_c_check_func "$LINENO" "__res_init" "ac_cv_func___res_init"
14901 if test "x$ac_cv_func___res_init" = xyes; then :
14902 cat >>confdefs.h <<_ACEOF
14903 #define HAVE___RES_INIT 1
14913 # We also need -lsocket, but we have tested for that already.
14914 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
14915 if test "x$ac_cv_func_inet_ntop" = xyes; then :
14919 $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
14923 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
14924 if test "x$ac_cv_func_inet_pton" = xyes; then :
14928 $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
14933 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14934 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14936 cat >>confdefs.h <<_ACEOF
14937 #define HAVE_UINTPTR_T 1
14942 ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "$ac_includes_default"
14943 if test "x$ac_cv_type_int32" = xyes; then :
14945 cat >>confdefs.h <<_ACEOF
14946 #define HAVE_INT32 1
14951 ac_fn_c_check_type "$LINENO" "u_int32" "ac_cv_type_u_int32" "$ac_includes_default"
14952 if test "x$ac_cv_type_u_int32" = xyes; then :
14954 cat >>confdefs.h <<_ACEOF
14955 #define HAVE_U_INT32 1
14964 case "$ac_cv_type_int32::$ac_cv_header_resolv_h" in
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32 with DNS headers included" >&5
14967 $as_echo_n "checking for int32 with DNS headers included... " >&6; }
14968 if ${ntp_cv_type_int32_with_dns+:} false; then :
14969 $as_echo_n "(cached) " >&6
14971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14972 /* end confdefs.h. */
14974 #ifdef HAVE_ARPA_NAMESER_H
14975 # include <arpa/nameser.h>
14977 #include <resolv.h>
14983 size_t cb = sizeof(int32);
14990 if ac_fn_c_try_compile "$LINENO"; then :
14991 ntp_cv_type_int32_with_dns=yes
14993 ntp_cv_type_int32_with_dns=no
14996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_int32_with_dns" >&5
15000 $as_echo "$ntp_cv_type_int32_with_dns" >&6; }
15001 case "$ntp_cv_type_int32_with_dns" in
15004 $as_echo "#define HAVE_INT32_ONLY_WITH_DNS 1" >>confdefs.h
15009 case "$ac_cv_type_u_int32::$ac_cv_header_resolv_h" in
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32 with DNS headers included" >&5
15012 $as_echo_n "checking for u_int32 with DNS headers included... " >&6; }
15013 if ${ntp_cv_type_u_int32_with_dns+:} false; then :
15014 $as_echo_n "(cached) " >&6
15016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15017 /* end confdefs.h. */
15019 #ifdef HAVE_ARPA_NAMESER_H
15020 # include <arpa/nameser.h>
15022 #include <resolv.h>
15028 size_t cb = sizeof(u_int32);
15035 if ac_fn_c_try_compile "$LINENO"; then :
15036 ntp_cv_type_u_int32_with_dns=yes
15038 ntp_cv_type_u_int32_with_dns=no
15041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_type_u_int32_with_dns" >&5
15045 $as_echo "$ntp_cv_type_u_int32_with_dns" >&6; }
15046 case "$ntp_cv_type_u_int32_with_dns" in
15049 $as_echo "#define HAVE_U_INT32_ONLY_WITH_DNS 1" >>confdefs.h
15054 for ac_header in sys/timepps.h
15056 ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "
15057 #ifdef HAVE_SYS_TIME_H
15058 # include <sys/time.h>
15060 #ifdef HAVE_ERRNO_H
15061 # include <errno.h>
15066 if test "x$ac_cv_header_sys_timepps_h" = xyes; then :
15067 cat >>confdefs.h <<_ACEOF
15068 #define HAVE_SYS_TIMEPPS_H 1
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
15077 $as_echo_n "checking for struct timespec... " >&6; }
15078 if ${ntp_cv_struct_timespec+:} false; then :
15079 $as_echo_n "(cached) " >&6
15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h. */
15084 #include <sys/time.h>
15085 /* Under SunOS, timespec is in sys/timepps.h,
15086 which needs errno.h and FRAC */
15087 #ifdef HAVE_ERRNO_H
15088 # include <errno.h>
15090 #ifdef HAVE_SYS_TIMEPPS_H
15091 # define FRAC 4294967296
15092 # include <sys/timepps.h>
15106 if ac_fn_c_try_compile "$LINENO"; then :
15107 ntp_cv_struct_timespec=yes
15109 ntp_cv_struct_timespec=no
15112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_timespec" >&5
15116 $as_echo "$ntp_cv_struct_timespec" >&6; }
15117 case "$ntp_cv_struct_timespec" in
15120 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
15125 $as_echo_n "checking for struct ntptimeval... " >&6; }
15126 if ${ntp_cv_struct_ntptimeval+:} false; then :
15127 $as_echo_n "(cached) " >&6
15129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130 /* end confdefs.h. */
15132 #include <sys/time.h>
15133 #include <sys/timex.h>
15139 struct ntptimeval n;
15146 if ac_fn_c_try_compile "$LINENO"; then :
15147 ntp_cv_struct_ntptimeval=yes
15149 ntp_cv_struct_ntptimeval=no
15152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_struct_ntptimeval" >&5
15156 $as_echo "$ntp_cv_struct_ntptimeval" >&6; }
15157 case "$ntp_cv_struct_ntptimeval" in
15160 $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
15164 for ac_header in md5.h
15166 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "
15167 #ifdef HAVE_SYS_TYPES_H
15168 # include <sys/types.h>
15173 if test "x$ac_cv_header_md5_h" = xyes; then :
15174 cat >>confdefs.h <<_ACEOF
15175 #define HAVE_MD5_H 1
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
15184 $as_echo_n "checking for library containing MD5Init... " >&6; }
15185 if ${ac_cv_search_MD5Init+:} false; then :
15186 $as_echo_n "(cached) " >&6
15188 ac_func_search_save_LIBS=$LIBS
15189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h. */
15192 /* Override any GCC internal prototype to avoid an error.
15193 Use char because int might match the return type of a GCC
15194 builtin and then its argument prototype would still apply. */
15207 for ac_lib in '' md5 md; do
15208 if test -z "$ac_lib"; then
15209 ac_res="none required"
15212 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15214 if ac_fn_c_try_link "$LINENO"; then :
15215 ac_cv_search_MD5Init=$ac_res
15217 rm -f core conftest.err conftest.$ac_objext \
15219 if ${ac_cv_search_MD5Init+:} false; then :
15223 if ${ac_cv_search_MD5Init+:} false; then :
15226 ac_cv_search_MD5Init=no
15228 rm conftest.$ac_ext
15229 LIBS=$ac_func_search_save_LIBS
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
15232 $as_echo "$ac_cv_search_MD5Init" >&6; }
15233 ac_res=$ac_cv_search_MD5Init
15234 if test "$ac_res" != no; then :
15235 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15239 for ac_func in MD5Init sysconf getdtablesize sigaction sigset sigvec
15241 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15242 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15243 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15244 cat >>confdefs.h <<_ACEOF
15245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15252 # HMS: does this need to be a cached variable?
15253 # Check whether --enable-signalled-io was given.
15254 if test "${enable_signalled_io+set}" = set; then :
15255 enableval=$enable_signalled_io; use_signalled_io=$enableval
15257 use_signalled_io=yes
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
15263 $as_echo_n "checking for SIGIO... " >&6; }
15264 if ${ntp_cv_hdr_def_sigio+:} false; then :
15265 $as_echo_n "(cached) " >&6
15267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15268 /* end confdefs.h. */
15270 #include <signal.h>
15277 if ac_fn_c_try_cpp "$LINENO"; then :
15278 ntp_cv_hdr_def_sigio=yes
15280 ntp_cv_hdr_def_sigio=no
15283 rm -f conftest.err conftest.i conftest.$ac_ext
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigio" >&5
15287 $as_echo "$ntp_cv_hdr_def_sigio" >&6; }
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use SIGIO" >&5
15290 $as_echo_n "checking if we want to use SIGIO... " >&6; }
15292 case "$ntp_cv_hdr_def_sigio" in
15296 alpha*-dec-osf4*|alpha*-dec-osf5*)
15338 ans="Possible for $host but disabled because of reported problems"
15345 case "$use_signalled_io" in
15348 $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
15351 *) ans="Allowed for $host but --disable-signalled-io was given"
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15356 $as_echo "$ans" >&6; }
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
15359 $as_echo_n "checking for SIGPOLL... " >&6; }
15360 if ${ntp_cv_hdr_def_sigpoll+:} false; then :
15361 $as_echo_n "(cached) " >&6
15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h. */
15366 #include <signal.h>
15373 if ac_fn_c_try_cpp "$LINENO"; then :
15374 ntp_cv_hdr_def_sigpoll=yes
15376 ntp_cv_hdr_def_sigpoll=no
15379 rm -f conftest.err conftest.i conftest.$ac_ext
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_hdr_def_sigpoll" >&5
15383 $as_echo "$ntp_cv_hdr_def_sigpoll" >&6; }
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
15386 $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
15388 case "$ntp_cv_hdr_def_sigpoll" in
15407 # XXX Only verified thru AIX6
15445 $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15449 $as_echo "$ans" >&6; }
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
15452 $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
15454 case "$ntp_cv_hdr_def_sigpoll" in
15473 # XXX Only verified thru AIX6
15508 $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15512 $as_echo "$ans" >&6; }
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
15515 $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
15516 if ${ntp_cv_func_Xettimeofday_nargs+:} false; then :
15517 $as_echo_n "(cached) " >&6
15519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15520 /* end confdefs.h. */
15522 #include <sys/time.h>
15528 gettimeofday(0, 0);
15529 settimeofday(0, 0);
15536 if ac_fn_c_try_compile "$LINENO"; then :
15537 ntp_cv_func_Xettimeofday_nargs=2
15539 ntp_cv_func_Xettimeofday_nargs=1
15542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_func_Xettimeofday_nargs" >&5
15546 $as_echo "$ntp_cv_func_Xettimeofday_nargs" >&6; }
15547 case "$ntp_cv_func_Xettimeofday_nargs" in
15550 $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
15554 for ac_func in settimeofday
15556 ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
15557 if test "x$ac_cv_func_settimeofday" = xyes; then :
15558 cat >>confdefs.h <<_ACEOF
15559 #define HAVE_SETTIMEOFDAY 1
15565 *-*-mpeix*) ac_cv_func_settimeofday=yes
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
15573 $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
15574 ntp_warning='GRONK'
15576 case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
15579 ans='clock_settime()'
15582 ntp_warning='But clock_settime() would be better (if we had it)'
15583 ans='settimeofday()'
15586 ntp_warning='Which is the worst of the three'
15592 ntp_warning='Which leaves us with nothing to use!'
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
15596 $as_echo "$ans" >&6; }
15597 case "$ntp_warning" in
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
15602 $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
15607 LDADD_LIBNTP="$LDADD_LIBNTP $LIBS"
15609 { __LIBS=; unset __LIBS;}
15613 # Check whether --enable-shared was given.
15614 if test "${enable_shared+set}" = set; then :
15615 enableval=$enable_shared; p=${PACKAGE-default}
15617 yes) enable_shared=yes ;;
15618 no) enable_shared=no ;;
15621 # Look at the argument we got. We use all the common list separators.
15622 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15623 for pkg in $enableval; do
15625 if test "X$pkg" = "X$p"; then
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
15647 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
15652 macro_version='2.4.6'
15653 macro_revision='2.4.6'
15667 ltmain=$ac_aux_dir/ltmain.sh
15669 # Backslashify metacharacters that are still active within
15670 # double-quoted strings.
15671 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
15673 # Same as above, but do not quote variable references.
15674 double_quote_subst='s/\(["`\\]\)/\\\1/g'
15676 # Sed substitution to delay expansion of an escaped shell variable in a
15677 # double_quote_subst'ed string.
15678 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
15680 # Sed substitution to delay expansion of an escaped single quote.
15681 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
15683 # Sed substitution to avoid accidental globbing in evaled expressions
15684 no_glob_subst='s/\*/\\\*/g'
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15687 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15688 if ${lt_cv_path_NM+:} false; then :
15689 $as_echo_n "(cached) " >&6
15691 if test -n "$NM"; then
15692 # Let the user override the test.
15695 lt_nm_to_check=${ac_tool_prefix}nm
15696 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15697 lt_nm_to_check="$lt_nm_to_check nm"
15699 for lt_tmp_nm in $lt_nm_to_check; do
15700 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15701 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
15703 test -z "$ac_dir" && ac_dir=.
15704 tmp_nm=$ac_dir/$lt_tmp_nm
15705 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
15706 # Check to see if the nm accepts a BSD-compat flag.
15707 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
15708 # nm: unknown option "B" ignored
15709 # Tru64's nm complains that /dev/null is an invalid object file
15710 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
15712 mingw*) lt_bad_file=conftest.nm/nofile ;;
15713 *) lt_bad_file=/dev/null ;;
15715 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
15716 *$lt_bad_file* | *'Invalid file or object type'*)
15717 lt_cv_path_NM="$tmp_nm -B"
15721 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
15723 lt_cv_path_NM="$tmp_nm -p"
15727 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15728 continue # so that we can try to find one that supports BSD flags
15737 : ${lt_cv_path_NM=no}
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15741 $as_echo "$lt_cv_path_NM" >&6; }
15742 if test no != "$lt_cv_path_NM"; then
15745 # Didn't find any BSD compatible name lister, look for dumpbin.
15746 if test -n "$DUMPBIN"; then :
15747 # Let the user override the test.
15749 if test -n "$ac_tool_prefix"; then
15750 for ac_prog in dumpbin "link -dump"
15752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15753 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15755 $as_echo_n "checking for $ac_word... " >&6; }
15756 if ${ac_cv_prog_DUMPBIN+:} false; then :
15757 $as_echo_n "(cached) " >&6
15759 if test -n "$DUMPBIN"; then
15760 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
15762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15763 for as_dir in $PATH
15766 test -z "$as_dir" && as_dir=.
15767 for ac_exec_ext in '' $ac_executable_extensions; do
15768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15769 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
15770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15779 DUMPBIN=$ac_cv_prog_DUMPBIN
15780 if test -n "$DUMPBIN"; then
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15782 $as_echo "$DUMPBIN" >&6; }
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15785 $as_echo "no" >&6; }
15789 test -n "$DUMPBIN" && break
15792 if test -z "$DUMPBIN"; then
15793 ac_ct_DUMPBIN=$DUMPBIN
15794 for ac_prog in dumpbin "link -dump"
15796 # Extract the first word of "$ac_prog", so it can be a program name with args.
15797 set dummy $ac_prog; ac_word=$2
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15799 $as_echo_n "checking for $ac_word... " >&6; }
15800 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
15801 $as_echo_n "(cached) " >&6
15803 if test -n "$ac_ct_DUMPBIN"; then
15804 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
15806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15807 for as_dir in $PATH
15810 test -z "$as_dir" && as_dir=.
15811 for ac_exec_ext in '' $ac_executable_extensions; do
15812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15813 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
15814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15823 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
15824 if test -n "$ac_ct_DUMPBIN"; then
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15826 $as_echo "$ac_ct_DUMPBIN" >&6; }
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15829 $as_echo "no" >&6; }
15833 test -n "$ac_ct_DUMPBIN" && break
15836 if test "x$ac_ct_DUMPBIN" = x; then
15839 case $cross_compiling:$ac_tool_warned in
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15843 ac_tool_warned=yes ;;
15845 DUMPBIN=$ac_ct_DUMPBIN
15849 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
15851 DUMPBIN="$DUMPBIN -symbols -headers"
15859 if test : != "$DUMPBIN"; then
15863 test -z "$NM" && NM=nm
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
15871 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
15872 if ${lt_cv_nm_interface+:} false; then :
15873 $as_echo_n "(cached) " >&6
15875 lt_cv_nm_interface="BSD nm"
15876 echo "int some_variable = 0;" > conftest.$ac_ext
15877 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15878 (eval "$ac_compile" 2>conftest.err)
15879 cat conftest.err >&5
15880 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15881 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
15882 cat conftest.err >&5
15883 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
15884 cat conftest.out >&5
15885 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
15886 lt_cv_nm_interface="MS dumpbin"
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
15891 $as_echo "$lt_cv_nm_interface" >&6; }
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15894 $as_echo_n "checking whether ln -s works... " >&6; }
15896 if test "$LN_S" = "ln -s"; then
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15898 $as_echo "yes" >&6; }
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15901 $as_echo "no, using $LN_S" >&6; }
15904 # find the maximum length of command line arguments
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
15906 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
15907 if ${lt_cv_sys_max_cmd_len+:} false; then :
15908 $as_echo_n "(cached) " >&6
15915 # On DJGPP, this test can blow up pretty badly due to problems in libc
15916 # (any single argument exceeding 2000 bytes causes a buffer overrun
15917 # during glob expansion). Even if it were fixed, the result of this
15918 # check would be larger than it should be.
15919 lt_cv_sys_max_cmd_len=12288; # 12K is about right
15923 # Under GNU Hurd, this test is not required because there is
15924 # no limit to the length of command line arguments.
15925 # Libtool will interpret -1 as no limit whatsoever
15926 lt_cv_sys_max_cmd_len=-1;
15929 cygwin* | mingw* | cegcc*)
15930 # On Win9x/ME, this test blows up -- it succeeds, but takes
15931 # about 5 minutes as the teststring grows exponentially.
15932 # Worse, since 9x/ME are not pre-emptively multitasking,
15933 # you end up with a "frozen" computer, even though with patience
15934 # the test eventually succeeds (with a max line length of 256k).
15935 # Instead, let's just punt: use the minimum linelength reported by
15936 # all of the supported platforms: 8192 (on NT/2K/XP).
15937 lt_cv_sys_max_cmd_len=8192;
15941 # On MiNT this can take a long time and run out of memory.
15942 lt_cv_sys_max_cmd_len=8192;
15946 # On AmigaOS with pdksh, this test takes hours, literally.
15947 # So we just punt and use a minimum line length of 8192.
15948 lt_cv_sys_max_cmd_len=8192;
15951 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
15952 # This has been around since 386BSD, at least. Likely further.
15953 if test -x /sbin/sysctl; then
15954 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
15955 elif test -x /usr/sbin/sysctl; then
15956 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
15958 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
15960 # And add a safety zone
15961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15966 # We know the value 262144 and hardcode it with a safety zone (like BSD)
15967 lt_cv_sys_max_cmd_len=196608
15971 # The test takes a long time on OS/2.
15972 lt_cv_sys_max_cmd_len=8192
15976 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15977 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15978 # nice to cause kernel panics so lets avoid the loop below.
15979 # First set a reasonable default.
15980 lt_cv_sys_max_cmd_len=16384
15982 if test -x /sbin/sysconfig; then
15983 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15984 *1*) lt_cv_sys_max_cmd_len=-1 ;;
15989 lt_cv_sys_max_cmd_len=102400
15991 sysv5* | sco5v6* | sysv4.2uw2*)
15992 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15993 if test -n "$kargmax"; then
15994 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
15996 lt_cv_sys_max_cmd_len=32768
16000 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
16001 if test -n "$lt_cv_sys_max_cmd_len" && \
16002 test undefined != "$lt_cv_sys_max_cmd_len"; then
16003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16006 # Make teststring a little bigger before we do anything with it.
16007 # a 1K string should be a reasonable start.
16008 for i in 1 2 3 4 5 6 7 8; do
16009 teststring=$teststring$teststring
16011 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16012 # If test is not a shell built-in, we'll probably end up computing a
16013 # maximum length that is only half of the actual maximum length, but
16015 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
16016 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
16017 test 17 != "$i" # 1/2 MB should be enough
16020 teststring=$teststring$teststring
16022 # Only check the string length outside the loop.
16023 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
16025 # Add a significant safety factor because C++ compilers can tack on
16026 # massive amounts of additional arguments before passing them to the
16027 # linker. It appears as though 1/2 is a usable value.
16028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16035 if test -n "$lt_cv_sys_max_cmd_len"; then
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
16037 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
16040 $as_echo "none" >&6; }
16042 max_cmd_len=$lt_cv_sys_max_cmd_len
16053 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16063 # test EBCDIC or ASCII
16064 case `echo X|tr X '\101'` in
16065 A) # ASCII based system
16066 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
16067 lt_SP2NL='tr \040 \012'
16068 lt_NL2SP='tr \015\012 \040\040'
16070 *) # EBCDIC based system
16071 lt_SP2NL='tr \100 \n'
16072 lt_NL2SP='tr \r\n \100\100'
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
16085 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
16086 if ${lt_cv_to_host_file_cmd+:} false; then :
16087 $as_echo_n "(cached) " >&6
16092 *-*-mingw* ) # actually msys
16093 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
16096 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
16098 * ) # otherwise, assume *nix
16099 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
16105 *-*-mingw* ) # actually msys
16106 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
16109 lt_cv_to_host_file_cmd=func_convert_file_noop
16111 * ) # otherwise, assume *nix
16112 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
16116 * ) # unhandled hosts (and "normal" native builds)
16117 lt_cv_to_host_file_cmd=func_convert_file_noop
16123 to_host_file_cmd=$lt_cv_to_host_file_cmd
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
16125 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
16132 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
16133 if ${lt_cv_to_tool_file_cmd+:} false; then :
16134 $as_echo_n "(cached) " >&6
16136 #assume ordinary cross tools, or native build.
16137 lt_cv_to_tool_file_cmd=func_convert_file_noop
16141 *-*-mingw* ) # actually msys
16142 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
16150 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
16152 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
16159 $as_echo_n "checking for $LD option to reload object files... " >&6; }
16160 if ${lt_cv_ld_reload_flag+:} false; then :
16161 $as_echo_n "(cached) " >&6
16163 lt_cv_ld_reload_flag='-r'
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
16166 $as_echo "$lt_cv_ld_reload_flag" >&6; }
16167 reload_flag=$lt_cv_ld_reload_flag
16168 case $reload_flag in
16170 *) reload_flag=" $reload_flag" ;;
16172 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16174 cygwin* | mingw* | pw32* | cegcc*)
16175 if test yes != "$GCC"; then
16180 if test yes = "$GCC"; then
16181 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
16183 reload_cmds='$LD$reload_flag -o $output$reload_objs'
16196 if test -n "$ac_tool_prefix"; then
16197 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16198 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16200 $as_echo_n "checking for $ac_word... " >&6; }
16201 if ${ac_cv_prog_OBJDUMP+:} false; then :
16202 $as_echo_n "(cached) " >&6
16204 if test -n "$OBJDUMP"; then
16205 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16208 for as_dir in $PATH
16211 test -z "$as_dir" && as_dir=.
16212 for ac_exec_ext in '' $ac_executable_extensions; do
16213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16214 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16224 OBJDUMP=$ac_cv_prog_OBJDUMP
16225 if test -n "$OBJDUMP"; then
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16227 $as_echo "$OBJDUMP" >&6; }
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16230 $as_echo "no" >&6; }
16235 if test -z "$ac_cv_prog_OBJDUMP"; then
16236 ac_ct_OBJDUMP=$OBJDUMP
16237 # Extract the first word of "objdump", so it can be a program name with args.
16238 set dummy objdump; ac_word=$2
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16240 $as_echo_n "checking for $ac_word... " >&6; }
16241 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16242 $as_echo_n "(cached) " >&6
16244 if test -n "$ac_ct_OBJDUMP"; then
16245 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16248 for as_dir in $PATH
16251 test -z "$as_dir" && as_dir=.
16252 for ac_exec_ext in '' $ac_executable_extensions; do
16253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16254 ac_cv_prog_ac_ct_OBJDUMP="objdump"
16255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16264 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16265 if test -n "$ac_ct_OBJDUMP"; then
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16267 $as_echo "$ac_ct_OBJDUMP" >&6; }
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16270 $as_echo "no" >&6; }
16273 if test "x$ac_ct_OBJDUMP" = x; then
16276 case $cross_compiling:$ac_tool_warned in
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16280 ac_tool_warned=yes ;;
16282 OBJDUMP=$ac_ct_OBJDUMP
16285 OBJDUMP="$ac_cv_prog_OBJDUMP"
16288 test -z "$OBJDUMP" && OBJDUMP=objdump
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
16299 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
16300 if ${lt_cv_deplibs_check_method+:} false; then :
16301 $as_echo_n "(cached) " >&6
16303 lt_cv_file_magic_cmd='$MAGIC_CMD'
16304 lt_cv_file_magic_test_file=
16305 lt_cv_deplibs_check_method='unknown'
16306 # Need to set the preceding variable on all platforms that support
16307 # interlibrary dependencies.
16308 # 'none' -- dependencies not supported.
16309 # 'unknown' -- same as none, but documents that we really don't know.
16310 # 'pass_all' -- all dependencies passed with no checks.
16311 # 'test_compile' -- check by making test program.
16312 # 'file_magic [[regex]]' -- check by looking for files in library path
16313 # that responds to the $file_magic_cmd with a given extended regex.
16314 # If you have 'file' or equivalent on your system and you're not sure
16315 # whether 'pass_all' will *always* work, you probably want this one.
16319 lt_cv_deplibs_check_method=pass_all
16323 lt_cv_deplibs_check_method=pass_all
16327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
16328 lt_cv_file_magic_cmd='/usr/bin/file -L'
16329 lt_cv_file_magic_test_file=/shlib/libc.so
16333 # func_win32_libid is a shell function defined in ltmain.sh
16334 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16335 lt_cv_file_magic_cmd='func_win32_libid'
16339 # Base MSYS/MinGW do not provide the 'file' command needed by
16340 # func_win32_libid shell function, so use a weaker test based on 'objdump',
16341 # unless we find 'file', for example because we are cross-compiling.
16342 if ( file / ) >/dev/null 2>&1; then
16343 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
16344 lt_cv_file_magic_cmd='func_win32_libid'
16346 # Keep this pattern in sync with the one in func_win32_libid.
16347 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
16348 lt_cv_file_magic_cmd='$OBJDUMP -f'
16353 # use the weaker test based on 'objdump'. See mingw*.
16354 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
16355 lt_cv_file_magic_cmd='$OBJDUMP -f'
16358 darwin* | rhapsody*)
16359 lt_cv_deplibs_check_method=pass_all
16362 freebsd* | dragonfly*)
16363 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16366 # Not sure whether the presence of OpenBSD here was a mistake.
16367 # Let's accept both of them until this is cleared up.
16368 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
16369 lt_cv_file_magic_cmd=/usr/bin/file
16370 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
16374 lt_cv_deplibs_check_method=pass_all
16379 lt_cv_deplibs_check_method=pass_all
16382 hpux10.20* | hpux11*)
16383 lt_cv_file_magic_cmd=/usr/bin/file
16386 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
16387 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
16390 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]'
16391 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
16394 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
16395 lt_cv_file_magic_test_file=/usr/lib/libc.sl
16401 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
16402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
16405 irix5* | irix6* | nonstopux*)
16407 *-32|*"-32 ") libmagic=32-bit;;
16408 *-n32|*"-n32 ") libmagic=N32;;
16409 *-64|*"-64 ") libmagic=64-bit;;
16410 *) libmagic=never-match;;
16412 lt_cv_deplibs_check_method=pass_all
16415 # This must be glibc/ELF.
16416 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16417 lt_cv_deplibs_check_method=pass_all
16421 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
16422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
16429 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
16430 lt_cv_file_magic_cmd=/usr/bin/file
16431 lt_cv_file_magic_test_file=/usr/lib/libnls.so
16435 lt_cv_deplibs_check_method=pass_all
16438 openbsd* | bitrig*)
16439 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
16442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
16446 osf3* | osf4* | osf5*)
16447 lt_cv_deplibs_check_method=pass_all
16451 lt_cv_deplibs_check_method=pass_all
16455 lt_cv_deplibs_check_method=pass_all
16458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16459 lt_cv_deplibs_check_method=pass_all
16463 case $host_vendor in
16465 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]'
16466 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
16469 lt_cv_deplibs_check_method=pass_all
16472 lt_cv_file_magic_cmd='/bin/file'
16473 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
16476 lt_cv_file_magic_cmd='/bin/file'
16477 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
16478 lt_cv_file_magic_test_file=/lib/libc.so
16481 lt_cv_deplibs_check_method=pass_all
16484 lt_cv_deplibs_check_method=pass_all
16490 lt_cv_deplibs_check_method=pass_all
16493 lt_cv_deplibs_check_method=pass_all
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
16499 $as_echo "$lt_cv_deplibs_check_method" >&6; }
16503 if test "$build" = "$host"; then
16506 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
16507 want_nocaseglob=yes
16509 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
16515 file_magic_cmd=$lt_cv_file_magic_cmd
16516 deplibs_check_method=$lt_cv_deplibs_check_method
16517 test -z "$deplibs_check_method" && deplibs_check_method=unknown
16540 if test -n "$ac_tool_prefix"; then
16541 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
16542 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16544 $as_echo_n "checking for $ac_word... " >&6; }
16545 if ${ac_cv_prog_DLLTOOL+:} false; then :
16546 $as_echo_n "(cached) " >&6
16548 if test -n "$DLLTOOL"; then
16549 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16552 for as_dir in $PATH
16555 test -z "$as_dir" && as_dir=.
16556 for ac_exec_ext in '' $ac_executable_extensions; do
16557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16558 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
16559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16568 DLLTOOL=$ac_cv_prog_DLLTOOL
16569 if test -n "$DLLTOOL"; then
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
16571 $as_echo "$DLLTOOL" >&6; }
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16574 $as_echo "no" >&6; }
16579 if test -z "$ac_cv_prog_DLLTOOL"; then
16580 ac_ct_DLLTOOL=$DLLTOOL
16581 # Extract the first word of "dlltool", so it can be a program name with args.
16582 set dummy dlltool; ac_word=$2
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16584 $as_echo_n "checking for $ac_word... " >&6; }
16585 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
16586 $as_echo_n "(cached) " >&6
16588 if test -n "$ac_ct_DLLTOOL"; then
16589 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592 for as_dir in $PATH
16595 test -z "$as_dir" && as_dir=.
16596 for ac_exec_ext in '' $ac_executable_extensions; do
16597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16598 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16608 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16609 if test -n "$ac_ct_DLLTOOL"; then
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
16611 $as_echo "$ac_ct_DLLTOOL" >&6; }
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16614 $as_echo "no" >&6; }
16617 if test "x$ac_ct_DLLTOOL" = x; then
16620 case $cross_compiling:$ac_tool_warned in
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16624 ac_tool_warned=yes ;;
16626 DLLTOOL=$ac_ct_DLLTOOL
16629 DLLTOOL="$ac_cv_prog_DLLTOOL"
16632 test -z "$DLLTOOL" && DLLTOOL=dlltool
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
16644 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
16645 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
16646 $as_echo_n "(cached) " >&6
16648 lt_cv_sharedlib_from_linklib_cmd='unknown'
16651 cygwin* | mingw* | pw32* | cegcc*)
16652 # two different shell functions defined in ltmain.sh;
16653 # decide which one to use based on capabilities of $DLLTOOL
16654 case `$DLLTOOL --help 2>&1` in
16655 *--identify-strict*)
16656 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
16659 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
16664 # fallback: assume linklib IS sharedlib
16665 lt_cv_sharedlib_from_linklib_cmd=$ECHO
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
16671 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
16672 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
16673 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
16681 if test -n "$ac_tool_prefix"; then
16684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16687 $as_echo_n "checking for $ac_word... " >&6; }
16688 if ${ac_cv_prog_AR+:} false; then :
16689 $as_echo_n "(cached) " >&6
16691 if test -n "$AR"; then
16692 ac_cv_prog_AR="$AR" # Let the user override the test.
16694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16695 for as_dir in $PATH
16698 test -z "$as_dir" && as_dir=.
16699 for ac_exec_ext in '' $ac_executable_extensions; do
16700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16701 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
16702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16712 if test -n "$AR"; then
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16714 $as_echo "$AR" >&6; }
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16717 $as_echo "no" >&6; }
16721 test -n "$AR" && break
16724 if test -z "$AR"; then
16728 # Extract the first word of "$ac_prog", so it can be a program name with args.
16729 set dummy $ac_prog; ac_word=$2
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16731 $as_echo_n "checking for $ac_word... " >&6; }
16732 if ${ac_cv_prog_ac_ct_AR+:} false; then :
16733 $as_echo_n "(cached) " >&6
16735 if test -n "$ac_ct_AR"; then
16736 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16739 for as_dir in $PATH
16742 test -z "$as_dir" && as_dir=.
16743 for ac_exec_ext in '' $ac_executable_extensions; do
16744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16745 ac_cv_prog_ac_ct_AR="$ac_prog"
16746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16755 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16756 if test -n "$ac_ct_AR"; then
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16758 $as_echo "$ac_ct_AR" >&6; }
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16761 $as_echo "no" >&6; }
16765 test -n "$ac_ct_AR" && break
16768 if test "x$ac_ct_AR" = x; then
16771 case $cross_compiling:$ac_tool_warned in
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16775 ac_tool_warned=yes ;;
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
16795 $as_echo_n "checking for archiver @FILE support... " >&6; }
16796 if ${lt_cv_ar_at_file+:} false; then :
16797 $as_echo_n "(cached) " >&6
16799 lt_cv_ar_at_file=no
16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801 /* end confdefs.h. */
16811 if ac_fn_c_try_compile "$LINENO"; then :
16812 echo conftest.$ac_objext > conftest.lst
16813 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
16814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16815 (eval $lt_ar_try) 2>&5
16817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16818 test $ac_status = 0; }
16819 if test 0 -eq "$ac_status"; then
16820 # Ensure the archiver fails upon bogus file names.
16821 rm -f conftest.$ac_objext libconftest.a
16822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16823 (eval $lt_ar_try) 2>&5
16825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16826 test $ac_status = 0; }
16827 if test 0 -ne "$ac_status"; then
16831 rm -f conftest.* libconftest.a
16834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
16838 $as_echo "$lt_cv_ar_at_file" >&6; }
16840 if test no = "$lt_cv_ar_at_file"; then
16841 archiver_list_spec=
16843 archiver_list_spec=$lt_cv_ar_at_file
16852 if test -n "$ac_tool_prefix"; then
16853 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16854 set dummy ${ac_tool_prefix}strip; ac_word=$2
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16856 $as_echo_n "checking for $ac_word... " >&6; }
16857 if ${ac_cv_prog_STRIP+:} false; then :
16858 $as_echo_n "(cached) " >&6
16860 if test -n "$STRIP"; then
16861 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16864 for as_dir in $PATH
16867 test -z "$as_dir" && as_dir=.
16868 for ac_exec_ext in '' $ac_executable_extensions; do
16869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16870 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16880 STRIP=$ac_cv_prog_STRIP
16881 if test -n "$STRIP"; then
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16883 $as_echo "$STRIP" >&6; }
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16886 $as_echo "no" >&6; }
16891 if test -z "$ac_cv_prog_STRIP"; then
16893 # Extract the first word of "strip", so it can be a program name with args.
16894 set dummy strip; ac_word=$2
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16896 $as_echo_n "checking for $ac_word... " >&6; }
16897 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16898 $as_echo_n "(cached) " >&6
16900 if test -n "$ac_ct_STRIP"; then
16901 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16904 for as_dir in $PATH
16907 test -z "$as_dir" && as_dir=.
16908 for ac_exec_ext in '' $ac_executable_extensions; do
16909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16910 ac_cv_prog_ac_ct_STRIP="strip"
16911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16920 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16921 if test -n "$ac_ct_STRIP"; then
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16923 $as_echo "$ac_ct_STRIP" >&6; }
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16926 $as_echo "no" >&6; }
16929 if test "x$ac_ct_STRIP" = x; then
16932 case $cross_compiling:$ac_tool_warned in
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16936 ac_tool_warned=yes ;;
16941 STRIP="$ac_cv_prog_STRIP"
16944 test -z "$STRIP" && STRIP=:
16951 if test -n "$ac_tool_prefix"; then
16952 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16953 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16955 $as_echo_n "checking for $ac_word... " >&6; }
16956 if ${ac_cv_prog_RANLIB+:} false; then :
16957 $as_echo_n "(cached) " >&6
16959 if test -n "$RANLIB"; then
16960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16963 for as_dir in $PATH
16966 test -z "$as_dir" && as_dir=.
16967 for ac_exec_ext in '' $ac_executable_extensions; do
16968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16969 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16979 RANLIB=$ac_cv_prog_RANLIB
16980 if test -n "$RANLIB"; then
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16982 $as_echo "$RANLIB" >&6; }
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16985 $as_echo "no" >&6; }
16990 if test -z "$ac_cv_prog_RANLIB"; then
16991 ac_ct_RANLIB=$RANLIB
16992 # Extract the first word of "ranlib", so it can be a program name with args.
16993 set dummy ranlib; ac_word=$2
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16995 $as_echo_n "checking for $ac_word... " >&6; }
16996 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
16997 $as_echo_n "(cached) " >&6
16999 if test -n "$ac_ct_RANLIB"; then
17000 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17003 for as_dir in $PATH
17006 test -z "$as_dir" && as_dir=.
17007 for ac_exec_ext in '' $ac_executable_extensions; do
17008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17009 ac_cv_prog_ac_ct_RANLIB="ranlib"
17010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17019 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17020 if test -n "$ac_ct_RANLIB"; then
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17022 $as_echo "$ac_ct_RANLIB" >&6; }
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17025 $as_echo "no" >&6; }
17028 if test "x$ac_ct_RANLIB" = x; then
17031 case $cross_compiling:$ac_tool_warned in
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17035 ac_tool_warned=yes ;;
17037 RANLIB=$ac_ct_RANLIB
17040 RANLIB="$ac_cv_prog_RANLIB"
17043 test -z "$RANLIB" && RANLIB=:
17050 # Determine commands to create old-style static archives.
17051 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
17052 old_postinstall_cmds='chmod 644 $oldlib'
17053 old_postuninstall_cmds=
17055 if test -n "$RANLIB"; then
17057 bitrig* | openbsd*)
17058 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
17061 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
17064 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
17069 lock_old_archive_extraction=yes ;;
17071 lock_old_archive_extraction=no ;;
17112 # If no C compiler was specified, use CC.
17115 # If no C compiler flags were specified, use CFLAGS.
17116 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17118 # Allow CC to be a program name with arguments.
17122 # Check for command to grab the raw symbol name followed by C symbol from nm.
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
17124 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
17125 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
17126 $as_echo_n "(cached) " >&6
17129 # These are sane defaults that work on at least a few old systems.
17130 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
17132 # Character class describing NM global symbol codes.
17133 symcode='[BCDEGRST]'
17135 # Regexp to match symbols that can be accessed directly from C.
17136 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
17138 # Define system-specific variables.
17143 cygwin* | mingw* | pw32* | cegcc*)
17144 symcode='[ABCDGISTW]'
17147 if test ia64 = "$host_cpu"; then
17148 symcode='[ABCDEGRST]'
17151 irix* | nonstopux*)
17152 symcode='[BCDEGRST]'
17155 symcode='[BCDEGQRST]'
17166 sysv5* | sco5v6* | unixware* | OpenUNIX*)
17174 # If we're using GNU nm, then use its standard symbol codes.
17175 case `$NM -V 2>&1` in
17176 *GNU* | *'with BFD'*)
17177 symcode='[ABCDGIRSTW]' ;;
17180 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17181 # Gets list of data symbols to import.
17182 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
17183 # Adjust the below global symbol transforms to fixup imported variables.
17184 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
17185 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
17186 lt_c_name_lib_hook="\
17187 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
17188 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
17190 # Disable hooks by default.
17191 lt_cv_sys_global_symbol_to_import=
17194 lt_c_name_lib_hook=
17197 # Transform an extracted symbol line into a proper C declaration.
17198 # Some systems (esp. on ia64) link data and code symbols differently,
17199 # so use this general approach.
17200 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
17202 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
17203 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
17205 # Transform an extracted symbol line into symbol name and symbol address
17206 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
17208 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
17209 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
17211 # Transform an extracted symbol line into symbol name with lib prefix and
17213 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
17214 $lt_c_name_lib_hook\
17215 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
17216 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
17217 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
17219 # Handle CRLF in mingw tool chain
17223 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
17227 # Try without a prefix underscore, then with it.
17228 for ac_symprfx in "" "_"; do
17230 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
17231 symxfrm="\\1 $ac_symprfx\\2 \\2"
17233 # Write the raw and C identifiers.
17234 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17235 # Fake it for dumpbin and say T for any non-static function,
17236 # D for any global variable and I for any imported variable.
17237 # Also find C++ and __fastcall symbols from MSVC++,
17238 # which start with @ or ?.
17239 lt_cv_sys_global_symbol_pipe="$AWK '"\
17240 " {last_section=section; section=\$ 3};"\
17241 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
17242 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
17243 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
17244 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
17245 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
17246 " \$ 0!~/External *\|/{next};"\
17247 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
17248 " {if(hide[section]) next};"\
17249 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
17250 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
17251 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
17252 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
17253 " ' prfx=^$ac_symprfx"
17255 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
17257 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
17259 # Check to see that the pipe works correctly.
17263 cat > conftest.$ac_ext <<_LT_EOF
17268 void nm_test_func(void);
17269 void nm_test_func(void){}
17273 int main(){nm_test_var='a';nm_test_func();return(0);}
17276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17277 (eval $ac_compile) 2>&5
17279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17280 test $ac_status = 0; }; then
17281 # Now try to grab the symbols.
17283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
17284 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
17286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17287 test $ac_status = 0; } && test -s "$nlist"; then
17288 # Try sorting and uniquifying the output.
17289 if sort "$nlist" | uniq > "$nlist"T; then
17290 mv -f "$nlist"T "$nlist"
17295 # Make sure that we snagged all the symbols we need.
17296 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
17297 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
17298 cat <<_LT_EOF > conftest.$ac_ext
17299 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
17300 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
17301 /* DATA imports from DLLs on WIN32 can't be const, because runtime
17302 relocations are performed -- see ld's documentation on pseudo-relocs. */
17303 # define LT_DLSYM_CONST
17304 #elif defined __osf__
17305 /* This system does not cope well with relocations in const data. */
17306 # define LT_DLSYM_CONST
17308 # define LT_DLSYM_CONST const
17316 # Now generate the symbol file.
17317 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
17319 cat <<_LT_EOF >> conftest.$ac_ext
17321 /* The mapping between symbol names and symbols. */
17322 LT_DLSYM_CONST struct {
17326 lt__PROGRAM__LTX_preloaded_symbols[] =
17328 { "@PROGRAM@", (void *) 0 },
17330 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
17331 cat <<\_LT_EOF >> conftest.$ac_ext
17335 /* This works around a problem in FreeBSD linker */
17336 #ifdef FREEBSD_WORKAROUND
17337 static const void *lt_preloaded_setup() {
17338 return lt__PROGRAM__LTX_preloaded_symbols;
17346 # Now try linking the two files.
17347 mv conftest.$ac_objext conftstm.$ac_objext
17348 lt_globsym_save_LIBS=$LIBS
17349 lt_globsym_save_CFLAGS=$CFLAGS
17350 LIBS=conftstm.$ac_objext
17351 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
17352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17353 (eval $ac_link) 2>&5
17355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17356 test $ac_status = 0; } && test -s conftest$ac_exeext; then
17359 LIBS=$lt_globsym_save_LIBS
17360 CFLAGS=$lt_globsym_save_CFLAGS
17362 echo "cannot find nm_test_func in $nlist" >&5
17365 echo "cannot find nm_test_var in $nlist" >&5
17368 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
17371 echo "$progname: failed program was:" >&5
17372 cat conftest.$ac_ext >&5
17374 rm -rf conftest* conftst*
17376 # Do not use the global_symbol_pipe unless it works.
17377 if test yes = "$pipe_works"; then
17380 lt_cv_sys_global_symbol_pipe=
17386 if test -z "$lt_cv_sys_global_symbol_pipe"; then
17387 lt_cv_sys_global_symbol_to_cdecl=
17389 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
17391 $as_echo "failed" >&6; }
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17394 $as_echo "ok" >&6; }
17397 # Response file support.
17398 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17399 nm_file_list_spec='@'
17400 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
17401 nm_file_list_spec='@'
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
17441 $as_echo_n "checking for sysroot... " >&6; }
17443 # Check whether --with-sysroot was given.
17444 if test "${with_sysroot+set}" = set; then :
17445 withval=$with_sysroot;
17452 case $with_sysroot in #(
17454 if test yes = "$GCC"; then
17455 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
17459 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
17465 $as_echo "$with_sysroot" >&6; }
17466 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
17471 $as_echo "${lt_sysroot:-no}" >&6; }
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
17478 $as_echo_n "checking for a working dd... " >&6; }
17479 if ${ac_cv_path_lt_DD+:} false; then :
17480 $as_echo_n "(cached) " >&6
17482 printf 0123456789abcdef0123456789abcdef >conftest.i
17483 cat conftest.i conftest.i >conftest2.i
17485 if test -z "$lt_DD"; then
17486 ac_path_lt_DD_found=false
17487 # Loop through the user's path and test for each of PROGNAME-LIST
17488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17489 for as_dir in $PATH
17492 test -z "$as_dir" && as_dir=.
17493 for ac_prog in dd; do
17494 for ac_exec_ext in '' $ac_executable_extensions; do
17495 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
17496 as_fn_executable_p "$ac_path_lt_DD" || continue
17497 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
17498 cmp -s conftest.i conftest.out \
17499 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
17501 $ac_path_lt_DD_found && break 3
17506 if test -z "$ac_cv_path_lt_DD"; then
17510 ac_cv_path_lt_DD=$lt_DD
17513 rm -f conftest.i conftest2.i conftest.out
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
17516 $as_echo "$ac_cv_path_lt_DD" >&6; }
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
17520 $as_echo_n "checking how to truncate binary pipes... " >&6; }
17521 if ${lt_cv_truncate_bin+:} false; then :
17522 $as_echo_n "(cached) " >&6
17524 printf 0123456789abcdef0123456789abcdef >conftest.i
17525 cat conftest.i conftest.i >conftest2.i
17526 lt_cv_truncate_bin=
17527 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
17528 cmp -s conftest.i conftest.out \
17529 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
17531 rm -f conftest.i conftest2.i conftest.out
17532 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
17535 $as_echo "$lt_cv_truncate_bin" >&6; }
17543 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17544 func_cc_basename ()
17546 for cc_temp in $*""; do
17548 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17549 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17554 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17557 # Check whether --enable-libtool-lock was given.
17558 if test "${enable_libtool_lock+set}" = set; then :
17559 enableval=$enable_libtool_lock;
17562 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
17564 # Some flags need to be propagated to the compiler or linker for good
17568 # Find out what ABI is being produced by ac_compile, and set mode
17569 # options accordingly.
17570 echo 'int i;' > conftest.$ac_ext
17571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17572 (eval $ac_compile) 2>&5
17574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17575 test $ac_status = 0; }; then
17576 case `/usr/bin/file conftest.$ac_objext` in
17588 # Find out what ABI is being produced by ac_compile, and set linker
17589 # options accordingly.
17590 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
17591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17592 (eval $ac_compile) 2>&5
17594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17595 test $ac_status = 0; }; then
17596 if test yes = "$lt_cv_prog_gnu_ld"; then
17597 case `/usr/bin/file conftest.$ac_objext` in
17599 LD="${LD-ld} -melf32bsmip"
17602 LD="${LD-ld} -melf32bmipn32"
17605 LD="${LD-ld} -melf64bmip"
17609 case `/usr/bin/file conftest.$ac_objext` in
17626 # Find out what ABI is being produced by ac_compile, and set linker
17627 # options accordingly.
17628 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
17629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17630 (eval $ac_compile) 2>&5
17632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17633 test $ac_status = 0; }; then
17635 case `/usr/bin/file conftest.$ac_objext` in
17643 case `/usr/bin/file conftest.$ac_objext` in
17645 emul="${emul}btsmip"
17648 emul="${emul}ltsmip"
17651 case `/usr/bin/file conftest.$ac_objext` in
17656 LD="${LD-ld} -m $emul"
17661 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
17662 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
17663 # Find out what ABI is being produced by ac_compile, and set linker
17664 # options accordingly. Note that the listed cases only cover the
17665 # situations where additional linker options are needed (such as when
17666 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
17667 # vice versa); the common cases where no linker options are needed do
17668 # not appear in the list.
17669 echo 'int i;' > conftest.$ac_ext
17670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17671 (eval $ac_compile) 2>&5
17673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17674 test $ac_status = 0; }; then
17675 case `/usr/bin/file conftest.o` in
17678 x86_64-*kfreebsd*-gnu)
17679 LD="${LD-ld} -m elf_i386_fbsd"
17682 case `/usr/bin/file conftest.o` in
17684 LD="${LD-ld} -m elf32_x86_64"
17687 LD="${LD-ld} -m elf_i386"
17691 powerpc64le-*linux*)
17692 LD="${LD-ld} -m elf32lppclinux"
17695 LD="${LD-ld} -m elf32ppclinux"
17698 LD="${LD-ld} -m elf_s390"
17701 LD="${LD-ld} -m elf32_sparc"
17707 x86_64-*kfreebsd*-gnu)
17708 LD="${LD-ld} -m elf_x86_64_fbsd"
17711 LD="${LD-ld} -m elf_x86_64"
17714 LD="${LD-ld} -m elf64lppc"
17717 LD="${LD-ld} -m elf64ppc"
17719 s390*-*linux*|s390*-*tpf*)
17720 LD="${LD-ld} -m elf64_s390"
17723 LD="${LD-ld} -m elf64_sparc"
17733 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
17734 SAVE_CFLAGS=$CFLAGS
17735 CFLAGS="$CFLAGS -belf"
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
17737 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
17738 if ${lt_cv_cc_needs_belf+:} false; then :
17739 $as_echo_n "(cached) " >&6
17742 ac_cpp='$CPP $CPPFLAGS'
17743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17748 /* end confdefs.h. */
17758 if ac_fn_c_try_link "$LINENO"; then :
17759 lt_cv_cc_needs_belf=yes
17761 lt_cv_cc_needs_belf=no
17763 rm -f core conftest.err conftest.$ac_objext \
17764 conftest$ac_exeext conftest.$ac_ext
17766 ac_cpp='$CPP $CPPFLAGS'
17767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
17773 $as_echo "$lt_cv_cc_needs_belf" >&6; }
17774 if test yes != "$lt_cv_cc_needs_belf"; then
17775 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
17776 CFLAGS=$SAVE_CFLAGS
17780 # Find out what ABI is being produced by ac_compile, and set linker
17781 # options accordingly.
17782 echo 'int i;' > conftest.$ac_ext
17783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17784 (eval $ac_compile) 2>&5
17786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17787 test $ac_status = 0; }; then
17788 case `/usr/bin/file conftest.o` in
17790 case $lt_cv_prog_gnu_ld in
17793 i?86-*-solaris*|x86_64-*-solaris*)
17794 LD="${LD-ld} -m elf_x86_64"
17797 LD="${LD-ld} -m elf64_sparc"
17800 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
17801 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
17806 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
17818 need_locks=$enable_libtool_lock
17820 if test -n "$ac_tool_prefix"; then
17821 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
17822 set dummy ${ac_tool_prefix}mt; ac_word=$2
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17824 $as_echo_n "checking for $ac_word... " >&6; }
17825 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
17826 $as_echo_n "(cached) " >&6
17828 if test -n "$MANIFEST_TOOL"; then
17829 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
17831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17832 for as_dir in $PATH
17835 test -z "$as_dir" && as_dir=.
17836 for ac_exec_ext in '' $ac_executable_extensions; do
17837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17838 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
17839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17848 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
17849 if test -n "$MANIFEST_TOOL"; then
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
17851 $as_echo "$MANIFEST_TOOL" >&6; }
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17854 $as_echo "no" >&6; }
17859 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
17860 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
17861 # Extract the first word of "mt", so it can be a program name with args.
17862 set dummy mt; ac_word=$2
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17864 $as_echo_n "checking for $ac_word... " >&6; }
17865 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
17866 $as_echo_n "(cached) " >&6
17868 if test -n "$ac_ct_MANIFEST_TOOL"; then
17869 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
17871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17872 for as_dir in $PATH
17875 test -z "$as_dir" && as_dir=.
17876 for ac_exec_ext in '' $ac_executable_extensions; do
17877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17878 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
17879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17888 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
17889 if test -n "$ac_ct_MANIFEST_TOOL"; then
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
17891 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17894 $as_echo "no" >&6; }
17897 if test "x$ac_ct_MANIFEST_TOOL" = x; then
17900 case $cross_compiling:$ac_tool_warned in
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17904 ac_tool_warned=yes ;;
17906 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
17909 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
17912 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
17914 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
17915 if ${lt_cv_path_mainfest_tool+:} false; then :
17916 $as_echo_n "(cached) " >&6
17918 lt_cv_path_mainfest_tool=no
17919 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
17920 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
17921 cat conftest.err >&5
17922 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
17923 lt_cv_path_mainfest_tool=yes
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
17928 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
17929 if test yes != "$lt_cv_path_mainfest_tool"; then
17939 rhapsody* | darwin*)
17940 if test -n "$ac_tool_prefix"; then
17941 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
17942 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17944 $as_echo_n "checking for $ac_word... " >&6; }
17945 if ${ac_cv_prog_DSYMUTIL+:} false; then :
17946 $as_echo_n "(cached) " >&6
17948 if test -n "$DSYMUTIL"; then
17949 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17952 for as_dir in $PATH
17955 test -z "$as_dir" && as_dir=.
17956 for ac_exec_ext in '' $ac_executable_extensions; do
17957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17958 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
17959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17968 DSYMUTIL=$ac_cv_prog_DSYMUTIL
17969 if test -n "$DSYMUTIL"; then
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
17971 $as_echo "$DSYMUTIL" >&6; }
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17974 $as_echo "no" >&6; }
17979 if test -z "$ac_cv_prog_DSYMUTIL"; then
17980 ac_ct_DSYMUTIL=$DSYMUTIL
17981 # Extract the first word of "dsymutil", so it can be a program name with args.
17982 set dummy dsymutil; ac_word=$2
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17984 $as_echo_n "checking for $ac_word... " >&6; }
17985 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
17986 $as_echo_n "(cached) " >&6
17988 if test -n "$ac_ct_DSYMUTIL"; then
17989 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17992 for as_dir in $PATH
17995 test -z "$as_dir" && as_dir=.
17996 for ac_exec_ext in '' $ac_executable_extensions; do
17997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17998 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
17999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18008 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
18009 if test -n "$ac_ct_DSYMUTIL"; then
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
18011 $as_echo "$ac_ct_DSYMUTIL" >&6; }
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18014 $as_echo "no" >&6; }
18017 if test "x$ac_ct_DSYMUTIL" = x; then
18020 case $cross_compiling:$ac_tool_warned in
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18024 ac_tool_warned=yes ;;
18026 DSYMUTIL=$ac_ct_DSYMUTIL
18029 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
18032 if test -n "$ac_tool_prefix"; then
18033 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
18034 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18036 $as_echo_n "checking for $ac_word... " >&6; }
18037 if ${ac_cv_prog_NMEDIT+:} false; then :
18038 $as_echo_n "(cached) " >&6
18040 if test -n "$NMEDIT"; then
18041 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
18043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18044 for as_dir in $PATH
18047 test -z "$as_dir" && as_dir=.
18048 for ac_exec_ext in '' $ac_executable_extensions; do
18049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18050 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
18051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18060 NMEDIT=$ac_cv_prog_NMEDIT
18061 if test -n "$NMEDIT"; then
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
18063 $as_echo "$NMEDIT" >&6; }
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18066 $as_echo "no" >&6; }
18071 if test -z "$ac_cv_prog_NMEDIT"; then
18072 ac_ct_NMEDIT=$NMEDIT
18073 # Extract the first word of "nmedit", so it can be a program name with args.
18074 set dummy nmedit; ac_word=$2
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18076 $as_echo_n "checking for $ac_word... " >&6; }
18077 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
18078 $as_echo_n "(cached) " >&6
18080 if test -n "$ac_ct_NMEDIT"; then
18081 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
18083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18084 for as_dir in $PATH
18087 test -z "$as_dir" && as_dir=.
18088 for ac_exec_ext in '' $ac_executable_extensions; do
18089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18090 ac_cv_prog_ac_ct_NMEDIT="nmedit"
18091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18100 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
18101 if test -n "$ac_ct_NMEDIT"; then
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
18103 $as_echo "$ac_ct_NMEDIT" >&6; }
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18106 $as_echo "no" >&6; }
18109 if test "x$ac_ct_NMEDIT" = x; then
18112 case $cross_compiling:$ac_tool_warned in
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18116 ac_tool_warned=yes ;;
18118 NMEDIT=$ac_ct_NMEDIT
18121 NMEDIT="$ac_cv_prog_NMEDIT"
18124 if test -n "$ac_tool_prefix"; then
18125 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
18126 set dummy ${ac_tool_prefix}lipo; ac_word=$2
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18128 $as_echo_n "checking for $ac_word... " >&6; }
18129 if ${ac_cv_prog_LIPO+:} false; then :
18130 $as_echo_n "(cached) " >&6
18132 if test -n "$LIPO"; then
18133 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
18135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18136 for as_dir in $PATH
18139 test -z "$as_dir" && as_dir=.
18140 for ac_exec_ext in '' $ac_executable_extensions; do
18141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18142 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
18143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18152 LIPO=$ac_cv_prog_LIPO
18153 if test -n "$LIPO"; then
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
18155 $as_echo "$LIPO" >&6; }
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18158 $as_echo "no" >&6; }
18163 if test -z "$ac_cv_prog_LIPO"; then
18165 # Extract the first word of "lipo", so it can be a program name with args.
18166 set dummy lipo; ac_word=$2
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18168 $as_echo_n "checking for $ac_word... " >&6; }
18169 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
18170 $as_echo_n "(cached) " >&6
18172 if test -n "$ac_ct_LIPO"; then
18173 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
18175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18176 for as_dir in $PATH
18179 test -z "$as_dir" && as_dir=.
18180 for ac_exec_ext in '' $ac_executable_extensions; do
18181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18182 ac_cv_prog_ac_ct_LIPO="lipo"
18183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18192 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
18193 if test -n "$ac_ct_LIPO"; then
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
18195 $as_echo "$ac_ct_LIPO" >&6; }
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18198 $as_echo "no" >&6; }
18201 if test "x$ac_ct_LIPO" = x; then
18204 case $cross_compiling:$ac_tool_warned in
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18208 ac_tool_warned=yes ;;
18213 LIPO="$ac_cv_prog_LIPO"
18216 if test -n "$ac_tool_prefix"; then
18217 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
18218 set dummy ${ac_tool_prefix}otool; ac_word=$2
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18220 $as_echo_n "checking for $ac_word... " >&6; }
18221 if ${ac_cv_prog_OTOOL+:} false; then :
18222 $as_echo_n "(cached) " >&6
18224 if test -n "$OTOOL"; then
18225 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
18227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18228 for as_dir in $PATH
18231 test -z "$as_dir" && as_dir=.
18232 for ac_exec_ext in '' $ac_executable_extensions; do
18233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18234 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
18235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18244 OTOOL=$ac_cv_prog_OTOOL
18245 if test -n "$OTOOL"; then
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
18247 $as_echo "$OTOOL" >&6; }
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18250 $as_echo "no" >&6; }
18255 if test -z "$ac_cv_prog_OTOOL"; then
18257 # Extract the first word of "otool", so it can be a program name with args.
18258 set dummy otool; ac_word=$2
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18260 $as_echo_n "checking for $ac_word... " >&6; }
18261 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
18262 $as_echo_n "(cached) " >&6
18264 if test -n "$ac_ct_OTOOL"; then
18265 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
18267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18268 for as_dir in $PATH
18271 test -z "$as_dir" && as_dir=.
18272 for ac_exec_ext in '' $ac_executable_extensions; do
18273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18274 ac_cv_prog_ac_ct_OTOOL="otool"
18275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18284 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
18285 if test -n "$ac_ct_OTOOL"; then
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
18287 $as_echo "$ac_ct_OTOOL" >&6; }
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18290 $as_echo "no" >&6; }
18293 if test "x$ac_ct_OTOOL" = x; then
18296 case $cross_compiling:$ac_tool_warned in
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18300 ac_tool_warned=yes ;;
18305 OTOOL="$ac_cv_prog_OTOOL"
18308 if test -n "$ac_tool_prefix"; then
18309 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
18310 set dummy ${ac_tool_prefix}otool64; ac_word=$2
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18312 $as_echo_n "checking for $ac_word... " >&6; }
18313 if ${ac_cv_prog_OTOOL64+:} false; then :
18314 $as_echo_n "(cached) " >&6
18316 if test -n "$OTOOL64"; then
18317 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
18319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18320 for as_dir in $PATH
18323 test -z "$as_dir" && as_dir=.
18324 for ac_exec_ext in '' $ac_executable_extensions; do
18325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18326 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
18327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18336 OTOOL64=$ac_cv_prog_OTOOL64
18337 if test -n "$OTOOL64"; then
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
18339 $as_echo "$OTOOL64" >&6; }
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18342 $as_echo "no" >&6; }
18347 if test -z "$ac_cv_prog_OTOOL64"; then
18348 ac_ct_OTOOL64=$OTOOL64
18349 # Extract the first word of "otool64", so it can be a program name with args.
18350 set dummy otool64; ac_word=$2
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18352 $as_echo_n "checking for $ac_word... " >&6; }
18353 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
18354 $as_echo_n "(cached) " >&6
18356 if test -n "$ac_ct_OTOOL64"; then
18357 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
18359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18360 for as_dir in $PATH
18363 test -z "$as_dir" && as_dir=.
18364 for ac_exec_ext in '' $ac_executable_extensions; do
18365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18366 ac_cv_prog_ac_ct_OTOOL64="otool64"
18367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18376 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
18377 if test -n "$ac_ct_OTOOL64"; then
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
18379 $as_echo "$ac_ct_OTOOL64" >&6; }
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18382 $as_echo "no" >&6; }
18385 if test "x$ac_ct_OTOOL64" = x; then
18388 case $cross_compiling:$ac_tool_warned in
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18392 ac_tool_warned=yes ;;
18394 OTOOL64=$ac_ct_OTOOL64
18397 OTOOL64="$ac_cv_prog_OTOOL64"
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
18427 $as_echo_n "checking for -single_module linker flag... " >&6; }
18428 if ${lt_cv_apple_cc_single_mod+:} false; then :
18429 $as_echo_n "(cached) " >&6
18431 lt_cv_apple_cc_single_mod=no
18432 if test -z "$LT_MULTI_MODULE"; then
18433 # By default we will add the -single_module flag. You can override
18434 # by either setting the environment variable LT_MULTI_MODULE
18435 # non-empty at configure time, or by adding -multi_module to the
18437 rm -rf libconftest.dylib*
18438 echo "int foo(void){return 1;}" > conftest.c
18439 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
18440 -dynamiclib -Wl,-single_module conftest.c" >&5
18441 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
18442 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
18444 # If there is a non-empty error log, and "single_module"
18445 # appears in it, assume the flag caused a linker warning
18446 if test -s conftest.err && $GREP single_module conftest.err; then
18447 cat conftest.err >&5
18448 # Otherwise, if the output was created with a 0 exit code from
18449 # the compiler, it worked.
18450 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
18451 lt_cv_apple_cc_single_mod=yes
18453 cat conftest.err >&5
18455 rm -rf libconftest.dylib*
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
18460 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
18463 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
18464 if ${lt_cv_ld_exported_symbols_list+:} false; then :
18465 $as_echo_n "(cached) " >&6
18467 lt_cv_ld_exported_symbols_list=no
18468 save_LDFLAGS=$LDFLAGS
18469 echo "_main" > conftest.sym
18470 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
18471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18472 /* end confdefs.h. */
18482 if ac_fn_c_try_link "$LINENO"; then :
18483 lt_cv_ld_exported_symbols_list=yes
18485 lt_cv_ld_exported_symbols_list=no
18487 rm -f core conftest.err conftest.$ac_objext \
18488 conftest$ac_exeext conftest.$ac_ext
18489 LDFLAGS=$save_LDFLAGS
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
18493 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
18496 $as_echo_n "checking for -force_load linker flag... " >&6; }
18497 if ${lt_cv_ld_force_load+:} false; then :
18498 $as_echo_n "(cached) " >&6
18500 lt_cv_ld_force_load=no
18501 cat > conftest.c << _LT_EOF
18502 int forced_loaded() { return 2;}
18504 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
18505 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
18506 echo "$AR cru libconftest.a conftest.o" >&5
18507 $AR cru libconftest.a conftest.o 2>&5
18508 echo "$RANLIB libconftest.a" >&5
18509 $RANLIB libconftest.a 2>&5
18510 cat > conftest.c << _LT_EOF
18511 int main() { return 0;}
18513 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
18514 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
18516 if test -s conftest.err && $GREP force_load conftest.err; then
18517 cat conftest.err >&5
18518 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
18519 lt_cv_ld_force_load=yes
18521 cat conftest.err >&5
18523 rm -f conftest.err libconftest.a conftest conftest.c
18524 rm -rf conftest.dSYM
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
18528 $as_echo "$lt_cv_ld_force_load" >&6; }
18530 rhapsody* | darwin1.[012])
18531 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
18533 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
18534 darwin*) # darwin 5.x on
18535 # if running on 10.5 or later, the deployment target defaults
18536 # to the OS version, if on x86, and 10.4, the deployment
18537 # target defaults to 10.4. Don't you love it?
18538 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
18539 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
18540 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
18542 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
18544 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
18548 if test yes = "$lt_cv_apple_cc_single_mod"; then
18549 _lt_dar_single_mod='$single_module'
18551 if test yes = "$lt_cv_ld_exported_symbols_list"; then
18552 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
18554 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
18556 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
18557 _lt_dsymutil='~$DSYMUTIL $lib || :'
18564 # func_munge_path_list VARIABLE PATH
18565 # -----------------------------------
18566 # VARIABLE is name of variable containing _space_ separated list of
18567 # directories to be munged by the contents of PATH, which is string
18570 # string "DIR[ DIR]" will be prepended to VARIABLE
18572 # string "DIR[ DIR]" will be appended to VARIABLE
18573 # "DIRP[:DIRP]::[DIRA:]DIRA"
18574 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18575 # "DIRA[ DIRA]" will be appended to VARIABLE
18577 # VARIABLE will be replaced by "DIR[ DIR]"
18578 func_munge_path_list ()
18584 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18587 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18590 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18591 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18594 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18599 for ac_header in dlfcn.h
18601 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
18603 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
18604 cat >>confdefs.h <<_ACEOF
18605 #define HAVE_DLFCN_H 1
18623 enable_win32_dll=no
18627 # Check whether --enable-static was given.
18628 if test "${enable_static+set}" = set; then :
18629 enableval=$enable_static; p=${PACKAGE-default}
18631 yes) enable_static=yes ;;
18632 no) enable_static=no ;;
18635 # Look at the argument we got. We use all the common list separators.
18636 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18637 for pkg in $enableval; do
18639 if test "X$pkg" = "X$p"; then
18659 # Check whether --with-pic was given.
18660 if test "${with_pic+set}" = set; then :
18661 withval=$with_pic; lt_p=${PACKAGE-default}
18663 yes|no) pic_mode=$withval ;;
18666 # Look at the argument we got. We use all the common list separators.
18667 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18668 for lt_pkg in $withval; do
18670 if test "X$lt_pkg" = "X$lt_p"; then
18688 # Check whether --enable-fast-install was given.
18689 if test "${enable_fast_install+set}" = set; then :
18690 enableval=$enable_fast_install; p=${PACKAGE-default}
18692 yes) enable_fast_install=yes ;;
18693 no) enable_fast_install=no ;;
18695 enable_fast_install=no
18696 # Look at the argument we got. We use all the common list separators.
18697 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18698 for pkg in $enableval; do
18700 if test "X$pkg" = "X$p"; then
18701 enable_fast_install=yes
18708 enable_fast_install=yes
18718 shared_archive_member_spec=
18719 case $host,$enable_shared in
18720 power*-*-aix[5-9]*,yes)
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
18722 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
18724 # Check whether --with-aix-soname was given.
18725 if test "${with_aix_soname+set}" = set; then :
18726 withval=$with_aix_soname; case $withval in
18730 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
18733 lt_cv_with_aix_soname=$with_aix_soname
18735 if ${lt_cv_with_aix_soname+:} false; then :
18736 $as_echo_n "(cached) " >&6
18738 lt_cv_with_aix_soname=aix
18741 with_aix_soname=$lt_cv_with_aix_soname
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
18745 $as_echo "$with_aix_soname" >&6; }
18746 if test aix != "$with_aix_soname"; then
18747 # For the AIX way of multilib, we name the shared archive member
18748 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
18749 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
18750 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
18751 # the AIX toolchain works better with OBJECT_MODE set (default 32).
18752 if test 64 = "${OBJECT_MODE-32}"; then
18753 shared_archive_member_spec=shr_64
18755 shared_archive_member_spec=shr
18760 with_aix_soname=aix
18773 # This can be used to rebuild libtool when needed
18774 LIBTOOL_DEPS=$ltmain
18776 # Always use our own libtool.
18777 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18808 test -z "$LN_S" && LN_S="ln -s"
18823 if test -n "${ZSH_VERSION+set}"; then
18824 setopt NO_GLOB_SUBST
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
18828 $as_echo_n "checking for objdir... " >&6; }
18829 if ${lt_cv_objdir+:} false; then :
18830 $as_echo_n "(cached) " >&6
18832 rm -f .libs 2>/dev/null
18833 mkdir .libs 2>/dev/null
18834 if test -d .libs; then
18837 # MS-DOS does not allow filenames that begin with a dot.
18840 rmdir .libs 2>/dev/null
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
18843 $as_echo "$lt_cv_objdir" >&6; }
18844 objdir=$lt_cv_objdir
18850 cat >>confdefs.h <<_ACEOF
18851 #define LT_OBJDIR "$lt_cv_objdir/"
18859 # AIX sometimes has problems with the GCC collect2 program. For some
18860 # reason, if we set the COLLECT_NAMES environment variable, the problems
18861 # vanish in a puff of smoke.
18862 if test set != "${COLLECT_NAMES+set}"; then
18864 export COLLECT_NAMES
18869 # Global variables:
18871 can_build_shared=yes
18873 # All known linkers require a '.a' archive for static linking (except MSVC,
18874 # which needs '.lib').
18877 with_gnu_ld=$lt_cv_prog_gnu_ld
18882 # Set sane defaults for various variables
18883 test -z "$CC" && CC=cc
18884 test -z "$LTCC" && LTCC=$CC
18885 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18886 test -z "$LD" && LD=ld
18887 test -z "$ac_objext" && ac_objext=o
18889 func_cc_basename $compiler
18890 cc_basename=$func_cc_basename_result
18893 # Only perform the check for file, if the check method requires it
18894 test -z "$MAGIC_CMD" && MAGIC_CMD=file
18895 case $deplibs_check_method in
18897 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
18899 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
18900 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18901 $as_echo_n "(cached) " >&6
18905 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
18908 lt_save_MAGIC_CMD=$MAGIC_CMD
18909 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18910 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18911 for ac_dir in $ac_dummy; do
18913 test -z "$ac_dir" && ac_dir=.
18914 if test -f "$ac_dir/${ac_tool_prefix}file"; then
18915 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
18916 if test -n "$file_magic_test_file"; then
18917 case $deplibs_check_method in
18919 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18920 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18921 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18922 $EGREP "$file_magic_regex" > /dev/null; then
18927 *** Warning: the command libtool uses to detect shared libraries,
18928 *** $file_magic_cmd, produces output that libtool cannot recognize.
18929 *** The result is that libtool may fail to recognize shared libraries
18930 *** as such. This will affect the creation of libtool libraries that
18931 *** depend on shared libraries, but programs linked with such libtool
18932 *** libraries will work regardless of this problem. Nevertheless, you
18933 *** may want to report the problem to your system manager and/or to
18934 *** bug-libtool@gnu.org
18944 MAGIC_CMD=$lt_save_MAGIC_CMD
18949 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18950 if test -n "$MAGIC_CMD"; then
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18952 $as_echo "$MAGIC_CMD" >&6; }
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18955 $as_echo "no" >&6; }
18962 if test -z "$lt_cv_path_MAGIC_CMD"; then
18963 if test -n "$ac_tool_prefix"; then
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
18965 $as_echo_n "checking for file... " >&6; }
18966 if ${lt_cv_path_MAGIC_CMD+:} false; then :
18967 $as_echo_n "(cached) " >&6
18971 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
18974 lt_save_MAGIC_CMD=$MAGIC_CMD
18975 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18976 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18977 for ac_dir in $ac_dummy; do
18979 test -z "$ac_dir" && ac_dir=.
18980 if test -f "$ac_dir/file"; then
18981 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
18982 if test -n "$file_magic_test_file"; then
18983 case $deplibs_check_method in
18985 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18986 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18987 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18988 $EGREP "$file_magic_regex" > /dev/null; then
18993 *** Warning: the command libtool uses to detect shared libraries,
18994 *** $file_magic_cmd, produces output that libtool cannot recognize.
18995 *** The result is that libtool may fail to recognize shared libraries
18996 *** as such. This will affect the creation of libtool libraries that
18997 *** depend on shared libraries, but programs linked with such libtool
18998 *** libraries will work regardless of this problem. Nevertheless, you
18999 *** may want to report the problem to your system manager and/or to
19000 *** bug-libtool@gnu.org
19010 MAGIC_CMD=$lt_save_MAGIC_CMD
19015 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
19016 if test -n "$MAGIC_CMD"; then
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
19018 $as_echo "$MAGIC_CMD" >&6; }
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19021 $as_echo "no" >&6; }
19034 # Use C for the default configuration in the libtool script
19038 ac_cpp='$CPP $CPPFLAGS'
19039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19044 # Source file extension for C test sources.
19047 # Object file extension for compiled C test sources.
19051 # Code to be used in simple compile tests
19052 lt_simple_compile_test_code="int some_variable = 0;"
19054 # Code to be used in simple link tests
19055 lt_simple_link_test_code='int main(){return(0);}'
19063 # If no C compiler was specified, use CC.
19066 # If no C compiler flags were specified, use CFLAGS.
19067 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19069 # Allow CC to be a program name with arguments.
19072 # Save the default compiler, since it gets overwritten when the other
19073 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
19074 compiler_DEFAULT=$CC
19076 # save warnings/boilerplate of simple test code
19077 ac_outfile=conftest.$ac_objext
19078 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19079 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19080 _lt_compiler_boilerplate=`cat conftest.err`
19083 ac_outfile=conftest.$ac_objext
19084 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19085 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19086 _lt_linker_boilerplate=`cat conftest.err`
19091 ## There is no encapsulation within the following macros, do not change
19092 ## the running order or otherwise move them around unless you know exactly
19093 ## what you are doing...
19094 if test -n "$compiler"; then
19096 lt_prog_compiler_no_builtin_flag=
19098 if test yes = "$GCC"; then
19099 case $cc_basename in
19101 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
19103 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19107 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
19108 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
19109 $as_echo_n "(cached) " >&6
19111 lt_cv_prog_compiler_rtti_exceptions=no
19112 ac_outfile=conftest.$ac_objext
19113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19114 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
19115 # Insert the option either (1) after the last *FLAGS variable, or
19116 # (2) before a word containing "conftest.", or (3) at the end.
19117 # Note that $ac_compile itself does not contain backslashes and begins
19118 # with a dollar sign (not a hyphen), so the echo should work correctly.
19119 # The option is referenced via a variable to avoid confusing sed.
19120 lt_compile=`echo "$ac_compile" | $SED \
19121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19123 -e 's:$: $lt_compiler_flag:'`
19124 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19125 (eval "$lt_compile" 2>conftest.err)
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 if (exit $ac_status) && test -s "$ac_outfile"; then
19130 # The compiler can only warn and ignore the option if not recognized
19131 # So say no if there are warnings other than the usual output.
19132 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19134 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19135 lt_cv_prog_compiler_rtti_exceptions=yes
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19142 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19144 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
19145 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
19157 lt_prog_compiler_wl=
19158 lt_prog_compiler_pic=
19159 lt_prog_compiler_static=
19162 if test yes = "$GCC"; then
19163 lt_prog_compiler_wl='-Wl,'
19164 lt_prog_compiler_static='-static'
19168 # All AIX code is PIC.
19169 if test ia64 = "$host_cpu"; then
19170 # AIX 5 now supports IA64 processor
19171 lt_prog_compiler_static='-Bstatic'
19173 lt_prog_compiler_pic='-fPIC'
19179 # see comment about AmigaOS4 .so support
19180 lt_prog_compiler_pic='-fPIC'
19183 # FIXME: we need at least 68020 code to build shared libraries, but
19184 # adding the '-m68020' flag to GCC prevents building anything better,
19186 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
19191 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19192 # PIC is the default for these OSes.
19195 mingw* | cygwin* | pw32* | os2* | cegcc*)
19196 # This hack is so that the source file can tell whether it is being
19197 # built for inclusion in a dll (and should export symbols for example).
19198 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19199 # (--disable-auto-import) libraries
19200 lt_prog_compiler_pic='-DDLL_EXPORT'
19203 lt_prog_compiler_static='$wl-static'
19208 darwin* | rhapsody*)
19209 # PIC is the default on this platform
19210 # Common symbols not allowed in MH_DYLIB files
19211 lt_prog_compiler_pic='-fno-common'
19215 # PIC is the default for Haiku.
19216 # The "-static" flag exists, but is broken.
19217 lt_prog_compiler_static=
19221 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19222 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19223 # sets the default TLS model and affects inlining.
19229 lt_prog_compiler_pic='-fPIC'
19235 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19236 # Instead, we relocate shared libraries at runtime.
19240 # Just because we use GCC doesn't mean we suddenly get shared libraries
19241 # on systems that don't support them.
19242 lt_prog_compiler_can_build_shared=no
19247 # QNX uses GNU C++, but need to define -shared option too, otherwise
19248 # it will coredump.
19249 lt_prog_compiler_pic='-fPIC -shared'
19253 if test -d /usr/nec; then
19254 lt_prog_compiler_pic=-Kconform_pic
19259 lt_prog_compiler_pic='-fPIC'
19263 case $cc_basename in
19264 nvcc*) # Cuda Compiler Driver 2.2
19265 lt_prog_compiler_wl='-Xlinker '
19266 if test -n "$lt_prog_compiler_pic"; then
19267 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
19272 # PORTME Check for flag to pass linker flags through the system compiler.
19275 lt_prog_compiler_wl='-Wl,'
19276 if test ia64 = "$host_cpu"; then
19277 # AIX 5 now supports IA64 processor
19278 lt_prog_compiler_static='-Bstatic'
19280 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
19284 darwin* | rhapsody*)
19285 # PIC is the default on this platform
19286 # Common symbols not allowed in MH_DYLIB files
19287 lt_prog_compiler_pic='-fno-common'
19288 case $cc_basename in
19290 # NAG Fortran compiler
19291 lt_prog_compiler_wl='-Wl,-Wl,,'
19292 lt_prog_compiler_pic='-PIC'
19293 lt_prog_compiler_static='-Bstatic'
19298 mingw* | cygwin* | pw32* | os2* | cegcc*)
19299 # This hack is so that the source file can tell whether it is being
19300 # built for inclusion in a dll (and should export symbols for example).
19301 lt_prog_compiler_pic='-DDLL_EXPORT'
19304 lt_prog_compiler_static='$wl-static'
19309 hpux9* | hpux10* | hpux11*)
19310 lt_prog_compiler_wl='-Wl,'
19311 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19312 # not for PA HP-UX.
19318 lt_prog_compiler_pic='+Z'
19321 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19322 lt_prog_compiler_static='$wl-a ${wl}archive'
19325 irix5* | irix6* | nonstopux*)
19326 lt_prog_compiler_wl='-Wl,'
19327 # PIC (with -KPIC) is the default.
19328 lt_prog_compiler_static='-non_shared'
19331 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19332 case $cc_basename in
19333 # old Intel for x86_64, which still supported -KPIC.
19335 lt_prog_compiler_wl='-Wl,'
19336 lt_prog_compiler_pic='-KPIC'
19337 lt_prog_compiler_static='-static'
19339 # icc used to be incompatible with GCC.
19340 # ICC 10 doesn't accept -KPIC any more.
19342 lt_prog_compiler_wl='-Wl,'
19343 lt_prog_compiler_pic='-fPIC'
19344 lt_prog_compiler_static='-static'
19346 # Lahey Fortran 8.1.
19348 lt_prog_compiler_wl='-Wl,'
19349 lt_prog_compiler_pic='--shared'
19350 lt_prog_compiler_static='--static'
19353 # NAG Fortran compiler
19354 lt_prog_compiler_wl='-Wl,-Wl,,'
19355 lt_prog_compiler_pic='-PIC'
19356 lt_prog_compiler_static='-Bstatic'
19359 # Fabrice Bellard et al's Tiny C Compiler
19360 lt_prog_compiler_wl='-Wl,'
19361 lt_prog_compiler_pic='-fPIC'
19362 lt_prog_compiler_static='-static'
19364 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
19365 # Portland Group compilers (*not* the Pentium gcc compiler,
19366 # which looks to be a dead project)
19367 lt_prog_compiler_wl='-Wl,'
19368 lt_prog_compiler_pic='-fpic'
19369 lt_prog_compiler_static='-Bstatic'
19372 lt_prog_compiler_wl='-Wl,'
19373 # All Alpha code is PIC.
19374 lt_prog_compiler_static='-non_shared'
19376 xl* | bgxl* | bgf* | mpixl*)
19377 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
19378 lt_prog_compiler_wl='-Wl,'
19379 lt_prog_compiler_pic='-qpic'
19380 lt_prog_compiler_static='-qstaticlink'
19383 case `$CC -V 2>&1 | sed 5q` in
19384 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
19385 # Sun Fortran 8.3 passes all unrecognized flags to the linker
19386 lt_prog_compiler_pic='-KPIC'
19387 lt_prog_compiler_static='-Bstatic'
19388 lt_prog_compiler_wl=''
19390 *Sun\ F* | *Sun*Fortran*)
19391 lt_prog_compiler_pic='-KPIC'
19392 lt_prog_compiler_static='-Bstatic'
19393 lt_prog_compiler_wl='-Qoption ld '
19397 lt_prog_compiler_pic='-KPIC'
19398 lt_prog_compiler_static='-Bstatic'
19399 lt_prog_compiler_wl='-Wl,'
19401 *Intel*\ [CF]*Compiler*)
19402 lt_prog_compiler_wl='-Wl,'
19403 lt_prog_compiler_pic='-fPIC'
19404 lt_prog_compiler_static='-static'
19407 lt_prog_compiler_wl='-Wl,'
19408 lt_prog_compiler_pic='-fpic'
19409 lt_prog_compiler_static='-Bstatic'
19417 lt_prog_compiler_pic='-KPIC'
19418 lt_prog_compiler_static='-Bstatic'
19422 # QNX uses GNU C++, but need to define -shared option too, otherwise
19423 # it will coredump.
19424 lt_prog_compiler_pic='-fPIC -shared'
19427 osf3* | osf4* | osf5*)
19428 lt_prog_compiler_wl='-Wl,'
19429 # All OSF/1 code is PIC.
19430 lt_prog_compiler_static='-non_shared'
19434 lt_prog_compiler_static='-non_shared'
19438 lt_prog_compiler_pic='-KPIC'
19439 lt_prog_compiler_static='-Bstatic'
19440 case $cc_basename in
19441 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
19442 lt_prog_compiler_wl='-Qoption ld ';;
19444 lt_prog_compiler_wl='-Wl,';;
19449 lt_prog_compiler_wl='-Qoption ld '
19450 lt_prog_compiler_pic='-PIC'
19451 lt_prog_compiler_static='-Bstatic'
19454 sysv4 | sysv4.2uw2* | sysv4.3*)
19455 lt_prog_compiler_wl='-Wl,'
19456 lt_prog_compiler_pic='-KPIC'
19457 lt_prog_compiler_static='-Bstatic'
19461 if test -d /usr/nec; then
19462 lt_prog_compiler_pic='-Kconform_pic'
19463 lt_prog_compiler_static='-Bstatic'
19467 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19468 lt_prog_compiler_wl='-Wl,'
19469 lt_prog_compiler_pic='-KPIC'
19470 lt_prog_compiler_static='-Bstatic'
19474 lt_prog_compiler_wl='-Wl,'
19475 lt_prog_compiler_can_build_shared=no
19479 lt_prog_compiler_pic='-pic'
19480 lt_prog_compiler_static='-Bstatic'
19484 lt_prog_compiler_can_build_shared=no
19490 # For platforms that do not support PIC, -DPIC is meaningless:
19492 lt_prog_compiler_pic=
19495 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19500 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19501 if ${lt_cv_prog_compiler_pic+:} false; then :
19502 $as_echo_n "(cached) " >&6
19504 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
19507 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
19508 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
19511 # Check to make sure the PIC flag actually works.
19513 if test -n "$lt_prog_compiler_pic"; then
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
19515 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
19516 if ${lt_cv_prog_compiler_pic_works+:} false; then :
19517 $as_echo_n "(cached) " >&6
19519 lt_cv_prog_compiler_pic_works=no
19520 ac_outfile=conftest.$ac_objext
19521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19522 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
19523 # Insert the option either (1) after the last *FLAGS variable, or
19524 # (2) before a word containing "conftest.", or (3) at the end.
19525 # Note that $ac_compile itself does not contain backslashes and begins
19526 # with a dollar sign (not a hyphen), so the echo should work correctly.
19527 # The option is referenced via a variable to avoid confusing sed.
19528 lt_compile=`echo "$ac_compile" | $SED \
19529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19531 -e 's:$: $lt_compiler_flag:'`
19532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19533 (eval "$lt_compile" 2>conftest.err)
19535 cat conftest.err >&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 if (exit $ac_status) && test -s "$ac_outfile"; then
19538 # The compiler can only warn and ignore the option if not recognized
19539 # So say no if there are warnings other than the usual output.
19540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19543 lt_cv_prog_compiler_pic_works=yes
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
19550 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
19552 if test yes = "$lt_cv_prog_compiler_pic_works"; then
19553 case $lt_prog_compiler_pic in
19555 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
19558 lt_prog_compiler_pic=
19559 lt_prog_compiler_can_build_shared=no
19575 # Check to make sure the static flag actually works.
19577 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19579 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19580 if ${lt_cv_prog_compiler_static_works+:} false; then :
19581 $as_echo_n "(cached) " >&6
19583 lt_cv_prog_compiler_static_works=no
19584 save_LDFLAGS=$LDFLAGS
19585 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19586 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19587 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19588 # The linker can only warn and ignore the option if not recognized
19589 # So say no if there are warnings
19590 if test -s conftest.err; then
19591 # Append any errors to the config.log.
19592 cat conftest.err 1>&5
19593 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19595 if diff conftest.exp conftest.er2 >/dev/null; then
19596 lt_cv_prog_compiler_static_works=yes
19599 lt_cv_prog_compiler_static_works=yes
19603 LDFLAGS=$save_LDFLAGS
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
19607 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
19609 if test yes = "$lt_cv_prog_compiler_static_works"; then
19612 lt_prog_compiler_static=
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19622 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19623 if ${lt_cv_prog_compiler_c_o+:} false; then :
19624 $as_echo_n "(cached) " >&6
19626 lt_cv_prog_compiler_c_o=no
19627 $RM -r conftest 2>/dev/null
19631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19633 lt_compiler_flag="-o out/conftest2.$ac_objext"
19634 # Insert the option either (1) after the last *FLAGS variable, or
19635 # (2) before a word containing "conftest.", or (3) at the end.
19636 # Note that $ac_compile itself does not contain backslashes and begins
19637 # with a dollar sign (not a hyphen), so the echo should work correctly.
19638 lt_compile=`echo "$ac_compile" | $SED \
19639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19641 -e 's:$: $lt_compiler_flag:'`
19642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19643 (eval "$lt_compile" 2>out/conftest.err)
19645 cat out/conftest.err >&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19649 # The compiler can only warn and ignore the option if not recognized
19650 # So say no if there are warnings
19651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19652 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19653 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19654 lt_cv_prog_compiler_c_o=yes
19659 # SGI C++ compiler will create directory out/ii_files/ for
19660 # template instantiation
19661 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19662 $RM out/* && rmdir out
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19669 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19677 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19678 if ${lt_cv_prog_compiler_c_o+:} false; then :
19679 $as_echo_n "(cached) " >&6
19681 lt_cv_prog_compiler_c_o=no
19682 $RM -r conftest 2>/dev/null
19686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19688 lt_compiler_flag="-o out/conftest2.$ac_objext"
19689 # Insert the option either (1) after the last *FLAGS variable, or
19690 # (2) before a word containing "conftest.", or (3) at the end.
19691 # Note that $ac_compile itself does not contain backslashes and begins
19692 # with a dollar sign (not a hyphen), so the echo should work correctly.
19693 lt_compile=`echo "$ac_compile" | $SED \
19694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19696 -e 's:$: $lt_compiler_flag:'`
19697 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19698 (eval "$lt_compile" 2>out/conftest.err)
19700 cat out/conftest.err >&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19704 # The compiler can only warn and ignore the option if not recognized
19705 # So say no if there are warnings
19706 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19707 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19708 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19709 lt_cv_prog_compiler_c_o=yes
19714 # SGI C++ compiler will create directory out/ii_files/ for
19715 # template instantiation
19716 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19717 $RM out/* && rmdir out
19723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19724 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
19729 hard_links=nottested
19730 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
19731 # do not overwrite the value of need_locks provided by the user
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19733 $as_echo_n "checking if we can lock with hard links... " >&6; }
19736 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19738 ln conftest.a conftest.b 2>&5 || hard_links=no
19739 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19741 $as_echo "$hard_links" >&6; }
19742 if test no = "$hard_links"; then
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
19744 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19757 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19760 allow_undefined_flag=
19761 always_export_symbols=no
19763 archive_expsym_cmds=
19764 compiler_needs_object=no
19765 enable_shared_with_static_runtimes=no
19766 export_dynamic_flag_spec=
19767 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19768 hardcode_automatic=no
19770 hardcode_direct_absolute=no
19771 hardcode_libdir_flag_spec=
19772 hardcode_libdir_separator=
19773 hardcode_minus_L=no
19774 hardcode_shlibpath_var=unsupported
19776 link_all_deplibs=unknown
19778 module_expsym_cmds=
19779 old_archive_from_new_cmds=
19780 old_archive_from_expsyms_cmds=
19781 thread_safe_flag_spec=
19782 whole_archive_flag_spec=
19783 # include_expsyms should be a list of space-separated symbols to be *always*
19784 # included in the symbol list
19786 # exclude_expsyms can be an extended regexp of symbols to exclude
19787 # it will be wrapped by ' (' and ')$', so one must not match beginning or
19788 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
19789 # as well as any symbol that contains 'd'.
19790 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19791 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19792 # platforms (ab)use it in PIC code, but their linkers get confused if
19793 # the symbol is explicitly referenced. Since portable code cannot
19794 # rely on this symbol name, it's probably fine to never include it in
19795 # preloaded symbol tables.
19796 # Exclude shared library initialization/finalization symbols.
19797 extract_expsyms_cmds=
19800 cygwin* | mingw* | pw32* | cegcc*)
19801 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19802 # When not using gcc, we currently assume that we are using
19803 # Microsoft Visual C++.
19804 if test yes != "$GCC"; then
19809 # we just hope/assume this is gcc and not c89 (= MSVC++)
19812 openbsd* | bitrig*)
19819 # On some targets, GNU ld is compatible enough with the native linker
19820 # that we're better off using the native interface for both.
19821 lt_use_gnu_ld_interface=no
19822 if test yes = "$with_gnu_ld"; then
19825 # The AIX port of GNU ld has always aspired to compatibility
19826 # with the native linker. However, as the warning in the GNU ld
19827 # block says, versions before 2.19.5* couldn't really create working
19828 # shared libraries, regardless of the interface used.
19829 case `$LD -v 2>&1` in
19830 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19831 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19832 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19834 lt_use_gnu_ld_interface=yes
19839 lt_use_gnu_ld_interface=yes
19844 if test yes = "$lt_use_gnu_ld_interface"; then
19845 # If archive_cmds runs LD, not CC, wlarc should be empty
19848 # Set some defaults for GNU ld with shared library support. These
19849 # are reset later if shared libraries are not supported. Putting them
19850 # here allows them to be overridden if necessary.
19851 runpath_var=LD_RUN_PATH
19852 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19853 export_dynamic_flag_spec='$wl--export-dynamic'
19854 # ancient GNU ld didn't support --whole-archive et. al.
19855 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19856 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
19858 whole_archive_flag_spec=
19860 supports_anon_versioning=no
19861 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
19862 *GNU\ gold*) supports_anon_versioning=yes ;;
19863 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19864 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19865 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19866 *\ 2.11.*) ;; # other 2.11 versions
19867 *) supports_anon_versioning=yes ;;
19870 # See if GNU ld supports shared libraries.
19873 # On AIX/PPC, the GNU linker is very broken
19874 if test ia64 != "$host_cpu"; then
19878 *** Warning: the GNU linker, at least up to release 2.19, is reported
19879 *** to be unable to reliably create shared libraries on AIX.
19880 *** Therefore, libtool is disabling shared libraries support. If you
19881 *** really care for shared libraries, you may want to install binutils
19882 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19883 *** You will then need to restart the configuration process.
19892 # see comment about AmigaOS4 .so support
19893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19894 archive_expsym_cmds=''
19897 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)'
19898 hardcode_libdir_flag_spec='-L$libdir'
19899 hardcode_minus_L=yes
19905 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19906 allow_undefined_flag=unsupported
19907 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19908 # support --undefined. This deserves some investigation. FIXME
19909 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19915 cygwin* | mingw* | pw32* | cegcc*)
19916 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19917 # as there is no search path for DLLs.
19918 hardcode_libdir_flag_spec='-L$libdir'
19919 export_dynamic_flag_spec='$wl--export-all-symbols'
19920 allow_undefined_flag=unsupported
19921 always_export_symbols=no
19922 enable_shared_with_static_runtimes=yes
19923 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'
19924 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19926 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19928 # If the export-symbols file already is a .def file, use it as
19929 # is; otherwise, prepend EXPORTS...
19930 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
19931 cp $export_symbols $output_objdir/$soname.def;
19933 echo EXPORTS > $output_objdir/$soname.def;
19934 cat $export_symbols >> $output_objdir/$soname.def;
19936 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19944 link_all_deplibs=yes
19948 hardcode_libdir_flag_spec='-L$libdir'
19949 hardcode_minus_L=yes
19950 allow_undefined_flag=unsupported
19952 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19953 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19954 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19955 $ECHO EXPORTS >> $output_objdir/$libname.def~
19956 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19957 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19958 emximp -o $lib $output_objdir/$libname.def'
19959 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19960 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19961 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19962 $ECHO EXPORTS >> $output_objdir/$libname.def~
19963 prefix_cmds="$SED"~
19964 if test EXPORTS = "`$SED 1q $export_symbols`"; then
19965 prefix_cmds="$prefix_cmds -e 1d";
19967 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19968 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19969 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19970 emximp -o $lib $output_objdir/$libname.def'
19971 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19972 enable_shared_with_static_runtimes=yes
19977 hardcode_shlibpath_var=no
19978 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
19979 export_dynamic_flag_spec='$wl-E'
19980 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19981 # Instead, shared libraries are loaded at an image base (0x10000000 by
19982 # default) and relocated if they conflict, which is a slow very memory
19983 # consuming and fragmenting process. To avoid this, we pick a random,
19984 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19985 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19986 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19987 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'
19990 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
19992 if test linux-dietlibc = "$host_os"; then
19993 case $cc_basename in
19994 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
19997 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19998 && test no = "$tmp_diet"
20000 tmp_addflag=' $pic_flag'
20001 tmp_sharedflag='-shared'
20002 case $cc_basename,$host_cpu in
20003 pgcc*) # Portland Group C compiler
20004 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'
20005 tmp_addflag=' $pic_flag'
20007 pgf77* | pgf90* | pgf95* | pgfortran*)
20008 # Portland Group f77 and f90 compilers
20009 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'
20010 tmp_addflag=' $pic_flag -Mnomain' ;;
20011 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20012 tmp_addflag=' -i_dynamic' ;;
20013 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20014 tmp_addflag=' -i_dynamic -nofor_main' ;;
20015 ifc* | ifort*) # Intel Fortran compiler
20016 tmp_addflag=' -nofor_main' ;;
20017 lf95*) # Lahey Fortran 8.1
20018 whole_archive_flag_spec=
20019 tmp_sharedflag='--shared' ;;
20020 nagfor*) # NAGFOR 5.3
20021 tmp_sharedflag='-Wl,-shared' ;;
20022 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
20023 tmp_sharedflag='-qmkshrobj'
20025 nvcc*) # Cuda Compiler Driver 2.2
20026 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'
20027 compiler_needs_object=yes
20030 case `$CC -V 2>&1 | sed 5q` in
20031 *Sun\ C*) # Sun C 5.9
20032 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'
20033 compiler_needs_object=yes
20034 tmp_sharedflag='-G' ;;
20035 *Sun\ F*) # Sun Fortran 8.3
20036 tmp_sharedflag='-G' ;;
20038 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20040 if test yes = "$supports_anon_versioning"; then
20041 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
20042 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20043 echo "local: *; };" >> $output_objdir/$libname.ver~
20044 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
20047 case $cc_basename in
20049 export_dynamic_flag_spec='-rdynamic'
20051 xlf* | bgf* | bgxlf* | mpixlf*)
20052 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
20053 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
20054 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20055 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
20056 if test yes = "$supports_anon_versioning"; then
20057 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
20058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20059 echo "local: *; };" >> $output_objdir/$libname.ver~
20060 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
20070 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20071 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20074 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20075 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20080 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
20084 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20085 *** create shared libraries on Solaris systems. Therefore, libtool
20086 *** is disabling shared libraries support. We urge you to upgrade GNU
20087 *** binutils to release 2.9.1 or newer. Another option is to modify
20088 *** your PATH or compiler configuration so that the native linker is
20089 *** used, and then restart.
20092 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20093 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20094 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20101 case `$LD -v 2>&1` in
20102 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20106 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
20107 *** reliably create shared libraries on SCO systems. Therefore, libtool
20108 *** is disabling shared libraries support. We urge you to upgrade GNU
20109 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20110 *** your PATH or compiler configuration so that the native linker is
20111 *** used, and then restart.
20116 # For security reasons, it is highly recommended that you always
20117 # use absolute paths for naming shared libraries, and exclude the
20118 # DT_RUNPATH tag from executables and libraries. But doing so
20119 # requires that you compile everything twice, which is a pain.
20120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20121 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20123 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20132 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20134 hardcode_direct=yes
20135 hardcode_shlibpath_var=no
20139 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20140 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20141 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20148 if test no = "$ld_shlibs"; then
20150 hardcode_libdir_flag_spec=
20151 export_dynamic_flag_spec=
20152 whole_archive_flag_spec=
20155 # PORTME fill in a description of your system's linker (not GNU ld)
20158 allow_undefined_flag=unsupported
20159 always_export_symbols=yes
20160 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'
20161 # Note: this linker hardcodes the directories in LIBPATH if there
20162 # are no directories specified by -L.
20163 hardcode_minus_L=yes
20164 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
20165 # Neither direct hardcoding nor static linking is supported with a
20167 hardcode_direct=unsupported
20172 if test ia64 = "$host_cpu"; then
20173 # On IA64, the linker does run time linking by default, so we don't
20174 # have to do anything special.
20175 aix_use_runtimelinking=no
20176 exp_sym_flag='-Bexport'
20179 # If we're using GNU nm, then we don't want the "-C" option.
20180 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
20181 # Without the "-l" option, or with the "-B" option, AIX nm treats
20182 # weak defined symbols like other global defined symbols, whereas
20183 # GNU nm marks them as "W".
20184 # While the 'weak' keyword is ignored in the Export File, we need
20185 # it in the Import File for the 'aix-soname' feature, so we have
20186 # to replace the "-B" option with "-P" for AIX nm.
20187 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20188 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'
20190 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'
20192 aix_use_runtimelinking=no
20194 # Test if we are trying to use run time linking or normal
20195 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20196 # have runtime linking enabled, and use it for executables.
20197 # For shared libraries, we enable/disable runtime linking
20198 # depending on the kind of the shared library created -
20199 # when "with_aix_soname,aix_use_runtimelinking" is:
20200 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
20201 # "aix,yes" lib.so shared, rtl:yes, for executables
20202 # lib.a static archive
20203 # "both,no" lib.so.V(shr.o) shared, rtl:yes
20204 # lib.a(lib.so.V) shared, rtl:no, for executables
20205 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
20206 # lib.a(lib.so.V) shared, rtl:no
20207 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
20208 # lib.a static archive
20209 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20210 for ld_flag in $LDFLAGS; do
20211 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
20212 aix_use_runtimelinking=yes
20216 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
20217 # With aix-soname=svr4, we create the lib.so.V shared archives only,
20218 # so we don't have lib.a shared libs to link our executables.
20219 # We have to force runtime linking in this case.
20220 aix_use_runtimelinking=yes
20221 LDFLAGS="$LDFLAGS -Wl,-brtl"
20226 exp_sym_flag='-bexport'
20227 no_entry_flag='-bnoentry'
20230 # When large executables or shared objects are built, AIX ld can
20231 # have problems creating the table of contents. If linking a library
20232 # or program results in "error TOC overflow" add -mminimal-toc to
20233 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20234 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20237 hardcode_direct=yes
20238 hardcode_direct_absolute=yes
20239 hardcode_libdir_separator=':'
20240 link_all_deplibs=yes
20241 file_list_spec='$wl-f,'
20242 case $with_aix_soname,$aix_use_runtimelinking in
20243 aix,*) ;; # traditional, no import file
20244 svr4,* | *,yes) # use import file
20245 # The Import File defines what to hardcode.
20247 hardcode_direct_absolute=no
20251 if test yes = "$GCC"; then
20252 case $host_os in aix4.[012]|aix4.[012].*)
20253 # We only want to do this on AIX 4.2 and lower, the check
20254 # below for broken collect2 doesn't work under 4.3+
20255 collect2name=`$CC -print-prog-name=collect2`
20256 if test -f "$collect2name" &&
20257 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20259 # We have reworked collect2
20262 # We have old collect2
20263 hardcode_direct=unsupported
20264 # It fails to find uninstalled libraries when the uninstalled
20265 # path is not listed in the libpath. Setting hardcode_minus_L
20266 # to unsupported forces relinking
20267 hardcode_minus_L=yes
20268 hardcode_libdir_flag_spec='-L$libdir'
20269 hardcode_libdir_separator=
20273 shared_flag='-shared'
20274 if test yes = "$aix_use_runtimelinking"; then
20275 shared_flag="$shared_flag "'$wl-G'
20277 # Need to ensure runtime linking is disabled for the traditional
20278 # shared library, or the linker may eventually find shared libraries
20279 # /with/ Import File - we do not want to mix them.
20280 shared_flag_aix='-shared'
20281 shared_flag_svr4='-shared $wl-G'
20284 if test ia64 = "$host_cpu"; then
20285 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20286 # chokes on -Wl,-G. The following line is correct:
20289 if test yes = "$aix_use_runtimelinking"; then
20290 shared_flag='$wl-G'
20292 shared_flag='$wl-bM:SRE'
20294 shared_flag_aix='$wl-bM:SRE'
20295 shared_flag_svr4='$wl-G'
20299 export_dynamic_flag_spec='$wl-bexpall'
20300 # It seems that -bexpall does not export symbols beginning with
20301 # underscore (_), so it is better to generate a list of symbols to export.
20302 always_export_symbols=yes
20303 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
20304 # Warning - without using the other runtime loading flags (-brtl),
20305 # -berok will link without error, but may produce a broken library.
20306 allow_undefined_flag='-berok'
20307 # Determine the default libpath from the value encoded in an
20308 # empty executable.
20309 if test set = "${lt_cv_aix_libpath+set}"; then
20310 aix_libpath=$lt_cv_aix_libpath
20312 if ${lt_cv_aix_libpath_+:} false; then :
20313 $as_echo_n "(cached) " >&6
20315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20316 /* end confdefs.h. */
20326 if ac_fn_c_try_link "$LINENO"; then :
20328 lt_aix_libpath_sed='
20329 /Import File Strings/,/^$/ {
20331 s/^0 *\([^ ]*\) *$/\1/
20335 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20336 # Check for a 64-bit object if we didn't find anything.
20337 if test -z "$lt_cv_aix_libpath_"; then
20338 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20341 rm -f core conftest.err conftest.$ac_objext \
20342 conftest$ac_exeext conftest.$ac_ext
20343 if test -z "$lt_cv_aix_libpath_"; then
20344 lt_cv_aix_libpath_=/usr/lib:/lib
20349 aix_libpath=$lt_cv_aix_libpath_
20352 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
20353 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
20355 if test ia64 = "$host_cpu"; then
20356 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
20357 allow_undefined_flag="-z nodefs"
20358 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"
20360 # Determine the default libpath from the value encoded in an
20361 # empty executable.
20362 if test set = "${lt_cv_aix_libpath+set}"; then
20363 aix_libpath=$lt_cv_aix_libpath
20365 if ${lt_cv_aix_libpath_+:} false; then :
20366 $as_echo_n "(cached) " >&6
20368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20369 /* end confdefs.h. */
20379 if ac_fn_c_try_link "$LINENO"; then :
20381 lt_aix_libpath_sed='
20382 /Import File Strings/,/^$/ {
20384 s/^0 *\([^ ]*\) *$/\1/
20388 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20389 # Check for a 64-bit object if we didn't find anything.
20390 if test -z "$lt_cv_aix_libpath_"; then
20391 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20394 rm -f core conftest.err conftest.$ac_objext \
20395 conftest$ac_exeext conftest.$ac_ext
20396 if test -z "$lt_cv_aix_libpath_"; then
20397 lt_cv_aix_libpath_=/usr/lib:/lib
20402 aix_libpath=$lt_cv_aix_libpath_
20405 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
20406 # Warning - without using the other run time loading flags,
20407 # -berok will link without error, but may produce a broken library.
20408 no_undefined_flag=' $wl-bernotok'
20409 allow_undefined_flag=' $wl-berok'
20410 if test yes = "$with_gnu_ld"; then
20411 # We only use this code for GNU lds that support --whole-archive.
20412 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
20414 # Exported symbols can be pulled into shared objects from archives
20415 whole_archive_flag_spec='$convenience'
20417 archive_cmds_need_lc=yes
20418 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
20419 # -brtl affects multiple linker settings, -berok does not and is overridden later
20420 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
20421 if test svr4 != "$with_aix_soname"; then
20422 # This is similar to how AIX traditionally builds its shared libraries.
20423 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'
20425 if test aix != "$with_aix_soname"; then
20426 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'
20428 # used by -dlpreopen to get the symbols
20429 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
20431 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
20439 # see comment about AmigaOS4 .so support
20440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20441 archive_expsym_cmds=''
20444 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)'
20445 hardcode_libdir_flag_spec='-L$libdir'
20446 hardcode_minus_L=yes
20452 export_dynamic_flag_spec=-rdynamic
20455 cygwin* | mingw* | pw32* | cegcc*)
20456 # When not using gcc, we currently assume that we are using
20457 # Microsoft Visual C++.
20458 # hardcode_libdir_flag_spec is actually meaningless, as there is
20459 # no search path for DLLs.
20460 case $cc_basename in
20463 hardcode_libdir_flag_spec=' '
20464 allow_undefined_flag=unsupported
20465 always_export_symbols=yes
20467 # Tell ltmain to make .lib files, not .a files.
20469 # Tell ltmain to make .dll files, not .so files.
20471 # FIXME: Setting linknames here is a bad hack.
20472 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
20473 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
20474 cp "$export_symbols" "$output_objdir/$soname.def";
20475 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
20477 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
20479 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
20481 # The linker will not automatically build a static lib if we build a DLL.
20482 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
20483 enable_shared_with_static_runtimes=yes
20484 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20485 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20487 old_postinstall_cmds='chmod 644 $oldlib'
20488 postlink_cmds='lt_outputfile="@OUTPUT@"~
20489 lt_tool_outputfile="@TOOL_OUTPUT@"~
20490 case $lt_outputfile in
20493 lt_outputfile=$lt_outputfile.exe
20494 lt_tool_outputfile=$lt_tool_outputfile.exe
20497 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
20498 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
20499 $RM "$lt_outputfile.manifest";
20503 # Assume MSVC wrapper
20504 hardcode_libdir_flag_spec=' '
20505 allow_undefined_flag=unsupported
20506 # Tell ltmain to make .lib files, not .a files.
20508 # Tell ltmain to make .dll files, not .so files.
20510 # FIXME: Setting linknames here is a bad hack.
20511 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
20512 # The linker will automatically build a .lib file if we build a DLL.
20513 old_archive_from_new_cmds='true'
20514 # FIXME: Should let the user specify the lib program.
20515 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
20516 enable_shared_with_static_runtimes=yes
20521 darwin* | rhapsody*)
20524 archive_cmds_need_lc=no
20526 hardcode_automatic=yes
20527 hardcode_shlibpath_var=unsupported
20528 if test yes = "$lt_cv_ld_force_load"; then
20529 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\"`'
20532 whole_archive_flag_spec=''
20534 link_all_deplibs=yes
20535 allow_undefined_flag=$_lt_dar_allow_undefined
20536 case $cc_basename in
20537 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
20538 *) _lt_dar_can_shared=$GCC ;;
20540 if test yes = "$_lt_dar_can_shared"; then
20541 output_verbose_link_cmd=func_echo_all
20542 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
20543 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
20544 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"
20545 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"
20554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20555 hardcode_libdir_flag_spec='-L$libdir'
20556 hardcode_shlibpath_var=no
20559 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20560 # support. Future versions do this automatically, but an explicit c++rt0.o
20561 # does not break anything, and helps significantly (at the cost of a little
20564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20565 hardcode_libdir_flag_spec='-R$libdir'
20566 hardcode_direct=yes
20567 hardcode_shlibpath_var=no
20570 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20573 hardcode_direct=yes
20574 hardcode_minus_L=yes
20575 hardcode_shlibpath_var=no
20578 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20579 freebsd* | dragonfly*)
20580 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20581 hardcode_libdir_flag_spec='-R$libdir'
20582 hardcode_direct=yes
20583 hardcode_shlibpath_var=no
20587 if test yes = "$GCC"; then
20588 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'
20590 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'
20592 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
20593 hardcode_libdir_separator=:
20594 hardcode_direct=yes
20596 # hardcode_minus_L: Not really in the search PATH,
20597 # but as the default location of the library.
20598 hardcode_minus_L=yes
20599 export_dynamic_flag_spec='$wl-E'
20603 if test yes,no = "$GCC,$with_gnu_ld"; then
20604 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20606 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20608 if test no = "$with_gnu_ld"; then
20609 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
20610 hardcode_libdir_separator=:
20611 hardcode_direct=yes
20612 hardcode_direct_absolute=yes
20613 export_dynamic_flag_spec='$wl-E'
20614 # hardcode_minus_L: Not really in the search PATH,
20615 # but as the default location of the library.
20616 hardcode_minus_L=yes
20621 if test yes,no = "$GCC,$with_gnu_ld"; then
20624 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20627 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20630 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20636 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20639 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20643 # Older versions of the 11.00 compiler do not understand -b yet
20644 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
20646 $as_echo_n "checking if $CC understands -b... " >&6; }
20647 if ${lt_cv_prog_compiler__b+:} false; then :
20648 $as_echo_n "(cached) " >&6
20650 lt_cv_prog_compiler__b=no
20651 save_LDFLAGS=$LDFLAGS
20652 LDFLAGS="$LDFLAGS -b"
20653 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20654 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20655 # The linker can only warn and ignore the option if not recognized
20656 # So say no if there are warnings
20657 if test -s conftest.err; then
20658 # Append any errors to the config.log.
20659 cat conftest.err 1>&5
20660 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20662 if diff conftest.exp conftest.er2 >/dev/null; then
20663 lt_cv_prog_compiler__b=yes
20666 lt_cv_prog_compiler__b=yes
20670 LDFLAGS=$save_LDFLAGS
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
20674 $as_echo "$lt_cv_prog_compiler__b" >&6; }
20676 if test yes = "$lt_cv_prog_compiler__b"; then
20677 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20679 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20685 if test no = "$with_gnu_ld"; then
20686 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
20687 hardcode_libdir_separator=:
20692 hardcode_shlibpath_var=no
20695 hardcode_direct=yes
20696 hardcode_direct_absolute=yes
20697 export_dynamic_flag_spec='$wl-E'
20699 # hardcode_minus_L: Not really in the search PATH,
20700 # but as the default location of the library.
20701 hardcode_minus_L=yes
20707 irix5* | irix6* | nonstopux*)
20708 if test yes = "$GCC"; then
20709 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'
20710 # Try to use the -exported_symbol ld option, if it does not
20711 # work, assume that -exports_file does not work either and
20712 # implicitly export all symbols.
20713 # This should be the same for all languages, so no per-tag cache variable.
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
20715 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
20716 if ${lt_cv_irix_exported_symbol+:} false; then :
20717 $as_echo_n "(cached) " >&6
20719 save_LDFLAGS=$LDFLAGS
20720 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
20721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20722 /* end confdefs.h. */
20723 int foo (void) { return 0; }
20725 if ac_fn_c_try_link "$LINENO"; then :
20726 lt_cv_irix_exported_symbol=yes
20728 lt_cv_irix_exported_symbol=no
20730 rm -f core conftest.err conftest.$ac_objext \
20731 conftest$ac_exeext conftest.$ac_ext
20732 LDFLAGS=$save_LDFLAGS
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
20735 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
20736 if test yes = "$lt_cv_irix_exported_symbol"; then
20737 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'
20740 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'
20741 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'
20743 archive_cmds_need_lc='no'
20744 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20745 hardcode_libdir_separator=:
20747 link_all_deplibs=yes
20751 case $cc_basename in
20753 # Fabrice Bellard et al's Tiny C Compiler
20755 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20761 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20764 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20766 hardcode_libdir_flag_spec='-R$libdir'
20767 hardcode_direct=yes
20768 hardcode_shlibpath_var=no
20772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20773 hardcode_direct=yes
20774 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20775 hardcode_libdir_separator=:
20776 hardcode_shlibpath_var=no
20782 openbsd* | bitrig*)
20783 if test -f /usr/libexec/ld.so; then
20784 hardcode_direct=yes
20785 hardcode_shlibpath_var=no
20786 hardcode_direct_absolute=yes
20787 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20788 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20789 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
20790 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
20791 export_dynamic_flag_spec='$wl-E'
20793 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20794 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
20802 hardcode_libdir_flag_spec='-L$libdir'
20803 hardcode_minus_L=yes
20804 allow_undefined_flag=unsupported
20806 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20807 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20808 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20809 $ECHO EXPORTS >> $output_objdir/$libname.def~
20810 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
20811 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20812 emximp -o $lib $output_objdir/$libname.def'
20813 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20814 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20815 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20816 $ECHO EXPORTS >> $output_objdir/$libname.def~
20817 prefix_cmds="$SED"~
20818 if test EXPORTS = "`$SED 1q $export_symbols`"; then
20819 prefix_cmds="$prefix_cmds -e 1d";
20821 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
20822 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
20823 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20824 emximp -o $lib $output_objdir/$libname.def'
20825 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
20826 enable_shared_with_static_runtimes=yes
20830 if test yes = "$GCC"; then
20831 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
20832 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'
20834 allow_undefined_flag=' -expect_unresolved \*'
20835 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'
20837 archive_cmds_need_lc='no'
20838 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20839 hardcode_libdir_separator=:
20842 osf4* | osf5*) # as osf3* with the addition of -msym flag
20843 if test yes = "$GCC"; then
20844 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
20845 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'
20846 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20848 allow_undefined_flag=' -expect_unresolved \*'
20849 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'
20850 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~
20851 $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'
20853 # Both c and cxx compiler support -rpath directly
20854 hardcode_libdir_flag_spec='-rpath $libdir'
20856 archive_cmds_need_lc='no'
20857 hardcode_libdir_separator=:
20861 no_undefined_flag=' -z defs'
20862 if test yes = "$GCC"; then
20864 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20865 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20866 $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'
20868 case `$CC -V 2>&1` in
20871 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
20872 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20873 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
20877 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
20878 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20879 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20883 hardcode_libdir_flag_spec='-R$libdir'
20884 hardcode_shlibpath_var=no
20886 solaris2.[0-5] | solaris2.[0-5].*) ;;
20888 # The compiler driver will combine and reorder linker options,
20889 # but understands '-z linker_flag'. GCC discards it without '$wl',
20890 # but is careful enough not to reorder.
20891 # Supported since Solaris 2.6 (maybe 2.5.1?)
20892 if test yes = "$GCC"; then
20893 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
20895 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
20899 link_all_deplibs=yes
20903 if test sequent = "$host_vendor"; then
20904 # Use $CC to link under sequent, because it throws in some extra .o
20905 # files that make .init and .fini sections work.
20906 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20908 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20910 hardcode_libdir_flag_spec='-L$libdir'
20911 hardcode_direct=yes
20912 hardcode_minus_L=yes
20913 hardcode_shlibpath_var=no
20917 case $host_vendor in
20919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20920 hardcode_direct=yes # is this really true???
20923 ## LD is ld it makes a PLAMLIB
20924 ## CC just makes a GrossModule.
20925 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20926 reload_cmds='$CC -r -o $output$reload_objs'
20930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20931 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
20934 runpath_var='LD_RUN_PATH'
20935 hardcode_shlibpath_var=no
20939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20940 hardcode_shlibpath_var=no
20941 export_dynamic_flag_spec='-Bexport'
20945 if test -d /usr/nec; then
20946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20947 hardcode_shlibpath_var=no
20948 runpath_var=LD_RUN_PATH
20949 hardcode_runpath_var=yes
20954 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20955 no_undefined_flag='$wl-z,text'
20956 archive_cmds_need_lc=no
20957 hardcode_shlibpath_var=no
20958 runpath_var='LD_RUN_PATH'
20960 if test yes = "$GCC"; then
20961 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20962 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20964 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20965 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20969 sysv5* | sco3.2v5* | sco5v6*)
20970 # Note: We CANNOT use -z defs as we might desire, because we do not
20971 # link with -lc, and that would cause any symbols used from libc to
20972 # always be unresolved, which means just about no library would
20973 # ever link correctly. If we're not using GNU ld we use -z text
20974 # though, which does catch some bad symbols but isn't as heavy-handed
20976 no_undefined_flag='$wl-z,text'
20977 allow_undefined_flag='$wl-z,nodefs'
20978 archive_cmds_need_lc=no
20979 hardcode_shlibpath_var=no
20980 hardcode_libdir_flag_spec='$wl-R,$libdir'
20981 hardcode_libdir_separator=':'
20982 link_all_deplibs=yes
20983 export_dynamic_flag_spec='$wl-Bexport'
20984 runpath_var='LD_RUN_PATH'
20986 if test yes = "$GCC"; then
20987 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20988 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20990 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20991 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20997 hardcode_libdir_flag_spec='-L$libdir'
20998 hardcode_shlibpath_var=no
21006 if test sni = "$host_vendor"; then
21008 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21009 export_dynamic_flag_spec='$wl-Blargedynsym'
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
21016 $as_echo "$ld_shlibs" >&6; }
21017 test no = "$ld_shlibs" && can_build_shared=no
21019 with_gnu_ld=$with_gnu_ld
21036 # Do we need to explicitly link libc?
21038 case "x$archive_cmds_need_lc" in
21040 # Assume -lc should be added
21041 archive_cmds_need_lc=yes
21043 if test yes,yes = "$GCC,$enable_shared"; then
21044 case $archive_cmds in
21046 # FIXME: we may have to deal with multi-command sequences.
21049 # Test whether the compiler implicitly links with -lc since on some
21050 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21051 # to ld, don't add -lc before -lgcc.
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21053 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21054 if ${lt_cv_archive_cmds_need_lc+:} false; then :
21055 $as_echo_n "(cached) " >&6
21058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21061 (eval $ac_compile) 2>&5
21063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21064 test $ac_status = 0; } 2>conftest.err; then
21067 libobjs=conftest.$ac_objext
21069 wl=$lt_prog_compiler_wl
21070 pic_flag=$lt_prog_compiler_pic
21076 lt_save_allow_undefined_flag=$allow_undefined_flag
21077 allow_undefined_flag=
21078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21079 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21082 test $ac_status = 0; }
21084 lt_cv_archive_cmds_need_lc=no
21086 lt_cv_archive_cmds_need_lc=yes
21088 allow_undefined_flag=$lt_save_allow_undefined_flag
21090 cat conftest.err 1>&5
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
21096 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
21097 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21256 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21258 if test yes = "$GCC"; then
21260 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
21261 *) lt_awk_arg='/^libraries:/' ;;
21264 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
21265 *) lt_sed_strip_eq='s|=/|/|g' ;;
21267 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
21268 case $lt_search_path_spec in
21270 # if the path contains ";" then we assume it to be the separator
21271 # otherwise default to the standard path separator (i.e. ":") - it is
21272 # assumed that no part of a normal pathname contains ";" but that should
21273 # okay in the real world where ";" in dirpaths is itself problematic.
21274 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
21277 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
21280 # Ok, now we have the path, separated by spaces, we can step through it
21281 # and add multilib dir if necessary...
21282 lt_tmp_lt_search_path_spec=
21283 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
21284 # ...but if some path component already ends with the multilib dir we assume
21285 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
21286 case "$lt_multi_os_dir; $lt_search_path_spec " in
21287 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
21291 for lt_sys_path in $lt_search_path_spec; do
21292 if test -d "$lt_sys_path$lt_multi_os_dir"; then
21293 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
21294 elif test -n "$lt_multi_os_dir"; then
21295 test -d "$lt_sys_path" && \
21296 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
21299 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
21300 BEGIN {RS = " "; FS = "/|\n";} {
21303 for (lt_i = NF; lt_i > 0; lt_i--) {
21304 if ($lt_i != "" && $lt_i != ".") {
21305 if ($lt_i == "..") {
21308 if (lt_count == 0) {
21309 lt_foo = "/" $lt_i lt_foo;
21316 if (lt_foo != "") { lt_freq[lt_foo]++; }
21317 if (lt_freq[lt_foo] == 1) { print lt_foo; }
21319 # AWK program above erroneously prepends '/' to C:/dos/paths
21322 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
21323 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
21325 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
21327 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21329 library_names_spec=
21330 libname_spec='lib$name'
21334 postuninstall_cmds=
21338 shlibpath_overrides_runpath=unknown
21340 dynamic_linker="$host_os ld.so"
21341 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21342 need_lib_prefix=unknown
21343 hardcode_into_libs=no
21345 # when you set need_version to no, make sure it does not cause -set_version
21346 # flags to be left without arguments
21347 need_version=unknown
21353 version_type=linux # correct to gnu/linux during the next big refactor
21354 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
21355 shlibpath_var=LIBPATH
21357 # AIX 3 has no versioning support, so we append a major version to the name.
21358 soname_spec='$libname$release$shared_ext$major'
21362 version_type=linux # correct to gnu/linux during the next big refactor
21365 hardcode_into_libs=yes
21366 if test ia64 = "$host_cpu"; then
21367 # AIX 5 supports IA64
21368 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
21369 shlibpath_var=LD_LIBRARY_PATH
21371 # With GCC up to 2.95.x, collect2 would create an import file
21372 # for dependence libraries. The import file would start with
21373 # the line '#! .'. This would cause the generated library to
21374 # depend on '.', always an invalid library. This was fixed in
21375 # development snapshots of GCC prior to 3.0.
21377 aix4 | aix4.[01] | aix4.[01].*)
21378 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21380 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
21383 can_build_shared=no
21387 # Using Import Files as archive members, it is possible to support
21388 # filename-based versioning of shared library archives on AIX. While
21389 # this would work for both with and without runtime linking, it will
21390 # prevent static linking of such archives. So we do filename-based
21391 # shared library versioning with .so extension only, which is used
21392 # when both runtime linking and shared linking is enabled.
21393 # Unfortunately, runtime linking may impact performance, so we do
21394 # not want this to be the default eventually. Also, we use the
21395 # versioned .so libs for executables only if there is the -brtl
21396 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
21397 # To allow for filename-based versioning support, we need to create
21398 # libNAME.so.V as an archive file, containing:
21399 # *) an Import File, referring to the versioned filename of the
21400 # archive as well as the shared archive member, telling the
21401 # bitwidth (32 or 64) of that shared object, and providing the
21402 # list of exported symbols of that shared object, eventually
21403 # decorated with the 'weak' keyword
21404 # *) the shared object with the F_LOADONLY flag set, to really avoid
21405 # it being seen by the linker.
21406 # At run time we better use the real file rather than another symlink,
21407 # but for link time we create the symlink libNAME.so -> libNAME.so.V
21409 case $with_aix_soname,$aix_use_runtimelinking in
21410 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
21411 # soname into executable. Probably we can add versioning support to
21412 # collect2, so additional links can be useful in future.
21413 aix,yes) # traditional libtool
21414 dynamic_linker='AIX unversionable lib.so'
21415 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21416 # instead of lib<name>.a to let people know that these are not
21417 # typical AIX shared libraries.
21418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21420 aix,no) # traditional AIX only
21421 dynamic_linker='AIX lib.a(lib.so.V)'
21422 # We preserve .a as extension for shared libraries through AIX4.2
21423 # and later when we are not doing run time linking.
21424 library_names_spec='$libname$release.a $libname.a'
21425 soname_spec='$libname$release$shared_ext$major'
21427 svr4,*) # full svr4 only
21428 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
21429 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21430 # We do not specify a path in Import Files, so LIBPATH fires.
21431 shlibpath_overrides_runpath=yes
21433 *,yes) # both, prefer svr4
21434 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
21435 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21436 # unpreferred sharedlib libNAME.a needs extra handling
21437 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"'
21438 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"'
21439 # We do not specify a path in Import Files, so LIBPATH fires.
21440 shlibpath_overrides_runpath=yes
21442 *,no) # both, prefer aix
21443 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
21444 library_names_spec='$libname$release.a $libname.a'
21445 soname_spec='$libname$release$shared_ext$major'
21446 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
21447 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)'
21448 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"'
21451 shlibpath_var=LIBPATH
21458 # Since July 2007 AmigaOS4 officially supports .so libraries.
21459 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21463 library_names_spec='$libname.ixlibrary $libname.a'
21464 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21465 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'
21471 library_names_spec='$libname$shared_ext'
21472 dynamic_linker="$host_os ld.so"
21473 shlibpath_var=LIBRARY_PATH
21477 version_type=linux # correct to gnu/linux during the next big refactor
21479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21480 soname_spec='$libname$release$shared_ext$major'
21481 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21482 shlibpath_var=LD_LIBRARY_PATH
21483 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21484 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21485 # the default ld.so.conf also contains /usr/contrib/lib and
21486 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21487 # libtool to hard-code these into programs
21490 cygwin* | mingw* | pw32* | cegcc*)
21491 version_type=windows
21496 case $GCC,$cc_basename in
21499 library_names_spec='$libname.dll.a'
21500 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21501 postinstall_cmds='base_file=`basename \$file`~
21502 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21503 dldir=$destdir/`dirname \$dlpath`~
21504 test -d \$dldir || mkdir -p \$dldir~
21505 $install_prog $dir/$dlname \$dldir/$dlname~
21506 chmod a+x \$dldir/$dlname~
21507 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21508 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21510 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21511 dlpath=$dir/\$dldll~
21513 shlibpath_overrides_runpath=yes
21517 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21518 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21520 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
21523 # MinGW DLLs use traditional 'lib' prefix
21524 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21527 # pw32 DLLs use 'pw' prefix rather than 'lib'
21528 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21531 dynamic_linker='Win32 ld.exe'
21536 libname_spec='$name'
21537 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21538 library_names_spec='$libname.dll.lib'
21542 sys_lib_search_path_spec=
21545 for lt_path in $LIB
21548 # Let DOS variable expansion print the short 8.3 style file name.
21549 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21550 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21553 # Convert to MSYS style.
21554 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21557 # Convert to unix form, then to dos form, then back to unix form
21558 # but this time dos style (no spaces!) so that the unix form looks
21559 # like /cygdrive/c/PROGRA~1:/cygdr...
21560 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21561 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21562 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21565 sys_lib_search_path_spec=$LIB
21566 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21567 # It is most probably a Windows format PATH.
21568 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21570 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21572 # FIXME: find the short name or the path components, as spaces are
21573 # common. (e.g. "Program Files" -> "PROGRA~1")
21577 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21578 postinstall_cmds='base_file=`basename \$file`~
21579 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21580 dldir=$destdir/`dirname \$dlpath`~
21581 test -d \$dldir || mkdir -p \$dldir~
21582 $install_prog $dir/$dlname \$dldir/$dlname'
21583 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21584 dlpath=$dir/\$dldll~
21586 shlibpath_overrides_runpath=yes
21587 dynamic_linker='Win32 link.exe'
21591 # Assume MSVC wrapper
21592 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
21593 dynamic_linker='Win32 ld.exe'
21596 # FIXME: first we should search . and the directory the executable is in
21600 darwin* | rhapsody*)
21601 dynamic_linker="$host_os dyld"
21602 version_type=darwin
21605 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
21606 soname_spec='$libname$release$major$shared_ext'
21607 shlibpath_overrides_runpath=yes
21608 shlibpath_var=DYLD_LIBRARY_PATH
21609 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21611 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
21612 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21616 version_type=linux # correct to gnu/linux during the next big refactor
21619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21620 soname_spec='$libname$release$shared_ext$major'
21621 shlibpath_var=LD_LIBRARY_PATH
21624 freebsd* | dragonfly*)
21625 # DragonFly does not have aout. When/if they implement a new
21626 # versioning mechanism, adjust this.
21627 if test -x /usr/bin/objformat; then
21628 objformat=`/usr/bin/objformat`
21631 freebsd[23].*) objformat=aout ;;
21632 *) objformat=elf ;;
21635 version_type=freebsd-$objformat
21636 case $version_type in
21638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21639 soname_spec='$libname$release$shared_ext$major'
21644 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21648 shlibpath_var=LD_LIBRARY_PATH
21651 shlibpath_overrides_runpath=yes
21653 freebsd3.[01]* | freebsdelf3.[01]*)
21654 shlibpath_overrides_runpath=yes
21655 hardcode_into_libs=yes
21657 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21658 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21659 shlibpath_overrides_runpath=no
21660 hardcode_into_libs=yes
21662 *) # from 4.6 on, and DragonFly
21663 shlibpath_overrides_runpath=yes
21664 hardcode_into_libs=yes
21670 version_type=linux # correct to gnu/linux during the next big refactor
21673 dynamic_linker="$host_os runtime_loader"
21674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21675 soname_spec='$libname$release$shared_ext$major'
21676 shlibpath_var=LIBRARY_PATH
21677 shlibpath_overrides_runpath=no
21678 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21679 hardcode_into_libs=yes
21682 hpux9* | hpux10* | hpux11*)
21683 # Give a soname corresponding to the major version so that dld.sl refuses to
21684 # link against other versions.
21691 hardcode_into_libs=yes
21692 dynamic_linker="$host_os dld.so"
21693 shlibpath_var=LD_LIBRARY_PATH
21694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21695 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21696 soname_spec='$libname$release$shared_ext$major'
21697 if test 32 = "$HPUX_IA64_MODE"; then
21698 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21699 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
21701 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21702 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
21707 hardcode_into_libs=yes
21708 dynamic_linker="$host_os dld.sl"
21709 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21711 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21712 soname_spec='$libname$release$shared_ext$major'
21713 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21714 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21718 dynamic_linker="$host_os dld.sl"
21719 shlibpath_var=SHLIB_PATH
21720 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21722 soname_spec='$libname$release$shared_ext$major'
21725 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21726 postinstall_cmds='chmod 555 $lib'
21727 # or fails outright, so override atomically:
21728 install_override_mode=555
21732 version_type=linux # correct to gnu/linux during the next big refactor
21735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21736 soname_spec='$libname$release$shared_ext$major'
21737 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21738 shlibpath_var=LD_LIBRARY_PATH
21739 shlibpath_overrides_runpath=no
21740 hardcode_into_libs=yes
21743 irix5* | irix6* | nonstopux*)
21745 nonstopux*) version_type=nonstopux ;;
21747 if test yes = "$lt_cv_prog_gnu_ld"; then
21748 version_type=linux # correct to gnu/linux during the next big refactor
21755 soname_spec='$libname$release$shared_ext$major'
21756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
21758 irix5* | nonstopux*)
21759 libsuff= shlibsuff=
21762 case $LD in # libtool.m4 will add one of these switches to LD
21763 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21764 libsuff= shlibsuff= libmagic=32-bit;;
21765 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21766 libsuff=32 shlibsuff=N32 libmagic=N32;;
21767 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21768 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21769 *) libsuff= shlibsuff= libmagic=never-match;;
21773 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21774 shlibpath_overrides_runpath=no
21775 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
21776 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
21777 hardcode_into_libs=yes
21780 # No shared lib support for Linux oldld, aout, or coff.
21781 linux*oldld* | linux*aout* | linux*coff*)
21786 version_type=none # Android doesn't support versioned libraries.
21789 library_names_spec='$libname$release$shared_ext'
21790 soname_spec='$libname$release$shared_ext'
21792 shlibpath_var=LD_LIBRARY_PATH
21793 shlibpath_overrides_runpath=yes
21795 # This implies no fast_install, which is unacceptable.
21796 # Some rework will be needed to allow for fast_install
21797 # before this can be enabled.
21798 hardcode_into_libs=yes
21800 dynamic_linker='Android linker'
21801 # Don't embed -rpath directories since the linker doesn't support them.
21802 hardcode_libdir_flag_spec='-L$libdir'
21805 # This must be glibc/ELF.
21806 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21807 version_type=linux # correct to gnu/linux during the next big refactor
21810 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21811 soname_spec='$libname$release$shared_ext$major'
21812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21813 shlibpath_var=LD_LIBRARY_PATH
21814 shlibpath_overrides_runpath=no
21816 # Some binutils ld are patched to set DT_RUNPATH
21817 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
21818 $as_echo_n "(cached) " >&6
21820 lt_cv_shlibpath_overrides_runpath=no
21821 save_LDFLAGS=$LDFLAGS
21822 save_libdir=$libdir
21823 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
21824 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
21825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21826 /* end confdefs.h. */
21836 if ac_fn_c_try_link "$LINENO"; then :
21837 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21838 lt_cv_shlibpath_overrides_runpath=yes
21841 rm -f core conftest.err conftest.$ac_objext \
21842 conftest$ac_exeext conftest.$ac_ext
21843 LDFLAGS=$save_LDFLAGS
21844 libdir=$save_libdir
21848 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21850 # This implies no fast_install, which is unacceptable.
21851 # Some rework will be needed to allow for fast_install
21852 # before this can be enabled.
21853 hardcode_into_libs=yes
21855 # Ideally, we could use ldconfig to report *all* directores which are
21856 # searched for libraries, however this is still not possible. Aside from not
21857 # being certain /sbin/ldconfig is available, command
21858 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
21859 # even though it is searched at run-time. Try to do the best guess by
21860 # appending ld.so.conf contents (and includes) to the search path.
21861 if test -f /etc/ld.so.conf; then
21862 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' ' '`
21863 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21866 # We used to test for /lib/ld.so.1 and disable shared libraries on
21867 # powerpc, because MkLinux only supported shared libraries with the
21868 # GNU dynamic linker. Since this was broken with cross compilers,
21869 # most powerpc-linux boxes support dynamic linking these days and
21870 # people can always --disable-shared, the test was removed, and we
21871 # assume the GNU/Linux dynamic linker is in use.
21872 dynamic_linker='GNU/Linux ld.so'
21879 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21880 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21882 dynamic_linker='NetBSD (a.out) ld.so'
21884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21885 soname_spec='$libname$release$shared_ext$major'
21886 dynamic_linker='NetBSD ld.elf_so'
21888 shlibpath_var=LD_LIBRARY_PATH
21889 shlibpath_overrides_runpath=yes
21890 hardcode_into_libs=yes
21894 version_type=linux # correct to gnu/linux during the next big refactor
21895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21896 shlibpath_var=LD_LIBRARY_PATH
21897 shlibpath_overrides_runpath=yes
21904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21905 soname_spec='$libname$release$shared_ext$major'
21906 shlibpath_var=LD_LIBRARY_PATH
21907 shlibpath_overrides_runpath=no
21908 hardcode_into_libs=yes
21909 dynamic_linker='ldqnx.so'
21912 openbsd* | bitrig*)
21914 sys_lib_dlsearch_path_spec=/usr/lib
21916 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
21921 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21923 shlibpath_var=LD_LIBRARY_PATH
21924 shlibpath_overrides_runpath=yes
21928 libname_spec='$name'
21929 version_type=windows
21933 # OS/2 can only load a DLL with a base name of 8 characters or less.
21934 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
21935 v=$($ECHO $release$versuffix | tr -d .-);
21936 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
21937 $ECHO $n$v`$shared_ext'
21938 library_names_spec='${libname}_dll.$libext'
21939 dynamic_linker='OS/2 ld.exe'
21940 shlibpath_var=BEGINLIBPATH
21941 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21942 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21943 postinstall_cmds='base_file=`basename \$file`~
21944 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
21945 dldir=$destdir/`dirname \$dlpath`~
21946 test -d \$dldir || mkdir -p \$dldir~
21947 $install_prog $dir/$dlname \$dldir/$dlname~
21948 chmod a+x \$dldir/$dlname~
21949 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21950 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21952 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
21953 dlpath=$dir/\$dldll~
21957 osf3* | osf4* | osf5*)
21961 soname_spec='$libname$release$shared_ext$major'
21962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21963 shlibpath_var=LD_LIBRARY_PATH
21964 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21973 version_type=linux # correct to gnu/linux during the next big refactor
21976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21977 soname_spec='$libname$release$shared_ext$major'
21978 shlibpath_var=LD_LIBRARY_PATH
21979 shlibpath_overrides_runpath=yes
21980 hardcode_into_libs=yes
21981 # ldd complains unless libraries are executable
21982 postinstall_cmds='chmod +x $lib'
21987 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21988 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21989 shlibpath_var=LD_LIBRARY_PATH
21990 shlibpath_overrides_runpath=yes
21991 if test yes = "$with_gnu_ld"; then
21998 version_type=linux # correct to gnu/linux during the next big refactor
21999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22000 soname_spec='$libname$release$shared_ext$major'
22001 shlibpath_var=LD_LIBRARY_PATH
22002 case $host_vendor in
22004 shlibpath_overrides_runpath=no
22006 runpath_var=LD_RUN_PATH
22014 shlibpath_overrides_runpath=no
22015 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22021 if test -d /usr/nec; then
22022 version_type=linux # correct to gnu/linux during the next big refactor
22023 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
22024 soname_spec='$libname$shared_ext.$major'
22025 shlibpath_var=LD_LIBRARY_PATH
22029 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
22034 soname_spec='$libname$release$shared_ext$major'
22035 shlibpath_var=LD_LIBRARY_PATH
22036 shlibpath_overrides_runpath=yes
22037 hardcode_into_libs=yes
22038 if test yes = "$with_gnu_ld"; then
22039 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22041 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22044 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22048 sys_lib_dlsearch_path_spec='/usr/lib'
22052 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22053 version_type=linux # correct to gnu/linux during the next big refactor
22056 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22057 shlibpath_var=LD_LIBRARY_PATH
22058 shlibpath_overrides_runpath=no
22059 hardcode_into_libs=yes
22063 version_type=linux # correct to gnu/linux during the next big refactor
22064 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22065 soname_spec='$libname$release$shared_ext$major'
22066 shlibpath_var=LD_LIBRARY_PATH
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22074 $as_echo "$dynamic_linker" >&6; }
22075 test no = "$dynamic_linker" && can_build_shared=no
22077 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22078 if test yes = "$GCC"; then
22079 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22082 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
22083 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
22086 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
22087 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
22090 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
22091 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
22093 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
22094 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
22096 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
22097 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22196 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22198 if test -n "$hardcode_libdir_flag_spec" ||
22199 test -n "$runpath_var" ||
22200 test yes = "$hardcode_automatic"; then
22202 # We can hardcode non-existent directories.
22203 if test no != "$hardcode_direct" &&
22204 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22205 # have to relink, otherwise we might link with an installed library
22206 # when we should be linking with a yet-to-be-installed one
22207 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
22208 test no != "$hardcode_minus_L"; then
22209 # Linking always hardcodes the temporary library directory.
22210 hardcode_action=relink
22212 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22213 hardcode_action=immediate
22216 # We cannot hardcode anything, or else we can only hardcode existing
22218 hardcode_action=unsupported
22220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
22221 $as_echo "$hardcode_action" >&6; }
22223 if test relink = "$hardcode_action" ||
22224 test yes = "$inherit_rpath"; then
22225 # Fast installation is not supported
22226 enable_fast_install=no
22227 elif test yes = "$shlibpath_overrides_runpath" ||
22228 test no = "$enable_shared"; then
22229 # Fast installation is not necessary
22230 enable_fast_install=needless
22238 if test yes != "$enable_dlopen"; then
22239 enable_dlopen=unknown
22240 enable_dlopen_self=unknown
22241 enable_dlopen_self_static=unknown
22248 lt_cv_dlopen=load_add_on
22250 lt_cv_dlopen_self=yes
22253 mingw* | pw32* | cegcc*)
22254 lt_cv_dlopen=LoadLibrary
22259 lt_cv_dlopen=dlopen
22264 # if libdl is installed we need to link against it
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22266 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22267 if ${ac_cv_lib_dl_dlopen+:} false; then :
22268 $as_echo_n "(cached) " >&6
22270 ac_check_lib_save_LIBS=$LIBS
22272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22273 /* end confdefs.h. */
22275 /* Override any GCC internal prototype to avoid an error.
22276 Use char because int might match the return type of a GCC
22277 builtin and then its argument prototype would still apply. */
22290 if ac_fn_c_try_link "$LINENO"; then :
22291 ac_cv_lib_dl_dlopen=yes
22293 ac_cv_lib_dl_dlopen=no
22295 rm -f core conftest.err conftest.$ac_objext \
22296 conftest$ac_exeext conftest.$ac_ext
22297 LIBS=$ac_check_lib_save_LIBS
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22300 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22301 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22302 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
22307 lt_cv_dlopen_self=yes
22314 # Don't try to run any link tests for TPF. We know it's impossible
22315 # because TPF is a cross-compiler, and we know how we open DSOs.
22316 lt_cv_dlopen=dlopen
22318 lt_cv_dlopen_self=no
22322 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22323 if test "x$ac_cv_func_shl_load" = xyes; then :
22324 lt_cv_dlopen=shl_load
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
22327 $as_echo_n "checking for shl_load in -ldld... " >&6; }
22328 if ${ac_cv_lib_dld_shl_load+:} false; then :
22329 $as_echo_n "(cached) " >&6
22331 ac_check_lib_save_LIBS=$LIBS
22333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22334 /* end confdefs.h. */
22336 /* Override any GCC internal prototype to avoid an error.
22337 Use char because int might match the return type of a GCC
22338 builtin and then its argument prototype would still apply. */
22346 return shl_load ();
22351 if ac_fn_c_try_link "$LINENO"; then :
22352 ac_cv_lib_dld_shl_load=yes
22354 ac_cv_lib_dld_shl_load=no
22356 rm -f core conftest.err conftest.$ac_objext \
22357 conftest$ac_exeext conftest.$ac_ext
22358 LIBS=$ac_check_lib_save_LIBS
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
22361 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22362 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
22363 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
22365 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22366 if test "x$ac_cv_func_dlopen" = xyes; then :
22367 lt_cv_dlopen=dlopen
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22370 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22371 if ${ac_cv_lib_dl_dlopen+:} false; then :
22372 $as_echo_n "(cached) " >&6
22374 ac_check_lib_save_LIBS=$LIBS
22376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22377 /* end confdefs.h. */
22379 /* Override any GCC internal prototype to avoid an error.
22380 Use char because int might match the return type of a GCC
22381 builtin and then its argument prototype would still apply. */
22394 if ac_fn_c_try_link "$LINENO"; then :
22395 ac_cv_lib_dl_dlopen=yes
22397 ac_cv_lib_dl_dlopen=no
22399 rm -f core conftest.err conftest.$ac_objext \
22400 conftest$ac_exeext conftest.$ac_ext
22401 LIBS=$ac_check_lib_save_LIBS
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22404 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22405 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22406 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
22408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
22409 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
22410 if ${ac_cv_lib_svld_dlopen+:} false; then :
22411 $as_echo_n "(cached) " >&6
22413 ac_check_lib_save_LIBS=$LIBS
22414 LIBS="-lsvld $LIBS"
22415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22416 /* end confdefs.h. */
22418 /* Override any GCC internal prototype to avoid an error.
22419 Use char because int might match the return type of a GCC
22420 builtin and then its argument prototype would still apply. */
22433 if ac_fn_c_try_link "$LINENO"; then :
22434 ac_cv_lib_svld_dlopen=yes
22436 ac_cv_lib_svld_dlopen=no
22438 rm -f core conftest.err conftest.$ac_objext \
22439 conftest$ac_exeext conftest.$ac_ext
22440 LIBS=$ac_check_lib_save_LIBS
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
22443 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22444 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
22445 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
22447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
22448 $as_echo_n "checking for dld_link in -ldld... " >&6; }
22449 if ${ac_cv_lib_dld_dld_link+:} false; then :
22450 $as_echo_n "(cached) " >&6
22452 ac_check_lib_save_LIBS=$LIBS
22454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22455 /* end confdefs.h. */
22457 /* Override any GCC internal prototype to avoid an error.
22458 Use char because int might match the return type of a GCC
22459 builtin and then its argument prototype would still apply. */
22467 return dld_link ();
22472 if ac_fn_c_try_link "$LINENO"; then :
22473 ac_cv_lib_dld_dld_link=yes
22475 ac_cv_lib_dld_dld_link=no
22477 rm -f core conftest.err conftest.$ac_objext \
22478 conftest$ac_exeext conftest.$ac_ext
22479 LIBS=$ac_check_lib_save_LIBS
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
22482 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22483 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
22484 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
22505 if test no = "$lt_cv_dlopen"; then
22511 case $lt_cv_dlopen in
22513 save_CPPFLAGS=$CPPFLAGS
22514 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
22516 save_LDFLAGS=$LDFLAGS
22517 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
22520 LIBS="$lt_cv_dlopen_libs $LIBS"
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
22523 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
22524 if ${lt_cv_dlopen_self+:} false; then :
22525 $as_echo_n "(cached) " >&6
22527 if test yes = "$cross_compiling"; then :
22528 lt_cv_dlopen_self=cross
22530 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22531 lt_status=$lt_dlunknown
22532 cat > conftest.$ac_ext <<_LT_EOF
22533 #line $LINENO "configure"
22534 #include "confdefs.h"
22543 # define LT_DLGLOBAL RTLD_GLOBAL
22546 # define LT_DLGLOBAL DL_GLOBAL
22548 # define LT_DLGLOBAL 0
22552 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22553 find out it does not work in some platform. */
22554 #ifndef LT_DLLAZY_OR_NOW
22556 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22559 # define LT_DLLAZY_OR_NOW DL_LAZY
22562 # define LT_DLLAZY_OR_NOW RTLD_NOW
22565 # define LT_DLLAZY_OR_NOW DL_NOW
22567 # define LT_DLLAZY_OR_NOW 0
22574 /* When -fvisibility=hidden is used, assume the code has been annotated
22575 correspondingly for the symbols needed. */
22576 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22577 int fnord () __attribute__((visibility("default")));
22580 int fnord () { return 42; }
22583 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22584 int status = $lt_dlunknown;
22588 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22591 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22592 else puts (dlerror ());
22594 /* dlclose (self); */
22602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22603 (eval $ac_link) 2>&5
22605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22606 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
22607 (./conftest; exit; ) >&5 2>/dev/null
22609 case x$lt_status in
22610 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
22611 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
22612 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
22615 # compilation failed
22616 lt_cv_dlopen_self=no
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
22624 $as_echo "$lt_cv_dlopen_self" >&6; }
22626 if test yes = "$lt_cv_dlopen_self"; then
22627 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
22629 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22630 if ${lt_cv_dlopen_self_static+:} false; then :
22631 $as_echo_n "(cached) " >&6
22633 if test yes = "$cross_compiling"; then :
22634 lt_cv_dlopen_self_static=cross
22636 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22637 lt_status=$lt_dlunknown
22638 cat > conftest.$ac_ext <<_LT_EOF
22639 #line $LINENO "configure"
22640 #include "confdefs.h"
22649 # define LT_DLGLOBAL RTLD_GLOBAL
22652 # define LT_DLGLOBAL DL_GLOBAL
22654 # define LT_DLGLOBAL 0
22658 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22659 find out it does not work in some platform. */
22660 #ifndef LT_DLLAZY_OR_NOW
22662 # define LT_DLLAZY_OR_NOW RTLD_LAZY
22665 # define LT_DLLAZY_OR_NOW DL_LAZY
22668 # define LT_DLLAZY_OR_NOW RTLD_NOW
22671 # define LT_DLLAZY_OR_NOW DL_NOW
22673 # define LT_DLLAZY_OR_NOW 0
22680 /* When -fvisibility=hidden is used, assume the code has been annotated
22681 correspondingly for the symbols needed. */
22682 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22683 int fnord () __attribute__((visibility("default")));
22686 int fnord () { return 42; }
22689 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22690 int status = $lt_dlunknown;
22694 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
22697 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
22698 else puts (dlerror ());
22700 /* dlclose (self); */
22708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22709 (eval $ac_link) 2>&5
22711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22712 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
22713 (./conftest; exit; ) >&5 2>/dev/null
22715 case x$lt_status in
22716 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
22717 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
22718 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
22721 # compilation failed
22722 lt_cv_dlopen_self_static=no
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
22730 $as_echo "$lt_cv_dlopen_self_static" >&6; }
22733 CPPFLAGS=$save_CPPFLAGS
22734 LDFLAGS=$save_LDFLAGS
22739 case $lt_cv_dlopen_self in
22740 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
22741 *) enable_dlopen_self=unknown ;;
22744 case $lt_cv_dlopen_self_static in
22745 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
22746 *) enable_dlopen_self_static=unknown ;;
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
22769 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
22770 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
22771 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22772 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22774 $as_echo "yes" >&6; }
22776 # FIXME - insert some real tests, host_os isn't really good enough
22779 if test -n "$STRIP"; then
22780 striplib="$STRIP -x"
22781 old_striplib="$STRIP -S"
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22783 $as_echo "yes" >&6; }
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22786 $as_echo "no" >&6; }
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22791 $as_echo "no" >&6; }
22807 # Report what library types will actually be built
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
22809 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
22811 $as_echo "$can_build_shared" >&6; }
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
22814 $as_echo_n "checking whether to build shared libraries... " >&6; }
22815 test no = "$can_build_shared" && enable_shared=no
22817 # On AIX, shared libraries and static libraries use the same namespace, and
22818 # are all built from PIC.
22821 test yes = "$enable_shared" && enable_static=no
22822 if test -n "$RANLIB"; then
22823 archive_cmds="$archive_cmds~\$RANLIB \$lib"
22824 postinstall_cmds='$RANLIB $lib'
22829 if test ia64 != "$host_cpu"; then
22830 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
22831 yes,aix,yes) ;; # shared object as lib.so file only
22832 yes,svr4,*) ;; # shared object as lib.so archive member only
22833 yes,*) enable_static=no ;; # shared object in lib.a archive as well
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
22839 $as_echo "$enable_shared" >&6; }
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
22842 $as_echo_n "checking whether to build static libraries... " >&6; }
22843 # Make sure either enable_shared or enable_static is yes.
22844 test yes = "$enable_shared" || enable_static=yes
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
22846 $as_echo "$enable_static" >&6; }
22853 ac_cpp='$CPP $CPPFLAGS'
22854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22874 ac_config_commands="$ac_config_commands libtool"
22879 # Only expand once:
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sntp will be built" >&5
22887 $as_echo_n "checking if sntp will be built... " >&6; }
22889 # Check whether --with-sntp was given.
22890 if test "${with_sntp+set}" = set; then :
22891 withval=$with_sntp;
22893 with_sntp="${withsntp=yes}"
22897 case "$with_sntp" in
22906 if test -n "$SNTP"; then
22908 BUILD_SNTP_FALSE='#'
22910 BUILD_SNTP_TRUE='#'
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sntp" >&5
22915 $as_echo "$with_sntp" >&6; }
22929 # NTP has (so far) been relying on leading-edge autogen.
22930 # Therefore, by default:
22931 # - use the version we ship with
22932 # - do not install it
22933 # - build a static copy (AC_DISABLE_SHARED - done earlier)
22934 case "${enable_local_libopts+set}" in
22936 *) enable_local_libopts=yes ;;
22938 case "${enable_libopts_install+set}" in
22940 *) enable_libopts_install=no ;;
22945 ac_header_dirent=no
22946 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22947 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22949 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22950 if eval \${$as_ac_Header+:} false; then :
22951 $as_echo_n "(cached) " >&6
22953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22954 /* end confdefs.h. */
22955 #include <sys/types.h>
22967 if ac_fn_c_try_compile "$LINENO"; then :
22968 eval "$as_ac_Header=yes"
22970 eval "$as_ac_Header=no"
22972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22974 eval ac_res=\$$as_ac_Header
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22976 $as_echo "$ac_res" >&6; }
22977 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22978 cat >>confdefs.h <<_ACEOF
22979 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22982 ac_header_dirent=$ac_hdr; break
22986 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22987 if test $ac_header_dirent = dirent.h; then
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22989 $as_echo_n "checking for library containing opendir... " >&6; }
22990 if ${ac_cv_search_opendir+:} false; then :
22991 $as_echo_n "(cached) " >&6
22993 ac_func_search_save_LIBS=$LIBS
22994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22995 /* end confdefs.h. */
22997 /* Override any GCC internal prototype to avoid an error.
22998 Use char because int might match the return type of a GCC
22999 builtin and then its argument prototype would still apply. */
23012 for ac_lib in '' dir; do
23013 if test -z "$ac_lib"; then
23014 ac_res="none required"
23017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23019 if ac_fn_c_try_link "$LINENO"; then :
23020 ac_cv_search_opendir=$ac_res
23022 rm -f core conftest.err conftest.$ac_objext \
23024 if ${ac_cv_search_opendir+:} false; then :
23028 if ${ac_cv_search_opendir+:} false; then :
23031 ac_cv_search_opendir=no
23033 rm conftest.$ac_ext
23034 LIBS=$ac_func_search_save_LIBS
23036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23037 $as_echo "$ac_cv_search_opendir" >&6; }
23038 ac_res=$ac_cv_search_opendir
23039 if test "$ac_res" != no; then :
23040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23046 $as_echo_n "checking for library containing opendir... " >&6; }
23047 if ${ac_cv_search_opendir+:} false; then :
23048 $as_echo_n "(cached) " >&6
23050 ac_func_search_save_LIBS=$LIBS
23051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23052 /* end confdefs.h. */
23054 /* Override any GCC internal prototype to avoid an error.
23055 Use char because int might match the return type of a GCC
23056 builtin and then its argument prototype would still apply. */
23069 for ac_lib in '' x; do
23070 if test -z "$ac_lib"; then
23071 ac_res="none required"
23074 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23076 if ac_fn_c_try_link "$LINENO"; then :
23077 ac_cv_search_opendir=$ac_res
23079 rm -f core conftest.err conftest.$ac_objext \
23081 if ${ac_cv_search_opendir+:} false; then :
23085 if ${ac_cv_search_opendir+:} false; then :
23088 ac_cv_search_opendir=no
23090 rm conftest.$ac_ext
23091 LIBS=$ac_func_search_save_LIBS
23093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23094 $as_echo "$ac_cv_search_opendir" >&6; }
23095 ac_res=$ac_cv_search_opendir
23096 if test "$ac_res" != no; then :
23097 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23104 # =================
23106 # =================
23108 sys/mman.h sys/param.h sys/poll.h sys/procset.h \
23109 sys/select.h sys/socket.h sys/stropts.h sys/time.h \
23110 sys/un.h sys/wait.h dlfcn.h errno.h \
23111 fcntl.h libgen.h libintl.h memory.h \
23112 netinet/in.h setjmp.h stdbool.h sysexits.h \
23115 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23116 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23117 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23118 cat >>confdefs.h <<_ACEOF
23119 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23127 for ac_header in stdarg.h varargs.h
23129 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23130 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23131 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23132 cat >>confdefs.h <<_ACEOF
23133 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23135 lo_have_arg_hdr=true;break
23137 lo_have_arg_hdr=false
23143 for ac_header in string.h strings.h
23145 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23146 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23147 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23148 cat >>confdefs.h <<_ACEOF
23149 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23151 lo_have_str_hdr=true;break
23153 lo_have_str_hdr=false
23159 for ac_header in limits.h sys/limits.h values.h
23161 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23162 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23163 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23164 cat >>confdefs.h <<_ACEOF
23165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23167 lo_have_lim_hdr=true;break
23169 lo_have_lim_hdr=false
23175 for ac_header in inttypes.h stdint.h
23177 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23178 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23179 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23180 cat >>confdefs.h <<_ACEOF
23181 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23183 lo_have_typ_hdr=true;break
23185 lo_have_typ_hdr=false
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
23192 $as_echo_n "checking for working stdnoreturn.h... " >&6; }
23193 if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
23194 $as_echo_n "(cached) " >&6
23196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23197 /* end confdefs.h. */
23198 #include <stdlib.h>
23199 #include <stdnoreturn.h>
23200 /* Do not check for 'noreturn' after the return type.
23201 C11 allows it, but it's rarely done that way
23202 and circa-2012 bleeding-edge GCC rejects it when given
23203 -Werror=old-style-declaration. */
23204 noreturn void foo1 (void) { exit (0); }
23205 _Noreturn void foo2 (void) { exit (0); }
23206 int testit (int argc, char **argv) {
23209 (argv[0][0] ? foo1 : foo2) ();
23220 if ac_fn_c_try_compile "$LINENO"; then :
23221 gl_cv_header_working_stdnoreturn_h=yes
23223 gl_cv_header_working_stdnoreturn_h=no
23225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
23228 $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
23230 if test $gl_cv_header_working_stdnoreturn_h = yes; then
23233 STDNORETURN_H='stdnoreturn.h'
23237 if test -n "$STDNORETURN_H"; then
23238 GL_GENERATE_STDNORETURN_H_TRUE=
23239 GL_GENERATE_STDNORETURN_H_FALSE='#'
23241 GL_GENERATE_STDNORETURN_H_TRUE='#'
23242 GL_GENERATE_STDNORETURN_H_FALSE=
23247 # ----------------------------------------------------------------------
23248 # check for various programs used during the build.
23249 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
23250 # ----------------------------------------------------------------------
23251 for ac_header in runetype.h wchar.h
23253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23254 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
23255 $ac_includes_default
23256 #if HAVE_RUNETYPE_H
23257 # include <runetype.h>
23261 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23262 cat >>confdefs.h <<_ACEOF
23263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23271 # Check whether --enable-nls was given.
23272 if test "${enable_nls+set}" = set; then :
23273 enableval=$enable_nls;
23276 if test "x$enable_nls" != "xno" && \
23277 test "X${ac_cv_header_libintl_h}" = Xyes; then :
23280 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
23284 # --------------------------------------------
23285 # Verify certain entries from AC_CHECK_HEADERS
23286 # --------------------------------------------
23287 ${lo_have_arg_hdr} || \
23288 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
23290 ${lo_have_str_hdr} || \
23291 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
23293 ${lo_have_lim_hdr} || \
23294 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
23296 ${lo_have_typ_hdr} || \
23297 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
23299 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
23300 do eval as_ac_var=\${ac_cv_header_${f}_h}
23301 test "X${as_ac_var}" = Xyes || {
23302 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
23305 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
23306 echo '#include <stdint.h>' > inttypes.h
23308 # ----------------------------------------------------------------------
23309 # Checks for typedefs
23310 # ----------------------------------------------------------------------
23311 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
23312 if test "x$ac_cv_type_wchar_t" = xyes; then :
23314 cat >>confdefs.h <<_ACEOF
23315 #define HAVE_WCHAR_T 1
23321 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
23322 $ac_includes_default
23323 #if HAVE_RUNETYPE_H
23324 # include <runetype.h>
23327 # include <wchar.h>
23331 if test "x$ac_cv_type_wint_t" = xyes; then :
23333 cat >>confdefs.h <<_ACEOF
23334 #define HAVE_WINT_T 1
23340 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
23341 if test "x$ac_cv_type_int8_t" = xyes; then :
23343 cat >>confdefs.h <<_ACEOF
23344 #define HAVE_INT8_T 1
23349 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
23350 if test "x$ac_cv_type_uint8_t" = xyes; then :
23352 cat >>confdefs.h <<_ACEOF
23353 #define HAVE_UINT8_T 1
23358 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
23359 if test "x$ac_cv_type_int16_t" = xyes; then :
23361 cat >>confdefs.h <<_ACEOF
23362 #define HAVE_INT16_T 1
23367 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
23368 if test "x$ac_cv_type_uint16_t" = xyes; then :
23370 cat >>confdefs.h <<_ACEOF
23371 #define HAVE_UINT16_T 1
23376 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
23377 if test "x$ac_cv_type_int32_t" = xyes; then :
23379 cat >>confdefs.h <<_ACEOF
23380 #define HAVE_INT32_T 1
23385 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
23386 if test "x$ac_cv_type_uint32_t" = xyes; then :
23388 cat >>confdefs.h <<_ACEOF
23389 #define HAVE_UINT32_T 1
23394 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23395 if test "x$ac_cv_type_intptr_t" = xyes; then :
23397 cat >>confdefs.h <<_ACEOF
23398 #define HAVE_INTPTR_T 1
23403 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23404 if test "x$ac_cv_type_uintptr_t" = xyes; then :
23406 cat >>confdefs.h <<_ACEOF
23407 #define HAVE_UINTPTR_T 1
23412 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
23413 if test "x$ac_cv_type_uint_t" = xyes; then :
23415 cat >>confdefs.h <<_ACEOF
23416 #define HAVE_UINT_T 1
23421 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23422 if test "x$ac_cv_type_pid_t" = xyes; then :
23424 cat >>confdefs.h <<_ACEOF
23425 #define HAVE_PID_T 1
23430 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23431 if test "x$ac_cv_type_size_t" = xyes; then :
23433 cat >>confdefs.h <<_ACEOF
23434 #define HAVE_SIZE_T 1
23439 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23440 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
23442 cat >>confdefs.h <<_ACEOF
23443 #define HAVE_PTRDIFF_T 1
23449 # The cast to long int works around a bug in the HP C Compiler
23450 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23451 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23452 # This bug is HP SR number 8606223364.
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
23454 $as_echo_n "checking size of char *... " >&6; }
23455 if ${ac_cv_sizeof_char_p+:} false; then :
23456 $as_echo_n "(cached) " >&6
23458 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
23461 if test "$ac_cv_type_char_p" = yes; then
23462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23464 as_fn_error 77 "cannot compute sizeof (char *)
23465 See \`config.log' for more details" "$LINENO" 5; }
23467 ac_cv_sizeof_char_p=0
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
23473 $as_echo "$ac_cv_sizeof_char_p" >&6; }
23477 cat >>confdefs.h <<_ACEOF
23478 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
23482 # The cast to long int works around a bug in the HP C Compiler
23483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23485 # This bug is HP SR number 8606223364.
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23487 $as_echo_n "checking size of int... " >&6; }
23488 if ${ac_cv_sizeof_int+:} false; then :
23489 $as_echo_n "(cached) " >&6
23491 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23494 if test "$ac_cv_type_int" = yes; then
23495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23497 as_fn_error 77 "cannot compute sizeof (int)
23498 See \`config.log' for more details" "$LINENO" 5; }
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23506 $as_echo "$ac_cv_sizeof_int" >&6; }
23510 cat >>confdefs.h <<_ACEOF
23511 #define SIZEOF_INT $ac_cv_sizeof_int
23515 # The cast to long int works around a bug in the HP C Compiler
23516 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23517 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23518 # This bug is HP SR number 8606223364.
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23520 $as_echo_n "checking size of long... " >&6; }
23521 if ${ac_cv_sizeof_long+:} false; then :
23522 $as_echo_n "(cached) " >&6
23524 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23527 if test "$ac_cv_type_long" = yes; then
23528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23530 as_fn_error 77 "cannot compute sizeof (long)
23531 See \`config.log' for more details" "$LINENO" 5; }
23533 ac_cv_sizeof_long=0
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23539 $as_echo "$ac_cv_sizeof_long" >&6; }
23543 cat >>confdefs.h <<_ACEOF
23544 #define SIZEOF_LONG $ac_cv_sizeof_long
23548 # The cast to long int works around a bug in the HP C Compiler
23549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23550 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23551 # This bug is HP SR number 8606223364.
23552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23553 $as_echo_n "checking size of short... " >&6; }
23554 if ${ac_cv_sizeof_short+:} false; then :
23555 $as_echo_n "(cached) " >&6
23557 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23560 if test "$ac_cv_type_short" = yes; then
23561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23563 as_fn_error 77 "cannot compute sizeof (short)
23564 See \`config.log' for more details" "$LINENO" 5; }
23566 ac_cv_sizeof_short=0
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23572 $as_echo "$ac_cv_sizeof_short" >&6; }
23576 cat >>confdefs.h <<_ACEOF
23577 #define SIZEOF_SHORT $ac_cv_sizeof_short
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
23586 $as_echo_n "checking for pathfind in -lgen... " >&6; }
23587 if ${ac_cv_lib_gen_pathfind+:} false; then :
23588 $as_echo_n "(cached) " >&6
23590 ac_check_lib_save_LIBS=$LIBS
23592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23593 /* end confdefs.h. */
23595 /* Override any GCC internal prototype to avoid an error.
23596 Use char because int might match the return type of a GCC
23597 builtin and then its argument prototype would still apply. */
23605 return pathfind ();
23610 if ac_fn_c_try_link "$LINENO"; then :
23611 ac_cv_lib_gen_pathfind=yes
23613 ac_cv_lib_gen_pathfind=no
23615 rm -f core conftest.err conftest.$ac_objext \
23616 conftest$ac_exeext conftest.$ac_ext
23617 LIBS=$ac_check_lib_save_LIBS
23619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
23620 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
23621 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
23622 cat >>confdefs.h <<_ACEOF
23623 #define HAVE_LIBGEN 1
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
23631 $as_echo_n "checking for gettext in -lintl... " >&6; }
23632 if ${ac_cv_lib_intl_gettext+:} false; then :
23633 $as_echo_n "(cached) " >&6
23635 ac_check_lib_save_LIBS=$LIBS
23636 LIBS="-lintl $LIBS"
23637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23638 /* end confdefs.h. */
23640 /* Override any GCC internal prototype to avoid an error.
23641 Use char because int might match the return type of a GCC
23642 builtin and then its argument prototype would still apply. */
23655 if ac_fn_c_try_link "$LINENO"; then :
23656 ac_cv_lib_intl_gettext=yes
23658 ac_cv_lib_intl_gettext=no
23660 rm -f core conftest.err conftest.$ac_objext \
23661 conftest$ac_exeext conftest.$ac_ext
23662 LIBS=$ac_check_lib_save_LIBS
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
23665 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
23666 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
23667 cat >>confdefs.h <<_ACEOF
23668 #define HAVE_LIBINTL 1
23671 LIBS="-lintl $LIBS"
23675 for ac_func in vprintf
23677 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23678 if test "x$ac_cv_func_vprintf" = xyes; then :
23679 cat >>confdefs.h <<_ACEOF
23680 #define HAVE_VPRINTF 1
23683 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23684 if test "x$ac_cv_func__doprnt" = xyes; then :
23686 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23694 for ac_header in vfork.h
23696 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
23697 if test "x$ac_cv_header_vfork_h" = xyes; then :
23698 cat >>confdefs.h <<_ACEOF
23699 #define HAVE_VFORK_H 1
23706 for ac_func in fork vfork
23708 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23709 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23710 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23711 cat >>confdefs.h <<_ACEOF
23712 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23718 if test "x$ac_cv_func_fork" = xyes; then
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
23720 $as_echo_n "checking for working fork... " >&6; }
23721 if ${ac_cv_func_fork_works+:} false; then :
23722 $as_echo_n "(cached) " >&6
23724 if test "$cross_compiling" = yes; then :
23725 ac_cv_func_fork_works=cross
23727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23728 /* end confdefs.h. */
23729 $ac_includes_default
23734 /* By Ruediger Kuhlmann. */
23735 return fork () < 0;
23741 if ac_fn_c_try_run "$LINENO"; then :
23742 ac_cv_func_fork_works=yes
23744 ac_cv_func_fork_works=no
23746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23747 conftest.$ac_objext conftest.beam conftest.$ac_ext
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
23752 $as_echo "$ac_cv_func_fork_works" >&6; }
23755 ac_cv_func_fork_works=$ac_cv_func_fork
23757 if test "x$ac_cv_func_fork_works" = xcross; then
23759 *-*-amigaos* | *-*-msdosdjgpp*)
23760 # Override, as these systems have only a dummy fork() stub
23761 ac_cv_func_fork_works=no
23764 ac_cv_func_fork_works=yes
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23768 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23770 ac_cv_func_vfork_works=$ac_cv_func_vfork
23771 if test "x$ac_cv_func_vfork" = xyes; then
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
23773 $as_echo_n "checking for working vfork... " >&6; }
23774 if ${ac_cv_func_vfork_works+:} false; then :
23775 $as_echo_n "(cached) " >&6
23777 if test "$cross_compiling" = yes; then :
23778 ac_cv_func_vfork_works=cross
23780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23781 /* end confdefs.h. */
23782 /* Thanks to Paul Eggert for this test. */
23783 $ac_includes_default
23784 #include <sys/wait.h>
23785 #ifdef HAVE_VFORK_H
23786 # include <vfork.h>
23788 /* On some sparc systems, changes by the child to local and incoming
23789 argument registers are propagated back to the parent. The compiler
23790 is told about this with #include <vfork.h>, but some compilers
23791 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23792 static variable whose address is put into a register that is
23793 clobbered by the vfork. */
23796 sparc_address_test (int arg)
23798 sparc_address_test (arg) int arg;
23801 static pid_t child;
23819 pid_t parent = getpid ();
23822 sparc_address_test (0);
23827 /* Here is another test for sparc vfork register problems. This
23828 test uses lots of local variables, at least as many local
23829 variables as main has allocated so far including compiler
23830 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23831 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23832 reuse the register of parent for one of the local variables,
23833 since it will think that parent can't possibly be used any more
23834 in this routine. Assigning to the local variable will thus
23835 munge parent in the parent process. */
23837 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23838 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23839 /* Convince the compiler that p..p7 are live; otherwise, it might
23840 use the same hardware register for all 8 local variables. */
23841 if (p != p1 || p != p2 || p != p3 || p != p4
23842 || p != p5 || p != p6 || p != p7)
23845 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23846 from child file descriptors. If the child closes a descriptor
23847 before it execs or exits, this munges the parent's descriptor
23848 as well. Test for this by closing stdout in the child. */
23849 _exit(close(fileno(stdout)) != 0);
23854 while (wait(&status) != child)
23857 /* Was there some problem with vforking? */
23860 /* Did the child fail? (This shouldn't happen.) */
23863 /* Did the vfork/compiler bug occur? */
23864 || parent != getpid()
23866 /* Did the file descriptor bug occur? */
23867 || fstat(fileno(stdout), &st) != 0
23872 if ac_fn_c_try_run "$LINENO"; then :
23873 ac_cv_func_vfork_works=yes
23875 ac_cv_func_vfork_works=no
23877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23878 conftest.$ac_objext conftest.beam conftest.$ac_ext
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
23883 $as_echo "$ac_cv_func_vfork_works" >&6; }
23886 if test "x$ac_cv_func_fork_works" = xcross; then
23887 ac_cv_func_vfork_works=$ac_cv_func_vfork
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23889 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23892 if test "x$ac_cv_func_vfork_works" = xyes; then
23894 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
23898 $as_echo "#define vfork fork" >>confdefs.h
23901 if test "x$ac_cv_func_fork_works" = xyes; then
23903 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
23907 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
23908 strrchr strsignal fchmod fstat chmod
23910 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23911 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23912 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23913 cat >>confdefs.h <<_ACEOF
23914 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
23921 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
23922 if ${ac_cv_path_SED+:} false; then :
23923 $as_echo_n "(cached) " >&6
23925 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
23926 for ac_i in 1 2 3 4 5 6 7; do
23927 ac_script="$ac_script$as_nl$ac_script"
23929 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
23930 { ac_script=; unset ac_script;}
23931 if test -z "$SED"; then
23932 ac_path_SED_found=false
23933 # Loop through the user's path and test for each of PROGNAME-LIST
23934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23935 for as_dir in $PATH
23938 test -z "$as_dir" && as_dir=.
23939 for ac_prog in sed gsed; do
23940 for ac_exec_ext in '' $ac_executable_extensions; do
23941 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
23942 as_fn_executable_p "$ac_path_SED" || continue
23943 # Check for GNU ac_path_SED and select it if it is found.
23944 # Check for GNU $ac_path_SED
23945 case `"$ac_path_SED" --version 2>&1` in
23947 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
23950 $as_echo_n 0123456789 >"conftest.in"
23953 cat "conftest.in" "conftest.in" >"conftest.tmp"
23954 mv "conftest.tmp" "conftest.in"
23955 cp "conftest.in" "conftest.nl"
23956 $as_echo '' >> "conftest.nl"
23957 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
23958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
23959 as_fn_arith $ac_count + 1 && ac_count=$as_val
23960 if test $ac_count -gt ${ac_path_SED_max-0}; then
23961 # Best one so far, save it but keep looking for a better one
23962 ac_cv_path_SED="$ac_path_SED"
23963 ac_path_SED_max=$ac_count
23965 # 10*(2^10) chars as input seems more than enough
23966 test $ac_count -gt 10 && break
23968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
23971 $ac_path_SED_found && break 3
23976 if test -z "$ac_cv_path_SED"; then
23977 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
23980 ac_cv_path_SED=$SED
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
23985 $as_echo "$ac_cv_path_SED" >&6; }
23986 SED="$ac_cv_path_SED"
23991 POSIX_SHELL=`which bash`
23992 test -x "$POSIX_SHELL" && break
23993 POSIX_SHELL=`which dash`
23994 test -x "$POSIX_SHELL" && break
23995 POSIX_SHELL=/usr/xpg4/bin/sh
23996 test -x "$POSIX_SHELL" && break
23997 POSIX_SHELL=`/bin/sh -c '
23999 if ! true ; then exit 1 ; fi
24001 test -x "$POSIX_SHELL" && break
24002 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
24005 cat >>confdefs.h <<_ACEOF
24006 #define POSIX_SHELL "${POSIX_SHELL}"
24013 LIBOPTS_BUILD_BLOCKED=''
24016 NEED_LIBOPTS_DIR=''
24018 # Check whether --enable-local-libopts was given.
24019 if test "${enable_local_libopts+set}" = set; then :
24020 enableval=$enable_local_libopts;
24021 if test x$enableval = xyes ; then
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
24023 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
24024 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
24025 NEED_LIBOPTS_DIR=true
24026 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
24031 # Check whether --enable-libopts-install was given.
24032 if test "${enable_libopts_install+set}" = set; then :
24033 enableval=$enable_libopts_install;
24036 if test "X${enable_libopts_install}" = Xyes; then
24037 INSTALL_LIBOPTS_TRUE=
24038 INSTALL_LIBOPTS_FALSE='#'
24040 INSTALL_LIBOPTS_TRUE='#'
24041 INSTALL_LIBOPTS_FALSE=
24045 if test -z "${NEED_LIBOPTS_DIR}" ; then
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
24047 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
24049 # Check whether --with-autoopts-config was given.
24050 if test "${with_autoopts_config+set}" = set; then :
24051 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
24054 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
24055 if ${lo_cv_with_autoopts_config+:} false; then :
24056 $as_echo_n "(cached) " >&6
24058 if autoopts-config --help 2>/dev/null 1>&2
24059 then lo_cv_with_autoopts_config=autoopts-config
24060 elif libopts-config --help 2>/dev/null 1>&2
24061 then lo_cv_with_autoopts_config=libopts-config
24062 else lo_cv_with_autoopts_config=no ; fi
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
24065 $as_echo "$lo_cv_with_autoopts_config" >&6; }
24068 # end of AC_ARG_WITH
24070 if ${lo_cv_test_autoopts+:} false; then :
24071 $as_echo_n "(cached) " >&6
24074 if test -z "${lo_cv_with_autoopts_config}" \
24075 -o X"${lo_cv_with_autoopts_config}" = Xno
24077 if autoopts-config --help 2>/dev/null 1>&2
24078 then lo_cv_with_autoopts_config=autoopts-config
24079 elif libopts-config --help 2>/dev/null 1>&2
24080 then lo_cv_with_autoopts_config=libopts-config
24081 else lo_cv_with_autoopts_config=false ; fi
24083 lo_cv_test_autoopts=`
24084 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
24085 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
24086 then lo_cv_test_autoopts=no ; fi
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
24091 $as_echo "${lo_cv_test_autoopts}" >&6; }
24093 if test "X${lo_cv_test_autoopts}" != Xno
24095 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
24096 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
24098 LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
24099 LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
24100 NEED_LIBOPTS_DIR=true
24102 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
24103 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
24104 NEED_LIBOPTS_DIR=''
24106 if test -n "${NEED_LIBOPTS_DIR}"; then
24108 NEED_LIBOPTS_FALSE='#'
24110 NEED_LIBOPTS_TRUE='#'
24111 NEED_LIBOPTS_FALSE=
24116 LIBOPTS_DIR=libopts
24119 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
24122 if test -z "$NEED_LIBOPTS_TRUE"; then :
24126 # Check to see if a reg expr header is specified.
24129 # Check whether --with-regex-header was given.
24130 if test "${with_regex_header+set}" = set; then :
24131 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
24133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
24134 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
24135 if ${libopts_cv_with_regex_header+:} false; then :
24136 $as_echo_n "(cached) " >&6
24138 libopts_cv_with_regex_header=no
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
24141 $as_echo "$libopts_cv_with_regex_header" >&6; }
24144 # end of AC_ARG_WITH
24145 if test "X${libopts_cv_with_regex_header}" != Xno
24147 cat >>confdefs.h <<_ACEOF
24148 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
24153 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
24159 # Check to see if a working libregex can be found.
24162 # Check whether --with-libregex was given.
24163 if test "${with_libregex+set}" = set; then :
24164 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
24167 $as_echo_n "checking whether with-libregex was specified... " >&6; }
24168 if ${libopts_cv_with_libregex_root+:} false; then :
24169 $as_echo_n "(cached) " >&6
24171 libopts_cv_with_libregex_root=no
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
24174 $as_echo "$libopts_cv_with_libregex_root" >&6; }
24177 # end of AC_ARG_WITH libregex
24179 if test "${with_libregex+set}" = set && \
24180 test "X${withval}" = Xno
24181 then ## disabled by request
24182 libopts_cv_with_libregex_root=no
24183 libopts_cv_with_libregex_cflags=no
24184 libopts_cv_with_libregex_libs=no
24188 # Check whether --with-libregex-cflags was given.
24189 if test "${with_libregex_cflags+set}" = set; then :
24190 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
24193 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
24194 if ${libopts_cv_with_libregex_cflags+:} false; then :
24195 $as_echo_n "(cached) " >&6
24197 libopts_cv_with_libregex_cflags=no
24199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
24200 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
24203 # end of AC_ARG_WITH libregex-cflags
24206 # Check whether --with-libregex-libs was given.
24207 if test "${with_libregex_libs+set}" = set; then :
24208 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
24211 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
24212 if ${libopts_cv_with_libregex_libs+:} false; then :
24213 $as_echo_n "(cached) " >&6
24215 libopts_cv_with_libregex_libs=no
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
24218 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
24221 # end of AC_ARG_WITH libregex-libs
24223 case "X${libopts_cv_with_libregex_cflags}" in
24225 case "X${libopts_cv_with_libregex_root}" in
24226 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
24227 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
24230 case "X${libopts_cv_with_libregex_libs}" in
24232 case "X${libopts_cv_with_libregex_root}" in
24233 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
24234 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
24237 libopts_save_CPPFLAGS="${CPPFLAGS}"
24238 libopts_save_LIBS="${LIBS}"
24239 case "X${libopts_cv_with_libregex_cflags}" in
24241 libopts_cv_with_libregex_cflags="" ;;
24242 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
24244 case "X${libopts_cv_with_libregex_libs}" in
24246 libopts_cv_with_libregex_libs="" ;;
24248 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
24253 $as_echo_n "checking whether libregex functions properly... " >&6; }
24254 if ${libopts_cv_with_libregex+:} false; then :
24255 $as_echo_n "(cached) " >&6
24258 if test "$cross_compiling" = yes; then :
24259 libopts_cv_with_libregex=no
24261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24262 /* end confdefs.h. */
24264 #include <stdlib.h>
24265 #include <sys/types.h>
24266 #include REGEX_HEADER
24268 void comp_re(char const * pzPat) {
24269 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
24270 if (res == 0) return;
24274 comp_re( "^.*\$" );
24275 comp_re( "()|no.*" );
24277 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
24278 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
24279 fputs( "error: regex -->.<-- did not match\n", stderr );
24284 if ac_fn_c_try_run "$LINENO"; then :
24285 libopts_cv_with_libregex=yes
24287 libopts_cv_with_libregex=no
24289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24290 conftest.$ac_objext conftest.beam conftest.$ac_ext
24292 # end of AC_RUN_IFELSE
24295 # end of AC_CACHE_VAL for libopts_cv_with_libregex
24296 fi ## disabled by request
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
24298 $as_echo "${libopts_cv_with_libregex}" >&6; }
24299 if test "X${libopts_cv_with_libregex}" != Xno
24302 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
24305 CPPFLAGS="${libopts_save_CPPFLAGS}"
24306 LIBS="${libopts_save_LIBS}"
24307 libopts_cv_with_libregex_root=no
24308 libopts_cv_with_libregex_cflags=no
24309 libopts_cv_with_libregex_libs=no
24310 libopts_cv_with_libregex=no
24315 # Check to see if pathfind(3) works.
24317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
24318 $as_echo_n "checking whether pathfind(3) works... " >&6; }
24319 if ${libopts_cv_run_pathfind+:} false; then :
24320 $as_echo_n "(cached) " >&6
24323 if test "$cross_compiling" = yes; then :
24324 libopts_cv_run_pathfind=no
24327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24328 /* end confdefs.h. */
24329 #include <string.h>
24330 #include <stdlib.h>
24331 int main (int argc, char ** argv) {
24332 char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
24333 return (pz == 0) ? 1 : 0;
24336 if ac_fn_c_try_run "$LINENO"; then :
24337 libopts_cv_run_pathfind=yes
24339 libopts_cv_run_pathfind=no
24341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24342 conftest.$ac_objext conftest.beam conftest.$ac_ext
24344 # end of RUN_IFELSE
24347 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
24348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
24349 $as_echo "${libopts_cv_run_pathfind}" >&6; }
24350 if test "X${libopts_cv_run_pathfind}" != Xno
24353 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
24359 # Check to see if /dev/zero is readable device.
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
24362 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
24363 if ${libopts_cv_test_dev_zero+:} false; then :
24364 $as_echo_n "(cached) " >&6
24367 libopts_cv_test_dev_zero=`exec 2> /dev/null
24368 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
24369 test -z "${dzero}" && exit 1
24371 if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
24372 then libopts_cv_test_dev_zero=no
24376 # end of CACHE_VAL of libopts_cv_test_dev_zero
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
24378 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
24379 if test "X${libopts_cv_test_dev_zero}" != Xno
24382 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
24388 # Check to see if we have a functional realpath(3C).
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
24391 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
24392 if ${libopts_cv_run_realpath+:} false; then :
24393 $as_echo_n "(cached) " >&6
24396 if test "$cross_compiling" = yes; then :
24397 libopts_cv_run_realpath=no
24400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24401 /* end confdefs.h. */
24402 #include <limits.h>
24403 #include <stdlib.h>
24404 int main (int argc, char ** argv) {
24408 char zPath[PATH_MAX+1];
24410 char *pz = realpath(argv[0], zPath);
24411 return (pz == zPath) ? 0 : 1;
24414 if ac_fn_c_try_run "$LINENO"; then :
24415 libopts_cv_run_realpath=yes
24417 libopts_cv_run_realpath=no
24419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24420 conftest.$ac_objext conftest.beam conftest.$ac_ext
24422 # end of RUN_IFELSE
24425 # end of AC_CACHE_VAL for libopts_cv_run_realpath
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
24427 $as_echo "${libopts_cv_run_realpath}" >&6; }
24428 if test "X${libopts_cv_run_realpath}" != Xno
24431 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
24437 # Check to see if strftime() works.
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
24440 $as_echo_n "checking whether strftime() works... " >&6; }
24441 if ${libopts_cv_run_strftime+:} false; then :
24442 $as_echo_n "(cached) " >&6
24445 if test "$cross_compiling" = yes; then :
24446 libopts_cv_run_strftime=no
24449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24450 /* end confdefs.h. */
24452 #include <string.h>
24455 static char const z[] = "Thursday Aug 28 240";
24457 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
24458 tm.tm_min = 44; /* minutes after the hour [0, 59] */
24459 tm.tm_hour = 12; /* hour since midnight [0, 23] */
24460 tm.tm_mday = 28; /* day of the month [1, 31] */
24461 tm.tm_mon = 7; /* months since January [0, 11] */
24462 tm.tm_year = 86; /* years since 1900 */
24463 tm.tm_wday = 4; /* days since Sunday [0, 6] */
24464 tm.tm_yday = 239; /* days since January 1 [0, 365] */
24465 tm.tm_isdst = 1; /* flag for daylight savings time */
24466 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
24467 return (strcmp( t_buf, z ) != 0); }
24469 if ac_fn_c_try_run "$LINENO"; then :
24470 libopts_cv_run_strftime=yes
24472 libopts_cv_run_strftime=no
24474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24475 conftest.$ac_objext conftest.beam conftest.$ac_ext
24477 # end of RUN_IFELSE
24480 # end of AC_CACHE_VAL for libopts_cv_run_strftime
24481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
24482 $as_echo "${libopts_cv_run_strftime}" >&6; }
24483 if test "X${libopts_cv_run_strftime}" != Xno
24486 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
24492 # Check to see if fopen accepts "b" mode.
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
24495 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
24496 if ${libopts_cv_run_fopen_binary+:} false; then :
24497 $as_echo_n "(cached) " >&6
24500 if test "$cross_compiling" = yes; then :
24501 libopts_cv_run_fopen_binary=no
24504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24505 /* end confdefs.h. */
24507 int main (int argc, char ** argv) {
24508 FILE * fp = fopen("conftest.$ac_ext", "rb");
24509 return (fp == NULL) ? 1 : fclose(fp); }
24511 if ac_fn_c_try_run "$LINENO"; then :
24512 libopts_cv_run_fopen_binary=yes
24514 libopts_cv_run_fopen_binary=no
24516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24517 conftest.$ac_objext conftest.beam conftest.$ac_ext
24519 # end of RUN_IFELSE
24522 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
24524 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
24525 if test "X${libopts_cv_run_fopen_binary}" != Xno
24528 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
24532 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
24538 # Check to see if fopen accepts "t" mode.
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
24541 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
24542 if ${libopts_cv_run_fopen_text+:} false; then :
24543 $as_echo_n "(cached) " >&6
24546 if test "$cross_compiling" = yes; then :
24547 libopts_cv_run_fopen_text=no
24550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24551 /* end confdefs.h. */
24553 int main (int argc, char ** argv) {
24554 FILE * fp = fopen("conftest.$ac_ext", "rt");
24555 return (fp == NULL) ? 1 : fclose(fp); }
24557 if ac_fn_c_try_run "$LINENO"; then :
24558 libopts_cv_run_fopen_text=yes
24560 libopts_cv_run_fopen_text=no
24562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24563 conftest.$ac_objext conftest.beam conftest.$ac_ext
24565 # end of RUN_IFELSE
24568 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
24570 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
24571 if test "X${libopts_cv_run_fopen_text}" != Xno
24574 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
24578 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
24584 # Check to see if not wanting optional option args.
24586 # Check whether --enable-optional-args was given.
24587 if test "${enable_optional_args+set}" = set; then :
24588 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
24591 $as_echo_n "checking whether not wanting optional option args... " >&6; }
24592 if ${libopts_cv_enable_optional_args+:} false; then :
24593 $as_echo_n "(cached) " >&6
24595 libopts_cv_enable_optional_args=yes
24597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
24598 $as_echo "$libopts_cv_enable_optional_args" >&6; }
24601 # end of AC_ARG_ENABLE
24602 if test "X${libopts_cv_enable_optional_args}" = Xno
24605 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
24614 ac_config_files="$ac_config_files libopts/Makefile"
24616 # end of AC_DEFUN of LIBOPTS_CHECK
24619 # From when we only used libevent for sntp:
24622 # [NTP_LIBEVENT_CHECK],
24623 # [NTP_LIBEVENT_CHECK_NOBUILD]
24628 ntp_pkgconfig_min_version='0.15.0'
24629 if test -n "$ac_tool_prefix"; then
24630 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24631 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24633 $as_echo_n "checking for $ac_word... " >&6; }
24634 if ${ac_cv_path_PKG_CONFIG+:} false; then :
24635 $as_echo_n "(cached) " >&6
24637 case $PKG_CONFIG in
24639 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24643 for as_dir in $PATH
24646 test -z "$as_dir" && as_dir=.
24647 for ac_exec_ext in '' $ac_executable_extensions; do
24648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24649 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24660 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24661 if test -n "$PKG_CONFIG"; then
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
24663 $as_echo "$PKG_CONFIG" >&6; }
24665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24666 $as_echo "no" >&6; }
24671 if test -z "$ac_cv_path_PKG_CONFIG"; then
24672 ac_pt_PKG_CONFIG=$PKG_CONFIG
24673 # Extract the first word of "pkg-config", so it can be a program name with args.
24674 set dummy pkg-config; ac_word=$2
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24676 $as_echo_n "checking for $ac_word... " >&6; }
24677 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
24678 $as_echo_n "(cached) " >&6
24680 case $ac_pt_PKG_CONFIG in
24682 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
24685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24686 for as_dir in $PATH
24689 test -z "$as_dir" && as_dir=.
24690 for ac_exec_ext in '' $ac_executable_extensions; do
24691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24692 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24703 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
24704 if test -n "$ac_pt_PKG_CONFIG"; then
24705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
24706 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24709 $as_echo "no" >&6; }
24712 if test "x$ac_pt_PKG_CONFIG" = x; then
24715 case $cross_compiling:$ac_tool_warned in
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24719 ac_tool_warned=yes ;;
24721 PKG_CONFIG=$ac_pt_PKG_CONFIG
24724 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
24727 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
24728 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
24730 case "$PKG_CONFIG" in
24732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
24733 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
24734 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
24735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24736 $as_echo "yes" >&6; }
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24739 $as_echo "no" >&6; }
24748 # Check whether --enable-local-libevent was given.
24749 if test "${enable_local_libevent+set}" = set; then :
24750 enableval=$enable_local_libevent; ntp_use_local_libevent=$enableval
24752 ntp_use_local_libevent=${ntp_use_local_libevent-detect}
24765 ntp_libevent_min_version=2
24766 ntp_libevent_tearoff=libevent
24772 case "$ntp_use_local_libevent" in
24775 *) # If we have (a good enough) pkg-config, see if it can find libevent
24776 case "$PKG_CONFIG" in
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libevent $ntp_libevent_min_version or later is installed" >&5
24779 $as_echo_n "checking if libevent $ntp_libevent_min_version or later is installed... " >&6; }
24780 if $PKG_CONFIG --atleast-version=$ntp_libevent_min_version libevent
24782 ntp_use_local_libevent=no
24783 ntp_libevent_version="`$PKG_CONFIG --modversion libevent`"
24784 case "$ntp_libevent_version" in
24786 *) ntp_libevent_version='(unknown)' ;;
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_libevent_version" >&5
24789 $as_echo "yes, version $ntp_libevent_version" >&6; }
24790 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
24791 CPPFLAGS_LIBEVENT=`$PKG_CONFIG --cflags-only-I libevent`
24792 # HMS: I hope the following is accurate.
24793 # We don't need -levent, we only need -levent_core.
24794 # While we could grab only the -L stuff, there *might* be
24795 # other flags there we want. Originally we just removed -levent
24796 # but then somebody decided to install -levent-2.0
24797 # LDADD_LIBEVENT=`$PKG_CONFIG --libs libevent | sed 's:-levent::'`
24798 # So now we dance...
24800 for i in `$PKG_CONFIG --libs libevent` `$PKG_CONFIG --cflags-only-other libevent_pthreads`
24805 *) case "$LDADD_LIBEVENT" in
24806 '') LDADD_LIBEVENT="$i" ;;
24807 *) LDADD_LIBEVENT="$LDADD_LIBEVENT $i" ;;
24812 case "$LIBISC_PTHREADS_NOTHREADS" in
24814 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_pthreads"
24816 LDADD_LIBEVENT="$LDADD_LIBEVENT -levent_core"
24818 ntp_use_local_libevent=yes
24819 # HMS: do we only need to do this if LIBISC_PTHREADS_NOTHREADS
24821 CFLAGS_LIBEVENT=`$PKG_CONFIG --cflags libevent_pthreads`
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24823 $as_echo "no" >&6; }
24827 ntp_use_local_libevent=yes
24833 case "$ntp_use_local_libevent" in
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: Using libevent tearoff" >&5
24836 $as_echo "$as_me: Using libevent tearoff" >&6;}
24837 CPPFLAGS_LIBEVENT="-I\$(top_builddir)/$ntp_libevent_tearoff/include -I\$(top_srcdir)/$ntp_libevent_tearoff/include"
24838 case "$LIBISC_PTHREADS_NOTHREADS" in
24840 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_pthreads.la \$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
24843 LDADD_LIBEVENT="\$(top_builddir)/$ntp_libevent_tearoff/libevent_core.la"
24848 if test "x$ntp_use_local_libevent" = "xyes"; then
24849 BUILD_LIBEVENT_TRUE=
24850 BUILD_LIBEVENT_FALSE='#'
24852 BUILD_LIBEVENT_TRUE='#'
24853 BUILD_LIBEVENT_FALSE=
24859 case "$ntp_libevent_tearoff" in
24863 as_fn_error $? "ntp_libevent.m4 dir must be libevent, not $ntp_libevent_tearoff" "$LINENO" 5
24867 case "$ntp_use_local_libevent" in
24869 ac_configure_args=" --disable-openssl${ac_configure_args}"
24870 ac_configure_args=" --disable-shared${ac_configure_args}"
24871 ac_configure_args=" --disable-libevent-regress${ac_configure_args}"
24872 ac_configure_args=" --disable-libevent-install${ac_configure_args}"
24873 ac_configure_args=" --enable-silent-rules${ac_configure_args}"
24874 ac_configure_args=" --enable-function-sections${ac_configure_args}"
24875 ac_configure_args=" LEP_CFLAGS='${NTP_HARD_CFLAGS}'${ac_configure_args}"
24876 ac_configure_args=" LEP_CPPFLAGS='${NTP_HARD_CPPFLAGS}'${ac_configure_args}"
24877 ac_configure_args=" LEP_LDFLAGS='${NTP_HARD_LDFLAGS}'${ac_configure_args}"
24878 subdirs="$subdirs libevent"
24882 NTP_FORCE_LIBEVENT_DIST=libevent
24888 # Checks for libraries.
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
24894 $as_echo_n "checking for library containing openlog... " >&6; }
24895 if ${ac_cv_search_openlog+:} false; then :
24896 $as_echo_n "(cached) " >&6
24898 ac_func_search_save_LIBS=$LIBS
24899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24900 /* end confdefs.h. */
24902 /* Override any GCC internal prototype to avoid an error.
24903 Use char because int might match the return type of a GCC
24904 builtin and then its argument prototype would still apply. */
24917 for ac_lib in '' gen syslog; do
24918 if test -z "$ac_lib"; then
24919 ac_res="none required"
24922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24924 if ac_fn_c_try_link "$LINENO"; then :
24925 ac_cv_search_openlog=$ac_res
24927 rm -f core conftest.err conftest.$ac_objext \
24929 if ${ac_cv_search_openlog+:} false; then :
24933 if ${ac_cv_search_openlog+:} false; then :
24936 ac_cv_search_openlog=no
24938 rm conftest.$ac_ext
24939 LIBS=$ac_func_search_save_LIBS
24941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
24942 $as_echo "$ac_cv_search_openlog" >&6; }
24943 ac_res=$ac_cv_search_openlog
24944 if test "$ac_res" != no; then :
24945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24946 case "$ac_cv_search_openlog" in
24947 'none required') ;;
24949 *) LIB_SYSLOG="$ac_cv_search_openlog $LIB_SYSLOG" ;;
24955 # Checks for header files.
24956 for ac_header in netdb.h string.h strings.h syslog.h
24958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24959 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24960 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24961 cat >>confdefs.h <<_ACEOF
24962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24971 for ac_header in sysexits.h
24973 ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
24974 if test "x$ac_cv_header_sysexits_h" = xyes; then :
24975 cat >>confdefs.h <<_ACEOF
24976 #define HAVE_SYSEXITS_H 1
24982 $as_echo "#define EX_OK 0" >>confdefs.h
24985 $as_echo "#define EX_SOFTWARE 70" >>confdefs.h
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for facilitynames in syslog.h" >&5
24995 $as_echo_n "checking for facilitynames in syslog.h... " >&6; }
24996 if ${ac_cv_HAVE_SYSLOG_FACILITYNAMES+:} false; then :
24997 $as_echo_n "(cached) " >&6
25000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25001 /* end confdefs.h. */
25003 #define SYSLOG_NAMES
25004 #include <stdlib.h>
25005 #include <syslog.h>
25010 void *fnames; fnames = facilitynames;
25015 if ac_fn_c_try_compile "$LINENO"; then :
25016 ac_cv_HAVE_SYSLOG_FACILITYNAMES=yes
25018 ac_cv_HAVE_SYSLOG_FACILITYNAMES=no
25020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&5
25023 $as_echo "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" >&6; }
25024 case "$ac_cv_HAVE_SYSLOG_FACILITYNAMES" in
25027 $as_echo "#define HAVE_SYSLOG_FACILITYNAMES 1" >>confdefs.h
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No facilitynames in <syslog.h>" >&5
25032 $as_echo "$as_me: WARNING: No facilitynames in <syslog.h>" >&2;}
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: facilitynames in <syslog.h> - cross-compiling" >&5
25036 $as_echo "$as_me: WARNING: facilitynames in <syslog.h> - cross-compiling" >&2;}
25041 # Checks for typedefs, structures, and compiler characteristics.
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
25043 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
25044 if ${ac_cv_header_stdbool_h+:} false; then :
25045 $as_echo_n "(cached) " >&6
25047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25048 /* end confdefs.h. */
25050 #include <stdbool.h>
25052 "error: bool is not defined"
25055 "error: false is not defined"
25058 "error: false is not 0"
25061 "error: true is not defined"
25064 "error: true is not 1"
25066 #ifndef __bool_true_false_are_defined
25067 "error: __bool_true_false_are_defined is not defined"
25070 struct s { _Bool s: 1; _Bool t; } s;
25072 char a[true == 1 ? 1 : -1];
25073 char b[false == 0 ? 1 : -1];
25074 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
25075 char d[(bool) 0.5 == true ? 1 : -1];
25076 /* See body of main program for 'e'. */
25077 char f[(_Bool) 0.0 == false ? 1 : -1];
25079 char h[sizeof (_Bool)];
25080 char i[sizeof s.t];
25081 enum { j = false, k = true, l = false * true, m = true * 256 };
25082 /* The following fails for
25083 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
25085 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
25086 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
25087 /* Catch a bug in an HP-UX C compiler. See
25088 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
25089 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
25101 /* Refer to every declared value, to avoid compiler optimizations. */
25102 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
25103 + !m + !n + !o + !p + !q + !pq);
25109 if ac_fn_c_try_compile "$LINENO"; then :
25110 ac_cv_header_stdbool_h=yes
25112 ac_cv_header_stdbool_h=no
25114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
25117 $as_echo "$ac_cv_header_stdbool_h" >&6; }
25118 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
25119 if test "x$ac_cv_type__Bool" = xyes; then :
25121 cat >>confdefs.h <<_ACEOF
25122 #define HAVE__BOOL 1
25129 if test $ac_cv_header_stdbool_h = yes; then
25131 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
25144 # Check whether --with-crypto was given.
25145 if test "${with_crypto+set}" = set; then :
25146 withval=$with_crypto;
25150 # Check whether --with-openssl-libdir was given.
25151 if test "${with_openssl_libdir+set}" = set; then :
25152 withval=$with_openssl_libdir;
25156 # Check whether --with-openssl-incdir was given.
25157 if test "${with_openssl_incdir+set}" = set; then :
25158 withval=$with_openssl_incdir;
25162 # Check whether --with-rpath was given.
25163 if test "${with_rpath+set}" = set; then :
25164 withval=$with_rpath;
25169 ntp_openssl_from_pkg_config=no
25171 with_crypto=${with_crypto:-openssl,libcrypto}
25172 case "$with_crypto" in
25174 with_crypto=openssl,libcrypto
25178 case "$with_crypto:${PKG_CONFIG:+notempty}:${with_openssl_libdir-notgiven}:${with_openssl_incdir-notgiven}" in
25180 *:notempty:notgiven:notgiven)
25181 for pkg in `echo $with_crypto | sed -e 's/,/ /'`; do
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for $pkg" >&5
25183 $as_echo_n "checking pkg-config for $pkg... " >&6; }
25184 if $PKG_CONFIG --exists $pkg ; then
25185 CPPFLAGS_NTP="$CPPFLAGS_NTP `$PKG_CONFIG --cflags-only-I $pkg`"
25186 CFLAGS_NTP="$CFLAGS_NTP `$PKG_CONFIG --cflags-only-other $pkg`"
25187 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-L $pkg`"
25188 LDADD_NTP="$LDADD_NTP `$PKG_CONFIG --libs-only-l --static $pkg`"
25189 LDFLAGS_NTP="$LDFLAGS_NTP `$PKG_CONFIG --libs-only-other $pkg`"
25192 ntp_openssl_from_pkg_config=yes
25193 ntp_openssl_version="`$PKG_CONFIG --modversion $pkg`"
25194 case "$ntp_openssl_version" in
25196 *) ntp_openssl_version='(unknown)' ;;
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, version $ntp_openssl_version" >&5
25199 $as_echo "yes, version $ntp_openssl_version" >&6; }
25203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25204 $as_echo "no" >&6; }
25207 case "$with_crypto:$ntp_openssl" in
25212 case "${with_rpath-notgiven}" in
25214 # Lame - what to do if we need -Wl... but not -R?
25220 # This may really only be true for gcc
25221 need_dash_Wlrpath=1
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
25234 $as_echo_n "checking for openssl library directory... " >&6; }
25235 with_openssl_libdir=${with_openssl_libdir-notgiven}
25236 case "$with_openssl_libdir" in
25240 with_openssl_libdir=default
25243 with_openssl_libdir=no
25247 case "$with_openssl_libdir" in
25250 with_openssl_libdir="/usr/lib /usr/lib/openssl /usr/sfw/lib"
25251 with_openssl_libdir="$with_openssl_libdir /usr/local/lib"
25252 with_openssl_libdir="$with_openssl_libdir /usr/local/ssl/lib /lib"
25254 case "$with_openssl_libdir" in
25257 *) # Look for libcrypto.a and libssl.a:
25258 for i in $with_openssl_libdir no
25262 test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
25265 test -f $i/libcrypto.so -a -f $i/libssl.so && break
25266 test -f $i/libcrypto.a -a -f $i/libssl.a && break
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_libdir" >&5
25274 $as_echo "$openssl_libdir" >&6; }
25275 case "$openssl_libdir" in
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&5
25279 $as_echo "$as_me: WARNING: libcrypto and libssl not found in any of $with_openssl_libdir" >&2;}
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
25283 $as_echo_n "checking for openssl include directory... " >&6; }
25284 with_openssl_incdir=${with_openssl_incdir-notgiven}
25285 case "$with_openssl_incdir" in
25288 with_openssl_incdir="/usr/include /usr/sfw/include"
25289 with_openssl_incdir="$with_openssl_incdir /usr/local/include"
25290 with_openssl_incdir="$with_openssl_incdir /usr/local/ssl/include"
25292 case "$with_openssl_incdir" in
25295 *) # look for openssl/evp.h:
25296 for i in $with_openssl_incdir no
25298 test -f $i/openssl/evp.h && break
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_incdir" >&5
25305 $as_echo "$openssl_incdir" >&6; }
25306 case "$openssl_incdir" in
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&5
25310 $as_echo "$as_me: WARNING: did not find openssl/evp.h in any of $with_openssl_incdir" >&2;}
25312 if test -z "$openssl_libdir" -o -z "$openssl_incdir"
25319 case "$ntp_openssl" in
25321 # We have OpenSSL inc/lib dirs - use them.
25322 case "$openssl_incdir" in
25326 CPPFLAGS_NTP="$CPPFLAGS_NTP -I$openssl_incdir"
25329 case "$openssl_libdir" in
25333 LDADD_NTP="$LDADD_NTP -L$openssl_libdir"
25334 case "$need_dash_r" in
25336 LDFLAGS_NTP="$LDFLAGS_NTP -R$openssl_libdir"
25338 case "$need_dash_Wlrpath" in
25340 LDFLAGS_NTP="$LDFLAGS_NTP -Wl,-rpath,$openssl_libdir"
25344 LDADD_NTP="$LDADD_NTP -lcrypto"
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will use crypto" >&5
25349 $as_echo_n "checking if we will use crypto... " >&6; }
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_openssl" >&5
25351 $as_echo "$ntp_openssl" >&6; }
25353 case "$ntp_openssl" in
25355 for ac_header in openssl/cmac.h openssl/hmac.h
25357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25358 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25359 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25360 cat >>confdefs.h <<_ACEOF
25361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25369 $as_echo "#define OPENSSL /**/" >>confdefs.h
25371 case "$VER_SUFFIX" in
25373 *) as_fn_error $? "OPENSSL set but no 'o' in VER_SUFFIX!" "$LINENO" 5 ;;
25378 NTPO_SAVED_CPPFLAGS="$CPPFLAGS"
25379 CPPFLAGS="$CPPFLAGS $CPPFLAGS_NTP"
25380 NTPO_SAVED_LIBS="$LIBS"
25383 # check for linking with -lcrypto failure, and try -lcrypto -lz.
25384 # Helps m68k-atari-mint
25386 case "$ntp_openssl:$ntp_openssl_from_pkg_config" in
25388 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto alone works" >&5
25390 $as_echo_n "checking if linking with -lcrypto alone works... " >&6; }
25391 if ${ntp_cv_bare_lcrypto+:} false; then :
25392 $as_echo_n "(cached) " >&6
25394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25395 /* end confdefs.h. */
25397 #include "openssl/err.h"
25398 #include "openssl/evp.h"
25404 ERR_load_crypto_strings();
25405 OpenSSL_add_all_algorithms();
25412 if ac_fn_c_try_link "$LINENO"; then :
25413 ntp_cv_bare_lcrypto=yes
25415 ntp_cv_bare_lcrypto=no
25418 rm -f core conftest.err conftest.$ac_objext \
25419 conftest$ac_exeext conftest.$ac_ext
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_bare_lcrypto" >&5
25423 $as_echo "$ntp_cv_bare_lcrypto" >&6; }
25424 case "$ntp_cv_bare_lcrypto" in
25426 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP -lz"
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with -lcrypto -lz works" >&5
25428 $as_echo_n "checking if linking with -lcrypto -lz works... " >&6; }
25429 if ${ntp_cv_lcrypto_lz+:} false; then :
25430 $as_echo_n "(cached) " >&6
25432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25433 /* end confdefs.h. */
25435 #include "openssl/err.h"
25436 #include "openssl/evp.h"
25442 ERR_load_crypto_strings();
25443 OpenSSL_add_all_algorithms();
25450 if ac_fn_c_try_link "$LINENO"; then :
25451 ntp_cv_lcrypto_lz=yes
25453 ntp_cv_lcrypto_lz=no
25456 rm -f core conftest.err conftest.$ac_objext \
25457 conftest$ac_exeext conftest.$ac_ext
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_lcrypto_lz" >&5
25461 $as_echo "$ntp_cv_lcrypto_lz" >&6; }
25462 case "$ntp_cv_lcrypto_lz" in
25464 LDADD_NTP="$LDADD_NTP -lz"
25470 # Older OpenSSL headers have a number of callback prototypes inside
25471 # other function prototypes which trigger copious warnings with gcc's
25472 # -Wstrict-prototypes, which is included in -Wall.
25476 # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
25477 # int (*cb)(), int sgckey);
25482 openssl_triggers_warnings=unknown
25483 NTPO_SAVED_CFLAGS="$CFLAGS"
25485 case "$ntp_openssl:$GCC" in
25487 CFLAGS="$CFLAGS -Werror"
25488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25489 /* end confdefs.h. */
25496 /* see if -Werror breaks gcc */
25503 if ac_fn_c_try_compile "$LINENO"; then :
25504 gcc_handles_Werror=yes
25506 gcc_handles_Werror=no
25509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25510 case "$gcc_handles_Werror" in
25512 # if this gcc doesn't do -Werror go ahead and use
25513 # -Wstrict-prototypes.
25514 openssl_triggers_warnings=yes
25517 CFLAGS="$CFLAGS -Wstrict-prototypes"
25518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25519 /* end confdefs.h. */
25521 #include "openssl/asn1_mac.h"
25522 #include "openssl/bn.h"
25523 #include "openssl/err.h"
25524 #include "openssl/evp.h"
25525 #include "openssl/pem.h"
25526 #include "openssl/rand.h"
25527 #include "openssl/x509v3.h"
25540 if ac_fn_c_try_compile "$LINENO"; then :
25541 openssl_triggers_warnings=no
25543 openssl_triggers_warnings=yes
25546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25548 case "$openssl_triggers_warnings" in
25550 CFLAGS_NTP="$CFLAGS_NTP -Wno-strict-prototypes"
25553 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
25557 # gcc without OpenSSL
25558 CFLAGS_NTP="$CFLAGS_NTP -Wstrict-prototypes"
25561 # Because we don't want -Werror for the EVP_MD_do_all_sorted check
25562 CFLAGS="$NTPO_SAVED_CFLAGS"
25564 case "$ntp_openssl" in
25566 LIBS="$NTPO_SAVED_LIBS $LDADD_NTP"
25567 for ac_func in EVP_MD_do_all_sorted
25569 ac_fn_c_check_func "$LINENO" "EVP_MD_do_all_sorted" "ac_cv_func_EVP_MD_do_all_sorted"
25570 if test "x$ac_cv_func_EVP_MD_do_all_sorted" = xyes; then :
25571 cat >>confdefs.h <<_ACEOF
25572 #define HAVE_EVP_MD_DO_ALL_SORTED 1
25582 CPPFLAGS="$NTPO_SAVED_CPPFLAGS"
25583 LIBS="$NTPO_SAVED_LIBS"
25584 { NTPO_SAVED_CFLAGS=; unset NTPO_SAVED_CFLAGS;}
25585 { NTPO_SAVED_CPPFLAGS=; unset NTPO_SAVED_CPPFLAGS;}
25586 { NTPO_SAVED_LIBS=; unset NTPO_SAVED_LIBS;}
25587 { openssl_triggers_warnings=; unset openssl_triggers_warnings;}
25588 { ntp_openssl_from_pkg_config=; unset ntp_openssl_from_pkg_config;}
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
25593 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
25594 if ${ntp_cv_sockaddr_storage+:} false; then :
25595 $as_echo_n "(cached) " >&6
25597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25598 /* end confdefs.h. */
25600 #ifdef HAVE_SYS_TYPES_H
25601 # include <sys/types.h>
25603 #ifdef HAVE_SYS_SOCKET_H
25604 # include <sys/socket.h>
25606 #ifdef HAVE_NETINET_IN_H
25607 # include <netinet/in.h>
25614 struct sockaddr_storage n;
25621 if ac_fn_c_try_compile "$LINENO"; then :
25622 ntp_cv_sockaddr_storage=yes
25624 ntp_cv_sockaddr_storage=no
25627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_sockaddr_storage" >&5
25631 $as_echo "$ntp_cv_sockaddr_storage" >&6; }
25632 case "$ntp_cv_sockaddr_storage" in
25635 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage.__ss_family" >&5
25638 $as_echo_n "checking for sockaddr_storage.__ss_family... " >&6; }
25639 if ${ntp_cv_have___ss_family+:} false; then :
25640 $as_echo_n "(cached) " >&6
25642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25643 /* end confdefs.h. */
25645 #ifdef HAVE_SYS_TYPES_H
25646 # include <sys/types.h>
25648 #ifdef HAVE_SYS_SOCKET_H
25649 # include <sys/socket.h>
25651 #ifdef HAVE_NETINET_IN_H
25652 # include <netinet/in.h>
25659 struct sockaddr_storage s;
25667 if ac_fn_c_try_compile "$LINENO"; then :
25668 ntp_cv_have___ss_family=yes
25670 ntp_cv_have___ss_family=no
25673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_have___ss_family" >&5
25677 $as_echo "$ntp_cv_have___ss_family" >&6; }
25678 case "$ntp_cv_have___ss_family" in
25681 $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
25689 # Look for in_port_t.
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
25692 $as_echo_n "checking for in_port_t... " >&6; }
25693 if ${isc_cv_have_in_port_t+:} false; then :
25694 $as_echo_n "(cached) " >&6
25696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25697 /* end confdefs.h. */
25699 #include <sys/types.h>
25700 #include <netinet/in.h>
25706 in_port_t port = 25;
25714 if ac_fn_c_try_compile "$LINENO"; then :
25715 isc_cv_have_in_port_t=yes
25717 isc_cv_have_in_port_t=no
25720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in_port_t" >&5
25724 $as_echo "$isc_cv_have_in_port_t" >&6; }
25725 case "$isc_cv_have_in_port_t" in
25728 $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
25733 $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
25734 if ${ntp_cv_getsockname_socklen_type+:} false; then :
25735 $as_echo_n "(cached) " >&6
25738 getsockname_socklen_type_found=no
25739 for getsockname_arg2 in 'struct sockaddr *' 'void *'; do
25740 for ntp_cv_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
25741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25742 /* end confdefs.h. */
25744 #ifdef HAVE_SYS_TYPES_H
25745 # include <sys/types.h>
25747 #ifdef HAVE_SYS_SOCKET_H
25748 # include <sys/socket.h>
25756 getsockname(int, $getsockname_arg2,
25757 $ntp_cv_getsockname_socklen_type *);
25764 if ac_fn_c_try_compile "$LINENO"; then :
25765 getsockname_socklen_type_found=yes ; break 2
25767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25770 case "$getsockname_socklen_type_found" in
25772 ntp_cv_getsockname_socklen_type='socklen_t'
25774 { getsockname_arg2=; unset getsockname_arg2;}
25775 { getsockname_socklen_type_found=; unset getsockname_socklen_type_found;}
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_getsockname_socklen_type" >&5
25780 $as_echo "$ntp_cv_getsockname_socklen_type" >&6; }
25782 cat >>confdefs.h <<_ACEOF
25783 #define GETSOCKNAME_SOCKLEN_TYPE $ntp_cv_getsockname_socklen_type
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
25788 $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
25789 if ${isc_cv_platform_havesalen+:} false; then :
25790 $as_echo_n "(cached) " >&6
25792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25793 /* end confdefs.h. */
25795 #include <sys/types.h>
25796 #include <sys/socket.h>
25802 extern struct sockaddr *ps;
25810 if ac_fn_c_try_compile "$LINENO"; then :
25811 isc_cv_platform_havesalen=yes
25813 isc_cv_platform_havesalen=no
25816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_platform_havesalen" >&5
25820 $as_echo "$isc_cv_platform_havesalen" >&6; }
25821 case "$isc_cv_platform_havesalen" in
25824 $as_echo "#define ISC_PLATFORM_HAVESALEN 1" >>confdefs.h
25828 # Check whether --enable-ipv6 was given.
25829 if test "${enable_ipv6+set}" = set; then :
25830 enableval=$enable_ipv6;
25834 case "$enable_ipv6" in
25841 $as_echo "#define WANT_IPV6 1" >>confdefs.h
25854 $as_echo "#define __APPLE_USE_RFC_3542 1" >>confdefs.h
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
25860 $as_echo_n "checking for IPv6 structures... " >&6; }
25861 if ${isc_cv_found_ipv6+:} false; then :
25862 $as_echo_n "(cached) " >&6
25864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25865 /* end confdefs.h. */
25867 #include <sys/types.h>
25868 #include <sys/socket.h>
25869 #include <netinet/in.h>
25875 struct sockaddr_in6 sin6;
25882 if ac_fn_c_try_compile "$LINENO"; then :
25883 isc_cv_found_ipv6=yes
25885 isc_cv_found_ipv6=no
25888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_found_ipv6" >&5
25892 $as_echo "$isc_cv_found_ipv6" >&6; }
25895 # See whether IPv6 support is provided via a Kame add-on.
25896 # This is done before other IPv6 linking tests so LIBS is properly set.
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
25899 $as_echo_n "checking for Kame IPv6 support... " >&6; }
25901 # Check whether --with-kame was given.
25902 if test "${with_kame+set}" = set; then :
25903 withval=$with_kame; use_kame="$withval"
25909 case "$use_kame" in
25913 kame_path=/usr/local/v6
25916 kame_path="$use_kame"
25919 case "$use_kame" in
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25922 $as_echo "no" >&6; }
25925 if test -f $kame_path/lib/libinet6.a; then
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
25927 $as_echo "$kame_path/lib/libinet6.a" >&6; }
25928 LIBS="-L$kame_path/lib -linet6 $LIBS"
25930 as_fn_error $? "$kame_path/lib/libinet6.a not found.
25932 Please choose the proper path with the following command:
25934 configure --with-kame=PATH
25941 # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
25942 # Including it on Kame-using platforms is very bad, though, because
25943 # Kame uses #error against direct inclusion. So include it on only
25944 # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
25945 # This is done before the in6_pktinfo check because that's what
25946 # netinet6/in6.h is needed for.
25951 $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
25953 isc_netinet6in6_hack="#include <netinet6/in6.h>"
25956 isc_netinet6in6_hack=""
25961 # This is similar to the netinet6/in6.h issue.
25964 *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
25966 $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
25968 isc_netinetin6_hack="#include <netinet/in6.h>"
25971 isc_netinetin6_hack=""
25976 case "$isc_cv_found_ipv6" in
25979 $as_echo "#define ISC_PLATFORM_HAVEIPV6 1" >>confdefs.h
25981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
25982 $as_echo_n "checking for in6_pktinfo... " >&6; }
25983 if ${isc_cv_have_in6_pktinfo+:} false; then :
25984 $as_echo_n "(cached) " >&6
25986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25987 /* end confdefs.h. */
25989 #include <sys/types.h>
25990 #include <sys/socket.h>
25991 #include <netinet/in.h>
25992 $isc_netinetin6_hack
25993 $isc_netinet6in6_hack
25999 struct in6_pktinfo xyzzy;
26006 if ac_fn_c_try_compile "$LINENO"; then :
26007 isc_cv_have_in6_pktinfo=yes
26009 isc_cv_have_in6_pktinfo=no
26012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_in6_pktinfo" >&5
26016 $as_echo "$isc_cv_have_in6_pktinfo" >&6; }
26017 case "$isc_cv_have_in6_pktinfo" in
26020 $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO 1" >>confdefs.h
26025 # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
26027 $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
26028 if ${isc_cv_have_sin6_scope_id+:} false; then :
26029 $as_echo_n "(cached) " >&6
26031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26032 /* end confdefs.h. */
26034 #include <sys/types.h>
26035 #include <sys/socket.h>
26036 #include <netinet/in.h>
26037 $isc_netinetin6_hack
26038 $isc_netinet6in6_hack
26044 struct sockaddr_in6 xyzzy;
26045 xyzzy.sin6_scope_id = 0;
26052 if ac_fn_c_try_compile "$LINENO"; then :
26053 isc_cv_have_sin6_scope_id=yes
26055 isc_cv_have_sin6_scope_id=no
26058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_have_sin6_scope_id" >&5
26062 $as_echo "$isc_cv_have_sin6_scope_id" >&6; }
26064 case "$isc_cv_have_sin6_scope_id" in
26067 $as_echo "#define ISC_PLATFORM_HAVESCOPEID 1" >>confdefs.h
26073 # We need this check run even without isc_cv_found_ipv6=yes
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
26076 $as_echo_n "checking for in6addr_any... " >&6; }
26077 if ${isc_cv_in6addr_any_links+:} false; then :
26078 $as_echo_n "(cached) " >&6
26082 LIBS="$LDADD_LIBNTP $LIBS"
26083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26084 /* end confdefs.h. */
26085 $ac_includes_default
26086 #include <sys/socket.h>
26087 #include <netinet/in.h>
26088 $isc_netinetin6_hack
26089 $isc_netinet6in6_hack
26095 printf("%x", in6addr_any.s6_addr[15]);
26102 if ac_fn_c_try_link "$LINENO"; then :
26103 isc_cv_in6addr_any_links=yes
26105 isc_cv_in6addr_any_links=no
26108 rm -f core conftest.err conftest.$ac_objext \
26109 conftest$ac_exeext conftest.$ac_ext
26111 { SAVED_LIBS=; unset SAVED_LIBS;}
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_in6addr_any_links" >&5
26116 $as_echo "$isc_cv_in6addr_any_links" >&6; }
26118 case "$isc_cv_in6addr_any_links" in
26121 $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY 1" >>confdefs.h
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
26127 $as_echo_n "checking for struct if_laddrconf... " >&6; }
26128 if ${isc_cv_struct_if_laddrconf+:} false; then :
26129 $as_echo_n "(cached) " >&6
26131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26132 /* end confdefs.h. */
26134 #include <sys/types.h>
26135 #include <net/if6.h>
26141 struct if_laddrconf a;
26148 if ac_fn_c_try_compile "$LINENO"; then :
26149 isc_cv_struct_if_laddrconf=yes
26151 isc_cv_struct_if_laddrconf=no
26154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrconf" >&5
26158 $as_echo "$isc_cv_struct_if_laddrconf" >&6; }
26160 case "$isc_cv_struct_if_laddrconf" in
26163 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF 1" >>confdefs.h
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
26168 $as_echo_n "checking for struct if_laddrreq... " >&6; }
26169 if ${isc_cv_struct_if_laddrreq+:} false; then :
26170 $as_echo_n "(cached) " >&6
26172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26173 /* end confdefs.h. */
26175 #include <sys/types.h>
26176 #include <net/if6.h>
26182 struct if_laddrreq a;
26189 if ac_fn_c_try_compile "$LINENO"; then :
26190 isc_cv_struct_if_laddrreq=yes
26192 isc_cv_struct_if_laddrreq=no
26195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $isc_cv_struct_if_laddrreq" >&5
26199 $as_echo "$isc_cv_struct_if_laddrreq" >&6; }
26201 case "$isc_cv_struct_if_laddrreq" in
26204 $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ 1" >>confdefs.h
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multicast IP support" >&5
26209 $as_echo_n "checking for multicast IP support... " >&6; }
26210 if ${ntp_cv_multicast+:} false; then :
26211 $as_echo_n "(cached) " >&6
26214 ntp_cv_multicast=no
26216 i386-sequent-sysv4)
26219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26220 /* end confdefs.h. */
26222 #ifdef HAVE_NETINET_IN_H
26223 # include <netinet/in.h>
26230 struct ip_mreq ipmr;
26231 ipmr.imr_interface.s_addr = 0;
26238 if ac_fn_c_try_compile "$LINENO"; then :
26239 ntp_cv_multicast=yes
26241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_multicast" >&5
26248 $as_echo "$ntp_cv_multicast" >&6; }
26249 case "$ntp_cv_multicast" in
26252 $as_echo "#define MCAST 1" >>confdefs.h
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for setsockopt() IP*_MULTICAST_LOOP" >&5
26255 $as_echo_n "checking arg type needed for setsockopt() IP*_MULTICAST_LOOP... " >&6; }
26256 if ${ntp_cv_typeof_ip_multicast_loop+:} false; then :
26257 $as_echo_n "(cached) " >&6
26261 *-*-netbsd*|*-*-*linux*)
26262 ntp_cv_typeof_ip_multicast_loop=u_int
26265 ntp_cv_typeof_ip_multicast_loop=u_char
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_cv_typeof_ip_multicast_loop" >&5
26272 $as_echo "$ntp_cv_typeof_ip_multicast_loop" >&6; }
26274 cat >>confdefs.h <<_ACEOF
26275 #define TYPEOF_IP_MULTICAST_LOOP $ntp_cv_typeof_ip_multicast_loop
26280 # Check whether --enable-getifaddrs was given.
26281 if test "${enable_getifaddrs+set}" = set; then :
26282 enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
26284 want_getifaddrs="yes"
26289 case $want_getifaddrs in
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-getifaddrs=glibc is no longer required" >&5
26292 $as_echo "$as_me: WARNING: --enable-getifaddrs=glibc is no longer required" >&2;}
26294 case $want_getifaddrs in
26299 LIBS="$LDADD_LIBNTP $LIBS"
26300 for ac_func in getifaddrs
26302 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
26303 if test "x$ac_cv_func_getifaddrs" = xyes; then :
26304 cat >>confdefs.h <<_ACEOF
26305 #define HAVE_GETIFADDRS 1
26312 { SAVED_LIBS=; unset SAVED_LIBS;}
26317 # Check for if_nametoindex() for IPv6 scoped addresses support
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing if_nametoindex" >&5
26322 $as_echo_n "checking for library containing if_nametoindex... " >&6; }
26323 if ${ac_cv_search_if_nametoindex+:} false; then :
26324 $as_echo_n "(cached) " >&6
26326 ac_func_search_save_LIBS=$LIBS
26327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26328 /* end confdefs.h. */
26330 /* Override any GCC internal prototype to avoid an error.
26331 Use char because int might match the return type of a GCC
26332 builtin and then its argument prototype would still apply. */
26336 char if_nametoindex ();
26340 return if_nametoindex ();
26345 for ac_lib in '' ipv6; do
26346 if test -z "$ac_lib"; then
26347 ac_res="none required"
26350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26352 if ac_fn_c_try_link "$LINENO"; then :
26353 ac_cv_search_if_nametoindex=$ac_res
26355 rm -f core conftest.err conftest.$ac_objext \
26357 if ${ac_cv_search_if_nametoindex+:} false; then :
26361 if ${ac_cv_search_if_nametoindex+:} false; then :
26364 ac_cv_search_if_nametoindex=no
26366 rm conftest.$ac_ext
26367 LIBS=$ac_func_search_save_LIBS
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_if_nametoindex" >&5
26370 $as_echo "$ac_cv_search_if_nametoindex" >&6; }
26371 ac_res=$ac_cv_search_if_nametoindex
26372 if test "$ac_res" != no; then :
26373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26379 LIBS="$LDADD_LIBNTP $LIBS"
26380 for ac_func in if_nametoindex
26382 ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
26383 if test "x$ac_cv_func_if_nametoindex" = xyes; then :
26384 cat >>confdefs.h <<_ACEOF
26385 #define HAVE_IF_NAMETOINDEX 1
26392 { SAVED_LIBS=; unset SAVED_LIBS;}
26393 case "$ac_cv_func_if_nametoindex" in
26396 $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
26405 # these need work if we're to move libntp under sntp
26407 $as_echo "#define HAVE_NO_NICE 1" >>confdefs.h
26410 $as_echo "#define HAVE_TERMIOS 1" >>confdefs.h
26413 # Checks for library functions.
26414 for ac_func in socket
26416 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
26417 if test "x$ac_cv_func_socket" = xyes; then :
26418 cat >>confdefs.h <<_ACEOF
26419 #define HAVE_SOCKET 1
26427 # We may not need have_unity
26429 # Extract the first word of "ruby", so it can be a program name with args.
26430 set dummy ruby; ac_word=$2
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26432 $as_echo_n "checking for $ac_word... " >&6; }
26433 if ${ac_cv_path_PATH_RUBY+:} false; then :
26434 $as_echo_n "(cached) " >&6
26438 ac_cv_path_PATH_RUBY="$PATH_RUBY" # Let the user override the test with a path.
26441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26442 for as_dir in $PATH
26445 test -z "$as_dir" && as_dir=.
26446 for ac_exec_ext in '' $ac_executable_extensions; do
26447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26448 ac_cv_path_PATH_RUBY="$as_dir/$ac_word$ac_exec_ext"
26449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26459 PATH_RUBY=$ac_cv_path_PATH_RUBY
26460 if test -n "$PATH_RUBY"; then
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_RUBY" >&5
26462 $as_echo "$PATH_RUBY" >&6; }
26464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26465 $as_echo "no" >&6; }
26469 case "$PATH_RUBY" in
26473 *) PATH_RUBY="false"
26476 # We may not need UNITYBUILD_AVAILABLE
26477 if $have_unity; then
26478 UNITYBUILD_AVAILABLE_TRUE=
26479 UNITYBUILD_AVAILABLE_FALSE='#'
26481 UNITYBUILD_AVAILABLE_TRUE='#'
26482 UNITYBUILD_AVAILABLE_FALSE=
26487 ## HMS: if we don't find c++ we should not look for gtest.
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to enable tests with undiagnosed problems" >&5
26498 $as_echo_n "checking if we want to enable tests with undiagnosed problems... " >&6; }
26499 # Check whether --enable-problem-tests was given.
26500 if test "${enable_problem_tests+set}" = set; then :
26501 enableval=$enable_problem_tests; sntp_ept=$enableval
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_ept" >&5
26508 $as_echo "$sntp_ept" >&6; }
26510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-kodDatabase" >&5
26511 $as_echo_n "checking if we can run test-kodDatabase... " >&6; }
26512 sntp_test_kodDatabase="no"
26513 case "$sntp_ept:$cross:$host" in
26514 no:0:*-apple-darwin12.6.0) ;;
26515 *) sntp_test_kodDatabase="yes" ;;
26517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_test_kodDatabase" >&5
26518 $as_echo "$sntp_test_kodDatabase" >&6; }
26519 if test x$sntp_test_kodDatabase = xyes; then
26520 BUILD_TEST_KODDATABASE_TRUE=
26521 BUILD_TEST_KODDATABASE_FALSE='#'
26523 BUILD_TEST_KODDATABASE_TRUE='#'
26524 BUILD_TEST_KODDATABASE_FALSE=
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run test-kodFile" >&5
26529 $as_echo_n "checking if we can run test-kodFile... " >&6; }
26530 sntp_test_kodFile="no"
26531 case "$sntp_ept:$cross:$host" in
26532 no:0:*-apple-darwin12.6.0) ;;
26533 *) sntp_test_kodFile="yes" ;;
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sntp_test_kodFile" >&5
26536 $as_echo "$sntp_test_kodFile" >&6; }
26537 if test x$sntp_test_kodFile = xyes; then
26538 BUILD_TEST_KODFILE_TRUE=
26539 BUILD_TEST_KODFILE_FALSE='#'
26541 BUILD_TEST_KODFILE_TRUE='#'
26542 BUILD_TEST_KODFILE_FALSE=
26548 # All libraries should be in various LIB_* variables now.
26550 # Sadly not. There is a gettext() check somewhere, and on Solaris this pulls
26551 # in -lintl -lgen, outside our "scope".
26553 ac_config_files="$ac_config_files Makefile"
26555 ac_config_files="$ac_config_files include/Makefile"
26557 ac_config_files="$ac_config_files scripts/Makefile"
26559 ac_config_files="$ac_config_files tests/Makefile"
26561 ac_config_files="$ac_config_files tests/fileHandlingTest.h"
26563 ac_config_files="$ac_config_files unity/Makefile"
26566 cat >confcache <<\_ACEOF
26567 # This file is a shell script that caches the results of configure
26568 # tests run on this system so they can be shared between configure
26569 # scripts and configure runs, see configure's option --config-cache.
26570 # It is not useful on other systems. If it contains results you don't
26571 # want to keep, you may remove or edit it.
26573 # config.status only pays attention to the cache file if you give it
26574 # the --recheck option to rerun configure.
26576 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26577 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26578 # following values.
26582 # The following way of writing the cache mishandles newlines in values,
26583 # but we know of no workaround that is simple, portable, and efficient.
26584 # So, we kill variables containing newlines.
26585 # Ultrix sh set writes to stderr and can't be redirected directly,
26586 # and sets the high bit in the cache file unless we assign to the vars.
26588 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26589 eval ac_val=\$$ac_var
26593 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26594 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26597 _ | IFS | as_nl) ;; #(
26598 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26599 *) { eval $ac_var=; unset $ac_var;} ;;
26605 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26606 *${as_nl}ac_space=\ *)
26607 # `set' does not quote correctly, so add quotes: double-quote
26608 # substitution turns \\\\ into \\, and sed turns \\ into \.
26611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26614 # `set' quotes correctly as required by POSIX, so do not add quotes.
26615 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26624 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26626 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26628 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26629 if test -w "$cache_file"; then
26630 if test "x$cache_file" != "x/dev/null"; then
26631 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26632 $as_echo "$as_me: updating cache $cache_file" >&6;}
26633 if test ! -f "$cache_file" || test -h "$cache_file"; then
26634 cat confcache >"$cache_file"
26636 case $cache_file in #(
26638 mv -f confcache "$cache_file"$$ &&
26639 mv -f "$cache_file"$$ "$cache_file" ;; #(
26641 mv -f confcache "$cache_file" ;;
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26647 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26652 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26653 # Let make expand exec_prefix.
26654 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26656 DEFS=-DHAVE_CONFIG_H
26661 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26662 # 1. Remove the extension, and $U if already installed.
26663 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26664 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26665 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26666 # will be set to the directory where LIBOBJS objects are built.
26667 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26668 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26670 LIBOBJS=$ac_libobjs
26672 LTLIBOBJS=$ac_ltlibobjs
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26676 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26677 if test -n "$am_sleep_pid"; then
26678 # Hide warnings about reused PIDs.
26679 wait $am_sleep_pid 2>/dev/null
26681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26682 $as_echo "done" >&6; }
26683 if test -n "$EXEEXT"; then
26685 am__EXEEXT_FALSE='#'
26687 am__EXEEXT_TRUE='#'
26691 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26692 as_fn_error $? "conditional \"AMDEP\" was never defined.
26693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26695 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26696 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26700 if test -z "${WANT_CALC_TICKADJ_MS_TRUE}" && test -z "${WANT_CALC_TICKADJ_MS_FALSE}"; then
26701 as_fn_error $? "conditional \"WANT_CALC_TICKADJ_MS\" was never defined.
26702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26704 if test -z "${INSTALL_NTPSWEEP_TRUE}" && test -z "${INSTALL_NTPSWEEP_FALSE}"; then
26705 as_fn_error $? "conditional \"INSTALL_NTPSWEEP\" was never defined.
26706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26708 if test -z "${INSTALL_UPDATE_LEAP_TRUE}" && test -z "${INSTALL_UPDATE_LEAP_FALSE}"; then
26709 as_fn_error $? "conditional \"INSTALL_UPDATE_LEAP\" was never defined.
26710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26712 if test -z "${NTP_CROSSCOMPILE_TRUE}" && test -z "${NTP_CROSSCOMPILE_FALSE}"; then
26713 as_fn_error $? "conditional \"NTP_CROSSCOMPILE\" was never defined.
26714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26716 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
26717 as_fn_error $? "conditional \"PTHREADS\" was never defined.
26718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26720 if test -z "${BUILD_SNTP_TRUE}" && test -z "${BUILD_SNTP_FALSE}"; then
26721 as_fn_error $? "conditional \"BUILD_SNTP\" was never defined.
26722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26724 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
26725 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
26726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26728 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
26729 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
26730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26732 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
26733 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
26734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26736 if test -z "${BUILD_LIBEVENT_TRUE}" && test -z "${BUILD_LIBEVENT_FALSE}"; then
26737 as_fn_error $? "conditional \"BUILD_LIBEVENT\" was never defined.
26738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26740 if test -z "${UNITYBUILD_AVAILABLE_TRUE}" && test -z "${UNITYBUILD_AVAILABLE_FALSE}"; then
26741 as_fn_error $? "conditional \"UNITYBUILD_AVAILABLE\" was never defined.
26742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26744 if test -z "${BUILD_TEST_KODDATABASE_TRUE}" && test -z "${BUILD_TEST_KODDATABASE_FALSE}"; then
26745 as_fn_error $? "conditional \"BUILD_TEST_KODDATABASE\" was never defined.
26746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26748 if test -z "${BUILD_TEST_KODFILE_TRUE}" && test -z "${BUILD_TEST_KODFILE_FALSE}"; then
26749 as_fn_error $? "conditional \"BUILD_TEST_KODFILE\" was never defined.
26750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26753 : "${CONFIG_STATUS=./config.status}"
26755 ac_clean_files_save=$ac_clean_files
26756 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26758 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26760 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26762 # Generated by $as_me.
26763 # Run this file to recreate the current configuration.
26764 # Compiler output produced by configure, useful for debugging
26765 # configure, is in config.log if it exists.
26768 ac_cs_recheck=false
26771 SHELL=\${CONFIG_SHELL-$SHELL}
26774 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26775 ## -------------------- ##
26776 ## M4sh Initialization. ##
26777 ## -------------------- ##
26779 # Be more Bourne compatible
26780 DUALCASE=1; export DUALCASE # for MKS sh
26781 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26784 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26785 # is contrary to our usage. Disable this feature.
26786 alias -g '${1+"$@"}'='"$@"'
26787 setopt NO_GLOB_SUBST
26789 case `(set -o) 2>/dev/null` in #(
26801 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26802 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26803 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26804 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26805 # Prefer a ksh shell builtin over an external printf program on Solaris,
26806 # but without wasting forks for bash or zsh.
26807 if test -z "$BASH_VERSION$ZSH_VERSION" \
26808 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26809 as_echo='print -r --'
26810 as_echo_n='print -rn --'
26811 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26812 as_echo='printf %s\n'
26813 as_echo_n='printf %s'
26815 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26816 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26817 as_echo_n='/usr/ucb/echo -n'
26819 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26820 as_echo_n_body='eval
26824 expr "X$arg" : "X\\(.*\\)$as_nl";
26825 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26827 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26829 export as_echo_n_body
26830 as_echo_n='sh -c $as_echo_n_body as_echo'
26832 export as_echo_body
26833 as_echo='sh -c $as_echo_body as_echo'
26836 # The user is always right.
26837 if test "${PATH_SEPARATOR+set}" != set; then
26839 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26840 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26847 # We need space, tab and new line, in precisely that order. Quoting is
26848 # there to prevent editors from complaining about space-tab.
26849 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26850 # splitting by setting IFS to empty value.)
26853 # Find who we are. Look in the path if we contain no directory separator.
26856 *[\\/]* ) as_myself=$0 ;;
26857 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26858 for as_dir in $PATH
26861 test -z "$as_dir" && as_dir=.
26862 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26868 # We did not find ourselves, most probably we were run as `sh COMMAND'
26869 # in which case we are not to be found in the path.
26870 if test "x$as_myself" = x; then
26873 if test ! -f "$as_myself"; then
26874 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26878 # Unset variables that we do not need and which cause bugs (e.g. in
26879 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26880 # suppresses any "Segmentation fault" message there. '((' could
26881 # trigger a bug in pdksh 5.2.14.
26882 for as_var in BASH_ENV ENV MAIL MAILPATH
26883 do eval test x\${$as_var+set} = xset \
26884 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26897 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26900 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26901 # ----------------------------------------
26902 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26903 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26904 # script with STATUS, using 1 if that was 0.
26907 as_status=$1; test $as_status -eq 0 && as_status=1
26909 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26910 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26912 $as_echo "$as_me: error: $2" >&2
26913 as_fn_exit $as_status
26917 # as_fn_set_status STATUS
26918 # -----------------------
26919 # Set $? to STATUS, without forking.
26920 as_fn_set_status ()
26923 } # as_fn_set_status
26925 # as_fn_exit STATUS
26926 # -----------------
26927 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26931 as_fn_set_status $1
26937 # Portably unset VAR.
26940 { eval $1=; unset $1;}
26942 as_unset=as_fn_unset
26943 # as_fn_append VAR VALUE
26944 # ----------------------
26945 # Append the text in VALUE to the end of the definition contained in VAR. Take
26946 # advantage of any shell optimizations that allow amortized linear growth over
26947 # repeated appends, instead of the typical quadratic growth present in naive
26949 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26950 eval 'as_fn_append ()
26961 # as_fn_arith ARG...
26962 # ------------------
26963 # Perform arithmetic evaluation on the ARGs, and store the result in the
26964 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26965 # must be portable across $(()) and expr.
26966 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26967 eval 'as_fn_arith ()
26974 as_val=`expr "$@" || test $? -eq 1`
26979 if expr a : '\(a\)' >/dev/null 2>&1 &&
26980 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26986 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26987 as_basename=basename
26992 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26998 as_me=`$as_basename -- "$0" ||
26999 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27000 X"$0" : 'X\(//\)$' \| \
27001 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27003 sed '/^.*\/\([^/][^/]*\)\/*$/{
27017 # Avoid depending upon Character Ranges.
27018 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27019 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27020 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27021 as_cr_digits='0123456789'
27022 as_cr_alnum=$as_cr_Letters$as_cr_digits
27024 ECHO_C= ECHO_N= ECHO_T=
27025 case `echo -n x` in #(((((
27027 case `echo 'xy\c'` in
27028 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27030 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27037 rm -f conf$$ conf$$.exe conf$$.file
27038 if test -d conf$$.dir; then
27039 rm -f conf$$.dir/conf$$.file
27042 mkdir conf$$.dir 2>/dev/null
27044 if (echo >conf$$.file) 2>/dev/null; then
27045 if ln -s conf$$.file conf$$ 2>/dev/null; then
27047 # ... but there are two gotchas:
27048 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27049 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27050 # In both cases, we have to default to `cp -pR'.
27051 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27053 elif ln conf$$.file conf$$ 2>/dev/null; then
27061 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27062 rmdir conf$$.dir 2>/dev/null
27067 # Create "$as_dir" as a directory, including parents if necessary.
27072 -*) as_dir=./$as_dir;;
27074 test -d "$as_dir" || eval $as_mkdir_p || {
27078 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27079 *) as_qdir=$as_dir;;
27081 as_dirs="'$as_qdir' $as_dirs"
27082 as_dir=`$as_dirname -- "$as_dir" ||
27083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27084 X"$as_dir" : 'X\(//\)[^/]' \| \
27085 X"$as_dir" : 'X\(//\)$' \| \
27086 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27087 $as_echo X"$as_dir" |
27088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27092 /^X\(\/\/\)[^/].*/{
27105 test -d "$as_dir" && break
27107 test -z "$as_dirs" || eval "mkdir $as_dirs"
27108 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
27112 if mkdir -p . 2>/dev/null; then
27113 as_mkdir_p='mkdir -p "$as_dir"'
27115 test -d ./-p && rmdir ./-p
27120 # as_fn_executable_p FILE
27121 # -----------------------
27122 # Test if FILE is an executable regular file.
27123 as_fn_executable_p ()
27125 test -f "$1" && test -x "$1"
27126 } # as_fn_executable_p
27127 as_test_x='test -x'
27128 as_executable_p=as_fn_executable_p
27130 # Sed expression to map a string onto a valid CPP name.
27131 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27133 # Sed expression to map a string onto a valid variable name.
27134 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27138 ## ----------------------------------- ##
27139 ## Main body of $CONFIG_STATUS script. ##
27140 ## ----------------------------------- ##
27142 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27145 # Save the log message, to keep $0 and so on meaningful, and to
27146 # report actual input values of CONFIG_FILES etc. instead of their
27147 # values after options handling.
27149 This file was extended by sntp $as_me 4.2.8p13, which was
27150 generated by GNU Autoconf 2.69. Invocation command line was
27152 CONFIG_FILES = $CONFIG_FILES
27153 CONFIG_HEADERS = $CONFIG_HEADERS
27154 CONFIG_LINKS = $CONFIG_LINKS
27155 CONFIG_COMMANDS = $CONFIG_COMMANDS
27158 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27163 case $ac_config_files in *"
27164 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27167 case $ac_config_headers in *"
27168 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27173 # Files that config.status was made for.
27174 config_files="$ac_config_files"
27175 config_headers="$ac_config_headers"
27176 config_commands="$ac_config_commands"
27180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27182 \`$as_me' instantiates files and other configuration actions
27183 from templates according to the current configuration. Unless the files
27184 and actions are specified as TAGs, all are instantiated by default.
27186 Usage: $0 [OPTION]... [TAG]...
27188 -h, --help print this help, then exit
27189 -V, --version print version number and configuration settings, then exit
27190 --config print configuration, then exit
27191 -q, --quiet, --silent
27192 do not print progress messages
27193 -d, --debug don't remove temporary files
27194 --recheck update $as_me by reconfiguring in the same conditions
27195 --file=FILE[:TEMPLATE]
27196 instantiate the configuration file FILE
27197 --header=FILE[:TEMPLATE]
27198 instantiate the configuration header FILE
27200 Configuration files:
27203 Configuration headers:
27206 Configuration commands:
27209 Report bugs to <http://bugs.ntp.org./>.
27210 sntp home page: <http://www.ntp.org./>."
27213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27214 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
27216 sntp config.status 4.2.8p13
27217 configured by $0, generated by GNU Autoconf 2.69,
27218 with options \\"\$ac_cs_config\\"
27220 Copyright (C) 2012 Free Software Foundation, Inc.
27221 This config.status script is free software; the Free Software Foundation
27222 gives unlimited permission to copy, distribute and modify it."
27229 test -n "\$AWK" || AWK=awk
27232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27233 # The default lists apply if the user does not specify any file.
27239 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27240 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27244 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27256 # Handling of the options.
27257 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27259 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27260 $as_echo "$ac_cs_version"; exit ;;
27261 --config | --confi | --conf | --con | --co | --c )
27262 $as_echo "$ac_cs_config"; exit ;;
27263 --debug | --debu | --deb | --de | --d | -d )
27265 --file | --fil | --fi | --f )
27268 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27269 '') as_fn_error $? "missing file argument" ;;
27271 as_fn_append CONFIG_FILES " '$ac_optarg'"
27272 ac_need_defaults=false;;
27273 --header | --heade | --head | --hea )
27276 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27278 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27279 ac_need_defaults=false;;
27281 # Conflict between --help and --header
27282 as_fn_error $? "ambiguous option: \`$1'
27283 Try \`$0 --help' for more information.";;
27284 --help | --hel | -h )
27285 $as_echo "$ac_cs_usage"; exit ;;
27286 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27287 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27290 # This is an error.
27291 -*) as_fn_error $? "unrecognized option: \`$1'
27292 Try \`$0 --help' for more information." ;;
27294 *) as_fn_append ac_config_targets " $1"
27295 ac_need_defaults=false ;;
27301 ac_configure_extra_args=
27303 if $ac_cs_silent; then
27305 ac_configure_extra_args="$ac_configure_extra_args --silent"
27309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27310 if \$ac_cs_recheck; then
27311 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27313 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27314 CONFIG_SHELL='$SHELL'
27315 export CONFIG_SHELL
27320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27324 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27325 ## Running $as_me. ##
27331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27335 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27338 # The HP-UX ksh and POSIX shell print the target directory to stdout
27339 # if CDPATH is set.
27340 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27342 sed_quote_subst='$sed_quote_subst'
27343 double_quote_subst='$double_quote_subst'
27344 delay_variable_subst='$delay_variable_subst'
27345 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27346 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27347 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27348 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27349 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27350 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27351 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27352 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27353 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27354 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27355 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27356 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27357 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27358 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27359 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27360 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27361 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27362 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27363 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27364 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27365 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27366 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27367 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27368 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27369 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27370 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27371 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27372 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27373 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27374 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27375 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27376 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27377 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27378 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27379 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27380 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27381 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27382 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27383 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27384 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27385 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27386 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27387 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27388 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27389 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27390 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27391 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27392 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27393 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27394 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27395 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27396 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27397 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27398 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27399 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27400 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27401 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27402 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27403 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"`'
27404 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27405 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27406 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27407 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27408 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27409 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27410 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27411 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27412 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27413 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27414 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27415 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27416 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27417 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27418 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27419 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27420 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27421 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27422 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27423 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27424 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27425 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27426 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27427 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27428 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27429 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27430 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27431 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27432 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27433 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27434 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27435 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27436 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27437 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27438 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27439 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27440 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27441 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27442 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27443 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27444 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27445 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27446 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27447 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27448 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27449 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27450 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27451 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27452 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27453 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27454 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27455 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27456 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27457 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27458 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27459 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27460 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27461 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27462 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27463 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27464 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27465 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27466 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27467 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27468 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27469 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27470 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27471 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27472 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27473 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27474 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27475 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27476 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27477 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27478 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27479 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27482 LTCFLAGS='$LTCFLAGS'
27483 compiler='$compiler_DEFAULT'
27485 # A function that is used when there is no print builtin or printf.
27486 func_fallback_echo ()
27488 eval 'cat <<_LTECHO_EOF
27493 # Quote evaled strings.
27508 deplibs_check_method \
27513 sharedlib_from_linklib_cmd \
27516 archiver_list_spec \
27522 lt_cv_sys_global_symbol_pipe \
27523 lt_cv_sys_global_symbol_to_cdecl \
27524 lt_cv_sys_global_symbol_to_import \
27525 lt_cv_sys_global_symbol_to_c_name_address \
27526 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27527 lt_cv_nm_interface \
27528 nm_file_list_spec \
27529 lt_cv_truncate_bin \
27530 lt_prog_compiler_no_builtin_flag \
27531 lt_prog_compiler_pic \
27532 lt_prog_compiler_wl \
27533 lt_prog_compiler_static \
27534 lt_cv_prog_compiler_c_o \
27543 export_dynamic_flag_spec \
27544 whole_archive_flag_spec \
27545 compiler_needs_object \
27547 allow_undefined_flag \
27548 no_undefined_flag \
27549 hardcode_libdir_flag_spec \
27550 hardcode_libdir_separator \
27554 variables_saved_for_relink \
27556 library_names_spec \
27558 install_override_mode \
27562 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27563 *[\\\\\\\`\\"\\\$]*)
27564 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27567 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27572 # Double-quote double-evaled strings.
27573 for var in reload_cmds \
27574 old_postinstall_cmds \
27575 old_postuninstall_cmds \
27577 extract_expsyms_cmds \
27578 old_archive_from_new_cmds \
27579 old_archive_from_expsyms_cmds \
27581 archive_expsym_cmds \
27583 module_expsym_cmds \
27584 export_symbols_cmds \
27588 postuninstall_cmds \
27590 sys_lib_search_path_spec \
27591 configure_time_dlsearch_path \
27592 configure_time_lt_sys_library_path; do
27593 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27594 *[\\\\\\\`\\"\\\$]*)
27595 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27598 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27603 ac_aux_dir='$ac_aux_dir'
27605 # See if we are running on zsh, and set the options that allow our
27606 # commands through without removal of \ escapes INIT.
27607 if test -n "\${ZSH_VERSION+set}"; then
27608 setopt NO_GLOB_SUBST
27622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27624 # Handling of arguments.
27625 for ac_config_target in $ac_config_targets
27627 case $ac_config_target in
27628 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27629 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27630 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27631 "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
27632 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27633 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27634 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
27635 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27636 "tests/fileHandlingTest.h") CONFIG_FILES="$CONFIG_FILES tests/fileHandlingTest.h" ;;
27637 "unity/Makefile") CONFIG_FILES="$CONFIG_FILES unity/Makefile" ;;
27639 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27644 # If the user did not use the arguments to specify the items to instantiate,
27645 # then the envvar interface is used. Set only those that are not.
27646 # We use the long form for the default assignment because of an extremely
27647 # bizarre bug on SunOS 4.1.3.
27648 if $ac_need_defaults; then
27649 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27650 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27651 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27654 # Have a temporary directory for convenience. Make it in the build tree
27655 # simply because there is no reason against having it here, and in addition,
27656 # creating and moving files from /tmp can sometimes cause problems.
27657 # Hook for its removal unless debugging.
27658 # Note that there is a small window in which the directory will not be cleaned:
27659 # after its creation but before its name has been assigned to `$tmp'.
27663 trap 'exit_status=$?
27664 : "${ac_tmp:=$tmp}"
27665 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27667 trap 'as_fn_exit 1' 1 2 13 15
27669 # Create a (secure) tmp directory for tmp files.
27672 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27676 tmp=./conf$$-$RANDOM
27677 (umask 077 && mkdir "$tmp")
27678 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27681 # Set up the scripts for CONFIG_FILES section.
27682 # No need to generate them if there are no CONFIG_FILES.
27683 # This happens for instance with `./config.status config.h'.
27684 if test -n "$CONFIG_FILES"; then
27687 ac_cr=`echo X | tr X '\015'`
27688 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27689 # But we know of no other shell where ac_cr would be empty at this
27690 # point, so we can use a bashism as a fallback.
27691 if test "x$ac_cr" = x; then
27692 eval ac_cr=\$\'\\r\'
27694 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27695 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27698 ac_cs_awk_cr=$ac_cr
27701 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27706 echo "cat >conf$$subs.awk <<_ACEOF" &&
27707 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27709 } >conf$$subs.sh ||
27710 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27711 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27713 for ac_last_try in false false false false false :; do
27714 . ./conf$$subs.sh ||
27715 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27717 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27718 if test $ac_delim_n = $ac_delim_num; then
27720 elif $ac_last_try; then
27721 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27723 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27726 rm -f conf$$subs.sh
27728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27729 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27733 s/^/S["/; s/!.*/"]=/
27743 s/\(.\{148\}\)..*/\1/
27745 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27750 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27757 s/\(.\{148\}\)..*/\1/
27759 s/["\\]/\\&/g; s/^/"/; s/$/"/
27763 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27768 ' <conf$$subs.awk | sed '
27773 ' >>$CONFIG_STATUS || ac_write_fail=1
27774 rm -f conf$$subs.awk
27775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27777 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27778 for (key in S) S_is_set[key] = 1
27784 nfields = split(line, field, "@")
27786 len = length(field[1])
27787 for (i = 2; i < nfields; i++) {
27789 keylen = length(key)
27790 if (S_is_set[key]) {
27792 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27793 len += length(value) + length(field[++i])
27804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27805 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27806 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27809 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27810 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27813 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27814 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27815 # trailing colons and then remove the whole line if VPATH becomes empty
27816 # (actually we leave an empty line to preserve line numbers).
27817 if test "x$srcdir" = x.; then
27818 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27837 fi # test -n "$CONFIG_FILES"
27839 # Set up the scripts for CONFIG_HEADERS section.
27840 # No need to generate them if there are no CONFIG_HEADERS.
27841 # This happens for instance with `./config.status Makefile'.
27842 if test -n "$CONFIG_HEADERS"; then
27843 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27847 # Transform confdefs.h into an awk script `defines.awk', embedded as
27848 # here-document in config.status, that substitutes the proper values into
27849 # config.h.in to produce config.h.
27851 # Create a delimiter string that does not exist in confdefs.h, to ease
27852 # handling of long lines.
27854 for ac_last_try in false false :; do
27855 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27856 if test -z "$ac_tt"; then
27858 elif $ac_last_try; then
27859 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27861 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27865 # For the awk script, D is an array of macro values keyed by name,
27866 # likewise P contains macro parameters if any. Preserve backslash
27867 # newline sequences.
27869 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27871 s/.\{148\}/&'"$ac_delim"'/g
27874 s/^[ ]*#[ ]*define[ ][ ]*/ /
27881 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27883 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27887 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27888 D["\1"]=" \3\\\\\\n"\\/p
27890 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27895 s/.\{148\}/&'"$ac_delim"'/g
27900 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27903 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27905 ' <confdefs.h | sed '
27906 s/'"$ac_delim"'/"\\\
27907 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27910 for (key in D) D_is_set[key] = 1
27913 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27915 split(line, arg, " ")
27916 if (arg[1] == "#") {
27920 defundef = substr(arg[1], 2)
27923 split(mac1, mac2, "(") #)
27925 prefix = substr(line, 1, index(line, defundef) - 1)
27926 if (D_is_set[macro]) {
27927 # Preserve the white space surrounding the "#".
27928 print prefix "define", macro P[macro] D[macro]
27931 # Replace #undef with comments. This is necessary, for example,
27932 # in the case of _POSIX_SOURCE, which is predefined and required
27933 # on some systems where configure will not decide to define it.
27934 if (defundef == "undef") {
27935 print "/*", prefix defundef, macro, "*/"
27943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27944 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27945 fi # test -n "$CONFIG_HEADERS"
27948 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27953 :[FHLC]) ac_mode=$ac_tag; continue;;
27955 case $ac_mode$ac_tag in
27957 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27958 :[FH]-) ac_tag=-:-;;
27959 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27976 -) ac_f="$ac_tmp/stdin";;
27977 *) # Look for the file first in the build tree, then in the source tree
27978 # (if the path is not absolute). The absolute path cannot be DOS-style,
27979 # because $ac_f cannot contain `:'.
27983 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27985 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27987 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27988 as_fn_append ac_file_inputs " '$ac_f'"
27991 # Let's still pretend it is `configure' which instantiates (i.e., don't
27992 # use $as_me), people would be surprised to read:
27993 # /* config.h. Generated by config.status. */
27994 configure_input='Generated from '`
27995 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27997 if test x"$ac_file" != x-; then
27998 configure_input="$ac_file. $configure_input"
27999 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28000 $as_echo "$as_me: creating $ac_file" >&6;}
28002 # Neutralize special characters interpreted by sed in replacement strings.
28003 case $configure_input in #(
28004 *\&* | *\|* | *\\* )
28005 ac_sed_conf_input=`$as_echo "$configure_input" |
28006 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28007 *) ac_sed_conf_input=$configure_input;;
28011 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28012 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28017 ac_dir=`$as_dirname -- "$ac_file" ||
28018 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28019 X"$ac_file" : 'X\(//\)[^/]' \| \
28020 X"$ac_file" : 'X\(//\)$' \| \
28021 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28022 $as_echo X"$ac_file" |
28023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28027 /^X\(\/\/\)[^/].*/{
28040 as_dir="$ac_dir"; as_fn_mkdir_p
28044 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28046 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28047 # A ".." for each directory in $ac_dir_suffix.
28048 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28049 case $ac_top_builddir_sub in
28050 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28051 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28054 ac_abs_top_builddir=$ac_pwd
28055 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28056 # for backward compatibility:
28057 ac_top_builddir=$ac_top_build_prefix
28060 .) # We are building in place.
28062 ac_top_srcdir=$ac_top_builddir_sub
28063 ac_abs_top_srcdir=$ac_pwd ;;
28064 [\\/]* | ?:[\\/]* ) # Absolute name.
28065 ac_srcdir=$srcdir$ac_dir_suffix;
28066 ac_top_srcdir=$srcdir
28067 ac_abs_top_srcdir=$srcdir ;;
28068 *) # Relative name.
28069 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28070 ac_top_srcdir=$ac_top_build_prefix$srcdir
28071 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28073 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28083 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28084 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28086 ac_MKDIR_P=$MKDIR_P
28088 [\\/$]* | ?:[\\/]* ) ;;
28089 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28094 # If the template does not know about datarootdir, expand it.
28095 # FIXME: This hack should be removed a few years after 2.60.
28096 ac_datarootdir_hack=; ac_datarootdir_seen=
28107 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28108 *datarootdir*) ac_datarootdir_seen=yes;;
28109 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28111 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28114 ac_datarootdir_hack='
28115 s&@datadir@&$datadir&g
28116 s&@docdir@&$docdir&g
28117 s&@infodir@&$infodir&g
28118 s&@localedir@&$localedir&g
28119 s&@mandir@&$mandir&g
28120 s&\\\${datarootdir}&$datarootdir&g' ;;
28124 # Neutralize VPATH when `$srcdir' = `.'.
28125 # Shell code in configure.ac might set extrasub.
28126 # FIXME: do we really want to maintain this feature?
28127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28128 ac_sed_extra="$ac_vpsub
28131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28133 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28134 s|@configure_input@|$ac_sed_conf_input|;t t
28135 s&@top_builddir@&$ac_top_builddir_sub&;t t
28136 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28137 s&@srcdir@&$ac_srcdir&;t t
28138 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28139 s&@top_srcdir@&$ac_top_srcdir&;t t
28140 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28141 s&@builddir@&$ac_builddir&;t t
28142 s&@abs_builddir@&$ac_abs_builddir&;t t
28143 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28144 s&@INSTALL@&$ac_INSTALL&;t t
28145 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28146 $ac_datarootdir_hack
28148 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28149 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28151 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28152 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28153 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28154 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28156 which seems to be undefined. Please make sure it is defined" >&5
28157 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28158 which seems to be undefined. Please make sure it is defined" >&2;}
28160 rm -f "$ac_tmp/stdin"
28162 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28163 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28165 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28171 if test x"$ac_file" != x-; then
28173 $as_echo "/* $configure_input */" \
28174 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28175 } >"$ac_tmp/config.h" \
28176 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28177 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28178 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28179 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28182 mv "$ac_tmp/config.h" "$ac_file" \
28183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28186 $as_echo "/* $configure_input */" \
28187 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28188 || as_fn_error $? "could not create -" "$LINENO" 5
28190 # Compute "$ac_file"'s index in $config_headers.
28193 for _am_header in $config_headers :; do
28194 case $_am_header in
28195 $_am_arg | $_am_arg:* )
28198 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28201 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28202 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28203 X"$_am_arg" : 'X\(//\)[^/]' \| \
28204 X"$_am_arg" : 'X\(//\)$' \| \
28205 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28206 $as_echo X"$_am_arg" |
28207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28211 /^X\(\/\/\)[^/].*/{
28223 s/.*/./; q'`/stamp-h$_am_stamp_count
28226 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28227 $as_echo "$as_me: executing $ac_file commands" >&6;}
28232 case $ac_file$ac_mode in
28233 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28234 # Older Autoconf quotes --file arguments for eval, but not when files
28235 # are listed without --file. Let's play safe and only enable the eval
28236 # if we detect the quoting.
28237 case $CONFIG_FILES in
28238 *\'*) eval set x "$CONFIG_FILES" ;;
28239 *) set x $CONFIG_FILES ;;
28244 # Strip MF so we end up with the name of the file.
28245 mf=`echo "$mf" | sed -e 's/:.*$//'`
28246 # Check whether this is an Automake generated Makefile or not.
28247 # We used to match only the files named 'Makefile.in', but
28248 # some people rename them; so instead we look at the file content.
28249 # Grep'ing the first line is not enough: some people post-process
28250 # each Makefile.in and add a new line on top of each file to say so.
28251 # Grep'ing the whole file is not good either: AIX grep has a line
28252 # limit of 2048, but all sed's we know have understand at least 4000.
28253 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28254 dirpart=`$as_dirname -- "$mf" ||
28255 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28256 X"$mf" : 'X\(//\)[^/]' \| \
28257 X"$mf" : 'X\(//\)$' \| \
28258 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28264 /^X\(\/\/\)[^/].*/{
28280 # Extract the definition of DEPDIR, am__include, and am__quote
28281 # from the Makefile without running 'make'.
28282 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28283 test -z "$DEPDIR" && continue
28284 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28285 test -z "$am__include" && continue
28286 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28287 # Find all dependency output files, they are included files with
28288 # $(DEPDIR) in their names. We invoke sed twice because it is the
28289 # simplest approach to changing $(DEPDIR) to its actual value in the
28291 for file in `sed -n "
28292 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28293 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
28294 # Make sure the directory exists.
28295 test -f "$dirpart/$file" && continue
28296 fdir=`$as_dirname -- "$file" ||
28297 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28298 X"$file" : 'X\(//\)[^/]' \| \
28299 X"$file" : 'X\(//\)$' \| \
28300 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28301 $as_echo X"$file" |
28302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28306 /^X\(\/\/\)[^/].*/{
28319 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28320 # echo "creating $dirpart/$file"
28321 echo '# dummy' > "$dirpart/$file"
28328 # See if we are running on zsh, and set the options that allow our
28329 # commands through without removal of \ escapes.
28330 if test -n "${ZSH_VERSION+set}"; then
28331 setopt NO_GLOB_SUBST
28335 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28338 cat <<_LT_EOF >> "$cfgfile"
28340 # Generated automatically by $as_me ($PACKAGE) $VERSION
28341 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28342 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28344 # Provide generalized library-building support services.
28345 # Written by Gordon Matzigkeit, 1996
28347 # Copyright (C) 2014 Free Software Foundation, Inc.
28348 # This is free software; see the source for copying conditions. There is NO
28349 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28351 # GNU Libtool is free software; you can redistribute it and/or modify
28352 # it under the terms of the GNU General Public License as published by
28353 # the Free Software Foundation; either version 2 of of the License, or
28354 # (at your option) any later version.
28356 # As a special exception to the GNU General Public License, if you
28357 # distribute this file as part of a program or library that is built
28358 # using GNU Libtool, you may include this file under the same
28359 # distribution terms that you use for the rest of that program.
28361 # GNU Libtool is distributed in the hope that it will be useful, but
28362 # WITHOUT ANY WARRANTY; without even the implied warranty of
28363 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28364 # GNU General Public License for more details.
28366 # You should have received a copy of the GNU General Public License
28367 # along with this program. If not, see <http://www.gnu.org/licenses/>.
28370 # The names of the tagged configurations supported by this script.
28373 # Configured defaults for sys_lib_dlsearch_path munging.
28374 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28376 # ### BEGIN LIBTOOL CONFIG
28378 # A sed program that does not truncate output.
28381 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28382 Xsed="\$SED -e 1s/^X//"
28384 # A grep program that handles long lines.
28390 # A literal string matcher.
28393 # Shell to use when invoking shell scripts.
28396 # An echo program that protects backslashes.
28399 # Whether or not to build shared libraries.
28400 build_libtool_libs=$enable_shared
28402 # Which release of libtool.m4 was used?
28403 macro_version=$macro_version
28404 macro_revision=$macro_revision
28406 # Whether or not to build static libraries.
28407 build_old_libs=$enable_static
28409 # What type of objects to build.
28412 # Whether or not to optimize for fast installation.
28413 fast_install=$enable_fast_install
28415 # Shared archive member basename,for filename based shared library versioning on AIX.
28416 shared_archive_member_spec=$shared_archive_member_spec
28418 # The PATH separator for the build system.
28419 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28422 host_alias=$host_alias
28426 # The build system.
28427 build_alias=$build_alias
28431 # A BSD- or MS-compatible name lister.
28434 # Whether we need soft or hard links.
28437 # What is the maximum length of a command?
28438 max_cmd_len=$max_cmd_len
28440 # Object file suffix (normally "o").
28443 # Executable file suffix (normally "").
28446 # whether the shell understands "unset".
28449 # turn spaces into newlines.
28452 # turn newlines into spaces.
28455 # convert \$build file names to \$host format.
28456 to_host_file_cmd=$lt_cv_to_host_file_cmd
28458 # convert \$build files to toolchain format.
28459 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28461 # An object symbol dumper.
28462 OBJDUMP=$lt_OBJDUMP
28464 # Method to check whether dependent libraries are shared objects.
28465 deplibs_check_method=$lt_deplibs_check_method
28467 # Command to use when deplibs_check_method = "file_magic".
28468 file_magic_cmd=$lt_file_magic_cmd
28470 # How to find potential files when deplibs_check_method = "file_magic".
28471 file_magic_glob=$lt_file_magic_glob
28473 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28474 want_nocaseglob=$lt_want_nocaseglob
28476 # DLL creation program.
28477 DLLTOOL=$lt_DLLTOOL
28479 # Command to associate shared and link libraries.
28480 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28485 # Flags to create an archive.
28486 AR_FLAGS=$lt_AR_FLAGS
28488 # How to feed a file listing to the archiver.
28489 archiver_list_spec=$lt_archiver_list_spec
28491 # A symbol stripping program.
28494 # Commands used to install an old-style archive.
28496 old_postinstall_cmds=$lt_old_postinstall_cmds
28497 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28499 # Whether to use a lock for old archive extraction.
28500 lock_old_archive_extraction=$lock_old_archive_extraction
28505 # LTCC compiler flags.
28506 LTCFLAGS=$lt_CFLAGS
28508 # Take the output of nm and produce a listing of raw symbols and C names.
28509 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28511 # Transform the output of nm in a proper C declaration.
28512 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28514 # Transform the output of nm into a list of symbols to manually relocate.
28515 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28517 # Transform the output of nm in a C name address pair.
28518 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28520 # Transform the output of nm in a C name address pair when lib prefix is needed.
28521 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28523 # The name lister interface.
28524 nm_interface=$lt_lt_cv_nm_interface
28526 # Specify filename containing input files for \$NM.
28527 nm_file_list_spec=$lt_nm_file_list_spec
28529 # The root where to search for dependent libraries,and where our libraries should be installed.
28530 lt_sysroot=$lt_sysroot
28532 # Command to truncate a binary pipe.
28533 lt_truncate_bin=$lt_lt_cv_truncate_bin
28535 # The name of the directory that contains temporary libtool files.
28538 # Used to examine libraries when file_magic_cmd begins with "file".
28539 MAGIC_CMD=$MAGIC_CMD
28541 # Must we lock files when doing compilation?
28542 need_locks=$lt_need_locks
28545 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28547 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28548 DSYMUTIL=$lt_DSYMUTIL
28550 # Tool to change global to local symbols on Mac OS X.
28553 # Tool to manipulate fat objects and archives on Mac OS X.
28556 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28559 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28560 OTOOL64=$lt_OTOOL64
28562 # Old archive suffix (normally "a").
28565 # Shared library suffix (normally ".so").
28566 shrext_cmds=$lt_shrext_cmds
28568 # The commands to extract the exported symbol list from a shared archive.
28569 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28571 # Variables whose values should be saved in libtool wrapper scripts and
28572 # restored at link time.
28573 variables_saved_for_relink=$lt_variables_saved_for_relink
28575 # Do we need the "lib" prefix for modules?
28576 need_lib_prefix=$need_lib_prefix
28578 # Do we need a version for libraries?
28579 need_version=$need_version
28581 # Library versioning type.
28582 version_type=$version_type
28584 # Shared library runtime path variable.
28585 runpath_var=$runpath_var
28587 # Shared library path variable.
28588 shlibpath_var=$shlibpath_var
28590 # Is shlibpath searched before the hard-coded library search path?
28591 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28593 # Format of library name prefix.
28594 libname_spec=$lt_libname_spec
28596 # List of archive names. First name is the real one, the rest are links.
28597 # The last name is the one that the linker finds with -lNAME
28598 library_names_spec=$lt_library_names_spec
28600 # The coded name of the library, if different from the real name.
28601 soname_spec=$lt_soname_spec
28603 # Permission mode override for installation of shared libraries.
28604 install_override_mode=$lt_install_override_mode
28606 # Command to use after installation of a shared archive.
28607 postinstall_cmds=$lt_postinstall_cmds
28609 # Command to use after uninstallation of a shared archive.
28610 postuninstall_cmds=$lt_postuninstall_cmds
28612 # Commands used to finish a libtool library installation in a directory.
28613 finish_cmds=$lt_finish_cmds
28615 # As "finish_cmds", except a single script fragment to be evaled but
28617 finish_eval=$lt_finish_eval
28619 # Whether we should hardcode library paths into libraries.
28620 hardcode_into_libs=$hardcode_into_libs
28622 # Compile-time system search path for libraries.
28623 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28625 # Detected run-time system search path for libraries.
28626 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28628 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28629 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28631 # Whether dlopen is supported.
28632 dlopen_support=$enable_dlopen
28634 # Whether dlopen of programs is supported.
28635 dlopen_self=$enable_dlopen_self
28637 # Whether dlopen of statically linked programs is supported.
28638 dlopen_self_static=$enable_dlopen_self_static
28640 # Commands to strip libraries.
28641 old_striplib=$lt_old_striplib
28642 striplib=$lt_striplib
28645 # The linker used to build libraries.
28648 # How to create reloadable object files.
28649 reload_flag=$lt_reload_flag
28650 reload_cmds=$lt_reload_cmds
28652 # Commands used to build an old-style archive.
28653 old_archive_cmds=$lt_old_archive_cmds
28655 # A language specific compiler.
28658 # Is the compiler the GNU compiler?
28661 # Compiler flag to turn off builtin functions.
28662 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28664 # Additional compiler flags for building library objects.
28665 pic_flag=$lt_lt_prog_compiler_pic
28667 # How to pass a linker flag through the compiler.
28668 wl=$lt_lt_prog_compiler_wl
28670 # Compiler flag to prevent dynamic linking.
28671 link_static_flag=$lt_lt_prog_compiler_static
28673 # Does compiler simultaneously support -c and -o options?
28674 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28676 # Whether or not to add -lc for building shared libraries.
28677 build_libtool_need_lc=$archive_cmds_need_lc
28679 # Whether or not to disallow shared libs when runtime libs are static.
28680 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28682 # Compiler flag to allow reflexive dlopens.
28683 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28685 # Compiler flag to generate shared objects directly from archives.
28686 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28688 # Whether the compiler copes with passing no objects directly.
28689 compiler_needs_object=$lt_compiler_needs_object
28691 # Create an old-style archive from a shared archive.
28692 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28694 # Create a temporary old-style archive to link instead of a shared archive.
28695 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28697 # Commands used to build a shared archive.
28698 archive_cmds=$lt_archive_cmds
28699 archive_expsym_cmds=$lt_archive_expsym_cmds
28701 # Commands used to build a loadable module if different from building
28702 # a shared archive.
28703 module_cmds=$lt_module_cmds
28704 module_expsym_cmds=$lt_module_expsym_cmds
28706 # Whether we are building with GNU ld or not.
28707 with_gnu_ld=$lt_with_gnu_ld
28709 # Flag that allows shared libraries with undefined symbols to be built.
28710 allow_undefined_flag=$lt_allow_undefined_flag
28712 # Flag that enforces no undefined symbols.
28713 no_undefined_flag=$lt_no_undefined_flag
28715 # Flag to hardcode \$libdir into a binary during linking.
28716 # This must work even if \$libdir does not exist
28717 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28719 # Whether we need a single "-rpath" flag with a separated argument.
28720 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28722 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28723 # DIR into the resulting binary.
28724 hardcode_direct=$hardcode_direct
28726 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28727 # DIR into the resulting binary and the resulting library dependency is
28728 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28729 # library is relocated.
28730 hardcode_direct_absolute=$hardcode_direct_absolute
28732 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28733 # into the resulting binary.
28734 hardcode_minus_L=$hardcode_minus_L
28736 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28737 # into the resulting binary.
28738 hardcode_shlibpath_var=$hardcode_shlibpath_var
28740 # Set to "yes" if building a shared library automatically hardcodes DIR
28741 # into the library and all subsequent libraries and executables linked
28743 hardcode_automatic=$hardcode_automatic
28745 # Set to yes if linker adds runtime paths of dependent libraries
28746 # to runtime path list.
28747 inherit_rpath=$inherit_rpath
28749 # Whether libtool must link a program against all its dependency libraries.
28750 link_all_deplibs=$link_all_deplibs
28752 # Set to "yes" if exported symbols are required.
28753 always_export_symbols=$always_export_symbols
28755 # The commands to list exported symbols.
28756 export_symbols_cmds=$lt_export_symbols_cmds
28758 # Symbols that should not be listed in the preloaded symbols.
28759 exclude_expsyms=$lt_exclude_expsyms
28761 # Symbols that must always be exported.
28762 include_expsyms=$lt_include_expsyms
28764 # Commands necessary for linking programs (against libraries) with templates.
28765 prelink_cmds=$lt_prelink_cmds
28767 # Commands necessary for finishing linking programs.
28768 postlink_cmds=$lt_postlink_cmds
28770 # Specify filename containing input files.
28771 file_list_spec=$lt_file_list_spec
28773 # How to hardcode a shared library path into an executable.
28774 hardcode_action=$hardcode_action
28776 # ### END LIBTOOL CONFIG
28780 cat <<'_LT_EOF' >> "$cfgfile"
28782 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28784 # func_munge_path_list VARIABLE PATH
28785 # -----------------------------------
28786 # VARIABLE is name of variable containing _space_ separated list of
28787 # directories to be munged by the contents of PATH, which is string
28790 # string "DIR[ DIR]" will be prepended to VARIABLE
28792 # string "DIR[ DIR]" will be appended to VARIABLE
28793 # "DIRP[:DIRP]::[DIRA:]DIRA"
28794 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28795 # "DIRA[ DIRA]" will be appended to VARIABLE
28797 # VARIABLE will be replaced by "DIR[ DIR]"
28798 func_munge_path_list ()
28804 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28807 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
28810 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
28811 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
28814 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
28820 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
28821 func_cc_basename ()
28823 for cc_temp in $*""; do
28825 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28826 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28831 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
28835 # ### END FUNCTIONS SHARED WITH CONFIGURE
28841 cat <<\_LT_EOF >> "$cfgfile"
28842 # AIX sometimes has problems with the GCC collect2 program. For some
28843 # reason, if we set the COLLECT_NAMES environment variable, the problems
28844 # vanish in a puff of smoke.
28845 if test set != "${COLLECT_NAMES+set}"; then
28847 export COLLECT_NAMES
28854 ltmain=$ac_aux_dir/ltmain.sh
28857 # We use sed instead of cat because bash on DJGPP gets confused if
28858 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28859 # text mode, it properly converts lines to CR/LF. This bash problem
28860 # is reportedly fixed, but why not run on old versions too?
28861 sed '$q' "$ltmain" >> "$cfgfile" \
28862 || (rm -f "$cfgfile"; exit 1)
28864 mv -f "$cfgfile" "$ofile" ||
28865 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28876 ac_clean_files=$ac_clean_files_save
28878 test $ac_write_fail = 0 ||
28879 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28882 # configure is writing to config.log, and then calls config.status.
28883 # config.status does its own redirection, appending to config.log.
28884 # Unfortunately, on DOS this fails, as config.log is still kept open
28885 # by configure, so config.status won't be able to write to it; its
28886 # output is simply discarded. So we exec the FD to /dev/null,
28887 # effectively closing config.log, so it can be properly (re)opened and
28888 # appended to by config.status. When coming back to configure, we
28889 # need to make the FD available again.
28890 if test "$no_create" != yes; then
28892 ac_config_status_args=
28893 test "$silent" = yes &&
28894 ac_config_status_args="$ac_config_status_args --quiet"
28896 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28898 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28899 # would make configure fail if this is the last instruction.
28900 $ac_cs_success || as_fn_exit 1
28904 # CONFIG_SUBDIRS section.
28906 if test "$no_recursion" != yes; then
28908 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28909 # so they do not pile up.
28910 ac_sub_configure_args=
28912 eval "set x $ac_configure_args"
28916 if test -n "$ac_prev"; then
28921 -cache-file | --cache-file | --cache-fil | --cache-fi \
28922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28923 ac_prev=cache_file ;;
28924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28928 --config-cache | -C)
28930 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28932 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28934 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28936 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28938 --disable-option-checking)
28942 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28944 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28948 # Always prepend --prefix to ensure using the same prefix
28949 # in subdir configurations.
28950 ac_arg="--prefix=$prefix"
28952 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28954 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28957 if test "$silent" = yes; then
28958 ac_sub_configure_args="--silent $ac_sub_configure_args"
28961 # Always prepend --disable-option-checking to silence warnings, since
28962 # different subdirs can have different --enable and --with options.
28963 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28966 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28968 # Do not complain, so a configure script can configure whichever
28969 # parts of a large source tree are present.
28970 test -d "$srcdir/$ac_dir" || continue
28972 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28973 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28974 $as_echo "$ac_msg" >&6
28975 as_dir="$ac_dir"; as_fn_mkdir_p
28979 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28981 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28982 # A ".." for each directory in $ac_dir_suffix.
28983 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28984 case $ac_top_builddir_sub in
28985 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28986 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28989 ac_abs_top_builddir=$ac_pwd
28990 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28991 # for backward compatibility:
28992 ac_top_builddir=$ac_top_build_prefix
28995 .) # We are building in place.
28997 ac_top_srcdir=$ac_top_builddir_sub
28998 ac_abs_top_srcdir=$ac_pwd ;;
28999 [\\/]* | ?:[\\/]* ) # Absolute name.
29000 ac_srcdir=$srcdir$ac_dir_suffix;
29001 ac_top_srcdir=$srcdir
29002 ac_abs_top_srcdir=$srcdir ;;
29003 *) # Relative name.
29004 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29005 ac_top_srcdir=$ac_top_build_prefix$srcdir
29006 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29008 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29013 # Check for guested configure; otherwise get Cygnus style configure.
29014 if test -f "$ac_srcdir/configure.gnu"; then
29015 ac_sub_configure=$ac_srcdir/configure.gnu
29016 elif test -f "$ac_srcdir/configure"; then
29017 ac_sub_configure=$ac_srcdir/configure
29018 elif test -f "$ac_srcdir/configure.in"; then
29019 # This should be Cygnus configure.
29020 ac_sub_configure=$ac_aux_dir/configure
29022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
29023 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
29027 # The recursion is here.
29028 if test -n "$ac_sub_configure"; then
29029 # Make the cache file name correct relative to the subdirectory.
29030 case $cache_file in
29031 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
29032 *) # Relative name.
29033 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
29036 { $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
29037 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
29038 # The eval makes quoting arguments work.
29039 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
29040 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
29041 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
29047 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29049 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}